25.7 MB
/srv/reproducible-results/rbuild-debian/r-b-build.SMhO4zqe/b1/python-django_4.2.16-1_armhf.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.SMhO4zqe/b2/python-django_4.2.16-1_armhf.changes
301 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·d4809d039ea20e6fab84d6cac3dd1a1a·3599448·doc·optional·python-django-doc_4.2.16-1_all.deb1 ·352a6abcbe3ba6222386f86fba5cd1b7·3651512·doc·optional·python-django-doc_4.2.16-1_all.deb
2 ·04424b3521ffe316dbaf846f49d76e0a·2737720·python·optional·python3-django_4.2.16-1_all.deb2 ·04424b3521ffe316dbaf846f49d76e0a·2737720·python·optional·python3-django_4.2.16-1_all.deb
25.7 MB
python-django-doc_4.2.16-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2024-09-03·16:31:33.000000·debian-binary1 -rw-r--r--···0········0········0········4·2024-09-03·16:31:33.000000·debian-binary
2 -rw-r--r--···0········0········0····19228·2024-09-03·16:31:33.000000·control.tar.xz2 -rw-r--r--···0········0········0····19348·2024-09-03·16:31:33.000000·control.tar.xz
3 -rw-r--r--···0········0········0··3580028·2024-09-03·16:31:33.000000·data.tar.xz3 -rw-r--r--···0········0········0··3631972·2024-09-03·16:31:33.000000·data.tar.xz
3.45 KB
control.tar.xz
3.42 KB
control.tar
411 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-09-03·16:31:33.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-09-03·16:31:33.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······974·2024-09-03·16:31:33.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······974·2024-09-03·16:31:33.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)····78391·2024-09-03·16:31:33.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)····78775·2024-09-03·16:31:33.000000·./md5sums
538 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·python-django-doc1 Package:·python-django-doc
2 Source:·python-django2 Source:·python-django
3 Version:·3:4.2.16-13 Version:·3:4.2.16-1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org>5 Maintainer:·Debian·Python·Team·<team+python@tracker.debian.org>
6 Installed-Size:·338156 Installed-Size:·34160
7 Depends:·libjs-sphinxdoc·(>=·7.4)7 Depends:·libjs-sphinxdoc·(>=·7.4)
8 Section:·doc8 Section:·doc
9 Priority:·optional9 Priority:·optional
10 Homepage:·http://www.djangoproject.com/10 Homepage:·http://www.djangoproject.com/
11 Description:·High-level·Python·web·development·framework·(documentation)11 Description:·High-level·Python·web·development·framework·(documentation)
12 ·Django·is·a·high-level·web·application·framework·that·loosely·follows·the12 ·Django·is·a·high-level·web·application·framework·that·loosely·follows·the
13 ·model-view-controller·design·pattern.13 ·model-view-controller·design·pattern.
2.47 KB
./md5sums
30.0 B
./md5sums
Files differ
2.42 KB
line order
Max HTML report size reached
25.7 MB
data.tar.xz
25.7 MB
data.tar
240 KB
file list
Max HTML report size reached
10.6 KB
./usr/share/doc/python-django-doc/html/_modules/asgiref/sync.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>asgiref.sync·&#8212;·Django·4.2.16·documentation</title>6 ····<title>asgiref.sync·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../templatebuiltins.js"></script>16 <script·src="../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-asgiref-sync">69 ··········<div·class="yui-g"·id="_modules-asgiref-sync">
69 ············70 ············
70 ··<h1>Source·code·for·asgiref.sync</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·asgiref.sync</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">asyncio</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">asyncio</span>
72 <span·class="kn">import</span>·<span·class="nn">asyncio.coroutines</span>73 <span·class="kn">import</span>·<span·class="nn">asyncio.coroutines</span>
73 <span·class="kn">import</span>·<span·class="nn">contextvars</span>74 <span·class="kn">import</span>·<span·class="nn">contextvars</span>
74 <span·class="kn">import</span>·<span·class="nn">functools</span>75 <span·class="kn">import</span>·<span·class="nn">functools</span>
75 <span·class="kn">import</span>·<span·class="nn">inspect</span>76 <span·class="kn">import</span>·<span·class="nn">inspect</span>
76 <span·class="kn">import</span>·<span·class="nn">os</span>77 <span·class="kn">import</span>·<span·class="nn">os</span>
77 <span·class="kn">import</span>·<span·class="nn">sys</span>78 <span·class="kn">import</span>·<span·class="nn">sys</span>
Offset 615, 15 lines modifiedOffset 616, 15 lines modified
615 ····<span·class="o">*</span><span·class="p">,</span>616 ····<span·class="o">*</span><span·class="p">,</span>
616 ····<span·class="n">force_new_loop</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">False</span><span·class="p">,</span>617 ····<span·class="n">force_new_loop</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">False</span><span·class="p">,</span>
617 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]:</span>618 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]:</span>
618 ····<span·class="o">...</span>619 ····<span·class="o">...</span>
  
  
619 <div·class="viewcode-block"·id="async_to_sync">620 <div·class="viewcode-block"·id="async_to_sync">
620 <a·class="viewcode-back"·href="../../topics/async.html#asgiref.sync.async_to_sync">[docs]</a>621 <a·class="viewcode-back"·href="../../topics/async.html#asgiref.sync.async_to_sync">[documenti]</a>
621 <span·class="k">def</span>·<span·class="nf">async_to_sync</span><span·class="p">(</span>622 <span·class="k">def</span>·<span·class="nf">async_to_sync</span><span·class="p">(</span>
622 ····<span·class="n">awaitable</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span>623 ····<span·class="n">awaitable</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span>
623 ········<span·class="n">Union</span><span·class="p">[</span>624 ········<span·class="n">Union</span><span·class="p">[</span>
624 ············<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]],</span>625 ············<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]],</span>
625 ············<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Awaitable</span><span·class="p">[</span><span·class="n">_R</span><span·class="p">]],</span>626 ············<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Awaitable</span><span·class="p">[</span><span·class="n">_R</span><span·class="p">]],</span>
626 ········<span·class="p">]</span>627 ········<span·class="p">]</span>
627 ····<span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>628 ····<span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>
Offset 664, 15 lines modifiedOffset 665, 15 lines modified
664 ····<span·class="n">thread_sensitive</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">True</span><span·class="p">,</span>665 ····<span·class="n">thread_sensitive</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">True</span><span·class="p">,</span>
665 ····<span·class="n">executor</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="s2">&quot;ThreadPoolExecutor&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>666 ····<span·class="n">executor</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="s2">&quot;ThreadPoolExecutor&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>
666 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]:</span>667 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]:</span>
667 ····<span·class="o">...</span>668 ····<span·class="o">...</span>
  
  
668 <div·class="viewcode-block"·id="sync_to_async">669 <div·class="viewcode-block"·id="sync_to_async">
669 <a·class="viewcode-back"·href="../../topics/async.html#asgiref.sync.sync_to_async">[docs]</a>670 <a·class="viewcode-back"·href="../../topics/async.html#asgiref.sync.sync_to_async">[documenti]</a>
670 <span·class="k">def</span>·<span·class="nf">sync_to_async</span><span·class="p">(</span>671 <span·class="k">def</span>·<span·class="nf">sync_to_async</span><span·class="p">(</span>
671 ····<span·class="n">func</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>672 ····<span·class="n">func</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>
672 ····<span·class="o">*</span><span·class="p">,</span>673 ····<span·class="o">*</span><span·class="p">,</span>
673 ····<span·class="n">thread_sensitive</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">True</span><span·class="p">,</span>674 ····<span·class="n">thread_sensitive</span><span·class="p">:</span>·<span·class="nb">bool</span>·<span·class="o">=</span>·<span·class="kc">True</span><span·class="p">,</span>
674 ····<span·class="n">executor</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="s2">&quot;ThreadPoolExecutor&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>675 ····<span·class="n">executor</span><span·class="p">:</span>·<span·class="n">Optional</span><span·class="p">[</span><span·class="s2">&quot;ThreadPoolExecutor&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">None</span><span·class="p">,</span>
675 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Union</span><span·class="p">[</span>676 <span·class="p">)</span>·<span·class="o">-&gt;</span>·<span·class="n">Union</span><span·class="p">[</span>
676 ····<span·class="n">Callable</span><span·class="p">[[</span><span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]],</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]],</span>677 ····<span·class="n">Callable</span><span·class="p">[[</span><span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]],</span>·<span·class="n">Callable</span><span·class="p">[</span><span·class="n">_P</span><span·class="p">,</span>·<span·class="n">Coroutine</span><span·class="p">[</span><span·class="n">Any</span><span·class="p">,</span>·<span·class="n">Any</span><span·class="p">,</span>·<span·class="n">_R</span><span·class="p">]]],</span>
Offset 698, 35 lines modifiedOffset 699, 35 lines modified
698 ······699 ······
699 ········700 ········
700 ··········<div·class="yui-b"·id="sidebar">701 ··········<div·class="yui-b"·id="sidebar">
701 ············702 ············
702 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">703 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
703 ········<div·class="sphinxsidebarwrapper">704 ········<div·class="sphinxsidebarwrapper">
704 <search·id="searchbox"·style="display:·none"·role="search">705 <search·id="searchbox"·style="display:·none"·role="search">
705 ··<h3·id="searchlabel">Quick·search</h3>706 ··<h3·id="searchlabel">Ricerca·veloce</h3>
706 ····<div·class="searchformwrapper">707 ····<div·class="searchformwrapper">
707 ····<form·class="search"·action="../../search.html"·method="get">708 ····<form·class="search"·action="../../search.html"·method="get">
708 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>709 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
709 ······<input·type="submit"·value="Go"·/>710 ······<input·type="submit"·value="Vai"·/>
710 ····</form>711 ····</form>
711 ····</div>712 ····</div>
712 </search>713 </search>
713 <script>document.getElementById('searchbox').style.display·=·"block"</script>714 <script>document.getElementById('searchbox').style.display·=·"block"</script>
714 ········</div>715 ········</div>
715 ······</div>716 ······</div>
716 ··············<h3>Last·update:</h3>717 ··············<h3>Last·update:</h3>
717 ··············<p·class="topless">Sep·03,·2024</p>718 ··············<p·class="topless">set·03,·2024</p>
718 ··········</div>719 ··········</div>
719 ········720 ········
720 ······721 ······
721 ····</div>722 ····</div>
  
722 ····<div·id="ft">723 ····<div·id="ft">
723 ······<div·class="nav">724 ······<div·class="nav">
724 ····<a·href="../index.html"·title="Module·code"·accesskey="U">up</a></div>725 ····<a·href="../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
725 ····</div>726 ····</div>
726 ··</div>727 ··</div>
  
727 ······<div·class="clearer"></div>728 ······<div·class="clearer"></div>
728 ····</div>729 ····</div>
729 ··</body>730 ··</body>
730 </html>731 </html>
2.08 KB
html2text {}
Max HTML report size reached
13.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/apps/config.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.apps.config·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.apps.config·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 45 lines modifiedOffset 51, 45 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-apps-config">69 ··········<div·class="yui-g"·id="_modules-django-apps-config">
69 ············70 ············
70 ··<h1>Source·code·for·django.apps.config</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.apps.config</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">inspect</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">inspect</span>
72 <span·class="kn">import</span>·<span·class="nn">os</span>73 <span·class="kn">import</span>·<span·class="nn">os</span>
73 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>74 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span><span·class="p">,</span>·<span·class="n">module_has_submodule</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span><span·class="p">,</span>·<span·class="n">module_has_submodule</span>
  
77 <span·class="n">APPS_MODULE_NAME</span>·<span·class="o">=</span>·<span·class="s2">&quot;apps&quot;</span>78 <span·class="n">APPS_MODULE_NAME</span>·<span·class="o">=</span>·<span·class="s2">&quot;apps&quot;</span>
78 <span·class="n">MODELS_MODULE_NAME</span>·<span·class="o">=</span>·<span·class="s2">&quot;models&quot;</span>79 <span·class="n">MODELS_MODULE_NAME</span>·<span·class="o">=</span>·<span·class="s2">&quot;models&quot;</span>
  
  
79 <div·class="viewcode-block"·id="AppConfig">80 <div·class="viewcode-block"·id="AppConfig">
80 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig">[docs]</a>81 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig">[documenti]</a>
81 <span·class="k">class</span>·<span·class="nc">AppConfig</span><span·class="p">:</span>82 <span·class="k">class</span>·<span·class="nc">AppConfig</span><span·class="p">:</span>
82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Class·representing·a·Django·application·and·its·configuration.&quot;&quot;&quot;</span>83 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Class·representing·a·Django·application·and·its·configuration.&quot;&quot;&quot;</span>
  
83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">app_name</span><span·class="p">,</span>·<span·class="n">app_module</span><span·class="p">):</span>84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">app_name</span><span·class="p">,</span>·<span·class="n">app_module</span><span·class="p">):</span>
84 ········<span·class="c1">#·Full·Python·path·to·the·application·e.g.·&#39;django.contrib.admin&#39;.</span>85 ········<span·class="c1">#·Full·Python·path·to·the·application·e.g.·&#39;django.contrib.admin&#39;.</span>
85 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">app_name</span>86 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">app_name</span>
  
Offset 293, 15 lines modifiedOffset 294, 15 lines modified
293 ················<span·class="p">)</span>294 ················<span·class="p">)</span>
294 ············<span·class="p">)</span>295 ············<span·class="p">)</span>
  
295 ········<span·class="c1">#·Entry·is·a·path·to·an·app·config·class.</span>296 ········<span·class="c1">#·Entry·is·a·path·to·an·app·config·class.</span>
296 ········<span·class="k">return</span>·<span·class="n">app_config_class</span><span·class="p">(</span><span·class="n">app_name</span><span·class="p">,</span>·<span·class="n">app_module</span><span·class="p">)</span>297 ········<span·class="k">return</span>·<span·class="n">app_config_class</span><span·class="p">(</span><span·class="n">app_name</span><span·class="p">,</span>·<span·class="n">app_module</span><span·class="p">)</span>
  
297 <div·class="viewcode-block"·id="AppConfig.get_model">298 <div·class="viewcode-block"·id="AppConfig.get_model">
298 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.get_model">[docs]</a>299 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.get_model">[documenti]</a>
299 ····<span·class="k">def</span>·<span·class="nf">get_model</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">require_ready</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>300 ····<span·class="k">def</span>·<span·class="nf">get_model</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">require_ready</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
300 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>301 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
301 <span·class="sd">········Return·the·model·with·the·given·case-insensitive·model_name.</span>302 <span·class="sd">········Return·the·model·with·the·given·case-insensitive·model_name.</span>
  
302 <span·class="sd">········Raise·LookupError·if·no·model·exists·with·this·name.</span>303 <span·class="sd">········Raise·LookupError·if·no·model·exists·with·this·name.</span>
303 <span·class="sd">········&quot;&quot;&quot;</span>304 <span·class="sd">········&quot;&quot;&quot;</span>
304 ········<span·class="k">if</span>·<span·class="n">require_ready</span><span·class="p">:</span>305 ········<span·class="k">if</span>·<span·class="n">require_ready</span><span·class="p">:</span>
Offset 313, 15 lines modifiedOffset 314, 15 lines modified
313 ········<span·class="k">except</span>·<span·class="ne">KeyError</span><span·class="p">:</span>314 ········<span·class="k">except</span>·<span·class="ne">KeyError</span><span·class="p">:</span>
314 ············<span·class="k">raise</span>·<span·class="ne">LookupError</span><span·class="p">(</span>315 ············<span·class="k">raise</span>·<span·class="ne">LookupError</span><span·class="p">(</span>
315 ················<span·class="s2">&quot;App·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·doesn&#39;t·have·a·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·model.&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">label</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">)</span>316 ················<span·class="s2">&quot;App·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·doesn&#39;t·have·a·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·model.&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">label</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">)</span>
316 ············<span·class="p">)</span></div>317 ············<span·class="p">)</span></div>
  
  
317 <div·class="viewcode-block"·id="AppConfig.get_models">318 <div·class="viewcode-block"·id="AppConfig.get_models">
318 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.get_models">[docs]</a>319 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.get_models">[documenti]</a>
319 ····<span·class="k">def</span>·<span·class="nf">get_models</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">include_auto_created</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">include_swapped</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>320 ····<span·class="k">def</span>·<span·class="nf">get_models</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">include_auto_created</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">include_swapped</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
320 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>321 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
321 <span·class="sd">········Return·an·iterable·of·models.</span>322 <span·class="sd">········Return·an·iterable·of·models.</span>
  
322 <span·class="sd">········By·default,·the·following·models·aren&#39;t·included:</span>323 <span·class="sd">········By·default,·the·following·models·aren&#39;t·included:</span>
  
323 <span·class="sd">········-·auto-created·models·for·many-to-many·relations·without</span>324 <span·class="sd">········-·auto-created·models·for·many-to-many·relations·without</span>
Offset 346, 15 lines modifiedOffset 347, 15 lines modified
346 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">models</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">apps</span><span·class="o">.</span><span·class="n">all_models</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">label</span><span·class="p">]</span>347 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">models</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">apps</span><span·class="o">.</span><span·class="n">all_models</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">label</span><span·class="p">]</span>
  
347 ········<span·class="k">if</span>·<span·class="n">module_has_submodule</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">module</span><span·class="p">,</span>·<span·class="n">MODELS_MODULE_NAME</span><span·class="p">):</span>348 ········<span·class="k">if</span>·<span·class="n">module_has_submodule</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">module</span><span·class="p">,</span>·<span·class="n">MODELS_MODULE_NAME</span><span·class="p">):</span>
348 ············<span·class="n">models_module_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">.</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">MODELS_MODULE_NAME</span><span·class="p">)</span>349 ············<span·class="n">models_module_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">.</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">MODELS_MODULE_NAME</span><span·class="p">)</span>
349 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">models_module</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">models_module_name</span><span·class="p">)</span>350 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">models_module</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">models_module_name</span><span·class="p">)</span>
  
350 <div·class="viewcode-block"·id="AppConfig.ready">351 <div·class="viewcode-block"·id="AppConfig.ready">
351 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.ready">[docs]</a>352 <a·class="viewcode-back"·href="../../../ref/applications.html#django.apps.AppConfig.ready">[documenti]</a>
352 ····<span·class="k">def</span>·<span·class="nf">ready</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>353 ····<span·class="k">def</span>·<span·class="nf">ready</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
353 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>354 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
354 <span·class="sd">········Override·this·method·in·subclasses·to·run·code·when·Django·starts.</span>355 <span·class="sd">········Override·this·method·in·subclasses·to·run·code·when·Django·starts.</span>
355 <span·class="sd">········&quot;&quot;&quot;</span></div>356 <span·class="sd">········&quot;&quot;&quot;</span></div>
356 </div>357 </div>
  
357 </pre></div>358 </pre></div>
Offset 365, 35 lines modifiedOffset 366, 35 lines modified
365 ······366 ······
366 ········367 ········
367 ··········<div·class="yui-b"·id="sidebar">368 ··········<div·class="yui-b"·id="sidebar">
368 ············369 ············
369 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">370 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
370 ········<div·class="sphinxsidebarwrapper">371 ········<div·class="sphinxsidebarwrapper">
371 <search·id="searchbox"·style="display:·none"·role="search">372 <search·id="searchbox"·style="display:·none"·role="search">
372 ··<h3·id="searchlabel">Quick·search</h3>373 ··<h3·id="searchlabel">Ricerca·veloce</h3>
373 ····<div·class="searchformwrapper">374 ····<div·class="searchformwrapper">
374 ····<form·class="search"·action="../../../search.html"·method="get">375 ····<form·class="search"·action="../../../search.html"·method="get">
Max diff block lines reached; 718/10941 bytes (6.56%) of diff not shown.
3.01 KB
html2text {}
Max HTML report size reached
7.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/conf/urls/i18n.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.conf.urls.i18n·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.conf.urls.i18n·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-conf-urls-i18n">69 ··········<div·class="yui-g"·id="_modules-django-conf-urls-i18n">
69 ············70 ············
70 ··<h1>Source·code·for·django.conf.urls.i18n</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.conf.urls.i18n</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
73 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">LocalePrefixPattern</span><span·class="p">,</span>·<span·class="n">URLResolver</span><span·class="p">,</span>·<span·class="n">get_resolver</span><span·class="p">,</span>·<span·class="n">path</span>74 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">LocalePrefixPattern</span><span·class="p">,</span>·<span·class="n">URLResolver</span><span·class="p">,</span>·<span·class="n">get_resolver</span><span·class="p">,</span>·<span·class="n">path</span>
74 <span·class="kn">from</span>·<span·class="nn">django.views.i18n</span>·<span·class="kn">import</span>·<span·class="n">set_language</span>75 <span·class="kn">from</span>·<span·class="nn">django.views.i18n</span>·<span·class="kn">import</span>·<span·class="n">set_language</span>
  
  
75 <div·class="viewcode-block"·id="i18n_patterns">76 <div·class="viewcode-block"·id="i18n_patterns">
76 <a·class="viewcode-back"·href="../../../../topics/i18n/translation.html#django.conf.urls.i18n.i18n_patterns">[docs]</a>77 <a·class="viewcode-back"·href="../../../../topics/i18n/translation.html#django.conf.urls.i18n.i18n_patterns">[documenti]</a>
77 <span·class="k">def</span>·<span·class="nf">i18n_patterns</span><span·class="p">(</span><span·class="o">*</span><span·class="n">urls</span><span·class="p">,</span>·<span·class="n">prefix_default_language</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>78 <span·class="k">def</span>·<span·class="nf">i18n_patterns</span><span·class="p">(</span><span·class="o">*</span><span·class="n">urls</span><span·class="p">,</span>·<span·class="n">prefix_default_language</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
78 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>79 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
79 <span·class="sd">····Add·the·language·code·prefix·to·every·URL·pattern·within·this·function.</span>80 <span·class="sd">····Add·the·language·code·prefix·to·every·URL·pattern·within·this·function.</span>
80 <span·class="sd">····This·may·only·be·used·in·the·root·URLconf,·not·in·an·included·URLconf.</span>81 <span·class="sd">····This·may·only·be·used·in·the·root·URLconf,·not·in·an·included·URLconf.</span>
81 <span·class="sd">····&quot;&quot;&quot;</span>82 <span·class="sd">····&quot;&quot;&quot;</span>
82 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">USE_I18N</span><span·class="p">:</span>83 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">USE_I18N</span><span·class="p">:</span>
83 ········<span·class="k">return</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="n">urls</span><span·class="p">)</span>84 ········<span·class="k">return</span>·<span·class="nb">list</span><span·class="p">(</span><span·class="n">urls</span><span·class="p">)</span>
Offset 121, 35 lines modifiedOffset 122, 35 lines modified
121 ······122 ······
122 ········123 ········
123 ··········<div·class="yui-b"·id="sidebar">124 ··········<div·class="yui-b"·id="sidebar">
124 ············125 ············
125 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">126 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
126 ········<div·class="sphinxsidebarwrapper">127 ········<div·class="sphinxsidebarwrapper">
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../../../../search.html"·method="get">131 ····<form·class="search"·action="../../../../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
147 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>148 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
148 ····</div>149 ····</div>
149 ··</div>150 ··</div>
  
150 ······<div·class="clearer"></div>151 ······<div·class="clearer"></div>
151 ····</div>152 ····</div>
152 ··</body>153 ··</body>
153 </html>154 </html>
1.77 KB
html2text {}
Max HTML report size reached
9.97 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/admin/decorators.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.admin.decorators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.admin.decorators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 33 lines modifiedOffset 51, 33 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-decorators">69 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-decorators">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.admin.decorators</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.admin.decorators</h1><div·class="highlight"><pre>
71 <div·class="viewcode-block"·id="action">72 <div·class="viewcode-block"·id="action">
72 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.action">[docs]</a>73 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.action">[documenti]</a>
73 <span></span><span·class="k">def</span>·<span·class="nf">action</span><span·class="p">(</span><span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">permissions</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">description</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>74 <span></span><span·class="k">def</span>·<span·class="nf">action</span><span·class="p">(</span><span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">permissions</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">description</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
74 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>75 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="sd">····Conveniently·add·attributes·to·an·action·function::</span>76 <span·class="sd">····Conveniently·add·attributes·to·an·action·function::</span>
  
76 <span·class="sd">········@admin.action(</span>77 <span·class="sd">········@admin.action(</span>
77 <span·class="sd">············permissions=[&#39;publish&#39;],</span>78 <span·class="sd">············permissions=[&#39;publish&#39;],</span>
78 <span·class="sd">············description=&#39;Mark·selected·stories·as·published&#39;,</span>79 <span·class="sd">············description=&#39;Mark·selected·stories·as·published&#39;,</span>
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
104 ········<span·class="k">return</span>·<span·class="n">decorator</span>105 ········<span·class="k">return</span>·<span·class="n">decorator</span>
105 ····<span·class="k">else</span><span·class="p">:</span>106 ····<span·class="k">else</span><span·class="p">:</span>
106 ········<span·class="k">return</span>·<span·class="n">decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span></div>107 ········<span·class="k">return</span>·<span·class="n">decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span></div>
  
  
  
107 <div·class="viewcode-block"·id="display">108 <div·class="viewcode-block"·id="display">
108 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.display">[docs]</a>109 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.display">[documenti]</a>
109 <span·class="k">def</span>·<span·class="nf">display</span><span·class="p">(</span>110 <span·class="k">def</span>·<span·class="nf">display</span><span·class="p">(</span>
110 ····<span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">boolean</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">ordering</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">description</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">empty_value</span><span·class="o">=</span><span·class="kc">None</span>111 ····<span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">boolean</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">ordering</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">description</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">empty_value</span><span·class="o">=</span><span·class="kc">None</span>
111 <span·class="p">):</span>112 <span·class="p">):</span>
112 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>113 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
113 <span·class="sd">····Conveniently·add·attributes·to·a·display·function::</span>114 <span·class="sd">····Conveniently·add·attributes·to·a·display·function::</span>
  
114 <span·class="sd">········@admin.display(</span>115 <span·class="sd">········@admin.display(</span>
Offset 153, 15 lines modifiedOffset 154, 15 lines modified
153 ········<span·class="k">return</span>·<span·class="n">decorator</span>154 ········<span·class="k">return</span>·<span·class="n">decorator</span>
154 ····<span·class="k">else</span><span·class="p">:</span>155 ····<span·class="k">else</span><span·class="p">:</span>
155 ········<span·class="k">return</span>·<span·class="n">decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span></div>156 ········<span·class="k">return</span>·<span·class="n">decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span></div>
  
  
  
156 <div·class="viewcode-block"·id="register">157 <div·class="viewcode-block"·id="register">
157 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.register">[docs]</a>158 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.register">[documenti]</a>
158 <span·class="k">def</span>·<span·class="nf">register</span><span·class="p">(</span><span·class="o">*</span><span·class="n">models</span><span·class="p">,</span>·<span·class="n">site</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>159 <span·class="k">def</span>·<span·class="nf">register</span><span·class="p">(</span><span·class="o">*</span><span·class="n">models</span><span·class="p">,</span>·<span·class="n">site</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
159 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>160 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
160 <span·class="sd">····Register·the·given·model(s)·classes·and·wrapped·ModelAdmin·class·with</span>161 <span·class="sd">····Register·the·given·model(s)·classes·and·wrapped·ModelAdmin·class·with</span>
161 <span·class="sd">····admin·site:</span>162 <span·class="sd">····admin·site:</span>
  
162 <span·class="sd">····@register(Author)</span>163 <span·class="sd">····@register(Author)</span>
163 <span·class="sd">····class·AuthorAdmin(admin.ModelAdmin):</span>164 <span·class="sd">····class·AuthorAdmin(admin.ModelAdmin):</span>
Offset 199, 35 lines modifiedOffset 200, 35 lines modified
199 ······200 ······
200 ········201 ········
201 ··········<div·class="yui-b"·id="sidebar">202 ··········<div·class="yui-b"·id="sidebar">
202 ············203 ············
203 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">204 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
204 ········<div·class="sphinxsidebarwrapper">205 ········<div·class="sphinxsidebarwrapper">
205 <search·id="searchbox"·style="display:·none"·role="search">206 <search·id="searchbox"·style="display:·none"·role="search">
206 ··<h3·id="searchlabel">Quick·search</h3>207 ··<h3·id="searchlabel">Ricerca·veloce</h3>
207 ····<div·class="searchformwrapper">208 ····<div·class="searchformwrapper">
208 ····<form·class="search"·action="../../../../search.html"·method="get">209 ····<form·class="search"·action="../../../../search.html"·method="get">
209 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>210 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
210 ······<input·type="submit"·value="Go"·/>211 ······<input·type="submit"·value="Vai"·/>
211 ····</form>212 ····</form>
212 ····</div>213 ····</div>
213 </search>214 </search>
214 <script>document.getElementById('searchbox').style.display·=·"block"</script>215 <script>document.getElementById('searchbox').style.display·=·"block"</script>
215 ········</div>216 ········</div>
216 ······</div>217 ······</div>
217 ··············<h3>Last·update:</h3>218 ··············<h3>Last·update:</h3>
218 ··············<p·class="topless">Sep·03,·2024</p>219 ··············<p·class="topless">set·03,·2024</p>
219 ··········</div>220 ··········</div>
220 ········221 ········
221 ······222 ······
222 ····</div>223 ····</div>
  
223 ····<div·id="ft">224 ····<div·id="ft">
224 ······<div·class="nav">225 ······<div·class="nav">
225 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>226 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
226 ····</div>227 ····</div>
227 ··</div>228 ··</div>
  
228 ······<div·class="clearer"></div>229 ······<div·class="clearer"></div>
229 ····</div>230 ····</div>
230 ··</body>231 ··</body>
231 </html>232 </html>
2.21 KB
html2text {}
Max HTML report size reached
77.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/admin/options.html
Max HTML report size reached
22.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/admin/sites.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.admin.sites·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.admin.sites·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-sites">69 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-sites">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.admin.sites</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.admin.sites</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>
72 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">update_wrapper</span>73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">update_wrapper</span>
73 <span·class="kn">from</span>·<span·class="nn">weakref</span>·<span·class="kn">import</span>·<span·class="n">WeakSet</span>74 <span·class="kn">from</span>·<span·class="nn">weakref</span>·<span·class="kn">import</span>·<span·class="n">WeakSet</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>75 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.admin</span>·<span·class="kn">import</span>·<span·class="n">ModelAdmin</span><span·class="p">,</span>·<span·class="n">actions</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.admin</span>·<span·class="kn">import</span>·<span·class="n">ModelAdmin</span><span·class="p">,</span>·<span·class="n">actions</span>
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
  
  
104 <span·class="k">class</span>·<span·class="nc">NotRegistered</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>105 <span·class="k">class</span>·<span·class="nc">NotRegistered</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
105 ····<span·class="k">pass</span>106 ····<span·class="k">pass</span>
  
  
106 <div·class="viewcode-block"·id="AdminSite">107 <div·class="viewcode-block"·id="AdminSite">
107 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite">[docs]</a>108 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite">[documenti]</a>
108 <span·class="k">class</span>·<span·class="nc">AdminSite</span><span·class="p">:</span>109 <span·class="k">class</span>·<span·class="nc">AdminSite</span><span·class="p">:</span>
109 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>110 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
110 <span·class="sd">····An·AdminSite·object·encapsulates·an·instance·of·the·Django·admin·application,·ready</span>111 <span·class="sd">····An·AdminSite·object·encapsulates·an·instance·of·the·Django·admin·application,·ready</span>
111 <span·class="sd">····to·be·hooked·in·to·your·URLconf.·Models·are·registered·with·the·AdminSite·using·the</span>112 <span·class="sd">····to·be·hooked·in·to·your·URLconf.·Models·are·registered·with·the·AdminSite·using·the</span>
112 <span·class="sd">····register()·method,·and·the·get_urls()·method·can·then·be·used·to·access·Django·view</span>113 <span·class="sd">····register()·method,·and·the·get_urls()·method·can·then·be·used·to·access·Django·view</span>
113 <span·class="sd">····functions·that·present·a·full·admin·interface·for·the·collection·of·registered</span>114 <span·class="sd">····functions·that·present·a·full·admin·interface·for·the·collection·of·registered</span>
114 <span·class="sd">····models.</span>115 <span·class="sd">····models.</span>
Offset 169, 15 lines modifiedOffset 170, 15 lines modified
169 ········<span·class="p">)</span>170 ········<span·class="p">)</span>
170 ········<span·class="k">for</span>·<span·class="n">modeladmin</span>·<span·class="ow">in</span>·<span·class="n">modeladmins</span><span·class="p">:</span>171 ········<span·class="k">for</span>·<span·class="n">modeladmin</span>·<span·class="ow">in</span>·<span·class="n">modeladmins</span><span·class="p">:</span>
171 ············<span·class="k">if</span>·<span·class="n">modeladmin</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">app_config</span>·<span·class="ow">in</span>·<span·class="n">app_configs</span><span·class="p">:</span>172 ············<span·class="k">if</span>·<span·class="n">modeladmin</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">app_config</span>·<span·class="ow">in</span>·<span·class="n">app_configs</span><span·class="p">:</span>
172 ················<span·class="n">errors</span><span·class="o">.</span><span·class="n">extend</span><span·class="p">(</span><span·class="n">modeladmin</span><span·class="o">.</span><span·class="n">check</span><span·class="p">())</span>173 ················<span·class="n">errors</span><span·class="o">.</span><span·class="n">extend</span><span·class="p">(</span><span·class="n">modeladmin</span><span·class="o">.</span><span·class="n">check</span><span·class="p">())</span>
173 ········<span·class="k">return</span>·<span·class="n">errors</span>174 ········<span·class="k">return</span>·<span·class="n">errors</span>
  
174 <div·class="viewcode-block"·id="AdminSite.register">175 <div·class="viewcode-block"·id="AdminSite.register">
175 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.register">[docs]</a>176 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.register">[documenti]</a>
176 ····<span·class="k">def</span>·<span·class="nf">register</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_or_iterable</span><span·class="p">,</span>·<span·class="n">admin_class</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">options</span><span·class="p">):</span>177 ····<span·class="k">def</span>·<span·class="nf">register</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_or_iterable</span><span·class="p">,</span>·<span·class="n">admin_class</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">options</span><span·class="p">):</span>
177 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>178 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
178 <span·class="sd">········Register·the·given·model(s)·with·the·given·admin·class.</span>179 <span·class="sd">········Register·the·given·model(s)·with·the·given·admin·class.</span>
  
179 <span·class="sd">········The·model(s)·should·be·Model·classes,·not·instances.</span>180 <span·class="sd">········The·model(s)·should·be·Model·classes,·not·instances.</span>
  
180 <span·class="sd">········If·an·admin·class·isn&#39;t·given,·use·ModelAdmin·(the·default·admin</span>181 <span·class="sd">········If·an·admin·class·isn&#39;t·given,·use·ModelAdmin·(the·default·admin</span>
Offset 223, 15 lines modifiedOffset 224, 15 lines modified
223 ····················<span·class="p">)</span>224 ····················<span·class="p">)</span>
  
224 ················<span·class="c1">#·Instantiate·the·admin·class·to·save·in·the·registry</span>225 ················<span·class="c1">#·Instantiate·the·admin·class·to·save·in·the·registry</span>
225 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">_registry</span><span·class="p">[</span><span·class="n">model</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">admin_class</span><span·class="p">(</span><span·class="n">model</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">)</span></div>226 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">_registry</span><span·class="p">[</span><span·class="n">model</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">admin_class</span><span·class="p">(</span><span·class="n">model</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="p">)</span></div>
  
  
226 <div·class="viewcode-block"·id="AdminSite.unregister">227 <div·class="viewcode-block"·id="AdminSite.unregister">
227 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.unregister">[docs]</a>228 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.unregister">[documenti]</a>
228 ····<span·class="k">def</span>·<span·class="nf">unregister</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_or_iterable</span><span·class="p">):</span>229 ····<span·class="k">def</span>·<span·class="nf">unregister</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_or_iterable</span><span·class="p">):</span>
229 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>230 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
230 <span·class="sd">········Unregister·the·given·model(s).</span>231 <span·class="sd">········Unregister·the·given·model(s).</span>
  
231 <span·class="sd">········If·a·model·isn&#39;t·already·registered,·raise·NotRegistered.</span>232 <span·class="sd">········If·a·model·isn&#39;t·already·registered,·raise·NotRegistered.</span>
232 <span·class="sd">········&quot;&quot;&quot;</span>233 <span·class="sd">········&quot;&quot;&quot;</span>
233 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">model_or_iterable</span><span·class="p">,</span>·<span·class="n">ModelBase</span><span·class="p">):</span>234 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">model_or_iterable</span><span·class="p">,</span>·<span·class="n">ModelBase</span><span·class="p">):</span>
Offset 245, 26 lines modifiedOffset 246, 26 lines modified
245 ····<span·class="k">def</span>·<span·class="nf">is_registered</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">):</span>246 ····<span·class="k">def</span>·<span·class="nf">is_registered</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">):</span>
246 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>247 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
247 <span·class="sd">········Check·if·a·model·class·is·registered·with·this·`AdminSite`.</span>248 <span·class="sd">········Check·if·a·model·class·is·registered·with·this·`AdminSite`.</span>
248 <span·class="sd">········&quot;&quot;&quot;</span>249 <span·class="sd">········&quot;&quot;&quot;</span>
249 ········<span·class="k">return</span>·<span·class="n">model</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_registry</span>250 ········<span·class="k">return</span>·<span·class="n">model</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_registry</span>
  
250 <div·class="viewcode-block"·id="AdminSite.add_action">251 <div·class="viewcode-block"·id="AdminSite.add_action">
251 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.AdminSite.add_action">[docs]</a>252 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.AdminSite.add_action">[documenti]</a>
252 ····<span·class="k">def</span>·<span·class="nf">add_action</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">action</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>253 ····<span·class="k">def</span>·<span·class="nf">add_action</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">action</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
253 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>254 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
254 <span·class="sd">········Register·an·action·to·be·available·globally.</span>255 <span·class="sd">········Register·an·action·to·be·available·globally.</span>
255 <span·class="sd">········&quot;&quot;&quot;</span>256 <span·class="sd">········&quot;&quot;&quot;</span>
256 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>·<span·class="ow">or</span>·<span·class="n">action</span><span·class="o">.</span><span·class="vm">__name__</span>257 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>·<span·class="ow">or</span>·<span·class="n">action</span><span·class="o">.</span><span·class="vm">__name__</span>
257 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">action</span>258 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">action</span>
258 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_global_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">action</span></div>259 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_global_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">action</span></div>
  
  
259 <div·class="viewcode-block"·id="AdminSite.disable_action">260 <div·class="viewcode-block"·id="AdminSite.disable_action">
260 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.AdminSite.disable_action">[docs]</a>261 <a·class="viewcode-back"·href="../../../../ref/contrib/admin/actions.html#django.contrib.admin.AdminSite.disable_action">[documenti]</a>
261 ····<span·class="k">def</span>·<span·class="nf">disable_action</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>262 ····<span·class="k">def</span>·<span·class="nf">disable_action</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
262 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>263 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
263 <span·class="sd">········Disable·a·globally-registered·action.·Raise·KeyError·for·invalid·names.</span>264 <span·class="sd">········Disable·a·globally-registered·action.·Raise·KeyError·for·invalid·names.</span>
264 <span·class="sd">········&quot;&quot;&quot;</span>265 <span·class="sd">········&quot;&quot;&quot;</span>
265 ········<span·class="k">del</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span></div>266 ········<span·class="k">del</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_actions</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span></div>
Max diff block lines reached; 6275/17373 bytes (36.12%) of diff not shown.
5.14 KB
html2text {}
Max HTML report size reached
7.39 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/admin/views/decorators.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.admin.views.decorators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.admin.views.decorators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 37 lines modifiedOffset 51, 37 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-views-decorators">69 ··········<div·class="yui-g"·id="_modules-django-contrib-admin-views-decorators">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.admin.views.decorators</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.admin.views.decorators</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth</span>·<span·class="kn">import</span>·<span·class="n">REDIRECT_FIELD_NAME</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth</span>·<span·class="kn">import</span>·<span·class="n">REDIRECT_FIELD_NAME</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.auth.decorators</span>·<span·class="kn">import</span>·<span·class="n">user_passes_test</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.auth.decorators</span>·<span·class="kn">import</span>·<span·class="n">user_passes_test</span>
  
  
73 <div·class="viewcode-block"·id="staff_member_required">74 <div·class="viewcode-block"·id="staff_member_required">
74 <a·class="viewcode-back"·href="../../../../../ref/contrib/admin/index.html#django.contrib.admin.views.decorators.staff_member_required">[docs]</a>75 <a·class="viewcode-back"·href="../../../../../ref/contrib/admin/index.html#django.contrib.admin.views.decorators.staff_member_required">[documenti]</a>
75 <span·class="k">def</span>·<span·class="nf">staff_member_required</span><span·class="p">(</span>76 <span·class="k">def</span>·<span·class="nf">staff_member_required</span><span·class="p">(</span>
76 ····<span·class="n">view_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="s2">&quot;admin:login&quot;</span>77 ····<span·class="n">view_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="s2">&quot;admin:login&quot;</span>
77 <span·class="p">):</span>78 <span·class="p">):</span>
78 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>79 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
79 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·is·logged·in·and·is·a·staff</span>80 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·is·logged·in·and·is·a·staff</span>
80 <span·class="sd">····member,·redirecting·to·the·login·page·if·necessary.</span>81 <span·class="sd">····member,·redirecting·to·the·login·page·if·necessary.</span>
81 <span·class="sd">····&quot;&quot;&quot;</span>82 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 101, 35 lines modifiedOffset 102, 35 lines modified
101 ······102 ······
102 ········103 ········
103 ··········<div·class="yui-b"·id="sidebar">104 ··········<div·class="yui-b"·id="sidebar">
104 ············105 ············
105 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">106 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
106 ········<div·class="sphinxsidebarwrapper">107 ········<div·class="sphinxsidebarwrapper">
107 <search·id="searchbox"·style="display:·none"·role="search">108 <search·id="searchbox"·style="display:·none"·role="search">
108 ··<h3·id="searchlabel">Quick·search</h3>109 ··<h3·id="searchlabel">Ricerca·veloce</h3>
109 ····<div·class="searchformwrapper">110 ····<div·class="searchformwrapper">
110 ····<form·class="search"·action="../../../../../search.html"·method="get">111 ····<form·class="search"·action="../../../../../search.html"·method="get">
111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
112 ······<input·type="submit"·value="Go"·/>113 ······<input·type="submit"·value="Vai"·/>
113 ····</form>114 ····</form>
114 ····</div>115 ····</div>
115 </search>116 </search>
116 <script>document.getElementById('searchbox').style.display·=·"block"</script>117 <script>document.getElementById('searchbox').style.display·=·"block"</script>
117 ········</div>118 ········</div>
118 ······</div>119 ······</div>
119 ··············<h3>Last·update:</h3>120 ··············<h3>Last·update:</h3>
120 ··············<p·class="topless">Sep·03,·2024</p>121 ··············<p·class="topless">set·03,·2024</p>
121 ··········</div>122 ··········</div>
122 ········123 ········
123 ······124 ······
124 ····</div>125 ····</div>
  
125 ····<div·id="ft">126 ····<div·id="ft">
126 ······<div·class="nav">127 ······<div·class="nav">
127 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>128 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
128 ····</div>129 ····</div>
129 ··</div>130 ··</div>
  
130 ······<div·class="clearer"></div>131 ······<div·class="clearer"></div>
131 ····</div>132 ····</div>
132 ··</body>133 ··</body>
133 </html>134 </html>
1.79 KB
html2text {}
Max HTML report size reached
7.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/admin.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.admin·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.admin·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-admin">69 ··········<div·class="yui-g"·id="_modules-django-contrib-admin">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.admin</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.admin</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.admin.decorators</span>·<span·class="kn">import</span>·<span·class="n">action</span><span·class="p">,</span>·<span·class="n">display</span><span·class="p">,</span>·<span·class="n">register</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.admin.decorators</span>·<span·class="kn">import</span>·<span·class="n">action</span><span·class="p">,</span>·<span·class="n">display</span><span·class="p">,</span>·<span·class="n">register</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.admin.filters</span>·<span·class="kn">import</span>·<span·class="p">(</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.admin.filters</span>·<span·class="kn">import</span>·<span·class="p">(</span>
73 ····<span·class="n">AllValuesFieldListFilter</span><span·class="p">,</span>74 ····<span·class="n">AllValuesFieldListFilter</span><span·class="p">,</span>
74 ····<span·class="n">BooleanFieldListFilter</span><span·class="p">,</span>75 ····<span·class="n">BooleanFieldListFilter</span><span·class="p">,</span>
75 ····<span·class="n">ChoicesFieldListFilter</span><span·class="p">,</span>76 ····<span·class="n">ChoicesFieldListFilter</span><span·class="p">,</span>
76 ····<span·class="n">DateFieldListFilter</span><span·class="p">,</span>77 ····<span·class="n">DateFieldListFilter</span><span·class="p">,</span>
77 ····<span·class="n">EmptyFieldListFilter</span><span·class="p">,</span>78 ····<span·class="n">EmptyFieldListFilter</span><span·class="p">,</span>
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 ····<span·class="s2">&quot;EmptyFieldListFilter&quot;</span><span·class="p">,</span>117 ····<span·class="s2">&quot;EmptyFieldListFilter&quot;</span><span·class="p">,</span>
117 ····<span·class="s2">&quot;RelatedOnlyFieldListFilter&quot;</span><span·class="p">,</span>118 ····<span·class="s2">&quot;RelatedOnlyFieldListFilter&quot;</span><span·class="p">,</span>
118 ····<span·class="s2">&quot;autodiscover&quot;</span><span·class="p">,</span>119 ····<span·class="s2">&quot;autodiscover&quot;</span><span·class="p">,</span>
119 <span·class="p">]</span>120 <span·class="p">]</span>
  
  
120 <div·class="viewcode-block"·id="autodiscover">121 <div·class="viewcode-block"·id="autodiscover">
121 <a·class="viewcode-back"·href="../../../ref/contrib/admin/index.html#django.contrib.admin.autodiscover">[docs]</a>122 <a·class="viewcode-back"·href="../../../ref/contrib/admin/index.html#django.contrib.admin.autodiscover">[documenti]</a>
122 <span·class="k">def</span>·<span·class="nf">autodiscover</span><span·class="p">():</span>123 <span·class="k">def</span>·<span·class="nf">autodiscover</span><span·class="p">():</span>
123 ····<span·class="n">autodiscover_modules</span><span·class="p">(</span><span·class="s2">&quot;admin&quot;</span><span·class="p">,</span>·<span·class="n">register_to</span><span·class="o">=</span><span·class="n">site</span><span·class="p">)</span></div>124 ····<span·class="n">autodiscover_modules</span><span·class="p">(</span><span·class="s2">&quot;admin&quot;</span><span·class="p">,</span>·<span·class="n">register_to</span><span·class="o">=</span><span·class="n">site</span><span·class="p">)</span></div>
  
124 </pre></div>125 </pre></div>
  
125 ··········</div>126 ··········</div>
126 ········</div>127 ········</div>
Offset 132, 35 lines modifiedOffset 133, 35 lines modified
132 ······133 ······
133 ········134 ········
134 ··········<div·class="yui-b"·id="sidebar">135 ··········<div·class="yui-b"·id="sidebar">
135 ············136 ············
136 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">137 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
137 ········<div·class="sphinxsidebarwrapper">138 ········<div·class="sphinxsidebarwrapper">
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../../../search.html"·method="get">142 ····<form·class="search"·action="../../../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
158 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>159 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
159 ····</div>160 ····</div>
160 ··</div>161 ··</div>
  
161 ······<div·class="clearer"></div>162 ······<div·class="clearer"></div>
162 ····</div>163 ····</div>
163 ··</body>164 ··</body>
164 </html>165 </html>
1.55 KB
html2text {}
Max HTML report size reached
8.56 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/auth/context_processors.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.auth.context_processors·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth.context_processors·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-context_processors">69 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-context_processors">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.auth.context_processors</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.auth.context_processors</h1><div·class="highlight"><pre>
71 <span></span><span·class="c1">#·PermWrapper·and·PermLookupDict·proxy·the·permissions·system·into·objects·that</span>72 <span></span><span·class="c1">#·PermWrapper·and·PermLookupDict·proxy·the·permissions·system·into·objects·that</span>
72 <span·class="c1">#·the·template·system·can·understand.</span>73 <span·class="c1">#·the·template·system·can·understand.</span>
  
  
73 <span·class="k">class</span>·<span·class="nc">PermLookupDict</span><span·class="p">:</span>74 <span·class="k">class</span>·<span·class="nc">PermLookupDict</span><span·class="p">:</span>
74 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">):</span>75 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">):</span>
75 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">user</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">app_label</span>·<span·class="o">=</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">app_label</span>76 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">user</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">app_label</span>·<span·class="o">=</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">app_label</span>
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 ············<span·class="c1">#·The·name·refers·to·module.</span>117 ············<span·class="c1">#·The·name·refers·to·module.</span>
117 ············<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">[</span><span·class="n">perm_name</span><span·class="p">])</span>118 ············<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">[</span><span·class="n">perm_name</span><span·class="p">])</span>
118 ········<span·class="n">app_label</span><span·class="p">,</span>·<span·class="n">perm_name</span>·<span·class="o">=</span>·<span·class="n">perm_name</span><span·class="o">.</span><span·class="n">split</span><span·class="p">(</span><span·class="s2">&quot;.&quot;</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>119 ········<span·class="n">app_label</span><span·class="p">,</span>·<span·class="n">perm_name</span>·<span·class="o">=</span>·<span·class="n">perm_name</span><span·class="o">.</span><span·class="n">split</span><span·class="p">(</span><span·class="s2">&quot;.&quot;</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>
119 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="p">[</span><span·class="n">app_label</span><span·class="p">][</span><span·class="n">perm_name</span><span·class="p">]</span>120 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="p">[</span><span·class="n">app_label</span><span·class="p">][</span><span·class="n">perm_name</span><span·class="p">]</span>
  
  
120 <div·class="viewcode-block"·id="auth">121 <div·class="viewcode-block"·id="auth">
121 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.contrib.auth.context_processors.auth">[docs]</a>122 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.contrib.auth.context_processors.auth">[documenti]</a>
122 <span·class="k">def</span>·<span·class="nf">auth</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>123 <span·class="k">def</span>·<span·class="nf">auth</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
123 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
124 <span·class="sd">····Return·context·variables·required·by·apps·that·use·Django&#39;s·authentication</span>125 <span·class="sd">····Return·context·variables·required·by·apps·that·use·Django&#39;s·authentication</span>
125 <span·class="sd">····system.</span>126 <span·class="sd">····system.</span>
  
126 <span·class="sd">····If·there·is·no·&#39;user&#39;·attribute·in·the·request,·use·AnonymousUser·(from</span>127 <span·class="sd">····If·there·is·no·&#39;user&#39;·attribute·in·the·request,·use·AnonymousUser·(from</span>
127 <span·class="sd">····django.contrib.auth).</span>128 <span·class="sd">····django.contrib.auth).</span>
Offset 149, 35 lines modifiedOffset 150, 35 lines modified
149 ······150 ······
150 ········151 ········
151 ··········<div·class="yui-b"·id="sidebar">152 ··········<div·class="yui-b"·id="sidebar">
152 ············153 ············
153 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">154 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
154 ········<div·class="sphinxsidebarwrapper">155 ········<div·class="sphinxsidebarwrapper">
155 <search·id="searchbox"·style="display:·none"·role="search">156 <search·id="searchbox"·style="display:·none"·role="search">
156 ··<h3·id="searchlabel">Quick·search</h3>157 ··<h3·id="searchlabel">Ricerca·veloce</h3>
157 ····<div·class="searchformwrapper">158 ····<div·class="searchformwrapper">
158 ····<form·class="search"·action="../../../../search.html"·method="get">159 ····<form·class="search"·action="../../../../search.html"·method="get">
159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
160 ······<input·type="submit"·value="Go"·/>161 ······<input·type="submit"·value="Vai"·/>
161 ····</form>162 ····</form>
162 ····</div>163 ····</div>
163 </search>164 </search>
164 <script>document.getElementById('searchbox').style.display·=·"block"</script>165 <script>document.getElementById('searchbox').style.display·=·"block"</script>
165 ········</div>166 ········</div>
166 ······</div>167 ······</div>
167 ··············<h3>Last·update:</h3>168 ··············<h3>Last·update:</h3>
168 ··············<p·class="topless">Sep·03,·2024</p>169 ··············<p·class="topless">set·03,·2024</p>
169 ··········</div>170 ··········</div>
170 ········171 ········
171 ······172 ······
172 ····</div>173 ····</div>
  
173 ····<div·id="ft">174 ····<div·id="ft">
174 ······<div·class="nav">175 ······<div·class="nav">
175 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>176 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
176 ····</div>177 ····</div>
177 ··</div>178 ··</div>
  
178 ······<div·class="clearer"></div>179 ······<div·class="clearer"></div>
179 ····</div>180 ····</div>
180 ··</body>181 ··</body>
181 </html>182 </html>
2.02 KB
html2text {}
Max HTML report size reached
11.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/auth/decorators.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.auth.decorators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth.decorators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 42 lines modifiedOffset 51, 42 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-decorators">69 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-decorators">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.auth.decorators</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.auth.decorators</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
72 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlparse</span>73 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlparse</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.auth</span>·<span·class="kn">import</span>·<span·class="n">REDIRECT_FIELD_NAME</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.auth</span>·<span·class="kn">import</span>·<span·class="n">REDIRECT_FIELD_NAME</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>
76 <span·class="kn">from</span>·<span·class="nn">django.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">resolve_url</span>77 <span·class="kn">from</span>·<span·class="nn">django.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">resolve_url</span>
  
  
77 <div·class="viewcode-block"·id="user_passes_test">78 <div·class="viewcode-block"·id="user_passes_test">
78 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.user_passes_test">[docs]</a>79 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.user_passes_test">[documenti]</a>
79 <span·class="k">def</span>·<span·class="nf">user_passes_test</span><span·class="p">(</span>80 <span·class="k">def</span>·<span·class="nf">user_passes_test</span><span·class="p">(</span>
80 ····<span·class="n">test_func</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span>81 ····<span·class="n">test_func</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span>
81 <span·class="p">):</span>82 <span·class="p">):</span>
82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>83 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
83 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·passes·the·given·test,</span>84 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·passes·the·given·test,</span>
84 <span·class="sd">····redirecting·to·the·log-in·page·if·necessary.·The·test·should·be·a·callable</span>85 <span·class="sd">····redirecting·to·the·log-in·page·if·necessary.·The·test·should·be·a·callable</span>
85 <span·class="sd">····that·takes·the·user·object·and·returns·True·if·the·user·passes.</span>86 <span·class="sd">····that·takes·the·user·object·and·returns·True·if·the·user·passes.</span>
Offset 113, 15 lines modifiedOffset 114, 15 lines modified
113 ········<span·class="k">return</span>·<span·class="n">_wrapper_view</span>114 ········<span·class="k">return</span>·<span·class="n">_wrapper_view</span>
  
114 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>115 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>
  
  
  
115 <div·class="viewcode-block"·id="login_required">116 <div·class="viewcode-block"·id="login_required">
116 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.login_required">[docs]</a>117 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.login_required">[documenti]</a>
117 <span·class="k">def</span>·<span·class="nf">login_required</span><span·class="p">(</span>118 <span·class="k">def</span>·<span·class="nf">login_required</span><span·class="p">(</span>
118 ····<span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span>119 ····<span·class="n">function</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">redirect_field_name</span><span·class="o">=</span><span·class="n">REDIRECT_FIELD_NAME</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span>
119 <span·class="p">):</span>120 <span·class="p">):</span>
120 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>121 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
121 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·is·logged·in,·redirecting</span>122 <span·class="sd">····Decorator·for·views·that·checks·that·the·user·is·logged·in,·redirecting</span>
122 <span·class="sd">····to·the·log-in·page·if·necessary.</span>123 <span·class="sd">····to·the·log-in·page·if·necessary.</span>
123 <span·class="sd">····&quot;&quot;&quot;</span>124 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 133, 15 lines modifiedOffset 134, 15 lines modified
133 ····<span·class="k">if</span>·<span·class="n">function</span><span·class="p">:</span>134 ····<span·class="k">if</span>·<span·class="n">function</span><span·class="p">:</span>
134 ········<span·class="k">return</span>·<span·class="n">actual_decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span>135 ········<span·class="k">return</span>·<span·class="n">actual_decorator</span><span·class="p">(</span><span·class="n">function</span><span·class="p">)</span>
135 ····<span·class="k">return</span>·<span·class="n">actual_decorator</span></div>136 ····<span·class="k">return</span>·<span·class="n">actual_decorator</span></div>
  
  
  
136 <div·class="viewcode-block"·id="permission_required">137 <div·class="viewcode-block"·id="permission_required">
137 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.permission_required">[docs]</a>138 <a·class="viewcode-back"·href="../../../../topics/auth/default.html#django.contrib.auth.decorators.permission_required">[documenti]</a>
138 <span·class="k">def</span>·<span·class="nf">permission_required</span><span·class="p">(</span><span·class="n">perm</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">raise_exception</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>139 <span·class="k">def</span>·<span·class="nf">permission_required</span><span·class="p">(</span><span·class="n">perm</span><span·class="p">,</span>·<span·class="n">login_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">raise_exception</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>140 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
140 <span·class="sd">····Decorator·for·views·that·checks·whether·a·user·has·a·particular·permission</span>141 <span·class="sd">····Decorator·for·views·that·checks·whether·a·user·has·a·particular·permission</span>
141 <span·class="sd">····enabled,·redirecting·to·the·log-in·page·if·necessary.</span>142 <span·class="sd">····enabled,·redirecting·to·the·log-in·page·if·necessary.</span>
142 <span·class="sd">····If·the·raise_exception·parameter·is·given·the·PermissionDenied·exception</span>143 <span·class="sd">····If·the·raise_exception·parameter·is·given·the·PermissionDenied·exception</span>
143 <span·class="sd">····is·raised.</span>144 <span·class="sd">····is·raised.</span>
144 <span·class="sd">····&quot;&quot;&quot;</span>145 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 170, 35 lines modifiedOffset 171, 35 lines modified
170 ······171 ······
171 ········172 ········
172 ··········<div·class="yui-b"·id="sidebar">173 ··········<div·class="yui-b"·id="sidebar">
173 ············174 ············
174 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">175 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
175 ········<div·class="sphinxsidebarwrapper">176 ········<div·class="sphinxsidebarwrapper">
176 <search·id="searchbox"·style="display:·none"·role="search">177 <search·id="searchbox"·style="display:·none"·role="search">
177 ··<h3·id="searchlabel">Quick·search</h3>178 ··<h3·id="searchlabel">Ricerca·veloce</h3>
178 ····<div·class="searchformwrapper">179 ····<div·class="searchformwrapper">
179 ····<form·class="search"·action="../../../../search.html"·method="get">180 ····<form·class="search"·action="../../../../search.html"·method="get">
180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
181 ······<input·type="submit"·value="Go"·/>182 ······<input·type="submit"·value="Vai"·/>
182 ····</form>183 ····</form>
183 ····</div>184 ····</div>
184 </search>185 </search>
185 <script>document.getElementById('searchbox').style.display·=·"block"</script>186 <script>document.getElementById('searchbox').style.display·=·"block"</script>
186 ········</div>187 ········</div>
187 ······</div>188 ······</div>
188 ··············<h3>Last·update:</h3>189 ··············<h3>Last·update:</h3>
189 ··············<p·class="topless">Sep·03,·2024</p>190 ··············<p·class="topless">set·03,·2024</p>
190 ··········</div>191 ··········</div>
191 ········192 ········
192 ······193 ······
193 ····</div>194 ····</div>
  
194 ····<div·id="ft">195 ····<div·id="ft">
195 ······<div·class="nav">196 ······<div·class="nav">
196 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>197 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
197 ····</div>198 ····</div>
Max diff block lines reached; 69/8620 bytes (0.80%) of diff not shown.
2.77 KB
html2text {}
Max HTML report size reached
11.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/auth/hashers.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.auth.hashers·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth.hashers·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-hashers">69 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-hashers">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.auth.hashers</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.auth.hashers</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">base64</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">base64</span>
72 <span·class="kn">import</span>·<span·class="nn">binascii</span>73 <span·class="kn">import</span>·<span·class="nn">binascii</span>
73 <span·class="kn">import</span>·<span·class="nn">functools</span>74 <span·class="kn">import</span>·<span·class="nn">functools</span>
74 <span·class="kn">import</span>·<span·class="nn">hashlib</span>75 <span·class="kn">import</span>·<span·class="nn">hashlib</span>
75 <span·class="kn">import</span>·<span·class="nn">importlib</span>76 <span·class="kn">import</span>·<span·class="nn">importlib</span>
76 <span·class="kn">import</span>·<span·class="nn">math</span>77 <span·class="kn">import</span>·<span·class="nn">math</span>
77 <span·class="kn">import</span>·<span·class="nn">warnings</span>78 <span·class="kn">import</span>·<span·class="nn">warnings</span>
Offset 97, 26 lines modifiedOffset 98, 26 lines modified
97 <span·class="n">UNUSABLE_PASSWORD_PREFIX</span>·<span·class="o">=</span>·<span·class="s2">&quot;!&quot;</span>··<span·class="c1">#·This·will·never·be·a·valid·encoded·hash</span>98 <span·class="n">UNUSABLE_PASSWORD_PREFIX</span>·<span·class="o">=</span>·<span·class="s2">&quot;!&quot;</span>··<span·class="c1">#·This·will·never·be·a·valid·encoded·hash</span>
98 <span·class="n">UNUSABLE_PASSWORD_SUFFIX_LENGTH</span>·<span·class="o">=</span>·<span·class="p">(</span>99 <span·class="n">UNUSABLE_PASSWORD_SUFFIX_LENGTH</span>·<span·class="o">=</span>·<span·class="p">(</span>
99 ····<span·class="mi">40</span>··<span·class="c1">#·number·of·random·chars·to·add·after·UNUSABLE_PASSWORD_PREFIX</span>100 ····<span·class="mi">40</span>··<span·class="c1">#·number·of·random·chars·to·add·after·UNUSABLE_PASSWORD_PREFIX</span>
100 <span·class="p">)</span>101 <span·class="p">)</span>
  
  
101 <div·class="viewcode-block"·id="is_password_usable">102 <div·class="viewcode-block"·id="is_password_usable">
102 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.is_password_usable">[docs]</a>103 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.is_password_usable">[documenti]</a>
103 <span·class="k">def</span>·<span·class="nf">is_password_usable</span><span·class="p">(</span><span·class="n">encoded</span><span·class="p">):</span>104 <span·class="k">def</span>·<span·class="nf">is_password_usable</span><span·class="p">(</span><span·class="n">encoded</span><span·class="p">):</span>
104 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>105 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
105 <span·class="sd">····Return·True·if·this·password·wasn&#39;t·generated·by</span>106 <span·class="sd">····Return·True·if·this·password·wasn&#39;t·generated·by</span>
106 <span·class="sd">····User.set_unusable_password(),·i.e.·make_password(None).</span>107 <span·class="sd">····User.set_unusable_password(),·i.e.·make_password(None).</span>
107 <span·class="sd">····&quot;&quot;&quot;</span>108 <span·class="sd">····&quot;&quot;&quot;</span>
108 ····<span·class="k">return</span>·<span·class="n">encoded</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="n">encoded</span><span·class="o">.</span><span·class="n">startswith</span><span·class="p">(</span><span·class="n">UNUSABLE_PASSWORD_PREFIX</span><span·class="p">)</span></div>109 ····<span·class="k">return</span>·<span·class="n">encoded</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="n">encoded</span><span·class="o">.</span><span·class="n">startswith</span><span·class="p">(</span><span·class="n">UNUSABLE_PASSWORD_PREFIX</span><span·class="p">)</span></div>
  
  
  
109 <div·class="viewcode-block"·id="check_password">110 <div·class="viewcode-block"·id="check_password">
110 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.check_password">[docs]</a>111 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.check_password">[documenti]</a>
111 <span·class="k">def</span>·<span·class="nf">check_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">encoded</span><span·class="p">,</span>·<span·class="n">setter</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">preferred</span><span·class="o">=</span><span·class="s2">&quot;default&quot;</span><span·class="p">):</span>112 <span·class="k">def</span>·<span·class="nf">check_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">encoded</span><span·class="p">,</span>·<span·class="n">setter</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">preferred</span><span·class="o">=</span><span·class="s2">&quot;default&quot;</span><span·class="p">):</span>
112 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>113 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
113 <span·class="sd">····Return·a·boolean·of·whether·the·raw·password·matches·the·three</span>114 <span·class="sd">····Return·a·boolean·of·whether·the·raw·password·matches·the·three</span>
114 <span·class="sd">····part·encoded·digest.</span>115 <span·class="sd">····part·encoded·digest.</span>
  
115 <span·class="sd">····If·setter·is·specified,·it&#39;ll·be·called·when·you·need·to</span>116 <span·class="sd">····If·setter·is·specified,·it&#39;ll·be·called·when·you·need·to</span>
116 <span·class="sd">····regenerate·the·password.</span>117 <span·class="sd">····regenerate·the·password.</span>
Offset 151, 15 lines modifiedOffset 152, 15 lines modified
151 ····<span·class="k">if</span>·<span·class="n">setter</span>·<span·class="ow">and</span>·<span·class="n">is_correct</span>·<span·class="ow">and</span>·<span·class="n">must_update</span><span·class="p">:</span>152 ····<span·class="k">if</span>·<span·class="n">setter</span>·<span·class="ow">and</span>·<span·class="n">is_correct</span>·<span·class="ow">and</span>·<span·class="n">must_update</span><span·class="p">:</span>
152 ········<span·class="n">setter</span><span·class="p">(</span><span·class="n">password</span><span·class="p">)</span>153 ········<span·class="n">setter</span><span·class="p">(</span><span·class="n">password</span><span·class="p">)</span>
153 ····<span·class="k">return</span>·<span·class="n">is_correct</span></div>154 ····<span·class="k">return</span>·<span·class="n">is_correct</span></div>
  
  
  
154 <div·class="viewcode-block"·id="make_password">155 <div·class="viewcode-block"·id="make_password">
155 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.make_password">[docs]</a>156 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.hashers.make_password">[documenti]</a>
156 <span·class="k">def</span>·<span·class="nf">make_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">hasher</span><span·class="o">=</span><span·class="s2">&quot;default&quot;</span><span·class="p">):</span>157 <span·class="k">def</span>·<span·class="nf">make_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">hasher</span><span·class="o">=</span><span·class="s2">&quot;default&quot;</span><span·class="p">):</span>
157 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>158 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
158 <span·class="sd">····Turn·a·plain-text·password·into·a·hash·for·database·storage</span>159 <span·class="sd">····Turn·a·plain-text·password·into·a·hash·for·database·storage</span>
  
159 <span·class="sd">····Same·as·encode()·but·generate·a·new·random·salt.·If·password·is·None·then</span>160 <span·class="sd">····Same·as·encode()·but·generate·a·new·random·salt.·If·password·is·None·then</span>
160 <span·class="sd">····return·a·concatenation·of·UNUSABLE_PASSWORD_PREFIX·and·a·random·string,</span>161 <span·class="sd">····return·a·concatenation·of·UNUSABLE_PASSWORD_PREFIX·and·a·random·string,</span>
161 <span·class="sd">····which·disallows·logins.·Additional·random·string·reduces·chances·of·gaining</span>162 <span·class="sd">····which·disallows·logins.·Additional·random·string·reduces·chances·of·gaining</span>
Offset 978, 35 lines modifiedOffset 979, 35 lines modified
978 ······979 ······
979 ········980 ········
980 ··········<div·class="yui-b"·id="sidebar">981 ··········<div·class="yui-b"·id="sidebar">
981 ············982 ············
982 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">983 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
983 ········<div·class="sphinxsidebarwrapper">984 ········<div·class="sphinxsidebarwrapper">
984 <search·id="searchbox"·style="display:·none"·role="search">985 <search·id="searchbox"·style="display:·none"·role="search">
985 ··<h3·id="searchlabel">Quick·search</h3>986 ··<h3·id="searchlabel">Ricerca·veloce</h3>
986 ····<div·class="searchformwrapper">987 ····<div·class="searchformwrapper">
987 ····<form·class="search"·action="../../../../search.html"·method="get">988 ····<form·class="search"·action="../../../../search.html"·method="get">
988 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>989 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
989 ······<input·type="submit"·value="Go"·/>990 ······<input·type="submit"·value="Vai"·/>
990 ····</form>991 ····</form>
991 ····</div>992 ····</div>
992 </search>993 </search>
993 <script>document.getElementById('searchbox').style.display·=·"block"</script>994 <script>document.getElementById('searchbox').style.display·=·"block"</script>
994 ········</div>995 ········</div>
995 ······</div>996 ······</div>
996 ··············<h3>Last·update:</h3>997 ··············<h3>Last·update:</h3>
997 ··············<p·class="topless">Sep·03,·2024</p>998 ··············<p·class="topless">set·03,·2024</p>
998 ··········</div>999 ··········</div>
999 ········1000 ········
1000 ······1001 ······
1001 ····</div>1002 ····</div>
  
1002 ····<div·id="ft">1003 ····<div·id="ft">
1003 ······<div·class="nav">1004 ······<div·class="nav">
1004 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>1005 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
1005 ····</div>1006 ····</div>
Max diff block lines reached; 69/8690 bytes (0.79%) of diff not shown.
2.79 KB
html2text {}
Max HTML report size reached
22.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/auth/password_validation.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.auth.password_validation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth.password_validation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-password_validation">69 ··········<div·class="yui-g"·id="_modules-django-contrib-auth-password_validation">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.auth.password_validation</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.auth.password_validation</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
72 <span·class="kn">import</span>·<span·class="nn">gzip</span>73 <span·class="kn">import</span>·<span·class="nn">gzip</span>
73 <span·class="kn">import</span>·<span·class="nn">re</span>74 <span·class="kn">import</span>·<span·class="nn">re</span>
74 <span·class="kn">from</span>·<span·class="nn">difflib</span>·<span·class="kn">import</span>·<span·class="n">SequenceMatcher</span>75 <span·class="kn">from</span>·<span·class="nn">difflib</span>·<span·class="kn">import</span>·<span·class="n">SequenceMatcher</span>
75 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>76 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>77 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
  
92 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span><span·class="p">(</span><span·class="n">maxsize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span>93 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span><span·class="p">(</span><span·class="n">maxsize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span>
93 <span·class="k">def</span>·<span·class="nf">get_default_password_validators</span><span·class="p">():</span>94 <span·class="k">def</span>·<span·class="nf">get_default_password_validators</span><span·class="p">():</span>
94 ····<span·class="k">return</span>·<span·class="n">get_password_validators</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_PASSWORD_VALIDATORS</span><span·class="p">)</span>95 ····<span·class="k">return</span>·<span·class="n">get_password_validators</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_PASSWORD_VALIDATORS</span><span·class="p">)</span>
  
  
95 <div·class="viewcode-block"·id="get_password_validators">96 <div·class="viewcode-block"·id="get_password_validators">
96 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.get_password_validators">[docs]</a>97 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.get_password_validators">[documenti]</a>
97 <span·class="k">def</span>·<span·class="nf">get_password_validators</span><span·class="p">(</span><span·class="n">validator_config</span><span·class="p">):</span>98 <span·class="k">def</span>·<span·class="nf">get_password_validators</span><span·class="p">(</span><span·class="n">validator_config</span><span·class="p">):</span>
98 ····<span·class="n">validators</span>·<span·class="o">=</span>·<span·class="p">[]</span>99 ····<span·class="n">validators</span>·<span·class="o">=</span>·<span·class="p">[]</span>
99 ····<span·class="k">for</span>·<span·class="n">validator</span>·<span·class="ow">in</span>·<span·class="n">validator_config</span><span·class="p">:</span>100 ····<span·class="k">for</span>·<span·class="n">validator</span>·<span·class="ow">in</span>·<span·class="n">validator_config</span><span·class="p">:</span>
100 ········<span·class="k">try</span><span·class="p">:</span>101 ········<span·class="k">try</span><span·class="p">:</span>
101 ············<span·class="n">klass</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">validator</span><span·class="p">[</span><span·class="s2">&quot;NAME&quot;</span><span·class="p">])</span>102 ············<span·class="n">klass</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">validator</span><span·class="p">[</span><span·class="s2">&quot;NAME&quot;</span><span·class="p">])</span>
102 ········<span·class="k">except</span>·<span·class="ne">ImportError</span><span·class="p">:</span>103 ········<span·class="k">except</span>·<span·class="ne">ImportError</span><span·class="p">:</span>
103 ············<span·class="n">msg</span>·<span·class="o">=</span>·<span·class="p">(</span>104 ············<span·class="n">msg</span>·<span·class="o">=</span>·<span·class="p">(</span>
Offset 111, 15 lines modifiedOffset 112, 15 lines modified
111 ········<span·class="n">validators</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">(</span><span·class="o">**</span><span·class="n">validator</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">,</span>·<span·class="p">{})))</span>112 ········<span·class="n">validators</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">(</span><span·class="o">**</span><span·class="n">validator</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">,</span>·<span·class="p">{})))</span>
  
112 ····<span·class="k">return</span>·<span·class="n">validators</span></div>113 ····<span·class="k">return</span>·<span·class="n">validators</span></div>
  
  
  
113 <div·class="viewcode-block"·id="validate_password">114 <div·class="viewcode-block"·id="validate_password">
114 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.validate_password">[docs]</a>115 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.validate_password">[documenti]</a>
115 <span·class="k">def</span>·<span·class="nf">validate_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>116 <span·class="k">def</span>·<span·class="nf">validate_password</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
116 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>117 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
117 <span·class="sd">····Validate·that·the·password·meets·all·validator·requirements.</span>118 <span·class="sd">····Validate·that·the·password·meets·all·validator·requirements.</span>
  
118 <span·class="sd">····If·the·password·is·valid,·return·``None``.</span>119 <span·class="sd">····If·the·password·is·valid,·return·``None``.</span>
119 <span·class="sd">····If·the·password·is·invalid,·raise·ValidationError·with·all·error·messages.</span>120 <span·class="sd">····If·the·password·is·invalid,·raise·ValidationError·with·all·error·messages.</span>
120 <span·class="sd">····&quot;&quot;&quot;</span>121 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 133, 30 lines modifiedOffset 134, 30 lines modified
133 ············<span·class="n">errors</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">error</span><span·class="p">)</span>134 ············<span·class="n">errors</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">error</span><span·class="p">)</span>
134 ····<span·class="k">if</span>·<span·class="n">errors</span><span·class="p">:</span>135 ····<span·class="k">if</span>·<span·class="n">errors</span><span·class="p">:</span>
135 ········<span·class="k">raise</span>·<span·class="n">ValidationError</span><span·class="p">(</span><span·class="n">errors</span><span·class="p">)</span></div>136 ········<span·class="k">raise</span>·<span·class="n">ValidationError</span><span·class="p">(</span><span·class="n">errors</span><span·class="p">)</span></div>
  
  
  
136 <div·class="viewcode-block"·id="password_changed">137 <div·class="viewcode-block"·id="password_changed">
137 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.password_changed">[docs]</a>138 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.password_changed">[documenti]</a>
138 <span·class="k">def</span>·<span·class="nf">password_changed</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>139 <span·class="k">def</span>·<span·class="nf">password_changed</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>140 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
140 <span·class="sd">····Inform·all·validators·that·have·implemented·a·password_changed()·method</span>141 <span·class="sd">····Inform·all·validators·that·have·implemented·a·password_changed()·method</span>
141 <span·class="sd">····that·the·password·has·been·changed.</span>142 <span·class="sd">····that·the·password·has·been·changed.</span>
142 <span·class="sd">····&quot;&quot;&quot;</span>143 <span·class="sd">····&quot;&quot;&quot;</span>
143 ····<span·class="k">if</span>·<span·class="n">password_validators</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>144 ····<span·class="k">if</span>·<span·class="n">password_validators</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
144 ········<span·class="n">password_validators</span>·<span·class="o">=</span>·<span·class="n">get_default_password_validators</span><span·class="p">()</span>145 ········<span·class="n">password_validators</span>·<span·class="o">=</span>·<span·class="n">get_default_password_validators</span><span·class="p">()</span>
145 ····<span·class="k">for</span>·<span·class="n">validator</span>·<span·class="ow">in</span>·<span·class="n">password_validators</span><span·class="p">:</span>146 ····<span·class="k">for</span>·<span·class="n">validator</span>·<span·class="ow">in</span>·<span·class="n">password_validators</span><span·class="p">:</span>
146 ········<span·class="n">password_changed</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">validator</span><span·class="p">,</span>·<span·class="s2">&quot;password_changed&quot;</span><span·class="p">,</span>·<span·class="k">lambda</span>·<span·class="o">*</span><span·class="n">a</span><span·class="p">:</span>·<span·class="kc">None</span><span·class="p">)</span>147 ········<span·class="n">password_changed</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">validator</span><span·class="p">,</span>·<span·class="s2">&quot;password_changed&quot;</span><span·class="p">,</span>·<span·class="k">lambda</span>·<span·class="o">*</span><span·class="n">a</span><span·class="p">:</span>·<span·class="kc">None</span><span·class="p">)</span>
147 ········<span·class="n">password_changed</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">)</span></div>148 ········<span·class="n">password_changed</span><span·class="p">(</span><span·class="n">password</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">)</span></div>
  
  
  
148 <div·class="viewcode-block"·id="password_validators_help_texts">149 <div·class="viewcode-block"·id="password_validators_help_texts">
149 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.password_validators_help_texts">[docs]</a>150 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.password_validators_help_texts">[documenti]</a>
150 <span·class="k">def</span>·<span·class="nf">password_validators_help_texts</span><span·class="p">(</span><span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>151 <span·class="k">def</span>·<span·class="nf">password_validators_help_texts</span><span·class="p">(</span><span·class="n">password_validators</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
151 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>152 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
152 <span·class="sd">····Return·a·list·of·all·help·texts·of·all·configured·validators.</span>153 <span·class="sd">····Return·a·list·of·all·help·texts·of·all·configured·validators.</span>
153 <span·class="sd">····&quot;&quot;&quot;</span>154 <span·class="sd">····&quot;&quot;&quot;</span>
154 ····<span·class="n">help_texts</span>·<span·class="o">=</span>·<span·class="p">[]</span>155 ····<span·class="n">help_texts</span>·<span·class="o">=</span>·<span·class="p">[]</span>
155 ····<span·class="k">if</span>·<span·class="n">password_validators</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>156 ····<span·class="k">if</span>·<span·class="n">password_validators</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
156 ········<span·class="n">password_validators</span>·<span·class="o">=</span>·<span·class="n">get_default_password_validators</span><span·class="p">()</span>157 ········<span·class="n">password_validators</span>·<span·class="o">=</span>·<span·class="n">get_default_password_validators</span><span·class="p">()</span>
Offset 178, 15 lines modifiedOffset 179, 15 lines modified
178 ····<span·class="k">return</span>·<span·class="n">format_html</span><span·class="p">(</span><span·class="s2">&quot;&lt;ul&gt;</span><span·class="si">{}</span><span·class="s2">&lt;/ul&gt;&quot;</span><span·class="p">,</span>·<span·class="n">help_items</span><span·class="p">)</span>·<span·class="k">if</span>·<span·class="n">help_items</span>·<span·class="k">else</span>·<span·class="s2">&quot;&quot;</span>179 ····<span·class="k">return</span>·<span·class="n">format_html</span><span·class="p">(</span><span·class="s2">&quot;&lt;ul&gt;</span><span·class="si">{}</span><span·class="s2">&lt;/ul&gt;&quot;</span><span·class="p">,</span>·<span·class="n">help_items</span><span·class="p">)</span>·<span·class="k">if</span>·<span·class="n">help_items</span>·<span·class="k">else</span>·<span·class="s2">&quot;&quot;</span>
  
  
179 <span·class="n">password_validators_help_text_html</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">_password_validators_help_text_html</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>180 <span·class="n">password_validators_help_text_html</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">_password_validators_help_text_html</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>
  
  
180 <div·class="viewcode-block"·id="MinimumLengthValidator">181 <div·class="viewcode-block"·id="MinimumLengthValidator">
181 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.MinimumLengthValidator">[docs]</a>182 <a·class="viewcode-back"·href="../../../../topics/auth/passwords.html#django.contrib.auth.password_validation.MinimumLengthValidator">[documenti]</a>
182 <span·class="k">class</span>·<span·class="nc">MinimumLengthValidator</span><span·class="p">:</span>183 <span·class="k">class</span>·<span·class="nc">MinimumLengthValidator</span><span·class="p">:</span>
Max diff block lines reached; 6366/18072 bytes (35.23%) of diff not shown.
4.91 KB
html2text {}
Max HTML report size reached
18.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/auth.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.auth·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-auth">69 ··········<div·class="yui-g"·id="_modules-django-contrib-auth">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.auth</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.auth</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">inspect</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">inspect</span>
72 <span·class="kn">import</span>·<span·class="nn">re</span>73 <span·class="kn">import</span>·<span·class="nn">re</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>74 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>
74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span><span·class="p">,</span>·<span·class="n">PermissionDenied</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span><span·class="p">,</span>·<span·class="n">PermissionDenied</span>
76 <span·class="kn">from</span>·<span·class="nn">django.middleware.csrf</span>·<span·class="kn">import</span>·<span·class="n">rotate_token</span>77 <span·class="kn">from</span>·<span·class="nn">django.middleware.csrf</span>·<span·class="kn">import</span>·<span·class="n">rotate_token</span>
Offset 130, 15 lines modifiedOffset 131, 15 lines modified
130 <span·class="k">def</span>·<span·class="nf">_get_user_session_key</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>131 <span·class="k">def</span>·<span·class="nf">_get_user_session_key</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
131 ····<span·class="c1">#·This·value·in·the·session·is·always·serialized·to·a·string,·so·we·need</span>132 ····<span·class="c1">#·This·value·in·the·session·is·always·serialized·to·a·string,·so·we·need</span>
132 ····<span·class="c1">#·to·convert·it·back·to·Python·whenever·we·access·it.</span>133 ····<span·class="c1">#·to·convert·it·back·to·Python·whenever·we·access·it.</span>
133 ····<span·class="k">return</span>·<span·class="n">get_user_model</span><span·class="p">()</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">pk</span><span·class="o">.</span><span·class="n">to_python</span><span·class="p">(</span><span·class="n">request</span><span·class="o">.</span><span·class="n">session</span><span·class="p">[</span><span·class="n">SESSION_KEY</span><span·class="p">])</span>134 ····<span·class="k">return</span>·<span·class="n">get_user_model</span><span·class="p">()</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">pk</span><span·class="o">.</span><span·class="n">to_python</span><span·class="p">(</span><span·class="n">request</span><span·class="o">.</span><span·class="n">session</span><span·class="p">[</span><span·class="n">SESSION_KEY</span><span·class="p">])</span>
  
  
134 <div·class="viewcode-block"·id="authenticate">135 <div·class="viewcode-block"·id="authenticate">
135 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.authenticate">[docs]</a>136 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.authenticate">[documenti]</a>
136 <span·class="nd">@sensitive_variables</span><span·class="p">(</span><span·class="s2">&quot;credentials&quot;</span><span·class="p">)</span>137 <span·class="nd">@sensitive_variables</span><span·class="p">(</span><span·class="s2">&quot;credentials&quot;</span><span·class="p">)</span>
137 <span·class="k">def</span>·<span·class="nf">authenticate</span><span·class="p">(</span><span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">credentials</span><span·class="p">):</span>138 <span·class="k">def</span>·<span·class="nf">authenticate</span><span·class="p">(</span><span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">credentials</span><span·class="p">):</span>
138 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
139 <span·class="sd">····If·the·given·credentials·are·valid,·return·a·User·object.</span>140 <span·class="sd">····If·the·given·credentials·are·valid,·return·a·User·object.</span>
140 <span·class="sd">····&quot;&quot;&quot;</span>141 <span·class="sd">····&quot;&quot;&quot;</span>
141 ····<span·class="k">for</span>·<span·class="n">backend</span><span·class="p">,</span>·<span·class="n">backend_path</span>·<span·class="ow">in</span>·<span·class="n">_get_backends</span><span·class="p">(</span><span·class="n">return_tuples</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>142 ····<span·class="k">for</span>·<span·class="n">backend</span><span·class="p">,</span>·<span·class="n">backend_path</span>·<span·class="ow">in</span>·<span·class="n">_get_backends</span><span·class="p">(</span><span·class="n">return_tuples</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
142 ········<span·class="n">backend_signature</span>·<span·class="o">=</span>·<span·class="n">inspect</span><span·class="o">.</span><span·class="n">signature</span><span·class="p">(</span><span·class="n">backend</span><span·class="o">.</span><span·class="n">authenticate</span><span·class="p">)</span>143 ········<span·class="n">backend_signature</span>·<span·class="o">=</span>·<span·class="n">inspect</span><span·class="o">.</span><span·class="n">signature</span><span·class="p">(</span><span·class="n">backend</span><span·class="o">.</span><span·class="n">authenticate</span><span·class="p">)</span>
Offset 164, 15 lines modifiedOffset 165, 15 lines modified
164 ····<span·class="n">user_login_failed</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span>165 ····<span·class="n">user_login_failed</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span>
165 ········<span·class="n">sender</span><span·class="o">=</span><span·class="vm">__name__</span><span·class="p">,</span>·<span·class="n">credentials</span><span·class="o">=</span><span·class="n">_clean_credentials</span><span·class="p">(</span><span·class="n">credentials</span><span·class="p">),</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span>166 ········<span·class="n">sender</span><span·class="o">=</span><span·class="vm">__name__</span><span·class="p">,</span>·<span·class="n">credentials</span><span·class="o">=</span><span·class="n">_clean_credentials</span><span·class="p">(</span><span·class="n">credentials</span><span·class="p">),</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span>
166 ····<span·class="p">)</span></div>167 ····<span·class="p">)</span></div>
  
  
  
167 <div·class="viewcode-block"·id="login">168 <div·class="viewcode-block"·id="login">
168 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.login">[docs]</a>169 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.login">[documenti]</a>
169 <span·class="k">def</span>·<span·class="nf">login</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">backend</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>170 <span·class="k">def</span>·<span·class="nf">login</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">user</span><span·class="p">,</span>·<span·class="n">backend</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
170 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>171 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
171 <span·class="sd">····Persist·a·user·id·and·a·backend·in·the·request.·This·way·a·user·doesn&#39;t</span>172 <span·class="sd">····Persist·a·user·id·and·a·backend·in·the·request.·This·way·a·user·doesn&#39;t</span>
172 <span·class="sd">····have·to·reauthenticate·on·every·request.·Note·that·data·set·during</span>173 <span·class="sd">····have·to·reauthenticate·on·every·request.·Note·that·data·set·during</span>
173 <span·class="sd">····the·anonymous·session·is·retained·when·the·user·logs·in.</span>174 <span·class="sd">····the·anonymous·session·is·retained·when·the·user·logs·in.</span>
174 <span·class="sd">····&quot;&quot;&quot;</span>175 <span·class="sd">····&quot;&quot;&quot;</span>
175 ····<span·class="n">session_auth_hash</span>·<span·class="o">=</span>·<span·class="s2">&quot;&quot;</span>176 ····<span·class="n">session_auth_hash</span>·<span·class="o">=</span>·<span·class="s2">&quot;&quot;</span>
Offset 220, 15 lines modifiedOffset 221, 15 lines modified
220 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span>·<span·class="o">=</span>·<span·class="n">user</span>221 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span>·<span·class="o">=</span>·<span·class="n">user</span>
221 ····<span·class="n">rotate_token</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>222 ····<span·class="n">rotate_token</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>
222 ····<span·class="n">user_logged_in</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span><span·class="n">sender</span><span·class="o">=</span><span·class="n">user</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="n">user</span><span·class="p">)</span></div>223 ····<span·class="n">user_logged_in</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span><span·class="n">sender</span><span·class="o">=</span><span·class="n">user</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">user</span><span·class="o">=</span><span·class="n">user</span><span·class="p">)</span></div>
  
  
  
223 <div·class="viewcode-block"·id="logout">224 <div·class="viewcode-block"·id="logout">
224 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.logout">[docs]</a>225 <a·class="viewcode-back"·href="../../../topics/auth/default.html#django.contrib.auth.logout">[documenti]</a>
225 <span·class="k">def</span>·<span·class="nf">logout</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>226 <span·class="k">def</span>·<span·class="nf">logout</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
226 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>227 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
227 <span·class="sd">····Remove·the·authenticated·user&#39;s·ID·from·the·request·and·flush·their·session</span>228 <span·class="sd">····Remove·the·authenticated·user&#39;s·ID·from·the·request·and·flush·their·session</span>
228 <span·class="sd">····data.</span>229 <span·class="sd">····data.</span>
229 <span·class="sd">····&quot;&quot;&quot;</span>230 <span·class="sd">····&quot;&quot;&quot;</span>
230 ····<span·class="c1">#·Dispatch·the·signal·before·the·user·is·logged·out·so·the·receivers·have·a</span>231 ····<span·class="c1">#·Dispatch·the·signal·before·the·user·is·logged·out·so·the·receivers·have·a</span>
231 ····<span·class="c1">#·chance·to·find·out·*who*·logged·out.</span>232 ····<span·class="c1">#·chance·to·find·out·*who*·logged·out.</span>
Offset 241, 15 lines modifiedOffset 242, 15 lines modified
241 ········<span·class="kn">from</span>·<span·class="nn">django.contrib.auth.models</span>·<span·class="kn">import</span>·<span·class="n">AnonymousUser</span>242 ········<span·class="kn">from</span>·<span·class="nn">django.contrib.auth.models</span>·<span·class="kn">import</span>·<span·class="n">AnonymousUser</span>
  
242 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span>·<span·class="o">=</span>·<span·class="n">AnonymousUser</span><span·class="p">()</span></div>243 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span>·<span·class="o">=</span>·<span·class="n">AnonymousUser</span><span·class="p">()</span></div>
  
  
  
243 <div·class="viewcode-block"·id="get_user_model">244 <div·class="viewcode-block"·id="get_user_model">
244 <a·class="viewcode-back"·href="../../../topics/auth/customizing.html#django.contrib.auth.get_user_model">[docs]</a>245 <a·class="viewcode-back"·href="../../../topics/auth/customizing.html#django.contrib.auth.get_user_model">[documenti]</a>
245 <span·class="k">def</span>·<span·class="nf">get_user_model</span><span·class="p">():</span>246 <span·class="k">def</span>·<span·class="nf">get_user_model</span><span·class="p">():</span>
246 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>247 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
247 <span·class="sd">····Return·the·User·model·that·is·active·in·this·project.</span>248 <span·class="sd">····Return·the·User·model·that·is·active·in·this·project.</span>
248 <span·class="sd">····&quot;&quot;&quot;</span>249 <span·class="sd">····&quot;&quot;&quot;</span>
249 ····<span·class="k">try</span><span·class="p">:</span>250 ····<span·class="k">try</span><span·class="p">:</span>
250 ········<span·class="k">return</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_USER_MODEL</span><span·class="p">,</span>·<span·class="n">require_ready</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span>251 ········<span·class="k">return</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_USER_MODEL</span><span·class="p">,</span>·<span·class="n">require_ready</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span>
251 ····<span·class="k">except</span>·<span·class="ne">ValueError</span><span·class="p">:</span>252 ····<span·class="k">except</span>·<span·class="ne">ValueError</span><span·class="p">:</span>
Offset 261, 15 lines modifiedOffset 262, 15 lines modified
261 ············<span·class="s2">&quot;AUTH_USER_MODEL·refers·to·model·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·that·has·not·been·installed&quot;</span>262 ············<span·class="s2">&quot;AUTH_USER_MODEL·refers·to·model·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·that·has·not·been·installed&quot;</span>
262 ············<span·class="o">%</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_USER_MODEL</span>263 ············<span·class="o">%</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">AUTH_USER_MODEL</span>
263 ········<span·class="p">)</span></div>264 ········<span·class="p">)</span></div>
  
  
  
264 <div·class="viewcode-block"·id="get_user">265 <div·class="viewcode-block"·id="get_user">
265 <a·class="viewcode-back"·href="../../../ref/contrib/auth.html#django.contrib.auth.get_user">[docs]</a>266 <a·class="viewcode-back"·href="../../../ref/contrib/auth.html#django.contrib.auth.get_user">[documenti]</a>
Max diff block lines reached; 3394/14580 bytes (23.28%) of diff not shown.
4.19 KB
html2text {}
Max HTML report size reached
7.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/flatpages/sitemaps.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.flatpages.sitemaps·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.flatpages.sitemaps·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-flatpages-sitemaps">69 ··········<div·class="yui-g"·id="_modules-django-contrib-flatpages-sitemaps">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.flatpages.sitemaps</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.flatpages.sitemaps</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.sitemaps</span>·<span·class="kn">import</span>·<span·class="n">Sitemap</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.sitemaps</span>·<span·class="kn">import</span>·<span·class="n">Sitemap</span>
73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>
  
  
74 <div·class="viewcode-block"·id="FlatPageSitemap">75 <div·class="viewcode-block"·id="FlatPageSitemap">
75 <a·class="viewcode-back"·href="../../../../ref/contrib/flatpages.html#django.contrib.flatpages.sitemaps.FlatPageSitemap">[docs]</a>76 <a·class="viewcode-back"·href="../../../../ref/contrib/flatpages.html#django.contrib.flatpages.sitemaps.FlatPageSitemap">[documenti]</a>
76 <span·class="k">class</span>·<span·class="nc">FlatPageSitemap</span><span·class="p">(</span><span·class="n">Sitemap</span><span·class="p">):</span>77 <span·class="k">class</span>·<span·class="nc">FlatPageSitemap</span><span·class="p">(</span><span·class="n">Sitemap</span><span·class="p">):</span>
77 ····<span·class="k">def</span>·<span·class="nf">items</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>78 ····<span·class="k">def</span>·<span·class="nf">items</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
78 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">is_installed</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.sites&quot;</span><span·class="p">):</span>79 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">is_installed</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.sites&quot;</span><span·class="p">):</span>
79 ············<span·class="k">raise</span>·<span·class="n">ImproperlyConfigured</span><span·class="p">(</span>80 ············<span·class="k">raise</span>·<span·class="n">ImproperlyConfigured</span><span·class="p">(</span>
80 ················<span·class="s2">&quot;FlatPageSitemap·requires·django.contrib.sites,·which·isn&#39;t·installed.&quot;</span>81 ················<span·class="s2">&quot;FlatPageSitemap·requires·django.contrib.sites,·which·isn&#39;t·installed.&quot;</span>
81 ············<span·class="p">)</span>82 ············<span·class="p">)</span>
82 ········<span·class="n">Site</span>·<span·class="o">=</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="s2">&quot;sites.Site&quot;</span><span·class="p">)</span>83 ········<span·class="n">Site</span>·<span·class="o">=</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="s2">&quot;sites.Site&quot;</span><span·class="p">)</span>
Offset 96, 35 lines modifiedOffset 97, 35 lines modified
96 ······97 ······
97 ········98 ········
98 ··········<div·class="yui-b"·id="sidebar">99 ··········<div·class="yui-b"·id="sidebar">
99 ············100 ············
100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">101 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
101 ········<div·class="sphinxsidebarwrapper">102 ········<div·class="sphinxsidebarwrapper">
102 <search·id="searchbox"·style="display:·none"·role="search">103 <search·id="searchbox"·style="display:·none"·role="search">
103 ··<h3·id="searchlabel">Quick·search</h3>104 ··<h3·id="searchlabel">Ricerca·veloce</h3>
104 ····<div·class="searchformwrapper">105 ····<div·class="searchformwrapper">
105 ····<form·class="search"·action="../../../../search.html"·method="get">106 ····<form·class="search"·action="../../../../search.html"·method="get">
106 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>107 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
107 ······<input·type="submit"·value="Go"·/>108 ······<input·type="submit"·value="Vai"·/>
108 ····</form>109 ····</form>
109 ····</div>110 ····</div>
110 </search>111 </search>
111 <script>document.getElementById('searchbox').style.display·=·"block"</script>112 <script>document.getElementById('searchbox').style.display·=·"block"</script>
112 ········</div>113 ········</div>
113 ······</div>114 ······</div>
114 ··············<h3>Last·update:</h3>115 ··············<h3>Last·update:</h3>
115 ··············<p·class="topless">Sep·03,·2024</p>116 ··············<p·class="topless">set·03,·2024</p>
116 ··········</div>117 ··········</div>
117 ········118 ········
118 ······119 ······
119 ····</div>120 ····</div>
  
120 ····<div·id="ft">121 ····<div·id="ft">
121 ······<div·class="nav">122 ······<div·class="nav">
122 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>123 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
123 ····</div>124 ····</div>
124 ··</div>125 ··</div>
  
125 ······<div·class="clearer"></div>126 ······<div·class="clearer"></div>
126 ····</div>127 ····</div>
127 ··</body>128 ··</body>
128 </html>129 </html>
1.78 KB
html2text {}
Max HTML report size reached
13.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/db/models/aggregates.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../../">2 <html·lang="it"·data-content_root="../../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.db.models.aggregates·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.db.models.aggregates·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-db-models-aggregates">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-db-models-aggregates">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.db.models.aggregates</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.db.models.aggregates</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.db.models.fields</span>·<span·class="kn">import</span>·<span·class="p">(</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.db.models.fields</span>·<span·class="kn">import</span>·<span·class="p">(</span>
72 ····<span·class="n">ExtentField</span><span·class="p">,</span>73 ····<span·class="n">ExtentField</span><span·class="p">,</span>
73 ····<span·class="n">GeometryCollectionField</span><span·class="p">,</span>74 ····<span·class="n">GeometryCollectionField</span><span·class="p">,</span>
74 ····<span·class="n">GeometryField</span><span·class="p">,</span>75 ····<span·class="n">GeometryField</span><span·class="p">,</span>
75 ····<span·class="n">LineStringField</span><span·class="p">,</span>76 ····<span·class="n">LineStringField</span><span·class="p">,</span>
76 <span·class="p">)</span>77 <span·class="p">)</span>
77 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Aggregate</span><span·class="p">,</span>·<span·class="n">Value</span>78 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Aggregate</span><span·class="p">,</span>·<span·class="n">Value</span>
Offset 127, 59 lines modifiedOffset 128, 59 lines modified
127 ················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>128 ················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>
128 ····················<span·class="s2">&quot;Geospatial·aggregates·only·allowed·on·geometry·fields.&quot;</span>129 ····················<span·class="s2">&quot;Geospatial·aggregates·only·allowed·on·geometry·fields.&quot;</span>
129 ················<span·class="p">)</span>130 ················<span·class="p">)</span>
130 ········<span·class="k">return</span>·<span·class="n">c</span>131 ········<span·class="k">return</span>·<span·class="n">c</span>
  
  
131 <div·class="viewcode-block"·id="Collect">132 <div·class="viewcode-block"·id="Collect">
132 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Collect">[docs]</a>133 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Collect">[documenti]</a>
133 <span·class="k">class</span>·<span·class="nc">Collect</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>134 <span·class="k">class</span>·<span·class="nc">Collect</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>
134 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Collect&quot;</span>135 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Collect&quot;</span>
135 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">GeometryCollectionField</span></div>136 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">GeometryCollectionField</span></div>
  
  
  
136 <div·class="viewcode-block"·id="Extent">137 <div·class="viewcode-block"·id="Extent">
137 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Extent">[docs]</a>138 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Extent">[documenti]</a>
138 <span·class="k">class</span>·<span·class="nc">Extent</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>139 <span·class="k">class</span>·<span·class="nc">Extent</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>
139 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Extent&quot;</span>140 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Extent&quot;</span>
140 ····<span·class="n">is_extent</span>·<span·class="o">=</span>·<span·class="s2">&quot;2D&quot;</span>141 ····<span·class="n">is_extent</span>·<span·class="o">=</span>·<span·class="s2">&quot;2D&quot;</span>
  
141 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>142 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>
142 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="n">ExtentField</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>143 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="n">ExtentField</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>
  
143 ····<span·class="k">def</span>·<span·class="nf">convert_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>144 ····<span·class="k">def</span>·<span·class="nf">convert_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>
144 ········<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">convert_extent</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>145 ········<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">convert_extent</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>
  
  
  
145 <div·class="viewcode-block"·id="Extent3D">146 <div·class="viewcode-block"·id="Extent3D">
146 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Extent3D">[docs]</a>147 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Extent3D">[documenti]</a>
147 <span·class="k">class</span>·<span·class="nc">Extent3D</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>148 <span·class="k">class</span>·<span·class="nc">Extent3D</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>
148 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Extent3D&quot;</span>149 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Extent3D&quot;</span>
149 ····<span·class="n">is_extent</span>·<span·class="o">=</span>·<span·class="s2">&quot;3D&quot;</span>150 ····<span·class="n">is_extent</span>·<span·class="o">=</span>·<span·class="s2">&quot;3D&quot;</span>
  
150 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>151 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>
151 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="n">ExtentField</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>152 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="n">ExtentField</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>
  
152 ····<span·class="k">def</span>·<span·class="nf">convert_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>153 ····<span·class="k">def</span>·<span·class="nf">convert_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>
153 ········<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">convert_extent3d</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>154 ········<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">convert_extent3d</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>
  
  
  
154 <div·class="viewcode-block"·id="MakeLine">155 <div·class="viewcode-block"·id="MakeLine">
155 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.MakeLine">[docs]</a>156 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.MakeLine">[documenti]</a>
156 <span·class="k">class</span>·<span·class="nc">MakeLine</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>157 <span·class="k">class</span>·<span·class="nc">MakeLine</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>
157 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;MakeLine&quot;</span>158 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;MakeLine&quot;</span>
158 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">LineStringField</span></div>159 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">LineStringField</span></div>
  
  
  
159 <div·class="viewcode-block"·id="Union">160 <div·class="viewcode-block"·id="Union">
160 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Union">[docs]</a>161 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geoquerysets.html#django.contrib.gis.db.models.Union">[documenti]</a>
161 <span·class="k">class</span>·<span·class="nc">Union</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>162 <span·class="k">class</span>·<span·class="nc">Union</span><span·class="p">(</span><span·class="n">GeoAggregate</span><span·class="p">):</span>
162 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Union&quot;</span>163 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Union&quot;</span>
163 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">GeometryField</span></div>164 ····<span·class="n">output_field_class</span>·<span·class="o">=</span>·<span·class="n">GeometryField</span></div>
  
164 </pre></div>165 </pre></div>
  
165 ··········</div>166 ··········</div>
Offset 188, 35 lines modifiedOffset 189, 35 lines modified
188 ······189 ······
189 ········190 ········
190 ··········<div·class="yui-b"·id="sidebar">191 ··········<div·class="yui-b"·id="sidebar">
191 ············192 ············
192 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">193 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
193 ········<div·class="sphinxsidebarwrapper">194 ········<div·class="sphinxsidebarwrapper">
194 <search·id="searchbox"·style="display:·none"·role="search">195 <search·id="searchbox"·style="display:·none"·role="search">
195 ··<h3·id="searchlabel">Quick·search</h3>196 ··<h3·id="searchlabel">Ricerca·veloce</h3>
196 ····<div·class="searchformwrapper">197 ····<div·class="searchformwrapper">
197 ····<form·class="search"·action="../../../../../../search.html"·method="get">198 ····<form·class="search"·action="../../../../../../search.html"·method="get">
198 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>199 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
199 ······<input·type="submit"·value="Go"·/>200 ······<input·type="submit"·value="Vai"·/>
Max diff block lines reached; 638/11130 bytes (5.73%) of diff not shown.
2.73 KB
html2text {}
Max HTML report size reached
20.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/db/models/fields.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../../">2 <html·lang="it"·data-content_root="../../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.db.models.fields·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.db.models.fields·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-db-models-fields">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-db-models-fields">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.db.models.fields</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.db.models.fields</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">defaultdict</span><span·class="p">,</span>·<span·class="n">namedtuple</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">defaultdict</span><span·class="p">,</span>·<span·class="n">namedtuple</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">forms</span><span·class="p">,</span>·<span·class="n">gdal</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">forms</span><span·class="p">,</span>·<span·class="n">gdal</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.db.models.proxy</span>·<span·class="kn">import</span>·<span·class="n">SpatialProxy</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.db.models.proxy</span>·<span·class="kn">import</span>·<span·class="n">SpatialProxy</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="p">(</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="p">(</span>
76 ····<span·class="n">GeometryCollection</span><span·class="p">,</span>77 ····<span·class="n">GeometryCollection</span><span·class="p">,</span>
Offset 294, 15 lines modifiedOffset 295, 15 lines modified
  
294 ········<span·class="c1">#·Assigning·the·SRID·value.</span>295 ········<span·class="c1">#·Assigning·the·SRID·value.</span>
295 ········<span·class="n">obj</span><span·class="o">.</span><span·class="n">srid</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_srid</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">)</span>296 ········<span·class="n">obj</span><span·class="o">.</span><span·class="n">srid</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_srid</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">)</span>
296 ········<span·class="k">return</span>·<span·class="n">obj</span>297 ········<span·class="k">return</span>·<span·class="n">obj</span>
  
  
297 <div·class="viewcode-block"·id="GeometryField">298 <div·class="viewcode-block"·id="GeometryField">
298 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.GeometryField">[docs]</a>299 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.GeometryField">[documenti]</a>
299 <span·class="k">class</span>·<span·class="nc">GeometryField</span><span·class="p">(</span><span·class="n">BaseSpatialField</span><span·class="p">):</span>300 <span·class="k">class</span>·<span·class="nc">GeometryField</span><span·class="p">(</span><span·class="n">BaseSpatialField</span><span·class="p">):</span>
300 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>301 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
301 <span·class="sd">····The·base·Geometry·field·--·maps·to·the·OpenGIS·Specification·Geometry·type.</span>302 <span·class="sd">····The·base·Geometry·field·--·maps·to·the·OpenGIS·Specification·Geometry·type.</span>
302 <span·class="sd">····&quot;&quot;&quot;</span>303 <span·class="sd">····&quot;&quot;&quot;</span>
  
303 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>304 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>
304 ········<span·class="s2">&quot;The·base·Geometry·field··maps·to·the·OpenGIS·Specification·Geometry·type.&quot;</span>305 ········<span·class="s2">&quot;The·base·Geometry·field··maps·to·the·OpenGIS·Specification·Geometry·type.&quot;</span>
Offset 398, 75 lines modifiedOffset 399, 75 lines modified
398 ············<span·class="k">return</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">select</span>·<span·class="o">%</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span>399 ············<span·class="k">return</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">select</span>·<span·class="o">%</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span>
399 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>400 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>
  
  
  
400 <span·class="c1">#·The·OpenGIS·Geometry·Type·Fields</span>401 <span·class="c1">#·The·OpenGIS·Geometry·Type·Fields</span>
401 <div·class="viewcode-block"·id="PointField">402 <div·class="viewcode-block"·id="PointField">
402 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.PointField">[docs]</a>403 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.PointField">[documenti]</a>
403 <span·class="k">class</span>·<span·class="nc">PointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>404 <span·class="k">class</span>·<span·class="nc">PointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
404 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POINT&quot;</span>405 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POINT&quot;</span>
405 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">Point</span>406 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">Point</span>
406 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">PointField</span>407 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">PointField</span>
407 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Point&quot;</span><span·class="p">)</span></div>408 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Point&quot;</span><span·class="p">)</span></div>
  
  
  
408 <div·class="viewcode-block"·id="LineStringField">409 <div·class="viewcode-block"·id="LineStringField">
409 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.LineStringField">[docs]</a>410 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.LineStringField">[documenti]</a>
410 <span·class="k">class</span>·<span·class="nc">LineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>411 <span·class="k">class</span>·<span·class="nc">LineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
411 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;LINESTRING&quot;</span>412 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;LINESTRING&quot;</span>
412 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">LineString</span>413 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">LineString</span>
413 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">LineStringField</span>414 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">LineStringField</span>
414 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Line·string&quot;</span><span·class="p">)</span></div>415 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Line·string&quot;</span><span·class="p">)</span></div>
  
  
  
415 <div·class="viewcode-block"·id="PolygonField">416 <div·class="viewcode-block"·id="PolygonField">
416 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.PolygonField">[docs]</a>417 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.PolygonField">[documenti]</a>
417 <span·class="k">class</span>·<span·class="nc">PolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>418 <span·class="k">class</span>·<span·class="nc">PolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
418 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POLYGON&quot;</span>419 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POLYGON&quot;</span>
419 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">Polygon</span>420 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">Polygon</span>
420 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">PolygonField</span>421 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">PolygonField</span>
421 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Polygon&quot;</span><span·class="p">)</span></div>422 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Polygon&quot;</span><span·class="p">)</span></div>
  
  
  
422 <div·class="viewcode-block"·id="MultiPointField">423 <div·class="viewcode-block"·id="MultiPointField">
423 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.MultiPointField">[docs]</a>424 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.MultiPointField">[documenti]</a>
424 <span·class="k">class</span>·<span·class="nc">MultiPointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>425 <span·class="k">class</span>·<span·class="nc">MultiPointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
425 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOINT&quot;</span>426 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOINT&quot;</span>
426 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">MultiPoint</span>427 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">MultiPoint</span>
427 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">MultiPointField</span>428 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">MultiPointField</span>
428 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Multi-point&quot;</span><span·class="p">)</span></div>429 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Multi-point&quot;</span><span·class="p">)</span></div>
  
  
  
429 <div·class="viewcode-block"·id="MultiLineStringField">430 <div·class="viewcode-block"·id="MultiLineStringField">
430 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.MultiLineStringField">[docs]</a>431 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/model-api.html#django.contrib.gis.db.models.MultiLineStringField">[documenti]</a>
431 <span·class="k">class</span>·<span·class="nc">MultiLineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>432 <span·class="k">class</span>·<span·class="nc">MultiLineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
432 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTILINESTRING&quot;</span>433 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTILINESTRING&quot;</span>
433 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">MultiLineString</span>434 ····<span·class="n">geom_class</span>·<span·class="o">=</span>·<span·class="n">MultiLineString</span>
434 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">MultiLineStringField</span>435 ····<span·class="n">form_class</span>·<span·class="o">=</span>·<span·class="n">forms</span><span·class="o">.</span><span·class="n">MultiLineStringField</span>
435 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Multi-line·string&quot;</span><span·class="p">)</span></div>436 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Multi-line·string&quot;</span><span·class="p">)</span></div>
  
  
  
Max diff block lines reached; 5341/16233 bytes (32.90%) of diff not shown.
4.23 KB
html2text {}
Max HTML report size reached
69.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/db/models/functions.html
Max HTML report size reached
15.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/feeds.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.feeds·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.feeds·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-feeds">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-feeds">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.feeds</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.feeds</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.syndication.views</span>·<span·class="kn">import</span>·<span·class="n">Feed</span>·<span·class="k">as</span>·<span·class="n">BaseFeed</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.syndication.views</span>·<span·class="kn">import</span>·<span·class="n">Feed</span>·<span·class="k">as</span>·<span·class="n">BaseFeed</span>
72 <span·class="kn">from</span>·<span·class="nn">django.utils.feedgenerator</span>·<span·class="kn">import</span>·<span·class="n">Atom1Feed</span><span·class="p">,</span>·<span·class="n">Rss201rev2Feed</span>73 <span·class="kn">from</span>·<span·class="nn">django.utils.feedgenerator</span>·<span·class="kn">import</span>·<span·class="n">Atom1Feed</span><span·class="p">,</span>·<span·class="n">Rss201rev2Feed</span>
  
  
73 <span·class="k">class</span>·<span·class="nc">GeoFeedMixin</span><span·class="p">:</span>74 <span·class="k">class</span>·<span·class="nc">GeoFeedMixin</span><span·class="p">:</span>
74 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>75 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="sd">····This·mixin·provides·the·necessary·routines·for·SyndicationFeed·subclasses</span>76 <span·class="sd">····This·mixin·provides·the·necessary·routines·for·SyndicationFeed·subclasses</span>
Offset 158, 15 lines modifiedOffset 159, 15 lines modified
158 ························<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>159 ························<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>
159 ····························<span·class="s1">&#39;Geometry·type·&quot;</span><span·class="si">%s</span><span·class="s1">&quot;·not·supported.&#39;</span>·<span·class="o">%</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">geom_type</span>160 ····························<span·class="s1">&#39;Geometry·type·&quot;</span><span·class="si">%s</span><span·class="s1">&quot;·not·supported.&#39;</span>·<span·class="o">%</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">geom_type</span>
160 ························<span·class="p">)</span>161 ························<span·class="p">)</span>
  
  
161 <span·class="c1">#·###·SyndicationFeed·subclasses·###</span>162 <span·class="c1">#·###·SyndicationFeed·subclasses·###</span>
162 <div·class="viewcode-block"·id="GeoRSSFeed">163 <div·class="viewcode-block"·id="GeoRSSFeed">
163 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.GeoRSSFeed">[docs]</a>164 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.GeoRSSFeed">[documenti]</a>
164 <span·class="k">class</span>·<span·class="nc">GeoRSSFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>165 <span·class="k">class</span>·<span·class="nc">GeoRSSFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>
165 ····<span·class="k">def</span>·<span·class="nf">rss_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>166 ····<span·class="k">def</span>·<span·class="nf">rss_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
166 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">rss_attributes</span><span·class="p">()</span>167 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">rss_attributes</span><span·class="p">()</span>
167 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:georss&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.georss.org/georss&quot;</span>168 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:georss&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.georss.org/georss&quot;</span>
168 ········<span·class="k">return</span>·<span·class="n">attrs</span>169 ········<span·class="k">return</span>·<span·class="n">attrs</span>
  
169 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>170 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>
Offset 176, 15 lines modifiedOffset 177, 15 lines modified
176 ····<span·class="k">def</span>·<span·class="nf">add_root_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">):</span>177 ····<span·class="k">def</span>·<span·class="nf">add_root_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">):</span>
177 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>178 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>
178 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">)</span></div>179 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">)</span></div>
  
  
  
179 <div·class="viewcode-block"·id="GeoAtom1Feed">180 <div·class="viewcode-block"·id="GeoAtom1Feed">
180 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.GeoAtom1Feed">[docs]</a>181 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.GeoAtom1Feed">[documenti]</a>
181 <span·class="k">class</span>·<span·class="nc">GeoAtom1Feed</span><span·class="p">(</span><span·class="n">Atom1Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>182 <span·class="k">class</span>·<span·class="nc">GeoAtom1Feed</span><span·class="p">(</span><span·class="n">Atom1Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>
182 ····<span·class="k">def</span>·<span·class="nf">root_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>183 ····<span·class="k">def</span>·<span·class="nf">root_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
183 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">root_attributes</span><span·class="p">()</span>184 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">root_attributes</span><span·class="p">()</span>
184 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:georss&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.georss.org/georss&quot;</span>185 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:georss&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.georss.org/georss&quot;</span>
185 ········<span·class="k">return</span>·<span·class="n">attrs</span>186 ········<span·class="k">return</span>·<span·class="n">attrs</span>
  
186 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>187 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>
Offset 194, 15 lines modifiedOffset 195, 15 lines modified
194 ····<span·class="k">def</span>·<span·class="nf">add_root_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">):</span>195 ····<span·class="k">def</span>·<span·class="nf">add_root_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">):</span>
195 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>196 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>
196 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">)</span></div>197 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">)</span></div>
  
  
  
197 <div·class="viewcode-block"·id="W3CGeoFeed">198 <div·class="viewcode-block"·id="W3CGeoFeed">
198 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.W3CGeoFeed">[docs]</a>199 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.W3CGeoFeed">[documenti]</a>
199 <span·class="k">class</span>·<span·class="nc">W3CGeoFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>200 <span·class="k">class</span>·<span·class="nc">W3CGeoFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">,</span>·<span·class="n">GeoFeedMixin</span><span·class="p">):</span>
200 ····<span·class="k">def</span>·<span·class="nf">rss_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>201 ····<span·class="k">def</span>·<span·class="nf">rss_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
201 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">rss_attributes</span><span·class="p">()</span>202 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">rss_attributes</span><span·class="p">()</span>
202 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:geo&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.w3.org/2003/01/geo/wgs84_pos#&quot;</span>203 ········<span·class="n">attrs</span><span·class="p">[</span><span·class="s2">&quot;xmlns:geo&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">&quot;http://www.w3.org/2003/01/geo/wgs84_pos#&quot;</span>
203 ········<span·class="k">return</span>·<span·class="n">attrs</span>204 ········<span·class="k">return</span>·<span·class="n">attrs</span>
  
204 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>205 ····<span·class="k">def</span>·<span·class="nf">add_item_elements</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">handler</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>
Offset 213, 15 lines modifiedOffset 214, 15 lines modified
213 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>214 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">add_root_elements</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">)</span>
214 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">,</span>·<span·class="n">w3c_geo</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span></div>215 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_georss_element</span><span·class="p">(</span><span·class="n">handler</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">feed</span><span·class="p">,</span>·<span·class="n">w3c_geo</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span></div>
  
  
  
215 <span·class="c1">#·###·Feed·subclass·###</span>216 <span·class="c1">#·###·Feed·subclass·###</span>
216 <div·class="viewcode-block"·id="Feed">217 <div·class="viewcode-block"·id="Feed">
217 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.Feed">[docs]</a>218 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/feeds.html#django.contrib.gis.feeds.Feed">[documenti]</a>
218 <span·class="k">class</span>·<span·class="nc">Feed</span><span·class="p">(</span><span·class="n">BaseFeed</span><span·class="p">):</span>219 <span·class="k">class</span>·<span·class="nc">Feed</span><span·class="p">(</span><span·class="n">BaseFeed</span><span·class="p">):</span>
219 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>220 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
220 <span·class="sd">····This·is·a·subclass·of·the·`Feed`·from·`django.contrib.syndication`.</span>221 <span·class="sd">····This·is·a·subclass·of·the·`Feed`·from·`django.contrib.syndication`.</span>
221 <span·class="sd">····This·allows·users·to·define·a·`geometry(obj)`·and/or·`item_geometry(item)`</span>222 <span·class="sd">····This·allows·users·to·define·a·`geometry(obj)`·and/or·`item_geometry(item)`</span>
222 <span·class="sd">····methods·on·their·own·subclasses·so·that·geo-referenced·information·may</span>223 <span·class="sd">····methods·on·their·own·subclasses·so·that·geo-referenced·information·may</span>
223 <span·class="sd">····placed·in·the·feed.</span>224 <span·class="sd">····placed·in·the·feed.</span>
224 <span·class="sd">····&quot;&quot;&quot;</span>225 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 242, 35 lines modifiedOffset 243, 35 lines modified
242 ······243 ······
243 ········244 ········
244 ··········<div·class="yui-b"·id="sidebar">245 ··········<div·class="yui-b"·id="sidebar">
245 ············246 ············
246 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">247 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
247 ········<div·class="sphinxsidebarwrapper">248 ········<div·class="sphinxsidebarwrapper">
248 <search·id="searchbox"·style="display:·none"·role="search">249 <search·id="searchbox"·style="display:·none"·role="search">
249 ··<h3·id="searchlabel">Quick·search</h3>250 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 941/12411 bytes (7.58%) of diff not shown.
3.38 KB
html2text {}
Max HTML report size reached
13.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/forms/fields.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.forms.fields·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.forms.fields·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 42 lines modifiedOffset 51, 42 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-forms-fields">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-forms-fields">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.forms.fields</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.forms.fields</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>
  
76 <span·class="kn">from</span>·<span·class="nn">.widgets</span>·<span·class="kn">import</span>·<span·class="n">OpenLayersWidget</span>77 <span·class="kn">from</span>·<span·class="nn">.widgets</span>·<span·class="kn">import</span>·<span·class="n">OpenLayersWidget</span>
  
  
77 <div·class="viewcode-block"·id="GeometryField">78 <div·class="viewcode-block"·id="GeometryField">
78 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.GeometryField">[docs]</a>79 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.GeometryField">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">GeometryField</span><span·class="p">(</span><span·class="n">forms</span><span·class="o">.</span><span·class="n">Field</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">GeometryField</span><span·class="p">(</span><span·class="n">forms</span><span·class="o">.</span><span·class="n">Field</span><span·class="p">):</span>
80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
81 <span·class="sd">····This·is·the·basic·form·field·for·a·Geometry.··Any·textual·input·that·is</span>82 <span·class="sd">····This·is·the·basic·form·field·for·a·Geometry.··Any·textual·input·that·is</span>
82 <span·class="sd">····accepted·by·GEOSGeometry·is·accepted·by·this·form.··By·default,</span>83 <span·class="sd">····accepted·by·GEOSGeometry·is·accepted·by·this·form.··By·default,</span>
83 <span·class="sd">····this·includes·WKT,·HEXEWKB,·WKB·(in·a·buffer),·and·GeoJSON.</span>84 <span·class="sd">····this·includes·WKT,·HEXEWKB,·WKB·(in·a·buffer),·and·GeoJSON.</span>
84 <span·class="sd">····&quot;&quot;&quot;</span>85 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 189, 57 lines modifiedOffset 190, 57 lines modified
189 ········<span·class="k">else</span><span·class="p">:</span>190 ········<span·class="k">else</span><span·class="p">:</span>
190 ············<span·class="c1">#·Check·for·change·of·state·of·existence</span>191 ············<span·class="c1">#·Check·for·change·of·state·of·existence</span>
191 ············<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">initial</span><span·class="p">)</span>·<span·class="o">!=</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span></div>192 ············<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">initial</span><span·class="p">)</span>·<span·class="o">!=</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span></div>
  
  
  
192 <div·class="viewcode-block"·id="GeometryCollectionField">193 <div·class="viewcode-block"·id="GeometryCollectionField">
193 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.GeometryCollectionField">[docs]</a>194 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.GeometryCollectionField">[documenti]</a>
194 <span·class="k">class</span>·<span·class="nc">GeometryCollectionField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>195 <span·class="k">class</span>·<span·class="nc">GeometryCollectionField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
195 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEOMETRYCOLLECTION&quot;</span></div>196 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEOMETRYCOLLECTION&quot;</span></div>
  
  
  
196 <div·class="viewcode-block"·id="PointField">197 <div·class="viewcode-block"·id="PointField">
197 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.PointField">[docs]</a>198 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.PointField">[documenti]</a>
198 <span·class="k">class</span>·<span·class="nc">PointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>199 <span·class="k">class</span>·<span·class="nc">PointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
199 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POINT&quot;</span></div>200 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POINT&quot;</span></div>
  
  
  
200 <div·class="viewcode-block"·id="MultiPointField">201 <div·class="viewcode-block"·id="MultiPointField">
201 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiPointField">[docs]</a>202 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiPointField">[documenti]</a>
202 <span·class="k">class</span>·<span·class="nc">MultiPointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>203 <span·class="k">class</span>·<span·class="nc">MultiPointField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
203 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOINT&quot;</span></div>204 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOINT&quot;</span></div>
  
  
  
204 <div·class="viewcode-block"·id="LineStringField">205 <div·class="viewcode-block"·id="LineStringField">
205 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.LineStringField">[docs]</a>206 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.LineStringField">[documenti]</a>
206 <span·class="k">class</span>·<span·class="nc">LineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>207 <span·class="k">class</span>·<span·class="nc">LineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
207 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;LINESTRING&quot;</span></div>208 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;LINESTRING&quot;</span></div>
  
  
  
208 <div·class="viewcode-block"·id="MultiLineStringField">209 <div·class="viewcode-block"·id="MultiLineStringField">
209 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiLineStringField">[docs]</a>210 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiLineStringField">[documenti]</a>
210 <span·class="k">class</span>·<span·class="nc">MultiLineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>211 <span·class="k">class</span>·<span·class="nc">MultiLineStringField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
211 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTILINESTRING&quot;</span></div>212 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTILINESTRING&quot;</span></div>
  
  
  
212 <div·class="viewcode-block"·id="PolygonField">213 <div·class="viewcode-block"·id="PolygonField">
213 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.PolygonField">[docs]</a>214 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.PolygonField">[documenti]</a>
214 <span·class="k">class</span>·<span·class="nc">PolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>215 <span·class="k">class</span>·<span·class="nc">PolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
215 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POLYGON&quot;</span></div>216 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;POLYGON&quot;</span></div>
  
  
  
216 <div·class="viewcode-block"·id="MultiPolygonField">217 <div·class="viewcode-block"·id="MultiPolygonField">
217 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiPolygonField">[docs]</a>218 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.MultiPolygonField">[documenti]</a>
218 <span·class="k">class</span>·<span·class="nc">MultiPolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>219 <span·class="k">class</span>·<span·class="nc">MultiPolygonField</span><span·class="p">(</span><span·class="n">GeometryField</span><span·class="p">):</span>
219 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOLYGON&quot;</span></div>220 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;MULTIPOLYGON&quot;</span></div>
  
220 </pre></div>221 </pre></div>
  
221 ··········</div>222 ··········</div>
222 ········</div>223 ········</div>
Offset 247, 35 lines modifiedOffset 248, 35 lines modified
247 ······248 ······
248 ········249 ········
249 ··········<div·class="yui-b"·id="sidebar">250 ··········<div·class="yui-b"·id="sidebar">
Max diff block lines reached; 1249/10647 bytes (11.73%) of diff not shown.
2.78 KB
html2text {}
Max HTML report size reached
11.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/forms/widgets.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.forms.widgets·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.forms.widgets·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-forms-widgets">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-forms-widgets">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.forms.widgets</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.forms.widgets</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>
72 <span·class="kn">import</span>·<span·class="nn">warnings</span>73 <span·class="kn">import</span>·<span·class="nn">warnings</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">gdal</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">gdal</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geometry</span>·<span·class="kn">import</span>·<span·class="n">json_regex</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geometry</span>·<span·class="kn">import</span>·<span·class="n">json_regex</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span>
Offset 82, 15 lines modifiedOffset 83, 15 lines modified
82 <span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>83 <span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>
83 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">RemovedInDjango51Warning</span>84 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">RemovedInDjango51Warning</span>
  
84 <span·class="n">logger</span>·<span·class="o">=</span>·<span·class="n">logging</span><span·class="o">.</span><span·class="n">getLogger</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.gis&quot;</span><span·class="p">)</span>85 <span·class="n">logger</span>·<span·class="o">=</span>·<span·class="n">logging</span><span·class="o">.</span><span·class="n">getLogger</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.gis&quot;</span><span·class="p">)</span>
  
  
85 <div·class="viewcode-block"·id="BaseGeometryWidget">86 <div·class="viewcode-block"·id="BaseGeometryWidget">
86 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.BaseGeometryWidget">[docs]</a>87 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.BaseGeometryWidget">[documenti]</a>
87 <span·class="k">class</span>·<span·class="nc">BaseGeometryWidget</span><span·class="p">(</span><span·class="n">Widget</span><span·class="p">):</span>88 <span·class="k">class</span>·<span·class="nc">BaseGeometryWidget</span><span·class="p">(</span><span·class="n">Widget</span><span·class="p">):</span>
88 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>89 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
89 <span·class="sd">····The·base·class·for·rich·geometry·widgets.</span>90 <span·class="sd">····The·base·class·for·rich·geometry·widgets.</span>
90 <span·class="sd">····Render·a·map·using·the·WKT·of·the·geometry.</span>91 <span·class="sd">····Render·a·map·using·the·WKT·of·the·geometry.</span>
91 <span·class="sd">····&quot;&quot;&quot;</span>92 <span·class="sd">····&quot;&quot;&quot;</span>
  
92 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEOMETRY&quot;</span>93 ····<span·class="n">geom_type</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEOMETRY&quot;</span>
Offset 168, 15 lines modifiedOffset 169, 15 lines modified
168 ············<span·class="p">)</span>169 ············<span·class="p">)</span>
169 ········<span·class="p">)</span>170 ········<span·class="p">)</span>
170 ········<span·class="k">return</span>·<span·class="n">context</span></div>171 ········<span·class="k">return</span>·<span·class="n">context</span></div>
  
  
  
171 <div·class="viewcode-block"·id="OpenLayersWidget">172 <div·class="viewcode-block"·id="OpenLayersWidget">
172 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.OpenLayersWidget">[docs]</a>173 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.OpenLayersWidget">[documenti]</a>
173 <span·class="k">class</span>·<span·class="nc">OpenLayersWidget</span><span·class="p">(</span><span·class="n">BaseGeometryWidget</span><span·class="p">):</span>174 <span·class="k">class</span>·<span·class="nc">OpenLayersWidget</span><span·class="p">(</span><span·class="n">BaseGeometryWidget</span><span·class="p">):</span>
174 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;gis/openlayers.html&quot;</span>175 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;gis/openlayers.html&quot;</span>
175 ····<span·class="n">map_srid</span>·<span·class="o">=</span>·<span·class="mi">3857</span>176 ····<span·class="n">map_srid</span>·<span·class="o">=</span>·<span·class="mi">3857</span>
  
176 ····<span·class="k">class</span>·<span·class="nc">Media</span><span·class="p">:</span>177 ····<span·class="k">class</span>·<span·class="nc">Media</span><span·class="p">:</span>
177 ········<span·class="n">css</span>·<span·class="o">=</span>·<span·class="p">{</span>178 ········<span·class="n">css</span>·<span·class="o">=</span>·<span·class="p">{</span>
178 ············<span·class="s2">&quot;all&quot;</span><span·class="p">:</span>·<span·class="p">(</span>179 ············<span·class="s2">&quot;all&quot;</span><span·class="p">:</span>·<span·class="p">(</span>
Offset 198, 15 lines modifiedOffset 199, 15 lines modified
198 ········<span·class="k">if</span>·<span·class="n">geom</span>·<span·class="ow">and</span>·<span·class="n">json_regex</span><span·class="o">.</span><span·class="n">match</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">map_srid</span>·<span·class="o">!=</span>·<span·class="mi">4326</span><span·class="p">:</span>199 ········<span·class="k">if</span>·<span·class="n">geom</span>·<span·class="ow">and</span>·<span·class="n">json_regex</span><span·class="o">.</span><span·class="n">match</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">map_srid</span>·<span·class="o">!=</span>·<span·class="mi">4326</span><span·class="p">:</span>
199 ············<span·class="n">geom</span><span·class="o">.</span><span·class="n">srid</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">map_srid</span>200 ············<span·class="n">geom</span><span·class="o">.</span><span·class="n">srid</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">map_srid</span>
200 ········<span·class="k">return</span>·<span·class="n">geom</span></div>201 ········<span·class="k">return</span>·<span·class="n">geom</span></div>
  
  
  
201 <div·class="viewcode-block"·id="OSMWidget">202 <div·class="viewcode-block"·id="OSMWidget">
202 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.OSMWidget">[docs]</a>203 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/forms-api.html#django.contrib.gis.forms.widgets.OSMWidget">[documenti]</a>
203 <span·class="k">class</span>·<span·class="nc">OSMWidget</span><span·class="p">(</span><span·class="n">OpenLayersWidget</span><span·class="p">):</span>204 <span·class="k">class</span>·<span·class="nc">OSMWidget</span><span·class="p">(</span><span·class="n">OpenLayersWidget</span><span·class="p">):</span>
204 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>205 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
205 <span·class="sd">····An·OpenLayers/OpenStreetMap-based·widget.</span>206 <span·class="sd">····An·OpenLayers/OpenStreetMap-based·widget.</span>
206 <span·class="sd">····&quot;&quot;&quot;</span>207 <span·class="sd">····&quot;&quot;&quot;</span>
  
207 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;gis/openlayers-osm.html&quot;</span>208 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;gis/openlayers-osm.html&quot;</span>
208 ····<span·class="n">default_lon</span>·<span·class="o">=</span>·<span·class="mi">5</span>209 ····<span·class="n">default_lon</span>·<span·class="o">=</span>·<span·class="mi">5</span>
Offset 228, 35 lines modifiedOffset 229, 35 lines modified
228 ······229 ······
229 ········230 ········
230 ··········<div·class="yui-b"·id="sidebar">231 ··········<div·class="yui-b"·id="sidebar">
231 ············232 ············
232 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">233 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
233 ········<div·class="sphinxsidebarwrapper">234 ········<div·class="sphinxsidebarwrapper">
234 <search·id="searchbox"·style="display:·none"·role="search">235 <search·id="searchbox"·style="display:·none"·role="search">
235 ··<h3·id="searchlabel">Quick·search</h3>236 ··<h3·id="searchlabel">Ricerca·veloce</h3>
236 ····<div·class="searchformwrapper">237 ····<div·class="searchformwrapper">
237 ····<form·class="search"·action="../../../../../search.html"·method="get">238 ····<form·class="search"·action="../../../../../search.html"·method="get">
238 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>239 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
239 ······<input·type="submit"·value="Go"·/>240 ······<input·type="submit"·value="Vai"·/>
240 ····</form>241 ····</form>
241 ····</div>242 ····</div>
242 </search>243 </search>
243 <script>document.getElementById('searchbox').style.display·=·"block"</script>244 <script>document.getElementById('searchbox').style.display·=·"block"</script>
244 ········</div>245 ········</div>
245 ······</div>246 ······</div>
246 ··············<h3>Last·update:</h3>247 ··············<h3>Last·update:</h3>
247 ··············<p·class="topless">Sep·03,·2024</p>248 ··············<p·class="topless">set·03,·2024</p>
248 ··········</div>249 ··········</div>
249 ········250 ········
250 ······251 ······
251 ····</div>252 ····</div>
Max diff block lines reached; 311/9047 bytes (3.44%) of diff not shown.
2.61 KB
html2text {}
Max HTML report size reached
8.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/datasource.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.datasource·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.datasource·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-datasource">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-datasource">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.datasource</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.datasource</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">·DataSource·is·a·wrapper·for·the·OGR·Data·Source·object,·which·provides</span>73 <span·class="sd">·DataSource·is·a·wrapper·for·the·OGR·Data·Source·object,·which·provides</span>
73 <span·class="sd">·an·interface·for·reading·vector·geometry·data·from·many·different·file</span>74 <span·class="sd">·an·interface·for·reading·vector·geometry·data·from·many·different·file</span>
74 <span·class="sd">·formats·(including·ESRI·shapefiles).</span>75 <span·class="sd">·formats·(including·ESRI·shapefiles).</span>
  
75 <span·class="sd">·When·instantiating·a·DataSource·object,·use·the·filename·of·a</span>76 <span·class="sd">·When·instantiating·a·DataSource·object,·use·the·filename·of·a</span>
76 <span·class="sd">·GDAL-supported·data·source.··For·example,·a·SHP·file·or·a</span>77 <span·class="sd">·GDAL-supported·data·source.··For·example,·a·SHP·file·or·a</span>
Offset 118, 15 lines modifiedOffset 119, 15 lines modified
  
  
118 <span·class="c1">#·For·more·information,·see·the·OGR·C·API·documentation:</span>119 <span·class="c1">#·For·more·information,·see·the·OGR·C·API·documentation:</span>
119 <span·class="c1">#··https://gdal.org/api/vector_c_api.html</span>120 <span·class="c1">#··https://gdal.org/api/vector_c_api.html</span>
120 <span·class="c1">#</span>121 <span·class="c1">#</span>
121 <span·class="c1">#·The·OGR_DS_*·routines·are·relevant·here.</span>122 <span·class="c1">#·The·OGR_DS_*·routines·are·relevant·here.</span>
122 <div·class="viewcode-block"·id="DataSource">123 <div·class="viewcode-block"·id="DataSource">
123 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.DataSource">[docs]</a>124 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.DataSource">[documenti]</a>
124 <span·class="k">class</span>·<span·class="nc">DataSource</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>125 <span·class="k">class</span>·<span·class="nc">DataSource</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>
125 ····<span·class="s2">&quot;Wraps·an·OGR·Data·Source·object.&quot;</span>126 ····<span·class="s2">&quot;Wraps·an·OGR·Data·Source·object.&quot;</span>
126 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">destroy_ds</span>127 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">destroy_ds</span>
  
127 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">ds_input</span><span·class="p">,</span>·<span·class="n">ds_driver</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">write</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">):</span>128 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">ds_input</span><span·class="p">,</span>·<span·class="n">ds_driver</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">write</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">):</span>
128 ········<span·class="c1">#·The·write·flag.</span>129 ········<span·class="c1">#·The·write·flag.</span>
129 ········<span·class="k">if</span>·<span·class="n">write</span><span·class="p">:</span>130 ········<span·class="k">if</span>·<span·class="n">write</span><span·class="p">:</span>
Offset 208, 35 lines modifiedOffset 209, 35 lines modified
208 ······209 ······
209 ········210 ········
210 ··········<div·class="yui-b"·id="sidebar">211 ··········<div·class="yui-b"·id="sidebar">
211 ············212 ············
212 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">213 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
213 ········<div·class="sphinxsidebarwrapper">214 ········<div·class="sphinxsidebarwrapper">
214 <search·id="searchbox"·style="display:·none"·role="search">215 <search·id="searchbox"·style="display:·none"·role="search">
215 ··<h3·id="searchlabel">Quick·search</h3>216 ··<h3·id="searchlabel">Ricerca·veloce</h3>
216 ····<div·class="searchformwrapper">217 ····<div·class="searchformwrapper">
217 ····<form·class="search"·action="../../../../../search.html"·method="get">218 ····<form·class="search"·action="../../../../../search.html"·method="get">
218 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>219 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
219 ······<input·type="submit"·value="Go"·/>220 ······<input·type="submit"·value="Vai"·/>
220 ····</form>221 ····</form>
221 ····</div>222 ····</div>
222 </search>223 </search>
223 <script>document.getElementById('searchbox').style.display·=·"block"</script>224 <script>document.getElementById('searchbox').style.display·=·"block"</script>
224 ········</div>225 ········</div>
225 ······</div>226 ······</div>
226 ··············<h3>Last·update:</h3>227 ··············<h3>Last·update:</h3>
227 ··············<p·class="topless">Sep·03,·2024</p>228 ··············<p·class="topless">set·03,·2024</p>
228 ··········</div>229 ··········</div>
229 ········230 ········
230 ······231 ······
231 ····</div>232 ····</div>
  
232 ····<div·id="ft">233 ····<div·id="ft">
233 ······<div·class="nav">234 ······<div·class="nav">
234 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>235 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
235 ····</div>236 ····</div>
236 ··</div>237 ··</div>
  
237 ······<div·class="clearer"></div>238 ······<div·class="clearer"></div>
238 ····</div>239 ····</div>
239 ··</body>240 ··</body>
240 </html>241 </html>
2.1 KB
html2text {}
Max HTML report size reached
10.1 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/driver.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.driver·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.driver·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 42 lines modifiedOffset 51, 42 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-driver">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-driver">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.driver</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.driver</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">c_void_p</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">c_void_p</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.base</span>·<span·class="kn">import</span>·<span·class="n">GDALBase</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.base</span>·<span·class="kn">import</span>·<span·class="n">GDALBase</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.prototypes</span>·<span·class="kn">import</span>·<span·class="n">ds</span>·<span·class="k">as</span>·<span·class="n">vcapi</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.prototypes</span>·<span·class="kn">import</span>·<span·class="n">ds</span>·<span·class="k">as</span>·<span·class="n">vcapi</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.prototypes</span>·<span·class="kn">import</span>·<span·class="n">raster</span>·<span·class="k">as</span>·<span·class="n">rcapi</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.prototypes</span>·<span·class="kn">import</span>·<span·class="n">raster</span>·<span·class="k">as</span>·<span·class="n">rcapi</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.encoding</span>·<span·class="kn">import</span>·<span·class="n">force_bytes</span><span·class="p">,</span>·<span·class="n">force_str</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.encoding</span>·<span·class="kn">import</span>·<span·class="n">force_bytes</span><span·class="p">,</span>·<span·class="n">force_str</span>
  
  
77 <div·class="viewcode-block"·id="Driver">78 <div·class="viewcode-block"·id="Driver">
78 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Driver">[docs]</a>79 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Driver">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">Driver</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">Driver</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>
80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
81 <span·class="sd">····Wrap·a·GDAL/OGR·Data·Source·Driver.</span>82 <span·class="sd">····Wrap·a·GDAL/OGR·Data·Source·Driver.</span>
82 <span·class="sd">····For·more·information,·see·the·C·API·documentation:</span>83 <span·class="sd">····For·more·information,·see·the·C·API·documentation:</span>
83 <span·class="sd">····https://gdal.org/api/vector_c_api.html</span>84 <span·class="sd">····https://gdal.org/api/vector_c_api.html</span>
84 <span·class="sd">····https://gdal.org/api/raster_c_api.html</span>85 <span·class="sd">····https://gdal.org/api/raster_c_api.html</span>
85 <span·class="sd">····&quot;&quot;&quot;</span>86 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 160, 15 lines modifiedOffset 161, 15 lines modified
160 ········<span·class="c1">#·will·be·registered·over·and·over·again)</span>161 ········<span·class="c1">#·will·be·registered·over·and·over·again)</span>
161 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">():</span>162 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">():</span>
162 ············<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">register_all</span><span·class="p">()</span>163 ············<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">register_all</span><span·class="p">()</span>
163 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">():</span>164 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">():</span>
164 ············<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">register_all</span><span·class="p">()</span>165 ············<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">register_all</span><span·class="p">()</span>
  
165 <div·class="viewcode-block"·id="Driver.driver_count">166 <div·class="viewcode-block"·id="Driver.driver_count">
166 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Driver.driver_count">[docs]</a>167 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Driver.driver_count">[documenti]</a>
167 ····<span·class="nd">@classmethod</span>168 ····<span·class="nd">@classmethod</span>
168 ····<span·class="k">def</span>·<span·class="nf">driver_count</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>169 ····<span·class="k">def</span>·<span·class="nf">driver_count</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>
169 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>170 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
170 <span·class="sd">········Return·the·number·of·GDAL/OGR·data·source·drivers·registered.</span>171 <span·class="sd">········Return·the·number·of·GDAL/OGR·data·source·drivers·registered.</span>
171 <span·class="sd">········&quot;&quot;&quot;</span>172 <span·class="sd">········&quot;&quot;&quot;</span>
172 ········<span·class="k">return</span>·<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">()</span></div>173 ········<span·class="k">return</span>·<span·class="n">vcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">rcapi</span><span·class="o">.</span><span·class="n">get_driver_count</span><span·class="p">()</span></div>
  
Offset 188, 35 lines modifiedOffset 189, 35 lines modified
188 ······189 ······
189 ········190 ········
190 ··········<div·class="yui-b"·id="sidebar">191 ··········<div·class="yui-b"·id="sidebar">
191 ············192 ············
192 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">193 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
193 ········<div·class="sphinxsidebarwrapper">194 ········<div·class="sphinxsidebarwrapper">
194 <search·id="searchbox"·style="display:·none"·role="search">195 <search·id="searchbox"·style="display:·none"·role="search">
195 ··<h3·id="searchlabel">Quick·search</h3>196 ··<h3·id="searchlabel">Ricerca·veloce</h3>
196 ····<div·class="searchformwrapper">197 ····<div·class="searchformwrapper">
197 ····<form·class="search"·action="../../../../../search.html"·method="get">198 ····<form·class="search"·action="../../../../../search.html"·method="get">
198 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>199 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
199 ······<input·type="submit"·value="Go"·/>200 ······<input·type="submit"·value="Vai"·/>
200 ····</form>201 ····</form>
201 ····</div>202 ····</div>
202 </search>203 </search>
203 <script>document.getElementById('searchbox').style.display·=·"block"</script>204 <script>document.getElementById('searchbox').style.display·=·"block"</script>
204 ········</div>205 ········</div>
205 ······</div>206 ······</div>
206 ··············<h3>Last·update:</h3>207 ··············<h3>Last·update:</h3>
207 ··············<p·class="topless">Sep·03,·2024</p>208 ··············<p·class="topless">set·03,·2024</p>
208 ··········</div>209 ··········</div>
209 ········210 ········
210 ······211 ······
211 ····</div>212 ····</div>
  
212 ····<div·id="ft">213 ····<div·id="ft">
213 ······<div·class="nav">214 ······<div·class="nav">
214 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>215 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
215 ····</div>216 ····</div>
216 ··</div>217 ··</div>
  
217 ······<div·class="clearer"></div>218 ······<div·class="clearer"></div>
218 ····</div>219 ····</div>
219 ··</body>220 ··</body>
220 </html>221 </html>
2.4 KB
html2text {}
Max HTML report size reached
10.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/envelope.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.envelope·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.envelope·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-envelope">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-envelope">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.envelope</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.envelope</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">·The·GDAL/OGR·library·uses·an·Envelope·structure·to·hold·the·bounding</span>73 <span·class="sd">·The·GDAL/OGR·library·uses·an·Envelope·structure·to·hold·the·bounding</span>
73 <span·class="sd">·box·information·for·a·geometry.··The·envelope·(bounding·box)·contains</span>74 <span·class="sd">·box·information·for·a·geometry.··The·envelope·(bounding·box)·contains</span>
74 <span·class="sd">·two·pairs·of·coordinates,·one·for·the·lower·left·coordinate·and·one</span>75 <span·class="sd">·two·pairs·of·coordinates,·one·for·the·lower·left·coordinate·and·one</span>
75 <span·class="sd">·for·the·upper·right·coordinate:</span>76 <span·class="sd">·for·the·upper·right·coordinate:</span>
  
76 <span·class="sd">···························+----------o·Upper·right;·(max_x,·max_y)</span>77 <span·class="sd">···························+----------o·Upper·right;·(max_x,·max_y)</span>
Offset 98, 15 lines modifiedOffset 99, 15 lines modified
98 ········<span·class="p">(</span><span·class="s2">&quot;MaxX&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>99 ········<span·class="p">(</span><span·class="s2">&quot;MaxX&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>
99 ········<span·class="p">(</span><span·class="s2">&quot;MinY&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>100 ········<span·class="p">(</span><span·class="s2">&quot;MinY&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>
100 ········<span·class="p">(</span><span·class="s2">&quot;MaxY&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>101 ········<span·class="p">(</span><span·class="s2">&quot;MaxY&quot;</span><span·class="p">,</span>·<span·class="n">c_double</span><span·class="p">),</span>
101 ····<span·class="p">]</span>102 ····<span·class="p">]</span>
  
  
102 <div·class="viewcode-block"·id="Envelope">103 <div·class="viewcode-block"·id="Envelope">
103 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Envelope">[docs]</a>104 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Envelope">[documenti]</a>
104 <span·class="k">class</span>·<span·class="nc">Envelope</span><span·class="p">:</span>105 <span·class="k">class</span>·<span·class="nc">Envelope</span><span·class="p">:</span>
105 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>106 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
106 <span·class="sd">····The·Envelope·object·is·a·C·structure·that·contains·the·minimum·and</span>107 <span·class="sd">····The·Envelope·object·is·a·C·structure·that·contains·the·minimum·and</span>
107 <span·class="sd">····maximum·X,·Y·coordinates·for·a·rectangle·bounding·box.··The·naming</span>108 <span·class="sd">····maximum·X,·Y·coordinates·for·a·rectangle·bounding·box.··The·naming</span>
108 <span·class="sd">····of·the·variables·is·compatible·with·the·OGR·Envelope·structure.</span>109 <span·class="sd">····of·the·variables·is·compatible·with·the·OGR·Envelope·structure.</span>
109 <span·class="sd">····&quot;&quot;&quot;</span>110 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 174, 15 lines modifiedOffset 175, 15 lines modified
174 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span>·<span·class="o">=</span>·<span·class="n">OGREnvelope</span><span·class="p">()</span>175 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span>·<span·class="o">=</span>·<span·class="n">OGREnvelope</span><span·class="p">()</span>
175 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MinX</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>176 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MinX</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>
176 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MinY</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span>177 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MinY</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span>
177 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MaxX</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">]</span>178 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MaxX</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">2</span><span·class="p">]</span>
178 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MaxY</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span>179 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_envelope</span><span·class="o">.</span><span·class="n">MaxY</span>·<span·class="o">=</span>·<span·class="n">seq</span><span·class="p">[</span><span·class="mi">3</span><span·class="p">]</span>
  
179 <div·class="viewcode-block"·id="Envelope.expand_to_include">180 <div·class="viewcode-block"·id="Envelope.expand_to_include">
180 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Envelope.expand_to_include">[docs]</a>181 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.Envelope.expand_to_include">[documenti]</a>
181 ····<span·class="k">def</span>·<span·class="nf">expand_to_include</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">):</span>182 ····<span·class="k">def</span>·<span·class="nf">expand_to_include</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">):</span>
182 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>183 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
183 <span·class="sd">········Modify·the·envelope·to·expand·to·include·the·boundaries·of</span>184 <span·class="sd">········Modify·the·envelope·to·expand·to·include·the·boundaries·of</span>
184 <span·class="sd">········the·passed-in·2-tuple·(a·point),·4-tuple·(an·extent)·or</span>185 <span·class="sd">········the·passed-in·2-tuple·(a·point),·4-tuple·(an·extent)·or</span>
185 <span·class="sd">········envelope.</span>186 <span·class="sd">········envelope.</span>
186 <span·class="sd">········&quot;&quot;&quot;</span>187 <span·class="sd">········&quot;&quot;&quot;</span>
187 ········<span·class="c1">#·We·provide·a·number·of·different·signatures·for·this·method,</span>188 ········<span·class="c1">#·We·provide·a·number·of·different·signatures·for·this·method,</span>
Offset 288, 35 lines modifiedOffset 289, 35 lines modified
288 ······289 ······
289 ········290 ········
290 ··········<div·class="yui-b"·id="sidebar">291 ··········<div·class="yui-b"·id="sidebar">
291 ············292 ············
292 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">293 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
293 ········<div·class="sphinxsidebarwrapper">294 ········<div·class="sphinxsidebarwrapper">
294 <search·id="searchbox"·style="display:·none"·role="search">295 <search·id="searchbox"·style="display:·none"·role="search">
295 ··<h3·id="searchlabel">Quick·search</h3>296 ··<h3·id="searchlabel">Ricerca·veloce</h3>
296 ····<div·class="searchformwrapper">297 ····<div·class="searchformwrapper">
297 ····<form·class="search"·action="../../../../../search.html"·method="get">298 ····<form·class="search"·action="../../../../../search.html"·method="get">
298 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>299 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
299 ······<input·type="submit"·value="Go"·/>300 ······<input·type="submit"·value="Vai"·/>
300 ····</form>301 ····</form>
301 ····</div>302 ····</div>
302 </search>303 </search>
303 <script>document.getElementById('searchbox').style.display·=·"block"</script>304 <script>document.getElementById('searchbox').style.display·=·"block"</script>
304 ········</div>305 ········</div>
305 ······</div>306 ······</div>
306 ··············<h3>Last·update:</h3>307 ··············<h3>Last·update:</h3>
307 ··············<p·class="topless">Sep·03,·2024</p>308 ··············<p·class="topless">set·03,·2024</p>
308 ··········</div>309 ··········</div>
309 ········310 ········
310 ······311 ······
311 ····</div>312 ····</div>
  
312 ····<div·id="ft">313 ····<div·id="ft">
313 ······<div·class="nav">314 ······<div·class="nav">
314 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>315 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
315 ····</div>316 ····</div>
316 ··</div>317 ··</div>
  
317 ······<div·class="clearer"></div>318 ······<div·class="clearer"></div>
318 ····</div>319 ····</div>
319 ··</body>320 ··</body>
320 </html>321 </html>
2.57 KB
html2text {}
Max HTML report size reached
7.33 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/error.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.error·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.error·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 48 lines modifiedOffset 51, 48 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-error">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-error">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.error</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.error</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">·This·module·houses·the·GDAL·&amp;·SRS·Exception·objects,·and·the</span>73 <span·class="sd">·This·module·houses·the·GDAL·&amp;·SRS·Exception·objects,·and·the</span>
73 <span·class="sd">·check_err()·routine·which·checks·the·status·code·returned·by</span>74 <span·class="sd">·check_err()·routine·which·checks·the·status·code·returned·by</span>
74 <span·class="sd">·GDAL/OGR·methods.</span>75 <span·class="sd">·GDAL/OGR·methods.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
  
  
76 <span·class="c1">#·####·GDAL·&amp;·SRS·Exceptions·####</span>77 <span·class="c1">#·####·GDAL·&amp;·SRS·Exceptions·####</span>
77 <div·class="viewcode-block"·id="GDALException">78 <div·class="viewcode-block"·id="GDALException">
78 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALException">[docs]</a>79 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALException">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">GDALException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">GDALException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
80 ····<span·class="k">pass</span></div>81 ····<span·class="k">pass</span></div>
  
  
  
81 <div·class="viewcode-block"·id="SRSException">82 <div·class="viewcode-block"·id="SRSException">
82 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SRSException">[docs]</a>83 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SRSException">[documenti]</a>
83 <span·class="k">class</span>·<span·class="nc">SRSException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>84 <span·class="k">class</span>·<span·class="nc">SRSException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
84 ····<span·class="k">pass</span></div>85 ····<span·class="k">pass</span></div>
  
  
  
85 <span·class="c1">#·####·GDAL/OGR·error·checking·codes·and·routine·####</span>86 <span·class="c1">#·####·GDAL/OGR·error·checking·codes·and·routine·####</span>
  
Offset 146, 35 lines modifiedOffset 147, 35 lines modified
146 ······147 ······
147 ········148 ········
148 ··········<div·class="yui-b"·id="sidebar">149 ··········<div·class="yui-b"·id="sidebar">
149 ············150 ············
150 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">151 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
151 ········<div·class="sphinxsidebarwrapper">152 ········<div·class="sphinxsidebarwrapper">
152 <search·id="searchbox"·style="display:·none"·role="search">153 <search·id="searchbox"·style="display:·none"·role="search">
153 ··<h3·id="searchlabel">Quick·search</h3>154 ··<h3·id="searchlabel">Ricerca·veloce</h3>
154 ····<div·class="searchformwrapper">155 ····<div·class="searchformwrapper">
155 ····<form·class="search"·action="../../../../../search.html"·method="get">156 ····<form·class="search"·action="../../../../../search.html"·method="get">
156 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
157 ······<input·type="submit"·value="Go"·/>158 ······<input·type="submit"·value="Vai"·/>
158 ····</form>159 ····</form>
159 ····</div>160 ····</div>
160 </search>161 </search>
161 <script>document.getElementById('searchbox').style.display·=·"block"</script>162 <script>document.getElementById('searchbox').style.display·=·"block"</script>
162 ········</div>163 ········</div>
163 ······</div>164 ······</div>
164 ··············<h3>Last·update:</h3>165 ··············<h3>Last·update:</h3>
165 ··············<p·class="topless">Sep·03,·2024</p>166 ··············<p·class="topless">set·03,·2024</p>
166 ··········</div>167 ··········</div>
167 ········168 ········
168 ······169 ······
169 ····</div>170 ····</div>
  
170 ····<div·id="ft">171 ····<div·id="ft">
171 ······<div·class="nav">172 ······<div·class="nav">
172 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>173 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
173 ····</div>174 ····</div>
174 ··</div>175 ··</div>
  
175 ······<div·class="clearer"></div>176 ······<div·class="clearer"></div>
176 ····</div>177 ····</div>
177 ··</body>178 ··</body>
178 </html>179 </html>
1.78 KB
html2text {}
Max HTML report size reached
34.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/geometries.html
Max HTML report size reached
6.74 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/geomtype.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.geomtype·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.geomtype·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 36 lines modifiedOffset 51, 36 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-geomtype">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-geomtype">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.geomtype</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.geomtype</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.error</span>·<span·class="kn">import</span>·<span·class="n">GDALException</span>
  
  
72 <div·class="viewcode-block"·id="OGRGeomType">73 <div·class="viewcode-block"·id="OGRGeomType">
73 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.OGRGeomType">[docs]</a>74 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.OGRGeomType">[documenti]</a>
74 <span·class="k">class</span>·<span·class="nc">OGRGeomType</span><span·class="p">:</span>75 <span·class="k">class</span>·<span·class="nc">OGRGeomType</span><span·class="p">:</span>
75 ····<span·class="s2">&quot;Encapsulate·OGR·Geometry·Types.&quot;</span>76 ····<span·class="s2">&quot;Encapsulate·OGR·Geometry·Types.&quot;</span>
  
76 ····<span·class="n">wkb25bit</span>·<span·class="o">=</span>·<span·class="o">-</span><span·class="mi">2147483648</span>77 ····<span·class="n">wkb25bit</span>·<span·class="o">=</span>·<span·class="o">-</span><span·class="mi">2147483648</span>
  
77 ····<span·class="c1">#·Dictionary·of·acceptable·OGRwkbGeometryType·s·and·their·string·names.</span>78 ····<span·class="c1">#·Dictionary·of·acceptable·OGRwkbGeometryType·s·and·their·string·names.</span>
78 ····<span·class="n">_types</span>·<span·class="o">=</span>·<span·class="p">{</span>79 ····<span·class="n">_types</span>·<span·class="o">=</span>·<span·class="p">{</span>
Offset 177, 35 lines modifiedOffset 178, 35 lines modified
177 ······178 ······
178 ········179 ········
179 ··········<div·class="yui-b"·id="sidebar">180 ··········<div·class="yui-b"·id="sidebar">
180 ············181 ············
181 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">182 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
182 ········<div·class="sphinxsidebarwrapper">183 ········<div·class="sphinxsidebarwrapper">
183 <search·id="searchbox"·style="display:·none"·role="search">184 <search·id="searchbox"·style="display:·none"·role="search">
184 ··<h3·id="searchlabel">Quick·search</h3>185 ··<h3·id="searchlabel">Ricerca·veloce</h3>
185 ····<div·class="searchformwrapper">186 ····<div·class="searchformwrapper">
186 ····<form·class="search"·action="../../../../../search.html"·method="get">187 ····<form·class="search"·action="../../../../../search.html"·method="get">
187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
188 ······<input·type="submit"·value="Go"·/>189 ······<input·type="submit"·value="Vai"·/>
189 ····</form>190 ····</form>
190 ····</div>191 ····</div>
191 </search>192 </search>
192 <script>document.getElementById('searchbox').style.display·=·"block"</script>193 <script>document.getElementById('searchbox').style.display·=·"block"</script>
193 ········</div>194 ········</div>
194 ······</div>195 ······</div>
195 ··············<h3>Last·update:</h3>196 ··············<h3>Last·update:</h3>
196 ··············<p·class="topless">Sep·03,·2024</p>197 ··············<p·class="topless">set·03,·2024</p>
197 ··········</div>198 ··········</div>
198 ········199 ········
199 ······200 ······
200 ····</div>201 ····</div>
  
201 ····<div·id="ft">202 ····<div·id="ft">
202 ······<div·class="nav">203 ······<div·class="nav">
203 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>204 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
204 ····</div>205 ····</div>
205 ··</div>206 ··</div>
  
206 ······<div·class="clearer"></div>207 ······<div·class="clearer"></div>
207 ····</div>208 ····</div>
208 ··</body>209 ··</body>
209 </html>210 </html>
1.68 KB
html2text {}
Max HTML report size reached
12.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/raster/source.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../../">2 <html·lang="it"·data-content_root="../../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.raster.source·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.raster.source·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-raster-source">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-raster-source">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.raster.source</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.raster.source</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>
72 <span·class="kn">import</span>·<span·class="nn">os</span>73 <span·class="kn">import</span>·<span·class="nn">os</span>
73 <span·class="kn">import</span>·<span·class="nn">sys</span>74 <span·class="kn">import</span>·<span·class="nn">sys</span>
74 <span·class="kn">import</span>·<span·class="nn">uuid</span>75 <span·class="kn">import</span>·<span·class="nn">uuid</span>
75 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="p">(</span>76 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="p">(</span>
76 ····<span·class="n">addressof</span><span·class="p">,</span>77 ····<span·class="n">addressof</span><span·class="p">,</span>
77 ····<span·class="n">byref</span><span·class="p">,</span>78 ····<span·class="n">byref</span><span·class="p">,</span>
Offset 137, 15 lines modifiedOffset 138, 15 lines modified
137 ····<span·class="k">def</span>·<span·class="nf">y</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>138 ····<span·class="k">def</span>·<span·class="nf">y</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>
138 ········<span·class="n">gtf</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_raster</span><span·class="o">.</span><span·class="n">geotransform</span>139 ········<span·class="n">gtf</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_raster</span><span·class="o">.</span><span·class="n">geotransform</span>
139 ········<span·class="n">gtf</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">indices</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_prop</span><span·class="p">][</span><span·class="mi">1</span><span·class="p">]]</span>·<span·class="o">=</span>·<span·class="n">value</span>140 ········<span·class="n">gtf</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">indices</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_prop</span><span·class="p">][</span><span·class="mi">1</span><span·class="p">]]</span>·<span·class="o">=</span>·<span·class="n">value</span>
140 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_raster</span><span·class="o">.</span><span·class="n">geotransform</span>·<span·class="o">=</span>·<span·class="n">gtf</span>141 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_raster</span><span·class="o">.</span><span·class="n">geotransform</span>·<span·class="o">=</span>·<span·class="n">gtf</span>
  
  
141 <div·class="viewcode-block"·id="GDALRaster">142 <div·class="viewcode-block"·id="GDALRaster">
142 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster">[docs]</a>143 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster">[documenti]</a>
143 <span·class="k">class</span>·<span·class="nc">GDALRaster</span><span·class="p">(</span><span·class="n">GDALRasterBase</span><span·class="p">):</span>144 <span·class="k">class</span>·<span·class="nc">GDALRaster</span><span·class="p">(</span><span·class="n">GDALRasterBase</span><span·class="p">):</span>
144 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>145 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
145 <span·class="sd">····Wrap·a·raster·GDAL·Data·Source·object.</span>146 <span·class="sd">····Wrap·a·raster·GDAL·Data·Source·object.</span>
146 <span·class="sd">····&quot;&quot;&quot;</span>147 <span·class="sd">····&quot;&quot;&quot;</span>
  
147 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">close_ds</span>148 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">close_ds</span>
  
Offset 469, 15 lines modifiedOffset 470, 15 lines modified
469 ········<span·class="k">return</span>·<span·class="n">xmin</span><span·class="p">,</span>·<span·class="n">ymin</span><span·class="p">,</span>·<span·class="n">xmax</span><span·class="p">,</span>·<span·class="n">ymax</span>470 ········<span·class="k">return</span>·<span·class="n">xmin</span><span·class="p">,</span>·<span·class="n">ymin</span><span·class="p">,</span>·<span·class="n">xmax</span><span·class="p">,</span>·<span·class="n">ymax</span>
  
470 ····<span·class="nd">@property</span>471 ····<span·class="nd">@property</span>
471 ····<span·class="k">def</span>·<span·class="nf">bands</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>472 ····<span·class="k">def</span>·<span·class="nf">bands</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
472 ········<span·class="k">return</span>·<span·class="n">BandList</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>473 ········<span·class="k">return</span>·<span·class="n">BandList</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>
  
473 <div·class="viewcode-block"·id="GDALRaster.warp">474 <div·class="viewcode-block"·id="GDALRaster.warp">
474 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster.warp">[docs]</a>475 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster.warp">[documenti]</a>
475 ····<span·class="k">def</span>·<span·class="nf">warp</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">ds_input</span><span·class="p">,</span>·<span·class="n">resampling</span><span·class="o">=</span><span·class="s2">&quot;NearestNeighbour&quot;</span><span·class="p">,</span>·<span·class="n">max_error</span><span·class="o">=</span><span·class="mf">0.0</span><span·class="p">):</span>476 ····<span·class="k">def</span>·<span·class="nf">warp</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">ds_input</span><span·class="p">,</span>·<span·class="n">resampling</span><span·class="o">=</span><span·class="s2">&quot;NearestNeighbour&quot;</span><span·class="p">,</span>·<span·class="n">max_error</span><span·class="o">=</span><span·class="mf">0.0</span><span·class="p">):</span>
476 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>477 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
477 <span·class="sd">········Return·a·warped·GDALRaster·with·the·given·input·characteristics.</span>478 <span·class="sd">········Return·a·warped·GDALRaster·with·the·given·input·characteristics.</span>
  
478 <span·class="sd">········The·input·is·expected·to·be·a·dictionary·containing·the·parameters</span>479 <span·class="sd">········The·input·is·expected·to·be·a·dictionary·containing·the·parameters</span>
479 <span·class="sd">········of·the·target·raster.·Allowed·values·are·width,·height,·SRID,·origin,</span>480 <span·class="sd">········of·the·target·raster.·Allowed·values·are·width,·height,·SRID,·origin,</span>
480 <span·class="sd">········scale,·skew,·datatype,·driver,·and·name·(filename).</span>481 <span·class="sd">········scale,·skew,·datatype,·driver,·and·name·(filename).</span>
Offset 554, 15 lines modifiedOffset 555, 15 lines modified
554 ················<span·class="n">c_void_p</span><span·class="p">(),</span>555 ················<span·class="n">c_void_p</span><span·class="p">(),</span>
555 ················<span·class="n">c_void_p</span><span·class="p">(),</span>556 ················<span·class="n">c_void_p</span><span·class="p">(),</span>
556 ············<span·class="p">),</span>557 ············<span·class="p">),</span>
557 ············<span·class="n">write</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_write</span><span·class="p">,</span>558 ············<span·class="n">write</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_write</span><span·class="p">,</span>
558 ········<span·class="p">)</span>559 ········<span·class="p">)</span>
  
559 <div·class="viewcode-block"·id="GDALRaster.transform">560 <div·class="viewcode-block"·id="GDALRaster.transform">
560 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster.transform">[docs]</a>561 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.GDALRaster.transform">[documenti]</a>
561 ····<span·class="k">def</span>·<span·class="nf">transform</span><span·class="p">(</span>562 ····<span·class="k">def</span>·<span·class="nf">transform</span><span·class="p">(</span>
562 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">srs</span><span·class="p">,</span>·<span·class="n">driver</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">resampling</span><span·class="o">=</span><span·class="s2">&quot;NearestNeighbour&quot;</span><span·class="p">,</span>·<span·class="n">max_error</span><span·class="o">=</span><span·class="mf">0.0</span>563 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">srs</span><span·class="p">,</span>·<span·class="n">driver</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">resampling</span><span·class="o">=</span><span·class="s2">&quot;NearestNeighbour&quot;</span><span·class="p">,</span>·<span·class="n">max_error</span><span·class="o">=</span><span·class="mf">0.0</span>
563 ····<span·class="p">):</span>564 ····<span·class="p">):</span>
564 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>565 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
565 <span·class="sd">········Return·a·copy·of·this·raster·reprojected·into·the·given·spatial</span>566 <span·class="sd">········Return·a·copy·of·this·raster·reprojected·into·the·given·spatial</span>
566 <span·class="sd">········reference·system.</span>567 <span·class="sd">········reference·system.</span>
567 <span·class="sd">········&quot;&quot;&quot;</span>568 <span·class="sd">········&quot;&quot;&quot;</span>
Offset 629, 35 lines modifiedOffset 630, 35 lines modified
629 ······630 ······
630 ········631 ········
631 ··········<div·class="yui-b"·id="sidebar">632 ··········<div·class="yui-b"·id="sidebar">
632 ············633 ············
633 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">634 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
634 ········<div·class="sphinxsidebarwrapper">635 ········<div·class="sphinxsidebarwrapper">
635 <search·id="searchbox"·style="display:·none"·role="search">636 <search·id="searchbox"·style="display:·none"·role="search">
636 ··<h3·id="searchlabel">Quick·search</h3>637 ··<h3·id="searchlabel">Ricerca·veloce</h3>
637 ····<div·class="searchformwrapper">638 ····<div·class="searchformwrapper">
638 ····<form·class="search"·action="../../../../../../search.html"·method="get">639 ····<form·class="search"·action="../../../../../../search.html"·method="get">
639 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>640 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
640 ······<input·type="submit"·value="Go"·/>641 ······<input·type="submit"·value="Vai"·/>
641 ····</form>642 ····</form>
642 ····</div>643 ····</div>
643 </search>644 </search>
644 <script>document.getElementById('searchbox').style.display·=·"block"</script>645 <script>document.getElementById('searchbox').style.display·=·"block"</script>
645 ········</div>646 ········</div>
646 ······</div>647 ······</div>
647 ··············<h3>Last·update:</h3>648 ··············<h3>Last·update:</h3>
648 ··············<p·class="topless">Sep·03,·2024</p>649 ··············<p·class="topless">set·03,·2024</p>
649 ··········</div>650 ··········</div>
650 ········651 ········
651 ······652 ······
652 ····</div>653 ····</div>
Max diff block lines reached; 317/9909 bytes (3.20%) of diff not shown.
2.86 KB
html2text {}
Max HTML report size reached
31.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/gdal/srs.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.gdal.srs·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.gdal.srs·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-srs">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-gdal-srs">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.gdal.srs</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.gdal.srs</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">··The·Spatial·Reference·class,·represents·OGR·Spatial·Reference·objects.</span>73 <span·class="sd">··The·Spatial·Reference·class,·represents·OGR·Spatial·Reference·objects.</span>
  
73 <span·class="sd">··Example:</span>74 <span·class="sd">··Example:</span>
74 <span·class="sd">··&gt;&gt;&gt;·from·django.contrib.gis.gdal·import·SpatialReference</span>75 <span·class="sd">··&gt;&gt;&gt;·from·django.contrib.gis.gdal·import·SpatialReference</span>
75 <span·class="sd">··&gt;&gt;&gt;·srs·=·SpatialReference(&#39;WGS84&#39;)</span>76 <span·class="sd">··&gt;&gt;&gt;·srs·=·SpatialReference(&#39;WGS84&#39;)</span>
76 <span·class="sd">··&gt;&gt;&gt;·print(srs)</span>77 <span·class="sd">··&gt;&gt;&gt;·print(srs)</span>
Offset 111, 15 lines modifiedOffset 112, 15 lines modified
  
111 <span·class="k">class</span>·<span·class="nc">AxisOrder</span><span·class="p">(</span><span·class="n">IntEnum</span><span·class="p">):</span>112 <span·class="k">class</span>·<span·class="nc">AxisOrder</span><span·class="p">(</span><span·class="n">IntEnum</span><span·class="p">):</span>
112 ····<span·class="n">TRADITIONAL</span>·<span·class="o">=</span>·<span·class="mi">0</span>113 ····<span·class="n">TRADITIONAL</span>·<span·class="o">=</span>·<span·class="mi">0</span>
113 ····<span·class="n">AUTHORITY</span>·<span·class="o">=</span>·<span·class="mi">1</span>114 ····<span·class="n">AUTHORITY</span>·<span·class="o">=</span>·<span·class="mi">1</span>
  
  
114 <div·class="viewcode-block"·id="SpatialReference">115 <div·class="viewcode-block"·id="SpatialReference">
115 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference">[docs]</a>116 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference">[documenti]</a>
116 <span·class="k">class</span>·<span·class="nc">SpatialReference</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>117 <span·class="k">class</span>·<span·class="nc">SpatialReference</span><span·class="p">(</span><span·class="n">GDALBase</span><span·class="p">):</span>
117 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>118 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
118 <span·class="sd">····A·wrapper·for·the·OGRSpatialReference·object.·According·to·the·GDAL·web·site,</span>119 <span·class="sd">····A·wrapper·for·the·OGRSpatialReference·object.·According·to·the·GDAL·web·site,</span>
119 <span·class="sd">····the·SpatialReference·object·&quot;provide[s]·services·to·represent·coordinate</span>120 <span·class="sd">····the·SpatialReference·object·&quot;provide[s]·services·to·represent·coordinate</span>
120 <span·class="sd">····systems·(projections·and·datums)·and·to·transform·between·them.&quot;</span>121 <span·class="sd">····systems·(projections·and·datums)·and·to·transform·between·them.&quot;</span>
121 <span·class="sd">····&quot;&quot;&quot;</span>122 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 185, 15 lines modifiedOffset 186, 15 lines modified
185 ········<span·class="c1">#·Importing·from·either·the·user·input·string·or·an·integer·SRID.</span>186 ········<span·class="c1">#·Importing·from·either·the·user·input·string·or·an·integer·SRID.</span>
186 ········<span·class="k">if</span>·<span·class="n">srs_type</span>·<span·class="o">==</span>·<span·class="s2">&quot;user&quot;</span><span·class="p">:</span>187 ········<span·class="k">if</span>·<span·class="n">srs_type</span>·<span·class="o">==</span>·<span·class="s2">&quot;user&quot;</span><span·class="p">:</span>
187 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">import_user_input</span><span·class="p">(</span><span·class="n">srs_input</span><span·class="p">)</span>188 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">import_user_input</span><span·class="p">(</span><span·class="n">srs_input</span><span·class="p">)</span>
188 ········<span·class="k">elif</span>·<span·class="n">srs_type</span>·<span·class="o">==</span>·<span·class="s2">&quot;epsg&quot;</span><span·class="p">:</span>189 ········<span·class="k">elif</span>·<span·class="n">srs_type</span>·<span·class="o">==</span>·<span·class="s2">&quot;epsg&quot;</span><span·class="p">:</span>
189 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">import_epsg</span><span·class="p">(</span><span·class="n">srs_input</span><span·class="p">)</span>190 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">import_epsg</span><span·class="p">(</span><span·class="n">srs_input</span><span·class="p">)</span>
  
190 <div·class="viewcode-block"·id="SpatialReference.__getitem__">191 <div·class="viewcode-block"·id="SpatialReference.__getitem__">
191 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.__getitem__">[docs]</a>192 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.__getitem__">[documenti]</a>
192 ····<span·class="k">def</span>·<span·class="fm">__getitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>193 ····<span·class="k">def</span>·<span·class="fm">__getitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>
193 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>194 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
194 <span·class="sd">········Return·the·value·of·the·given·string·attribute·node,·None·if·the·node</span>195 <span·class="sd">········Return·the·value·of·the·given·string·attribute·node,·None·if·the·node</span>
195 <span·class="sd">········doesn&#39;t·exist.··Can·also·take·a·tuple·as·a·parameter,·(target,·child),</span>196 <span·class="sd">········doesn&#39;t·exist.··Can·also·take·a·tuple·as·a·parameter,·(target,·child),</span>
196 <span·class="sd">········where·child·is·the·index·of·the·attribute·in·the·WKT.··For·example:</span>197 <span·class="sd">········where·child·is·the·index·of·the·attribute·in·the·WKT.··For·example:</span>
  
197 <span·class="sd">········&gt;&gt;&gt;·wkt·=·&#39;GEOGCS[&quot;WGS·84&quot;,·DATUM[&quot;WGS_1984,·...·AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]&#39;</span>198 <span·class="sd">········&gt;&gt;&gt;·wkt·=·&#39;GEOGCS[&quot;WGS·84&quot;,·DATUM[&quot;WGS_1984,·...·AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]&#39;</span>
Offset 222, 76 lines modifiedOffset 223, 76 lines modified
  
222 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>223 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
223 ········<span·class="s2">&quot;Use·&#39;pretty&#39;·WKT.&quot;</span>224 ········<span·class="s2">&quot;Use·&#39;pretty&#39;·WKT.&quot;</span>
224 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pretty_wkt</span>225 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pretty_wkt</span>
  
225 ····<span·class="c1">#·####·SpatialReference·Methods·####</span>226 ····<span·class="c1">#·####·SpatialReference·Methods·####</span>
226 <div·class="viewcode-block"·id="SpatialReference.attr_value">227 <div·class="viewcode-block"·id="SpatialReference.attr_value">
227 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.attr_value">[docs]</a>228 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.attr_value">[documenti]</a>
228 ····<span·class="k">def</span>·<span·class="nf">attr_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">,</span>·<span·class="n">index</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">):</span>229 ····<span·class="k">def</span>·<span·class="nf">attr_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">,</span>·<span·class="n">index</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">):</span>
229 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>230 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
230 <span·class="sd">········The·attribute·value·for·the·given·target·node·(e.g.·&#39;PROJCS&#39;).·The·index</span>231 <span·class="sd">········The·attribute·value·for·the·given·target·node·(e.g.·&#39;PROJCS&#39;).·The·index</span>
231 <span·class="sd">········keyword·specifies·an·index·of·the·child·node·to·return.</span>232 <span·class="sd">········keyword·specifies·an·index·of·the·child·node·to·return.</span>
232 <span·class="sd">········&quot;&quot;&quot;</span>233 <span·class="sd">········&quot;&quot;&quot;</span>
233 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">target</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">index</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">):</span>234 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">target</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">index</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">):</span>
234 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span>235 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span>
235 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_attr_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">),</span>·<span·class="n">index</span><span·class="p">)</span></div>236 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_attr_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">),</span>·<span·class="n">index</span><span·class="p">)</span></div>
  
  
236 <div·class="viewcode-block"·id="SpatialReference.auth_name">237 <div·class="viewcode-block"·id="SpatialReference.auth_name">
237 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.auth_name">[docs]</a>238 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.auth_name">[documenti]</a>
238 ····<span·class="k">def</span>·<span·class="nf">auth_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>239 ····<span·class="k">def</span>·<span·class="nf">auth_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>
239 ········<span·class="s2">&quot;Return·the·authority·name·for·the·given·string·target·node.&quot;</span>240 ········<span·class="s2">&quot;Return·the·authority·name·for·the·given·string·target·node.&quot;</span>
240 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_auth_name</span><span·class="p">(</span>241 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_auth_name</span><span·class="p">(</span>
241 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">target</span>·<span·class="k">if</span>·<span·class="n">target</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">)</span>242 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">target</span>·<span·class="k">if</span>·<span·class="n">target</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">)</span>
242 ········<span·class="p">)</span></div>243 ········<span·class="p">)</span></div>
  
  
243 <div·class="viewcode-block"·id="SpatialReference.auth_code">244 <div·class="viewcode-block"·id="SpatialReference.auth_code">
244 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.auth_code">[docs]</a>245 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.auth_code">[documenti]</a>
245 ····<span·class="k">def</span>·<span·class="nf">auth_code</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>246 ····<span·class="k">def</span>·<span·class="nf">auth_code</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">target</span><span·class="p">):</span>
246 ········<span·class="s2">&quot;Return·the·authority·code·for·the·given·string·target·node.&quot;</span>247 ········<span·class="s2">&quot;Return·the·authority·code·for·the·given·string·target·node.&quot;</span>
247 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_auth_code</span><span·class="p">(</span>248 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">get_auth_code</span><span·class="p">(</span>
248 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">target</span>·<span·class="k">if</span>·<span·class="n">target</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">)</span>249 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">target</span>·<span·class="k">if</span>·<span·class="n">target</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">target</span><span·class="p">)</span>
249 ········<span·class="p">)</span></div>250 ········<span·class="p">)</span></div>
  
  
250 <div·class="viewcode-block"·id="SpatialReference.clone">251 <div·class="viewcode-block"·id="SpatialReference.clone">
251 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.clone">[docs]</a>252 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/gdal.html#django.contrib.gis.gdal.SpatialReference.clone">[documenti]</a>
252 ····<span·class="k">def</span>·<span·class="nf">clone</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>253 ····<span·class="k">def</span>·<span·class="nf">clone</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
253 ········<span·class="s2">&quot;Return·a·clone·of·this·SpatialReference·object.&quot;</span>254 ········<span·class="s2">&quot;Return·a·clone·of·this·SpatialReference·object.&quot;</span>
Max diff block lines reached; 12812/24939 bytes (51.37%) of diff not shown.
6.7 KB
html2text {}
Max HTML report size reached
11.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/collections.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.collections·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.collections·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 45 lines modifiedOffset 51, 45 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-collections">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-collections">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.collections</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.collections</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">·This·module·houses·the·Geometry·Collection·objects:</span>73 <span·class="sd">·This·module·houses·the·Geometry·Collection·objects:</span>
73 <span·class="sd">·GeometryCollection,·MultiPoint,·MultiLineString,·and·MultiPolygon</span>74 <span·class="sd">·GeometryCollection,·MultiPoint,·MultiLineString,·and·MultiPolygon</span>
74 <span·class="sd">&quot;&quot;&quot;</span>75 <span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">LinearGeometryMixin</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">LinearGeometryMixin</span>
77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="n">GEOM_PTR</span>78 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="n">GEOM_PTR</span>
78 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.linestring</span>·<span·class="kn">import</span>·<span·class="n">LinearRing</span><span·class="p">,</span>·<span·class="n">LineString</span>79 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.linestring</span>·<span·class="kn">import</span>·<span·class="n">LinearRing</span><span·class="p">,</span>·<span·class="n">LineString</span>
79 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.point</span>·<span·class="kn">import</span>·<span·class="n">Point</span>80 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.point</span>·<span·class="kn">import</span>·<span·class="n">Point</span>
80 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.polygon</span>·<span·class="kn">import</span>·<span·class="n">Polygon</span>81 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.polygon</span>·<span·class="kn">import</span>·<span·class="n">Polygon</span>
  
  
81 <div·class="viewcode-block"·id="GeometryCollection">82 <div·class="viewcode-block"·id="GeometryCollection">
82 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GeometryCollection">[docs]</a>83 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GeometryCollection">[documenti]</a>
83 <span·class="k">class</span>·<span·class="nc">GeometryCollection</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>84 <span·class="k">class</span>·<span·class="nc">GeometryCollection</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>
84 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">7</span>85 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">7</span>
  
85 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>86 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
86 ········<span·class="s2">&quot;Initialize·a·Geometry·Collection·from·a·sequence·of·Geometry·objects.&quot;</span>87 ········<span·class="s2">&quot;Initialize·a·Geometry·Collection·from·a·sequence·of·Geometry·objects.&quot;</span>
87 ········<span·class="c1">#·Checking·the·arguments</span>88 ········<span·class="c1">#·Checking·the·arguments</span>
88 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">args</span><span·class="p">)</span>·<span·class="o">==</span>·<span·class="mi">1</span><span·class="p">:</span>89 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">args</span><span·class="p">)</span>·<span·class="o">==</span>·<span·class="mi">1</span><span·class="p">:</span>
Offset 165, 31 lines modifiedOffset 166, 31 lines modified
  
165 ····<span·class="n">coords</span>·<span·class="o">=</span>·<span·class="nb">tuple</span></div>166 ····<span·class="n">coords</span>·<span·class="o">=</span>·<span·class="nb">tuple</span></div>
  
  
  
166 <span·class="c1">#·MultiPoint,·MultiLineString,·and·MultiPolygon·class·definitions.</span>167 <span·class="c1">#·MultiPoint,·MultiLineString,·and·MultiPolygon·class·definitions.</span>
167 <div·class="viewcode-block"·id="MultiPoint">168 <div·class="viewcode-block"·id="MultiPoint">
168 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiPoint">[docs]</a>169 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiPoint">[documenti]</a>
169 <span·class="k">class</span>·<span·class="nc">MultiPoint</span><span·class="p">(</span><span·class="n">GeometryCollection</span><span·class="p">):</span>170 <span·class="k">class</span>·<span·class="nc">MultiPoint</span><span·class="p">(</span><span·class="n">GeometryCollection</span><span·class="p">):</span>
170 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="n">Point</span>171 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="n">Point</span>
171 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">4</span></div>172 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">4</span></div>
  
  
  
172 <div·class="viewcode-block"·id="MultiLineString">173 <div·class="viewcode-block"·id="MultiLineString">
173 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiLineString">[docs]</a>174 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiLineString">[documenti]</a>
174 <span·class="k">class</span>·<span·class="nc">MultiLineString</span><span·class="p">(</span><span·class="n">LinearGeometryMixin</span><span·class="p">,</span>·<span·class="n">GeometryCollection</span><span·class="p">):</span>175 <span·class="k">class</span>·<span·class="nc">MultiLineString</span><span·class="p">(</span><span·class="n">LinearGeometryMixin</span><span·class="p">,</span>·<span·class="n">GeometryCollection</span><span·class="p">):</span>
175 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">LineString</span><span·class="p">,</span>·<span·class="n">LinearRing</span><span·class="p">)</span>176 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">LineString</span><span·class="p">,</span>·<span·class="n">LinearRing</span><span·class="p">)</span>
176 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">5</span></div>177 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">5</span></div>
  
  
  
177 <div·class="viewcode-block"·id="MultiPolygon">178 <div·class="viewcode-block"·id="MultiPolygon">
178 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiPolygon">[docs]</a>179 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.MultiPolygon">[documenti]</a>
179 <span·class="k">class</span>·<span·class="nc">MultiPolygon</span><span·class="p">(</span><span·class="n">GeometryCollection</span><span·class="p">):</span>180 <span·class="k">class</span>·<span·class="nc">MultiPolygon</span><span·class="p">(</span><span·class="n">GeometryCollection</span><span·class="p">):</span>
180 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="n">Polygon</span>181 ····<span·class="n">_allowed</span>·<span·class="o">=</span>·<span·class="n">Polygon</span>
181 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">6</span></div>182 ····<span·class="n">_typeid</span>·<span·class="o">=</span>·<span·class="mi">6</span></div>
  
  
  
182 <span·class="c1">#·Setting·the·allowed·types·here·since·GeometryCollection·is·defined·before</span>183 <span·class="c1">#·Setting·the·allowed·types·here·since·GeometryCollection·is·defined·before</span>
Offset 211, 35 lines modifiedOffset 212, 35 lines modified
211 ······212 ······
212 ········213 ········
213 ··········<div·class="yui-b"·id="sidebar">214 ··········<div·class="yui-b"·id="sidebar">
214 ············215 ············
215 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">216 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
216 ········<div·class="sphinxsidebarwrapper">217 ········<div·class="sphinxsidebarwrapper">
217 <search·id="searchbox"·style="display:·none"·role="search">218 <search·id="searchbox"·style="display:·none"·role="search">
218 ··<h3·id="searchlabel">Quick·search</h3>219 ··<h3·id="searchlabel">Ricerca·veloce</h3>
219 ····<div·class="searchformwrapper">220 ····<div·class="searchformwrapper">
220 ····<form·class="search"·action="../../../../../search.html"·method="get">221 ····<form·class="search"·action="../../../../../search.html"·method="get">
221 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>222 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
222 ······<input·type="submit"·value="Go"·/>223 ······<input·type="submit"·value="Vai"·/>
223 ····</form>224 ····</form>
224 ····</div>225 ····</div>
225 </search>226 </search>
226 <script>document.getElementById('searchbox').style.display·=·"block"</script>227 <script>document.getElementById('searchbox').style.display·=·"block"</script>
227 ········</div>228 ········</div>
228 ······</div>229 ······</div>
229 ··············<h3>Last·update:</h3>230 ··············<h3>Last·update:</h3>
230 ··············<p·class="topless">Sep·03,·2024</p>231 ··············<p·class="topless">set·03,·2024</p>
231 ··········</div>232 ··········</div>
232 ········233 ········
233 ······234 ······
234 ····</div>235 ····</div>
  
235 ····<div·id="ft">236 ····<div·id="ft">
Max diff block lines reached; 267/9111 bytes (2.93%) of diff not shown.
2.64 KB
html2text {}
Max HTML report size reached
6.02 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/error.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.error·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.error·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 33 lines modifiedOffset 51, 33 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-error">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-error">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.error</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.error</h1><div·class="highlight"><pre>
71 <div·class="viewcode-block"·id="GEOSException">72 <div·class="viewcode-block"·id="GEOSException">
72 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GEOSException">[docs]</a>73 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GEOSException">[documenti]</a>
73 <span></span><span·class="k">class</span>·<span·class="nc">GEOSException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>74 <span></span><span·class="k">class</span>·<span·class="nc">GEOSException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
74 ····<span·class="s2">&quot;The·base·GEOS·exception,·indicates·a·GEOS-related·error.&quot;</span>75 ····<span·class="s2">&quot;The·base·GEOS·exception,·indicates·a·GEOS-related·error.&quot;</span>
75 ····<span·class="k">pass</span></div>76 ····<span·class="k">pass</span></div>
  
76 </pre></div>77 </pre></div>
  
77 ··········</div>78 ··········</div>
Offset 85, 35 lines modifiedOffset 86, 35 lines modified
85 ······86 ······
86 ········87 ········
87 ··········<div·class="yui-b"·id="sidebar">88 ··········<div·class="yui-b"·id="sidebar">
88 ············89 ············
89 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">90 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
90 ········<div·class="sphinxsidebarwrapper">91 ········<div·class="sphinxsidebarwrapper">
91 <search·id="searchbox"·style="display:·none"·role="search">92 <search·id="searchbox"·style="display:·none"·role="search">
92 ··<h3·id="searchlabel">Quick·search</h3>93 ··<h3·id="searchlabel">Ricerca·veloce</h3>
93 ····<div·class="searchformwrapper">94 ····<div·class="searchformwrapper">
94 ····<form·class="search"·action="../../../../../search.html"·method="get">95 ····<form·class="search"·action="../../../../../search.html"·method="get">
95 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>96 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
96 ······<input·type="submit"·value="Go"·/>97 ······<input·type="submit"·value="Vai"·/>
97 ····</form>98 ····</form>
98 ····</div>99 ····</div>
99 </search>100 </search>
100 <script>document.getElementById('searchbox').style.display·=·"block"</script>101 <script>document.getElementById('searchbox').style.display·=·"block"</script>
101 ········</div>102 ········</div>
102 ······</div>103 ······</div>
103 ··············<h3>Last·update:</h3>104 ··············<h3>Last·update:</h3>
104 ··············<p·class="topless">Sep·03,·2024</p>105 ··············<p·class="topless">set·03,·2024</p>
105 ··········</div>106 ··········</div>
106 ········107 ········
107 ······108 ······
108 ····</div>109 ····</div>
  
109 ····<div·id="ft">110 ····<div·id="ft">
110 ······<div·class="nav">111 ······<div·class="nav">
111 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>112 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
112 ····</div>113 ····</div>
113 ··</div>114 ··</div>
  
114 ······<div·class="clearer"></div>115 ······<div·class="clearer"></div>
115 ····</div>116 ····</div>
116 ··</body>117 ··</body>
117 </html>118 </html>
1.28 KB
html2text {}
    
Offset 1, 15 lines modifiedOffset 1, 15 lines modified
1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6_.·_.d.d_.o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.t.t_.i.i_.o.o_.n.n·*\x8**\x8**\x8**\x8**\x8**\x8*1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.z.z_.i.i_.o.o_.n.n_.e.e_.·_.D.D_.j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6·*\x8**\x8**\x8**\x8**\x8**\x8*
2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s
3 _\x8u_\x8p3 _\x8u_\x8p
4 *\x8**\x8**\x8**\x8**\x8**\x8*·S.So.ou.ur.rc.ce.e·c.co.od.de.e·f.fo.or\x8r·d\x8dj\x8ja\x8an\x8ng\x8go\x8o.\x8.c\x8co\x8on\x8nt\x8tr\x8ri\x8ib\x8b.\x8.g\x8gi\x8is\x8s.\x8.g\x8ge\x8eo\x8os\x8s.\x8.e\x8er\x8rr\x8ro\x8or\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*4 *\x8**\x8**\x8**\x8**\x8**\x8*·C.Co.od.di.ic.ce.e·s.so.or.rg.ge.en.nt.te.e·p.pe.er\x8r·d\x8dj\x8ja\x8an\x8ng\x8go\x8o.\x8.c\x8co\x8on\x8nt\x8tr\x8ri\x8ib\x8b.\x8.g\x8gi\x8is\x8s.\x8.g\x8ge\x8eo\x8os\x8s.\x8.e\x8er\x8rr\x8ro\x8or\x8r·*\x8**\x8**\x8**\x8**\x8**\x8*
  
5 _\x8[_\x8d_\x8o_\x8c_\x8s_\x8]5 _\x8[_\x8d_\x8o_\x8c_\x8u_.m_.e_.n_.t_.i_\x8]
6 class·GEOSException(Exception):6 class·GEOSException(Exception):
7 ····"The·base·GEOS·exception,·indicates·a·GEOS-related·error."7 ····"The·base·GEOS·exception,·indicates·a·GEOS-related·error."
8 ····pass8 ····pass
  
9 *\x8**\x8**\x8**\x8*·Q.Qu.ui.ic.ck.k·s.se.ea.ar.rc.ch.h·*\x8**\x8**\x8**\x8*9 *\x8**\x8**\x8**\x8*·R.Ri.ic.ce.er.rc.ca.a·v.ve.el.lo.oc.ce.e·*\x8**\x8**\x8**\x8*
10 [q···················][Go]10 [q···················][Vai]
11 *\x8**\x8**\x8**\x8*·L\x8La\x8as\x8st\x8t·u\x8up\x8pd\x8da\x8at\x8te\x8e:\x8:·*\x8**\x8**\x8**\x8*11 *\x8**\x8**\x8**\x8*·L\x8La\x8as\x8st\x8t·u\x8up\x8pd\x8da\x8at\x8te\x8e:\x8:·*\x8**\x8**\x8**\x8*
12 Sep·03,·202412 set·03,·2024
13 _\x8u_\x8p13 _\x8u_\x8p
8.31 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/factory.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.factory·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.factory·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 36 lines modifiedOffset 51, 36 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-factory">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-factory">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.factory</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.factory</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">hex_regex</span><span·class="p">,</span>·<span·class="n">wkt_regex</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">hex_regex</span><span·class="p">,</span>·<span·class="n">wkt_regex</span>
  
  
72 <div·class="viewcode-block"·id="fromfile">73 <div·class="viewcode-block"·id="fromfile">
73 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.fromfile">[docs]</a>74 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.fromfile">[documenti]</a>
74 <span·class="k">def</span>·<span·class="nf">fromfile</span><span·class="p">(</span><span·class="n">file_h</span><span·class="p">):</span>75 <span·class="k">def</span>·<span·class="nf">fromfile</span><span·class="p">(</span><span·class="n">file_h</span><span·class="p">):</span>
75 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="sd">····Given·a·string·file·name,·returns·a·GEOSGeometry.·The·file·may·contain·WKB,</span>77 <span·class="sd">····Given·a·string·file·name,·returns·a·GEOSGeometry.·The·file·may·contain·WKB,</span>
77 <span·class="sd">····WKT,·or·HEX.</span>78 <span·class="sd">····WKT,·or·HEX.</span>
78 <span·class="sd">····&quot;&quot;&quot;</span>79 <span·class="sd">····&quot;&quot;&quot;</span>
79 ····<span·class="c1">#·If·given·a·file·name,·get·a·real·handle.</span>80 ····<span·class="c1">#·If·given·a·file·name,·get·a·real·handle.</span>
80 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">file_h</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">):</span>81 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">file_h</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">):</span>
Offset 101, 15 lines modifiedOffset 102, 15 lines modified
101 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="n">buf</span><span·class="p">)</span>102 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="n">buf</span><span·class="p">)</span>
  
102 ····<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">memoryview</span><span·class="p">(</span><span·class="n">buf</span><span·class="p">))</span></div>103 ····<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">memoryview</span><span·class="p">(</span><span·class="n">buf</span><span·class="p">))</span></div>
  
  
  
103 <div·class="viewcode-block"·id="fromstr">104 <div·class="viewcode-block"·id="fromstr">
104 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.fromstr">[docs]</a>105 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.fromstr">[documenti]</a>
105 <span·class="k">def</span>·<span·class="nf">fromstr</span><span·class="p">(</span><span·class="n">string</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>106 <span·class="k">def</span>·<span·class="nf">fromstr</span><span·class="p">(</span><span·class="n">string</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
106 ····<span·class="s2">&quot;Given·a·string·value,·return·a·GEOSGeometry·object.&quot;</span>107 ····<span·class="s2">&quot;Given·a·string·value,·return·a·GEOSGeometry·object.&quot;</span>
107 ····<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="n">string</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>108 ····<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="n">string</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
108 </pre></div>109 </pre></div>
  
109 ··········</div>110 ··········</div>
Offset 118, 35 lines modifiedOffset 119, 35 lines modified
118 ······119 ······
119 ········120 ········
120 ··········<div·class="yui-b"·id="sidebar">121 ··········<div·class="yui-b"·id="sidebar">
121 ············122 ············
122 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">123 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
123 ········<div·class="sphinxsidebarwrapper">124 ········<div·class="sphinxsidebarwrapper">
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../../../../../search.html"·method="get">128 ····<form·class="search"·action="../../../../../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
144 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>145 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
145 ····</div>146 ····</div>
146 ··</div>147 ··</div>
  
147 ······<div·class="clearer"></div>148 ······<div·class="clearer"></div>
148 ····</div>149 ····</div>
149 ··</body>150 ··</body>
150 </html>151 </html>
1.74 KB
html2text {}
Max HTML report size reached
8.22 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/geometry.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.geometry·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.geometry·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-geometry">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-geometry">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.geometry</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.geometry</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">·This·module·contains·the·&#39;base&#39;·GEOSGeometry·object·--·all·GEOS·Geometries</span>73 <span·class="sd">·This·module·contains·the·&#39;base&#39;·GEOSGeometry·object·--·all·GEOS·Geometries</span>
73 <span·class="sd">·inherit·from·this·object.</span>74 <span·class="sd">·inherit·from·this·object.</span>
74 <span·class="sd">&quot;&quot;&quot;</span>75 <span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="kn">import</span>·<span·class="nn">re</span>76 <span·class="kn">import</span>·<span·class="nn">re</span>
76 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">addressof</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">,</span>·<span·class="n">c_double</span>77 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">addressof</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">,</span>·<span·class="n">c_double</span>
  
Offset 777, 15 lines modifiedOffset 778, 15 lines modified
777 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>778 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
778 <span·class="sd">········Return·whether·or·not·this·Geometry·is·closed.</span>779 <span·class="sd">········Return·whether·or·not·this·Geometry·is·closed.</span>
779 <span·class="sd">········&quot;&quot;&quot;</span>780 <span·class="sd">········&quot;&quot;&quot;</span>
780 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">geos_isclosed</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">)</span>781 ········<span·class="k">return</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">geos_isclosed</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">)</span>
  
  
781 <div·class="viewcode-block"·id="GEOSGeometry">782 <div·class="viewcode-block"·id="GEOSGeometry">
782 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GEOSGeometry">[docs]</a>783 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.GEOSGeometry">[documenti]</a>
783 <span·class="nd">@deconstructible</span>784 <span·class="nd">@deconstructible</span>
784 <span·class="k">class</span>·<span·class="nc">GEOSGeometry</span><span·class="p">(</span><span·class="n">GEOSGeometryBase</span><span·class="p">,</span>·<span·class="n">ListMixin</span><span·class="p">):</span>785 <span·class="k">class</span>·<span·class="nc">GEOSGeometry</span><span·class="p">(</span><span·class="n">GEOSGeometryBase</span><span·class="p">,</span>·<span·class="n">ListMixin</span><span·class="p">):</span>
785 ····<span·class="s2">&quot;A·class·that,·generally,·encapsulates·a·GEOS·geometry.&quot;</span>786 ····<span·class="s2">&quot;A·class·that,·generally,·encapsulates·a·GEOS·geometry.&quot;</span>
  
786 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geo_input</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>787 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geo_input</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
787 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>788 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
788 <span·class="sd">········The·base·constructor·for·GEOS·geometry·objects.·It·may·take·the</span>789 <span·class="sd">········The·base·constructor·for·GEOS·geometry·objects.·It·may·take·the</span>
Offset 853, 35 lines modifiedOffset 854, 35 lines modified
853 ······854 ······
854 ········855 ········
855 ··········<div·class="yui-b"·id="sidebar">856 ··········<div·class="yui-b"·id="sidebar">
856 ············857 ············
857 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">858 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
858 ········<div·class="sphinxsidebarwrapper">859 ········<div·class="sphinxsidebarwrapper">
859 <search·id="searchbox"·style="display:·none"·role="search">860 <search·id="searchbox"·style="display:·none"·role="search">
860 ··<h3·id="searchlabel">Quick·search</h3>861 ··<h3·id="searchlabel">Ricerca·veloce</h3>
861 ····<div·class="searchformwrapper">862 ····<div·class="searchformwrapper">
862 ····<form·class="search"·action="../../../../../search.html"·method="get">863 ····<form·class="search"·action="../../../../../search.html"·method="get">
863 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>864 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
864 ······<input·type="submit"·value="Go"·/>865 ······<input·type="submit"·value="Vai"·/>
865 ····</form>866 ····</form>
866 ····</div>867 ····</div>
867 </search>868 </search>
868 <script>document.getElementById('searchbox').style.display·=·"block"</script>869 <script>document.getElementById('searchbox').style.display·=·"block"</script>
869 ········</div>870 ········</div>
870 ······</div>871 ······</div>
871 ··············<h3>Last·update:</h3>872 ··············<h3>Last·update:</h3>
872 ··············<p·class="topless">Sep·03,·2024</p>873 ··············<p·class="topless">set·03,·2024</p>
873 ··········</div>874 ··········</div>
874 ········875 ········
875 ······876 ······
876 ····</div>877 ····</div>
  
877 ····<div·id="ft">878 ····<div·id="ft">
878 ······<div·class="nav">879 ······<div·class="nav">
879 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>880 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
880 ····</div>881 ····</div>
881 ··</div>882 ··</div>
  
882 ······<div·class="clearer"></div>883 ······<div·class="clearer"></div>
883 ····</div>884 ····</div>
884 ··</body>885 ··</body>
885 </html>886 </html>
1.97 KB
html2text {}
Max HTML report size reached
9.17 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/io.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.io·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.io·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-io">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-io">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.io</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.io</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Module·that·holds·classes·for·performing·I/O·operations·on·GEOS·geometry</span>73 <span·class="sd">Module·that·holds·classes·for·performing·I/O·operations·on·GEOS·geometry</span>
73 <span·class="sd">objects.··Specifically,·this·has·Python·implementations·of·WKB/WKT</span>74 <span·class="sd">objects.··Specifically,·this·has·Python·implementations·of·WKB/WKT</span>
74 <span·class="sd">reader·and·writer·classes.</span>75 <span·class="sd">reader·and·writer·classes.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>
77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.prototypes.io</span>·<span·class="kn">import</span>·<span·class="p">(</span>78 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.prototypes.io</span>·<span·class="kn">import</span>·<span·class="p">(</span>
Offset 85, 24 lines modifiedOffset 86, 24 lines modified
85 <span·class="p">)</span>86 <span·class="p">)</span>
  
86 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;WKBWriter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKTWriter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKBReader&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKTReader&quot;</span><span·class="p">]</span>87 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;WKBWriter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKTWriter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKBReader&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;WKTReader&quot;</span><span·class="p">]</span>
  
  
87 <span·class="c1">#·Public·classes·for·(WKB|WKT)Reader,·which·return·GEOSGeometry</span>88 <span·class="c1">#·Public·classes·for·(WKB|WKT)Reader,·which·return·GEOSGeometry</span>
88 <div·class="viewcode-block"·id="WKBReader">89 <div·class="viewcode-block"·id="WKBReader">
89 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBReader">[docs]</a>90 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBReader">[documenti]</a>
90 <span·class="k">class</span>·<span·class="nc">WKBReader</span><span·class="p">(</span><span·class="n">_WKBReader</span><span·class="p">):</span>91 <span·class="k">class</span>·<span·class="nc">WKBReader</span><span·class="p">(</span><span·class="n">_WKBReader</span><span·class="p">):</span>
91 ····<span·class="k">def</span>·<span·class="nf">read</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">wkb</span><span·class="p">):</span>92 ····<span·class="k">def</span>·<span·class="nf">read</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">wkb</span><span·class="p">):</span>
92 ········<span·class="s2">&quot;Return·a·GEOSGeometry·for·the·given·WKB·buffer.&quot;</span>93 ········<span·class="s2">&quot;Return·a·GEOSGeometry·for·the·given·WKB·buffer.&quot;</span>
93 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">wkb</span><span·class="p">))</span></div>94 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">wkb</span><span·class="p">))</span></div>
  
  
  
94 <div·class="viewcode-block"·id="WKTReader">95 <div·class="viewcode-block"·id="WKTReader">
95 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTReader">[docs]</a>96 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTReader">[documenti]</a>
96 <span·class="k">class</span>·<span·class="nc">WKTReader</span><span·class="p">(</span><span·class="n">_WKTReader</span><span·class="p">):</span>97 <span·class="k">class</span>·<span·class="nc">WKTReader</span><span·class="p">(</span><span·class="n">_WKTReader</span><span·class="p">):</span>
97 ····<span·class="k">def</span>·<span·class="nf">read</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">wkt</span><span·class="p">):</span>98 ····<span·class="k">def</span>·<span·class="nf">read</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">wkt</span><span·class="p">):</span>
98 ········<span·class="s2">&quot;Return·a·GEOSGeometry·for·the·given·WKT·string.&quot;</span>99 ········<span·class="s2">&quot;Return·a·GEOSGeometry·for·the·given·WKT·string.&quot;</span>
99 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">wkt</span><span·class="p">))</span></div>100 ········<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">wkt</span><span·class="p">))</span></div>
  
100 </pre></div>101 </pre></div>
  
Offset 112, 35 lines modifiedOffset 113, 35 lines modified
112 ······113 ······
113 ········114 ········
114 ··········<div·class="yui-b"·id="sidebar">115 ··········<div·class="yui-b"·id="sidebar">
115 ············116 ············
116 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">117 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
117 ········<div·class="sphinxsidebarwrapper">118 ········<div·class="sphinxsidebarwrapper">
118 <search·id="searchbox"·style="display:·none"·role="search">119 <search·id="searchbox"·style="display:·none"·role="search">
119 ··<h3·id="searchlabel">Quick·search</h3>120 ··<h3·id="searchlabel">Ricerca·veloce</h3>
120 ····<div·class="searchformwrapper">121 ····<div·class="searchformwrapper">
121 ····<form·class="search"·action="../../../../../search.html"·method="get">122 ····<form·class="search"·action="../../../../../search.html"·method="get">
122 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>123 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
123 ······<input·type="submit"·value="Go"·/>124 ······<input·type="submit"·value="Vai"·/>
124 ····</form>125 ····</form>
125 ····</div>126 ····</div>
126 </search>127 </search>
127 <script>document.getElementById('searchbox').style.display·=·"block"</script>128 <script>document.getElementById('searchbox').style.display·=·"block"</script>
128 ········</div>129 ········</div>
129 ······</div>130 ······</div>
130 ··············<h3>Last·update:</h3>131 ··············<h3>Last·update:</h3>
131 ··············<p·class="topless">Sep·03,·2024</p>132 ··············<p·class="topless">set·03,·2024</p>
132 ··········</div>133 ··········</div>
133 ········134 ········
134 ······135 ······
135 ····</div>136 ····</div>
  
136 ····<div·id="ft">137 ····<div·id="ft">
137 ······<div·class="nav">138 ······<div·class="nav">
138 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>139 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
139 ····</div>140 ····</div>
140 ··</div>141 ··</div>
  
141 ······<div·class="clearer"></div>142 ······<div·class="clearer"></div>
142 ····</div>143 ····</div>
143 ··</body>144 ··</body>
144 </html>145 </html>
1.98 KB
html2text {}
Max HTML report size reached
10.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/linestring.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.linestring·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.linestring·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-linestring">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-linestring">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.linestring</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.linestring</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.coordseq</span>·<span·class="kn">import</span>·<span·class="n">GEOSCoordSeq</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.coordseq</span>·<span·class="kn">import</span>·<span·class="n">GEOSCoordSeq</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.error</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.error</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">LinearGeometryMixin</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">LinearGeometryMixin</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.point</span>·<span·class="kn">import</span>·<span·class="n">Point</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.point</span>·<span·class="kn">import</span>·<span·class="n">Point</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">numpy</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">numpy</span>
  
  
77 <div·class="viewcode-block"·id="LineString">78 <div·class="viewcode-block"·id="LineString">
78 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.LineString">[docs]</a>79 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.LineString">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">LineString</span><span·class="p">(</span><span·class="n">LinearGeometryMixin</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">LineString</span><span·class="p">(</span><span·class="n">LinearGeometryMixin</span><span·class="p">,</span>·<span·class="n">GEOSGeometry</span><span·class="p">):</span>
80 ····<span·class="n">_init_func</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">create_linestring</span>81 ····<span·class="n">_init_func</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">create_linestring</span>
81 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">2</span>82 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">2</span>
82 ····<span·class="n">has_cs</span>·<span·class="o">=</span>·<span·class="kc">True</span>83 ····<span·class="n">has_cs</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
84 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>85 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
Offset 255, 15 lines modifiedOffset 256, 15 lines modified
255 ········<span·class="k">else</span><span·class="p">:</span>256 ········<span·class="k">else</span><span·class="p">:</span>
256 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_listarr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_cs</span><span·class="o">.</span><span·class="n">getZ</span><span·class="p">)</span></div>257 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_listarr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_cs</span><span·class="o">.</span><span·class="n">getZ</span><span·class="p">)</span></div>
  
  
  
257 <span·class="c1">#·LinearRings·are·LineStrings·used·within·Polygons.</span>258 <span·class="c1">#·LinearRings·are·LineStrings·used·within·Polygons.</span>
258 <div·class="viewcode-block"·id="LinearRing">259 <div·class="viewcode-block"·id="LinearRing">
259 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.LinearRing">[docs]</a>260 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.LinearRing">[documenti]</a>
260 <span·class="k">class</span>·<span·class="nc">LinearRing</span><span·class="p">(</span><span·class="n">LineString</span><span·class="p">):</span>261 <span·class="k">class</span>·<span·class="nc">LinearRing</span><span·class="p">(</span><span·class="n">LineString</span><span·class="p">):</span>
261 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">4</span>262 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">4</span>
262 ····<span·class="n">_init_func</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">create_linearring</span>263 ····<span·class="n">_init_func</span>·<span·class="o">=</span>·<span·class="n">capi</span><span·class="o">.</span><span·class="n">create_linearring</span>
  
263 ····<span·class="nd">@property</span>264 ····<span·class="nd">@property</span>
264 ····<span·class="k">def</span>·<span·class="nf">is_counterclockwise</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>265 ····<span·class="k">def</span>·<span·class="nf">is_counterclockwise</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
265 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">empty</span><span·class="p">:</span>266 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">empty</span><span·class="p">:</span>
Offset 278, 35 lines modifiedOffset 279, 35 lines modified
278 ······279 ······
279 ········280 ········
280 ··········<div·class="yui-b"·id="sidebar">281 ··········<div·class="yui-b"·id="sidebar">
281 ············282 ············
282 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">283 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
283 ········<div·class="sphinxsidebarwrapper">284 ········<div·class="sphinxsidebarwrapper">
284 <search·id="searchbox"·style="display:·none"·role="search">285 <search·id="searchbox"·style="display:·none"·role="search">
285 ··<h3·id="searchlabel">Quick·search</h3>286 ··<h3·id="searchlabel">Ricerca·veloce</h3>
286 ····<div·class="searchformwrapper">287 ····<div·class="searchformwrapper">
287 ····<form·class="search"·action="../../../../../search.html"·method="get">288 ····<form·class="search"·action="../../../../../search.html"·method="get">
288 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>289 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
289 ······<input·type="submit"·value="Go"·/>290 ······<input·type="submit"·value="Vai"·/>
290 ····</form>291 ····</form>
291 ····</div>292 ····</div>
292 </search>293 </search>
293 <script>document.getElementById('searchbox').style.display·=·"block"</script>294 <script>document.getElementById('searchbox').style.display·=·"block"</script>
294 ········</div>295 ········</div>
295 ······</div>296 ······</div>
296 ··············<h3>Last·update:</h3>297 ··············<h3>Last·update:</h3>
297 ··············<p·class="topless">Sep·03,·2024</p>298 ··············<p·class="topless">set·03,·2024</p>
298 ··········</div>299 ··········</div>
299 ········300 ········
300 ······301 ······
301 ····</div>302 ····</div>
  
302 ····<div·id="ft">303 ····<div·id="ft">
303 ······<div·class="nav">304 ······<div·class="nav">
304 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>305 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
305 ····</div>306 ····</div>
306 ··</div>307 ··</div>
  
307 ······<div·class="clearer"></div>308 ······<div·class="clearer"></div>
308 ····</div>309 ····</div>
309 ··</body>310 ··</body>
310 </html>311 </html>
2.22 KB
html2text {}
Max HTML report size reached
7.93 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/point.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.point·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.point·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-point">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-point">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.point</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.point</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">c_uint</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">c_uint</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">gdal</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis</span>·<span·class="kn">import</span>·<span·class="n">gdal</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.error</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.error</span>·<span·class="kn">import</span>·<span·class="n">GEOSException</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>
  
  
76 <div·class="viewcode-block"·id="Point">77 <div·class="viewcode-block"·id="Point">
77 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Point">[docs]</a>78 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Point">[documenti]</a>
78 <span·class="k">class</span>·<span·class="nc">Point</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>79 <span·class="k">class</span>·<span·class="nc">Point</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>
79 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">2</span>80 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">2</span>
80 ····<span·class="n">_maxlength</span>·<span·class="o">=</span>·<span·class="mi">3</span>81 ····<span·class="n">_maxlength</span>·<span·class="o">=</span>·<span·class="mi">3</span>
81 ····<span·class="n">has_cs</span>·<span·class="o">=</span>·<span·class="kc">True</span>82 ····<span·class="n">has_cs</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
82 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">x</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">x</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">y</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">z</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
83 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>84 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
Offset 244, 35 lines modifiedOffset 245, 35 lines modified
244 ······245 ······
245 ········246 ········
246 ··········<div·class="yui-b"·id="sidebar">247 ··········<div·class="yui-b"·id="sidebar">
247 ············248 ············
248 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">249 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
249 ········<div·class="sphinxsidebarwrapper">250 ········<div·class="sphinxsidebarwrapper">
250 <search·id="searchbox"·style="display:·none"·role="search">251 <search·id="searchbox"·style="display:·none"·role="search">
251 ··<h3·id="searchlabel">Quick·search</h3>252 ··<h3·id="searchlabel">Ricerca·veloce</h3>
252 ····<div·class="searchformwrapper">253 ····<div·class="searchformwrapper">
253 ····<form·class="search"·action="../../../../../search.html"·method="get">254 ····<form·class="search"·action="../../../../../search.html"·method="get">
254 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>255 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
255 ······<input·type="submit"·value="Go"·/>256 ······<input·type="submit"·value="Vai"·/>
256 ····</form>257 ····</form>
257 ····</div>258 ····</div>
258 </search>259 </search>
259 <script>document.getElementById('searchbox').style.display·=·"block"</script>260 <script>document.getElementById('searchbox').style.display·=·"block"</script>
260 ········</div>261 ········</div>
261 ······</div>262 ······</div>
262 ··············<h3>Last·update:</h3>263 ··············<h3>Last·update:</h3>
263 ··············<p·class="topless">Sep·03,·2024</p>264 ··············<p·class="topless">set·03,·2024</p>
264 ··········</div>265 ··········</div>
265 ········266 ········
266 ······267 ······
267 ····</div>268 ····</div>
  
268 ····<div·id="ft">269 ····<div·id="ft">
269 ······<div·class="nav">270 ······<div·class="nav">
270 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>271 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
271 ····</div>272 ····</div>
272 ··</div>273 ··</div>
  
273 ······<div·class="clearer"></div>274 ······<div·class="clearer"></div>
274 ····</div>275 ····</div>
275 ··</body>276 ··</body>
276 </html>277 </html>
1.77 KB
html2text {}
Max HTML report size reached
10.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/polygon.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.polygon·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.polygon·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 39 lines modifiedOffset 51, 39 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-polygon">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-polygon">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.polygon</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.polygon</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">prototypes</span>·<span·class="k">as</span>·<span·class="n">capi</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.geometry</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span>
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="n">GEOM_PTR</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="n">GEOM_PTR</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.linestring</span>·<span·class="kn">import</span>·<span·class="n">LinearRing</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.linestring</span>·<span·class="kn">import</span>·<span·class="n">LinearRing</span>
  
  
75 <div·class="viewcode-block"·id="Polygon">76 <div·class="viewcode-block"·id="Polygon">
76 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Polygon">[docs]</a>77 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Polygon">[documenti]</a>
77 <span·class="k">class</span>·<span·class="nc">Polygon</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>78 <span·class="k">class</span>·<span·class="nc">Polygon</span><span·class="p">(</span><span·class="n">GEOSGeometry</span><span·class="p">):</span>
78 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">1</span>79 ····<span·class="n">_minlength</span>·<span·class="o">=</span>·<span·class="mi">1</span>
  
79 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>80 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
80 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>81 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
81 <span·class="sd">········Initialize·on·an·exterior·ring·and·a·sequence·of·holes·(both</span>82 <span·class="sd">········Initialize·on·an·exterior·ring·and·a·sequence·of·holes·(both</span>
82 <span·class="sd">········instances·may·be·either·LinearRing·instances,·or·a·tuple/list</span>83 <span·class="sd">········instances·may·be·either·LinearRing·instances,·or·a·tuple/list</span>
Offset 126, 15 lines modifiedOffset 127, 15 lines modified
126 ············<span·class="k">yield</span>·<span·class="bp">self</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>127 ············<span·class="k">yield</span>·<span·class="bp">self</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>
  
127 ····<span·class="k">def</span>·<span·class="fm">__len__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>128 ····<span·class="k">def</span>·<span·class="fm">__len__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
128 ········<span·class="s2">&quot;Return·the·number·of·rings·in·this·Polygon.&quot;</span>129 ········<span·class="s2">&quot;Return·the·number·of·rings·in·this·Polygon.&quot;</span>
129 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_interior_rings</span>·<span·class="o">+</span>·<span·class="mi">1</span>130 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_interior_rings</span>·<span·class="o">+</span>·<span·class="mi">1</span>
  
130 <div·class="viewcode-block"·id="Polygon.from_bbox">131 <div·class="viewcode-block"·id="Polygon.from_bbox">
131 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Polygon.from_bbox">[docs]</a>132 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.Polygon.from_bbox">[documenti]</a>
132 ····<span·class="nd">@classmethod</span>133 ····<span·class="nd">@classmethod</span>
133 ····<span·class="k">def</span>·<span·class="nf">from_bbox</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">,</span>·<span·class="n">bbox</span><span·class="p">):</span>134 ····<span·class="k">def</span>·<span·class="nf">from_bbox</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">,</span>·<span·class="n">bbox</span><span·class="p">):</span>
134 ········<span·class="s2">&quot;Construct·a·Polygon·from·a·bounding·box·(4-tuple).&quot;</span>135 ········<span·class="s2">&quot;Construct·a·Polygon·from·a·bounding·box·(4-tuple).&quot;</span>
135 ········<span·class="n">x0</span><span·class="p">,</span>·<span·class="n">y0</span><span·class="p">,</span>·<span·class="n">x1</span><span·class="p">,</span>·<span·class="n">y1</span>·<span·class="o">=</span>·<span·class="n">bbox</span>136 ········<span·class="n">x0</span><span·class="p">,</span>·<span·class="n">y0</span><span·class="p">,</span>·<span·class="n">x1</span><span·class="p">,</span>·<span·class="n">y1</span>·<span·class="o">=</span>·<span·class="n">bbox</span>
136 ········<span·class="k">for</span>·<span·class="n">z</span>·<span·class="ow">in</span>·<span·class="n">bbox</span><span·class="p">:</span>137 ········<span·class="k">for</span>·<span·class="n">z</span>·<span·class="ow">in</span>·<span·class="n">bbox</span><span·class="p">:</span>
137 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">z</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">float</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">)):</span>138 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">z</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">float</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">)):</span>
138 ················<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span>139 ················<span·class="k">return</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span>
Offset 274, 35 lines modifiedOffset 275, 35 lines modified
274 ······275 ······
275 ········276 ········
276 ··········<div·class="yui-b"·id="sidebar">277 ··········<div·class="yui-b"·id="sidebar">
277 ············278 ············
278 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">279 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
279 ········<div·class="sphinxsidebarwrapper">280 ········<div·class="sphinxsidebarwrapper">
280 <search·id="searchbox"·style="display:·none"·role="search">281 <search·id="searchbox"·style="display:·none"·role="search">
281 ··<h3·id="searchlabel">Quick·search</h3>282 ··<h3·id="searchlabel">Ricerca·veloce</h3>
282 ····<div·class="searchformwrapper">283 ····<div·class="searchformwrapper">
283 ····<form·class="search"·action="../../../../../search.html"·method="get">284 ····<form·class="search"·action="../../../../../search.html"·method="get">
284 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>285 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
285 ······<input·type="submit"·value="Go"·/>286 ······<input·type="submit"·value="Vai"·/>
286 ····</form>287 ····</form>
287 ····</div>288 ····</div>
288 </search>289 </search>
289 <script>document.getElementById('searchbox').style.display·=·"block"</script>290 <script>document.getElementById('searchbox').style.display·=·"block"</script>
290 ········</div>291 ········</div>
291 ······</div>292 ······</div>
292 ··············<h3>Last·update:</h3>293 ··············<h3>Last·update:</h3>
293 ··············<p·class="topless">Sep·03,·2024</p>294 ··············<p·class="topless">set·03,·2024</p>
294 ··········</div>295 ··········</div>
295 ········296 ········
296 ······297 ······
297 ····</div>298 ····</div>
  
298 ····<div·id="ft">299 ····<div·id="ft">
299 ······<div·class="nav">300 ······<div·class="nav">
300 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>301 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
301 ····</div>302 ····</div>
302 ··</div>303 ··</div>
  
303 ······<div·class="clearer"></div>304 ······<div·class="clearer"></div>
304 ····</div>305 ····</div>
305 ··</body>306 ··</body>
306 </html>307 </html>
2.35 KB
html2text {}
Max HTML report size reached
20.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/geos/prototypes/io.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../../">2 <html·lang="it"·data-content_root="../../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.geos.prototypes.io·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.geos.prototypes.io·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-prototypes-io">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-geos-prototypes-io">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.geos.prototypes.io</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.geos.prototypes.io</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">threading</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">threading</span>
72 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">POINTER</span><span·class="p">,</span>·<span·class="n">Structure</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">,</span>·<span·class="n">c_byte</span><span·class="p">,</span>·<span·class="n">c_char_p</span><span·class="p">,</span>·<span·class="n">c_int</span><span·class="p">,</span>·<span·class="n">c_size_t</span>73 <span·class="kn">from</span>·<span·class="nn">ctypes</span>·<span·class="kn">import</span>·<span·class="n">POINTER</span><span·class="p">,</span>·<span·class="n">Structure</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">,</span>·<span·class="n">c_byte</span><span·class="p">,</span>·<span·class="n">c_char_p</span><span·class="p">,</span>·<span·class="n">c_int</span><span·class="p">,</span>·<span·class="n">c_size_t</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.base</span>·<span·class="kn">import</span>·<span·class="n">GEOSBase</span>74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.base</span>·<span·class="kn">import</span>·<span·class="n">GEOSBase</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="p">(</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos.libgeos</span>·<span·class="kn">import</span>·<span·class="p">(</span>
75 ····<span·class="n">GEOM_PTR</span><span·class="p">,</span>76 ····<span·class="n">GEOM_PTR</span><span·class="p">,</span>
76 ····<span·class="n">GEOSFuncFactory</span><span·class="p">,</span>77 ····<span·class="n">GEOSFuncFactory</span><span·class="p">,</span>
Offset 249, 15 lines modifiedOffset 250, 15 lines modified
249 ············<span·class="k">return</span>·<span·class="n">wkb_reader_read_hex</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">wkb_s</span><span·class="p">,</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">wkb_s</span><span·class="p">))</span>250 ············<span·class="k">return</span>·<span·class="n">wkb_reader_read_hex</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">wkb_s</span><span·class="p">,</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">wkb_s</span><span·class="p">))</span>
250 ········<span·class="k">else</span><span·class="p">:</span>251 ········<span·class="k">else</span><span·class="p">:</span>
251 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span>252 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span>
  
  
252 <span·class="c1">#·###·WKB/WKT·Writer·Classes·###</span>253 <span·class="c1">#·###·WKB/WKT·Writer·Classes·###</span>
253 <div·class="viewcode-block"·id="WKTWriter">254 <div·class="viewcode-block"·id="WKTWriter">
254 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTWriter">[docs]</a>255 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTWriter">[documenti]</a>
255 <span·class="k">class</span>·<span·class="nc">WKTWriter</span><span·class="p">(</span><span·class="n">IOBase</span><span·class="p">):</span>256 <span·class="k">class</span>·<span·class="nc">WKTWriter</span><span·class="p">(</span><span·class="n">IOBase</span><span·class="p">):</span>
256 ····<span·class="n">_constructor</span>·<span·class="o">=</span>·<span·class="n">wkt_writer_create</span>257 ····<span·class="n">_constructor</span>·<span·class="o">=</span>·<span·class="n">wkt_writer_create</span>
257 ····<span·class="n">ptr_type</span>·<span·class="o">=</span>·<span·class="n">WKT_WRITE_PTR</span>258 ····<span·class="n">ptr_type</span>·<span·class="o">=</span>·<span·class="n">WKT_WRITE_PTR</span>
258 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">wkt_writer_destroy</span>259 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">wkt_writer_destroy</span>
  
259 ····<span·class="n">_trim</span>·<span·class="o">=</span>·<span·class="kc">False</span>260 ····<span·class="n">_trim</span>·<span·class="o">=</span>·<span·class="kc">False</span>
260 ····<span·class="n">_precision</span>·<span·class="o">=</span>·<span·class="kc">None</span>261 ····<span·class="n">_precision</span>·<span·class="o">=</span>·<span·class="kc">None</span>
Offset 267, 15 lines modifiedOffset 268, 15 lines modified
267 ········<span·class="k">if</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">trim</span><span·class="p">)</span>·<span·class="o">!=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_trim</span><span·class="p">:</span>268 ········<span·class="k">if</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="n">trim</span><span·class="p">)</span>·<span·class="o">!=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_trim</span><span·class="p">:</span>
268 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">trim</span>·<span·class="o">=</span>·<span·class="n">trim</span>269 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">trim</span>·<span·class="o">=</span>·<span·class="n">trim</span>
269 ········<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>270 ········<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
270 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">precision</span>·<span·class="o">=</span>·<span·class="n">precision</span>271 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">precision</span>·<span·class="o">=</span>·<span·class="n">precision</span>
271 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">outdim</span>·<span·class="o">=</span>·<span·class="n">dim</span>272 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">outdim</span>·<span·class="o">=</span>·<span·class="n">dim</span>
  
272 <div·class="viewcode-block"·id="WKTWriter.write">273 <div·class="viewcode-block"·id="WKTWriter.write">
273 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTWriter.write">[docs]</a>274 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKTWriter.write">[documenti]</a>
274 ····<span·class="k">def</span>·<span·class="nf">write</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>275 ····<span·class="k">def</span>·<span·class="nf">write</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>
275 ········<span·class="s2">&quot;Return·the·WKT·representation·of·the·given·geometry.&quot;</span>276 ········<span·class="s2">&quot;Return·the·WKT·representation·of·the·given·geometry.&quot;</span>
276 ········<span·class="k">return</span>·<span·class="n">wkt_writer_write</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">)</span></div>277 ········<span·class="k">return</span>·<span·class="n">wkt_writer_write</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">)</span></div>
  
  
277 ····<span·class="nd">@property</span>278 ····<span·class="nd">@property</span>
278 ····<span·class="k">def</span>·<span·class="nf">outdim</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>279 ····<span·class="k">def</span>·<span·class="nf">outdim</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
Offset 310, 15 lines modifiedOffset 311, 15 lines modified
310 ········<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="o">!=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_precision</span><span·class="p">:</span>311 ········<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="o">!=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_precision</span><span·class="p">:</span>
311 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_precision</span>·<span·class="o">=</span>·<span·class="n">precision</span>312 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_precision</span>·<span·class="o">=</span>·<span·class="n">precision</span>
312 ············<span·class="n">wkt_writer_set_precision</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="o">-</span><span·class="mi">1</span>·<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">precision</span><span·class="p">)</span></div>313 ············<span·class="n">wkt_writer_set_precision</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="o">-</span><span·class="mi">1</span>·<span·class="k">if</span>·<span·class="n">precision</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">precision</span><span·class="p">)</span></div>
  
  
  
313 <div·class="viewcode-block"·id="WKBWriter">314 <div·class="viewcode-block"·id="WKBWriter">
314 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter">[docs]</a>315 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter">[documenti]</a>
315 <span·class="k">class</span>·<span·class="nc">WKBWriter</span><span·class="p">(</span><span·class="n">IOBase</span><span·class="p">):</span>316 <span·class="k">class</span>·<span·class="nc">WKBWriter</span><span·class="p">(</span><span·class="n">IOBase</span><span·class="p">):</span>
316 ····<span·class="n">_constructor</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_create</span>317 ····<span·class="n">_constructor</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_create</span>
317 ····<span·class="n">ptr_type</span>·<span·class="o">=</span>·<span·class="n">WKB_WRITE_PTR</span>318 ····<span·class="n">ptr_type</span>·<span·class="o">=</span>·<span·class="n">WKB_WRITE_PTR</span>
318 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_destroy</span>319 ····<span·class="n">destructor</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_destroy</span>
319 ····<span·class="n">geos_version</span>·<span·class="o">=</span>·<span·class="n">geos_version_tuple</span><span·class="p">()</span>320 ····<span·class="n">geos_version</span>·<span·class="o">=</span>·<span·class="n">geos_version_tuple</span><span·class="p">()</span>
  
320 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">dim</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">):</span>321 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">dim</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">):</span>
Offset 335, 30 lines modifiedOffset 336, 30 lines modified
335 ················<span·class="c1">#·https://trac.osgeo.org/postgis/ticket/3181</span>336 ················<span·class="c1">#·https://trac.osgeo.org/postgis/ticket/3181</span>
336 ················<span·class="n">geom</span>·<span·class="o">=</span>·<span·class="n">Point</span><span·class="p">(</span><span·class="nb">float</span><span·class="p">(</span><span·class="s2">&quot;NaN&quot;</span><span·class="p">),</span>·<span·class="nb">float</span><span·class="p">(</span><span·class="s2">&quot;NaN&quot;</span><span·class="p">),</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="n">geom</span><span·class="o">.</span><span·class="n">srid</span><span·class="p">)</span>337 ················<span·class="n">geom</span>·<span·class="o">=</span>·<span·class="n">Point</span><span·class="p">(</span><span·class="nb">float</span><span·class="p">(</span><span·class="s2">&quot;NaN&quot;</span><span·class="p">),</span>·<span·class="nb">float</span><span·class="p">(</span><span·class="s2">&quot;NaN&quot;</span><span·class="p">),</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="n">geom</span><span·class="o">.</span><span·class="n">srid</span><span·class="p">)</span>
337 ············<span·class="k">else</span><span·class="p">:</span>338 ············<span·class="k">else</span><span·class="p">:</span>
338 ················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Empty·point·is·not·representable·in·WKB.&quot;</span><span·class="p">)</span>339 ················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Empty·point·is·not·representable·in·WKB.&quot;</span><span·class="p">)</span>
339 ········<span·class="k">return</span>·<span·class="n">geom</span>340 ········<span·class="k">return</span>·<span·class="n">geom</span>
  
340 <div·class="viewcode-block"·id="WKBWriter.write">341 <div·class="viewcode-block"·id="WKBWriter.write">
341 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter.write">[docs]</a>342 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter.write">[documenti]</a>
342 ····<span·class="k">def</span>·<span·class="nf">write</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>343 ····<span·class="k">def</span>·<span·class="nf">write</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>
343 ········<span·class="s2">&quot;Return·the·WKB·representation·of·the·given·geometry.&quot;</span>344 ········<span·class="s2">&quot;Return·the·WKB·representation·of·the·given·geometry.&quot;</span>
344 ········<span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">Polygon</span>345 ········<span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">Polygon</span>
  
345 ········<span·class="n">geom</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_handle_empty_point</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">)</span>346 ········<span·class="n">geom</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_handle_empty_point</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">)</span>
346 ········<span·class="n">wkb</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_write</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">(</span><span·class="n">c_size_t</span><span·class="p">()))</span>347 ········<span·class="n">wkb</span>·<span·class="o">=</span>·<span·class="n">wkb_writer_write</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">ptr</span><span·class="p">,</span>·<span·class="n">byref</span><span·class="p">(</span><span·class="n">c_size_t</span><span·class="p">()))</span>
347 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">geos_version</span>·<span·class="o">&lt;</span>·<span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="n">Polygon</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">empty</span><span·class="p">:</span>348 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">geos_version</span>·<span·class="o">&lt;</span>·<span·class="p">(</span><span·class="mi">3</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="n">Polygon</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="n">geom</span><span·class="o">.</span><span·class="n">empty</span><span·class="p">:</span>
348 ············<span·class="c1">#·Fix·GEOS·output·for·empty·polygon.</span>349 ············<span·class="c1">#·Fix·GEOS·output·for·empty·polygon.</span>
349 ············<span·class="c1">#·See·https://trac.osgeo.org/geos/ticket/680.</span>350 ············<span·class="c1">#·See·https://trac.osgeo.org/geos/ticket/680.</span>
350 ············<span·class="n">wkb</span>·<span·class="o">=</span>·<span·class="n">wkb</span><span·class="p">[:</span><span·class="o">-</span><span·class="mi">8</span><span·class="p">]</span>·<span·class="o">+</span>·<span·class="sa">b</span><span·class="s2">&quot;</span><span·class="se">\0</span><span·class="s2">&quot;</span>·<span·class="o">*</span>·<span·class="mi">4</span>351 ············<span·class="n">wkb</span>·<span·class="o">=</span>·<span·class="n">wkb</span><span·class="p">[:</span><span·class="o">-</span><span·class="mi">8</span><span·class="p">]</span>·<span·class="o">+</span>·<span·class="sa">b</span><span·class="s2">&quot;</span><span·class="se">\0</span><span·class="s2">&quot;</span>·<span·class="o">*</span>·<span·class="mi">4</span>
351 ········<span·class="k">return</span>·<span·class="nb">memoryview</span><span·class="p">(</span><span·class="n">wkb</span><span·class="p">)</span></div>352 ········<span·class="k">return</span>·<span·class="nb">memoryview</span><span·class="p">(</span><span·class="n">wkb</span><span·class="p">)</span></div>
  
  
352 <div·class="viewcode-block"·id="WKBWriter.write_hex">353 <div·class="viewcode-block"·id="WKBWriter.write_hex">
353 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter.write_hex">[docs]</a>354 <a·class="viewcode-back"·href="../../../../../../ref/contrib/gis/geos.html#django.contrib.gis.geos.WKBWriter.write_hex">[documenti]</a>
354 ····<span·class="k">def</span>·<span·class="nf">write_hex</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>355 ····<span·class="k">def</span>·<span·class="nf">write_hex</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">geom</span><span·class="p">):</span>
Max diff block lines reached; 2840/16442 bytes (17.27%) of diff not shown.
4.05 KB
html2text {}
Max HTML report size reached
11.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/measure.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.measure·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.measure·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-measure">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-measure">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.measure</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.measure</h1><div·class="highlight"><pre>
71 <span></span><span·class="c1">#·Copyright·(c)·2007,·Robert·Coup·&lt;robert.coup@onetrackmind.co.nz&gt;</span>72 <span></span><span·class="c1">#·Copyright·(c)·2007,·Robert·Coup·&lt;robert.coup@onetrackmind.co.nz&gt;</span>
72 <span·class="c1">#·All·rights·reserved.</span>73 <span·class="c1">#·All·rights·reserved.</span>
73 <span·class="c1">#</span>74 <span·class="c1">#</span>
74 <span·class="c1">#·Redistribution·and·use·in·source·and·binary·forms,·with·or·without·modification,</span>75 <span·class="c1">#·Redistribution·and·use·in·source·and·binary·forms,·with·or·without·modification,</span>
75 <span·class="c1">#·are·permitted·provided·that·the·following·conditions·are·met:</span>76 <span·class="c1">#·are·permitted·provided·that·the·following·conditions·are·met:</span>
76 <span·class="c1">#</span>77 <span·class="c1">#</span>
77 <span·class="c1">#···1.·Redistributions·of·source·code·must·retain·the·above·copyright·notice,</span>78 <span·class="c1">#···1.·Redistributions·of·source·code·must·retain·the·above·copyright·notice,</span>
Offset 317, 15 lines modifiedOffset 318, 15 lines modified
317 ········<span·class="k">else</span><span·class="p">:</span>318 ········<span·class="k">else</span><span·class="p">:</span>
318 ············<span·class="k">raise</span>·<span·class="ne">Exception</span><span·class="p">(</span>319 ············<span·class="k">raise</span>·<span·class="ne">Exception</span><span·class="p">(</span>
319 ················<span·class="s1">&#39;Could·not·find·a·unit·keyword·associated·with·&quot;</span><span·class="si">%s</span><span·class="s1">&quot;&#39;</span>·<span·class="o">%</span>·<span·class="n">unit_str</span>320 ················<span·class="s1">&#39;Could·not·find·a·unit·keyword·associated·with·&quot;</span><span·class="si">%s</span><span·class="s1">&quot;&#39;</span>·<span·class="o">%</span>·<span·class="n">unit_str</span>
320 ············<span·class="p">)</span>321 ············<span·class="p">)</span>
  
  
321 <div·class="viewcode-block"·id="Distance">322 <div·class="viewcode-block"·id="Distance">
322 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/measure.html#django.contrib.gis.measure.Distance">[docs]</a>323 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/measure.html#django.contrib.gis.measure.Distance">[documenti]</a>
323 <span·class="k">class</span>·<span·class="nc">Distance</span><span·class="p">(</span><span·class="n">MeasureBase</span><span·class="p">):</span>324 <span·class="k">class</span>·<span·class="nc">Distance</span><span·class="p">(</span><span·class="n">MeasureBase</span><span·class="p">):</span>
324 ····<span·class="n">STANDARD_UNIT</span>·<span·class="o">=</span>·<span·class="s2">&quot;m&quot;</span>325 ····<span·class="n">STANDARD_UNIT</span>·<span·class="o">=</span>·<span·class="s2">&quot;m&quot;</span>
325 ····<span·class="n">UNITS</span>·<span·class="o">=</span>·<span·class="p">{</span>326 ····<span·class="n">UNITS</span>·<span·class="o">=</span>·<span·class="p">{</span>
326 ········<span·class="s2">&quot;chain&quot;</span><span·class="p">:</span>·<span·class="mf">20.1168</span><span·class="p">,</span>327 ········<span·class="s2">&quot;chain&quot;</span><span·class="p">:</span>·<span·class="mf">20.1168</span><span·class="p">,</span>
327 ········<span·class="s2">&quot;chain_benoit&quot;</span><span·class="p">:</span>·<span·class="mf">20.116782</span><span·class="p">,</span>328 ········<span·class="s2">&quot;chain_benoit&quot;</span><span·class="p">:</span>·<span·class="mf">20.116782</span><span·class="p">,</span>
328 ········<span·class="s2">&quot;chain_sears&quot;</span><span·class="p">:</span>·<span·class="mf">20.1167645</span><span·class="p">,</span>329 ········<span·class="s2">&quot;chain_sears&quot;</span><span·class="p">:</span>·<span·class="mf">20.1167645</span><span·class="p">,</span>
329 ········<span·class="s2">&quot;british_chain_benoit&quot;</span><span·class="p">:</span>·<span·class="mf">20.1167824944</span><span·class="p">,</span>330 ········<span·class="s2">&quot;british_chain_benoit&quot;</span><span·class="p">:</span>·<span·class="mf">20.1167824944</span><span·class="p">,</span>
Offset 419, 15 lines modifiedOffset 420, 15 lines modified
419 ····················<span·class="s2">&quot;distance&quot;</span><span·class="p">:</span>·<span·class="n">pretty_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">),</span>420 ····················<span·class="s2">&quot;distance&quot;</span><span·class="p">:</span>·<span·class="n">pretty_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">),</span>
420 ················<span·class="p">}</span>421 ················<span·class="p">}</span>
421 ············<span·class="p">)</span></div>422 ············<span·class="p">)</span></div>
  
  
  
422 <div·class="viewcode-block"·id="Area">423 <div·class="viewcode-block"·id="Area">
423 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/measure.html#django.contrib.gis.measure.Area">[docs]</a>424 <a·class="viewcode-back"·href="../../../../ref/contrib/gis/measure.html#django.contrib.gis.measure.Area">[documenti]</a>
424 <span·class="k">class</span>·<span·class="nc">Area</span><span·class="p">(</span><span·class="n">MeasureBase</span><span·class="p">):</span>425 <span·class="k">class</span>·<span·class="nc">Area</span><span·class="p">(</span><span·class="n">MeasureBase</span><span·class="p">):</span>
425 ····<span·class="n">STANDARD_UNIT</span>·<span·class="o">=</span>·<span·class="n">AREA_PREFIX</span>·<span·class="o">+</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">STANDARD_UNIT</span>426 ····<span·class="n">STANDARD_UNIT</span>·<span·class="o">=</span>·<span·class="n">AREA_PREFIX</span>·<span·class="o">+</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">STANDARD_UNIT</span>
426 ····<span·class="c1">#·Getting·the·square·units·values·and·the·alias·dictionary.</span>427 ····<span·class="c1">#·Getting·the·square·units·values·and·the·alias·dictionary.</span>
427 ····<span·class="n">UNITS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="s2">&quot;</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">AREA_PREFIX</span><span·class="p">,</span>·<span·class="n">k</span><span·class="p">):</span>·<span·class="n">v</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">UNITS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>428 ····<span·class="n">UNITS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="s2">&quot;</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">AREA_PREFIX</span><span·class="p">,</span>·<span·class="n">k</span><span·class="p">):</span>·<span·class="n">v</span><span·class="o">**</span><span·class="mi">2</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">UNITS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
428 ····<span·class="n">ALIAS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="s2">&quot;</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">AREA_PREFIX</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">ALIAS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>429 ····<span·class="n">ALIAS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="s2">&quot;</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">AREA_PREFIX</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">Distance</span><span·class="o">.</span><span·class="n">ALIAS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
429 ····<span·class="n">LALIAS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="o">.</span><span·class="n">lower</span><span·class="p">():</span>·<span·class="n">v</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">ALIAS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>430 ····<span·class="n">LALIAS</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="o">.</span><span·class="n">lower</span><span·class="p">():</span>·<span·class="n">v</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">ALIAS</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
  
Offset 455, 35 lines modifiedOffset 456, 35 lines modified
455 ······456 ······
456 ········457 ········
457 ··········<div·class="yui-b"·id="sidebar">458 ··········<div·class="yui-b"·id="sidebar">
458 ············459 ············
459 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">460 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
460 ········<div·class="sphinxsidebarwrapper">461 ········<div·class="sphinxsidebarwrapper">
461 <search·id="searchbox"·style="display:·none"·role="search">462 <search·id="searchbox"·style="display:·none"·role="search">
462 ··<h3·id="searchlabel">Quick·search</h3>463 ··<h3·id="searchlabel">Ricerca·veloce</h3>
463 ····<div·class="searchformwrapper">464 ····<div·class="searchformwrapper">
464 ····<form·class="search"·action="../../../../search.html"·method="get">465 ····<form·class="search"·action="../../../../search.html"·method="get">
465 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>466 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
466 ······<input·type="submit"·value="Go"·/>467 ······<input·type="submit"·value="Vai"·/>
467 ····</form>468 ····</form>
468 ····</div>469 ····</div>
469 </search>470 </search>
470 <script>document.getElementById('searchbox').style.display·=·"block"</script>471 <script>document.getElementById('searchbox').style.display·=·"block"</script>
471 ········</div>472 ········</div>
472 ······</div>473 ······</div>
473 ··············<h3>Last·update:</h3>474 ··············<h3>Last·update:</h3>
474 ··············<p·class="topless">Sep·03,·2024</p>475 ··············<p·class="topless">set·03,·2024</p>
475 ··········</div>476 ··········</div>
476 ········477 ········
477 ······478 ······
478 ····</div>479 ····</div>
  
479 ····<div·id="ft">480 ····<div·id="ft">
480 ······<div·class="nav">481 ······<div·class="nav">
481 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>482 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
482 ····</div>483 ····</div>
483 ··</div>484 ··</div>
  
484 ······<div·class="clearer"></div>485 ······<div·class="clearer"></div>
485 ····</div>486 ····</div>
486 ··</body>487 ··</body>
487 </html>488 </html>
2.31 KB
html2text {}
Max HTML report size reached
10.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/utils/layermapping.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.utils.layermapping·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.utils.layermapping·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-utils-layermapping">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-utils-layermapping">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.utils.layermapping</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.utils.layermapping</h1><div·class="highlight"><pre>
71 <span></span><span·class="c1">#·LayerMapping·--·A·Django·Model/OGR·Layer·Mapping·Utility</span>72 <span></span><span·class="c1">#·LayerMapping·--·A·Django·Model/OGR·Layer·Mapping·Utility</span>
72 <span·class="sd">&quot;&quot;&quot;</span>73 <span·class="sd">&quot;&quot;&quot;</span>
73 <span·class="sd">·The·LayerMapping·class·provides·a·way·to·map·the·contents·of·OGR</span>74 <span·class="sd">·The·LayerMapping·class·provides·a·way·to·map·the·contents·of·OGR</span>
74 <span·class="sd">·vector·files·(e.g.·SHP·files)·to·Geographic-enabled·Django·models.</span>75 <span·class="sd">·vector·files·(e.g.·SHP·files)·to·Geographic-enabled·Django·models.</span>
  
75 <span·class="sd">·For·more·information,·please·consult·the·GeoDjango·documentation:</span>76 <span·class="sd">·For·more·information,·please·consult·the·GeoDjango·documentation:</span>
76 <span·class="sd">···https://docs.djangoproject.com/en/dev/ref/contrib/gis/layermapping/</span>77 <span·class="sd">···https://docs.djangoproject.com/en/dev/ref/contrib/gis/layermapping/</span>
Offset 125, 15 lines modifiedOffset 126, 15 lines modified
  
  
125 <span·class="k">class</span>·<span·class="nc">MissingForeignKey</span><span·class="p">(</span><span·class="n">LayerMapError</span><span·class="p">):</span>126 <span·class="k">class</span>·<span·class="nc">MissingForeignKey</span><span·class="p">(</span><span·class="n">LayerMapError</span><span·class="p">):</span>
126 ····<span·class="k">pass</span>127 ····<span·class="k">pass</span>
  
  
127 <div·class="viewcode-block"·id="LayerMapping">128 <div·class="viewcode-block"·id="LayerMapping">
128 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/layermapping.html#django.contrib.gis.utils.LayerMapping">[docs]</a>129 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/layermapping.html#django.contrib.gis.utils.LayerMapping">[documenti]</a>
129 <span·class="k">class</span>·<span·class="nc">LayerMapping</span><span·class="p">:</span>130 <span·class="k">class</span>·<span·class="nc">LayerMapping</span><span·class="p">:</span>
130 ····<span·class="s2">&quot;A·class·that·maps·OGR·Layers·to·GeoDjango·Models.&quot;</span>131 ····<span·class="s2">&quot;A·class·that·maps·OGR·Layers·to·GeoDjango·Models.&quot;</span>
  
131 ····<span·class="c1">#·Acceptable·&#39;base&#39;·types·for·a·multi-geometry·type.</span>132 ····<span·class="c1">#·Acceptable·&#39;base&#39;·types·for·a·multi-geometry·type.</span>
132 ····<span·class="n">MULTI_TYPES</span>·<span·class="o">=</span>·<span·class="p">{</span>133 ····<span·class="n">MULTI_TYPES</span>·<span·class="o">=</span>·<span·class="p">{</span>
133 ········<span·class="mi">1</span><span·class="p">:</span>·<span·class="n">OGRGeomType</span><span·class="p">(</span><span·class="s2">&quot;MultiPoint&quot;</span><span·class="p">),</span>134 ········<span·class="mi">1</span><span·class="p">:</span>·<span·class="n">OGRGeomType</span><span·class="p">(</span><span·class="s2">&quot;MultiPoint&quot;</span><span·class="p">),</span>
134 ········<span·class="mi">2</span><span·class="p">:</span>·<span·class="n">OGRGeomType</span><span·class="p">(</span><span·class="s2">&quot;MultiLineString&quot;</span><span·class="p">),</span>135 ········<span·class="mi">2</span><span·class="p">:</span>·<span·class="n">OGRGeomType</span><span·class="p">(</span><span·class="s2">&quot;MultiLineString&quot;</span><span·class="p">),</span>
Offset 617, 15 lines modifiedOffset 618, 15 lines modified
617 <span·class="sd">········&quot;&quot;&quot;</span>618 <span·class="sd">········&quot;&quot;&quot;</span>
618 ········<span·class="k">return</span>·<span·class="p">(</span>619 ········<span·class="k">return</span>·<span·class="p">(</span>
619 ············<span·class="n">geom_type</span><span·class="o">.</span><span·class="n">num</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">MULTI_TYPES</span>620 ············<span·class="n">geom_type</span><span·class="o">.</span><span·class="n">num</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">MULTI_TYPES</span>
620 ············<span·class="ow">and</span>·<span·class="n">model_field</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">==</span>·<span·class="s2">&quot;Multi</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">geom_type</span><span·class="o">.</span><span·class="n">django</span>621 ············<span·class="ow">and</span>·<span·class="n">model_field</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">==</span>·<span·class="s2">&quot;Multi</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">geom_type</span><span·class="o">.</span><span·class="n">django</span>
621 ········<span·class="p">)</span>622 ········<span·class="p">)</span>
  
622 <div·class="viewcode-block"·id="LayerMapping.save">623 <div·class="viewcode-block"·id="LayerMapping.save">
623 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/layermapping.html#django.contrib.gis.utils.LayerMapping.save">[docs]</a>624 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/layermapping.html#django.contrib.gis.utils.LayerMapping.save">[documenti]</a>
624 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span>625 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span>
625 ········<span·class="bp">self</span><span·class="p">,</span>626 ········<span·class="bp">self</span><span·class="p">,</span>
626 ········<span·class="n">verbose</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>627 ········<span·class="n">verbose</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
627 ········<span·class="n">fid_range</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>628 ········<span·class="n">fid_range</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
628 ········<span·class="n">step</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>629 ········<span·class="n">step</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
629 ········<span·class="n">progress</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>630 ········<span·class="n">progress</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
630 ········<span·class="n">silent</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>631 ········<span·class="n">silent</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
Offset 809, 35 lines modifiedOffset 810, 35 lines modified
809 ······810 ······
810 ········811 ········
811 ··········<div·class="yui-b"·id="sidebar">812 ··········<div·class="yui-b"·id="sidebar">
812 ············813 ············
813 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">814 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
814 ········<div·class="sphinxsidebarwrapper">815 ········<div·class="sphinxsidebarwrapper">
815 <search·id="searchbox"·style="display:·none"·role="search">816 <search·id="searchbox"·style="display:·none"·role="search">
816 ··<h3·id="searchlabel">Quick·search</h3>817 ··<h3·id="searchlabel">Ricerca·veloce</h3>
817 ····<div·class="searchformwrapper">818 ····<div·class="searchformwrapper">
818 ····<form·class="search"·action="../../../../../search.html"·method="get">819 ····<form·class="search"·action="../../../../../search.html"·method="get">
819 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>820 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
820 ······<input·type="submit"·value="Go"·/>821 ······<input·type="submit"·value="Vai"·/>
821 ····</form>822 ····</form>
822 ····</div>823 ····</div>
823 </search>824 </search>
824 <script>document.getElementById('searchbox').style.display·=·"block"</script>825 <script>document.getElementById('searchbox').style.display·=·"block"</script>
825 ········</div>826 ········</div>
826 ······</div>827 ······</div>
827 ··············<h3>Last·update:</h3>828 ··············<h3>Last·update:</h3>
828 ··············<p·class="topless">Sep·03,·2024</p>829 ··············<p·class="topless">set·03,·2024</p>
829 ··········</div>830 ··········</div>
830 ········831 ········
831 ······832 ······
832 ····</div>833 ····</div>
  
833 ····<div·id="ft">834 ····<div·id="ft">
834 ······<div·class="nav">835 ······<div·class="nav">
835 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>836 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
836 ····</div>837 ····</div>
837 ··</div>838 ··</div>
  
838 ······<div·class="clearer"></div>839 ······<div·class="clearer"></div>
839 ····</div>840 ····</div>
840 ··</body>841 ··</body>
841 </html>842 </html>
2.44 KB
html2text {}
Max HTML report size reached
9.88 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/gis/utils/ogrinspect.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.gis.utils.ogrinspect·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.gis.utils.ogrinspect·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-utils-ogrinspect">69 ··········<div·class="yui-g"·id="_modules-django-contrib-gis-utils-ogrinspect">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.gis.utils.ogrinspect</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.gis.utils.ogrinspect</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·module·is·for·inspecting·OGR·data·sources·and·generating·either</span>73 <span·class="sd">This·module·is·for·inspecting·OGR·data·sources·and·generating·either</span>
73 <span·class="sd">models·for·GeoDjango·and/or·mapping·dictionaries·for·use·with·the</span>74 <span·class="sd">models·for·GeoDjango·and/or·mapping·dictionaries·for·use·with·the</span>
74 <span·class="sd">`LayerMapping`·utility.</span>75 <span·class="sd">`LayerMapping`·utility.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal</span>·<span·class="kn">import</span>·<span·class="n">DataSource</span>77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal</span>·<span·class="kn">import</span>·<span·class="n">DataSource</span>
77 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.field</span>·<span·class="kn">import</span>·<span·class="p">(</span>78 <span·class="kn">from</span>·<span·class="nn">django.contrib.gis.gdal.field</span>·<span·class="kn">import</span>·<span·class="p">(</span>
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 ····<span·class="n">OFTReal</span><span·class="p">,</span>86 ····<span·class="n">OFTReal</span><span·class="p">,</span>
86 ····<span·class="n">OFTString</span><span·class="p">,</span>87 ····<span·class="n">OFTString</span><span·class="p">,</span>
87 ····<span·class="n">OFTTime</span><span·class="p">,</span>88 ····<span·class="n">OFTTime</span><span·class="p">,</span>
88 <span·class="p">)</span>89 <span·class="p">)</span>
  
  
89 <div·class="viewcode-block"·id="mapping">90 <div·class="viewcode-block"·id="mapping">
90 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/ogrinspect.html#django.contrib.gis.utils.mapping">[docs]</a>91 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/ogrinspect.html#django.contrib.gis.utils.mapping">[documenti]</a>
91 <span·class="k">def</span>·<span·class="nf">mapping</span><span·class="p">(</span><span·class="n">data_source</span><span·class="p">,</span>·<span·class="n">geom_name</span><span·class="o">=</span><span·class="s2">&quot;geom&quot;</span><span·class="p">,</span>·<span·class="n">layer_key</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">multi_geom</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>92 <span·class="k">def</span>·<span·class="nf">mapping</span><span·class="p">(</span><span·class="n">data_source</span><span·class="p">,</span>·<span·class="n">geom_name</span><span·class="o">=</span><span·class="s2">&quot;geom&quot;</span><span·class="p">,</span>·<span·class="n">layer_key</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">multi_geom</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
92 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
93 <span·class="sd">····Given·a·DataSource,·generate·a·dictionary·that·may·be·used</span>94 <span·class="sd">····Given·a·DataSource,·generate·a·dictionary·that·may·be·used</span>
94 <span·class="sd">····for·invoking·the·LayerMapping·utility.</span>95 <span·class="sd">····for·invoking·the·LayerMapping·utility.</span>
  
95 <span·class="sd">····Keyword·Arguments:</span>96 <span·class="sd">····Keyword·Arguments:</span>
96 <span·class="sd">·····`geom_name`·=&gt;·The·name·of·the·geometry·field·to·use·for·the·model.</span>97 <span·class="sd">·····`geom_name`·=&gt;·The·name·of·the·geometry·field·to·use·for·the·model.</span>
Offset 128, 15 lines modifiedOffset 129, 15 lines modified
128 ········<span·class="n">gtype</span><span·class="o">.</span><span·class="n">to_multi</span><span·class="p">()</span>129 ········<span·class="n">gtype</span><span·class="o">.</span><span·class="n">to_multi</span><span·class="p">()</span>
129 ····<span·class="n">_mapping</span><span·class="p">[</span><span·class="n">geom_name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="n">gtype</span><span·class="p">)</span><span·class="o">.</span><span·class="n">upper</span><span·class="p">()</span>130 ····<span·class="n">_mapping</span><span·class="p">[</span><span·class="n">geom_name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="n">gtype</span><span·class="p">)</span><span·class="o">.</span><span·class="n">upper</span><span·class="p">()</span>
130 ····<span·class="k">return</span>·<span·class="n">_mapping</span></div>131 ····<span·class="k">return</span>·<span·class="n">_mapping</span></div>
  
  
  
131 <div·class="viewcode-block"·id="ogrinspect">132 <div·class="viewcode-block"·id="ogrinspect">
132 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/ogrinspect.html#django.contrib.gis.utils.ogrinspect">[docs]</a>133 <a·class="viewcode-back"·href="../../../../../ref/contrib/gis/ogrinspect.html#django.contrib.gis.utils.ogrinspect">[documenti]</a>
133 <span·class="k">def</span>·<span·class="nf">ogrinspect</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>134 <span·class="k">def</span>·<span·class="nf">ogrinspect</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
134 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>135 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
135 <span·class="sd">····Given·a·data·source·(either·a·string·or·a·DataSource·object)·and·a·string</span>136 <span·class="sd">····Given·a·data·source·(either·a·string·or·a·DataSource·object)·and·a·string</span>
136 <span·class="sd">····model·name·this·function·will·generate·a·GeoDjango·model.</span>137 <span·class="sd">····model·name·this·function·will·generate·a·GeoDjango·model.</span>
  
137 <span·class="sd">····Usage:</span>138 <span·class="sd">····Usage:</span>
  
Offset 352, 35 lines modifiedOffset 353, 35 lines modified
352 ······353 ······
353 ········354 ········
354 ··········<div·class="yui-b"·id="sidebar">355 ··········<div·class="yui-b"·id="sidebar">
355 ············356 ············
356 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">357 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
357 ········<div·class="sphinxsidebarwrapper">358 ········<div·class="sphinxsidebarwrapper">
358 <search·id="searchbox"·style="display:·none"·role="search">359 <search·id="searchbox"·style="display:·none"·role="search">
359 ··<h3·id="searchlabel">Quick·search</h3>360 ··<h3·id="searchlabel">Ricerca·veloce</h3>
360 ····<div·class="searchformwrapper">361 ····<div·class="searchformwrapper">
361 ····<form·class="search"·action="../../../../../search.html"·method="get">362 ····<form·class="search"·action="../../../../../search.html"·method="get">
362 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>363 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
363 ······<input·type="submit"·value="Go"·/>364 ······<input·type="submit"·value="Vai"·/>
364 ····</form>365 ····</form>
365 ····</div>366 ····</div>
366 </search>367 </search>
367 <script>document.getElementById('searchbox').style.display·=·"block"</script>368 <script>document.getElementById('searchbox').style.display·=·"block"</script>
368 ········</div>369 ········</div>
369 ······</div>370 ······</div>
370 ··············<h3>Last·update:</h3>371 ··············<h3>Last·update:</h3>
371 ··············<p·class="topless">Sep·03,·2024</p>372 ··············<p·class="topless">set·03,·2024</p>
372 ··········</div>373 ··········</div>
373 ········374 ········
374 ······375 ······
375 ····</div>376 ····</div>
  
376 ····<div·id="ft">377 ····<div·id="ft">
377 ······<div·class="nav">378 ······<div·class="nav">
378 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>379 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
379 ····</div>380 ····</div>
380 ··</div>381 ··</div>
  
381 ······<div·class="clearer"></div>382 ······<div·class="clearer"></div>
382 ····</div>383 ····</div>
383 ··</body>384 ··</body>
384 </html>385 </html>
2.4 KB
html2text {}
Max HTML report size reached
9.63 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/messages/api.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.messages.api·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.messages.api·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-messages-api">69 ··········<div·class="yui-g"·id="_modules-django-contrib-messages-api">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.messages.api</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.messages.api</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.messages</span>·<span·class="kn">import</span>·<span·class="n">constants</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.messages</span>·<span·class="kn">import</span>·<span·class="n">constants</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.messages.storage</span>·<span·class="kn">import</span>·<span·class="n">default_storage</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.messages.storage</span>·<span·class="kn">import</span>·<span·class="n">default_storage</span>
  
73 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">(</span>74 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">(</span>
74 ····<span·class="s2">&quot;add_message&quot;</span><span·class="p">,</span>75 ····<span·class="s2">&quot;add_message&quot;</span><span·class="p">,</span>
75 ····<span·class="s2">&quot;get_messages&quot;</span><span·class="p">,</span>76 ····<span·class="s2">&quot;get_messages&quot;</span><span·class="p">,</span>
76 ····<span·class="s2">&quot;get_level&quot;</span><span·class="p">,</span>77 ····<span·class="s2">&quot;get_level&quot;</span><span·class="p">,</span>
Offset 89, 15 lines modifiedOffset 90, 15 lines modified
  
  
89 <span·class="k">class</span>·<span·class="nc">MessageFailure</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>90 <span·class="k">class</span>·<span·class="nc">MessageFailure</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
90 ····<span·class="k">pass</span>91 ····<span·class="k">pass</span>
  
  
91 <div·class="viewcode-block"·id="add_message">92 <div·class="viewcode-block"·id="add_message">
92 <a·class="viewcode-back"·href="../../../../ref/contrib/messages.html#django.contrib.messages.add_message">[docs]</a>93 <a·class="viewcode-back"·href="../../../../ref/contrib/messages.html#django.contrib.messages.add_message">[documenti]</a>
93 <span·class="k">def</span>·<span·class="nf">add_message</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">level</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">extra_tags</span><span·class="o">=</span><span·class="s2">&quot;&quot;</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>94 <span·class="k">def</span>·<span·class="nf">add_message</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">level</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">extra_tags</span><span·class="o">=</span><span·class="s2">&quot;&quot;</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>95 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
95 <span·class="sd">····Attempt·to·add·a·message·to·the·request·using·the·&#39;messages&#39;·app.</span>96 <span·class="sd">····Attempt·to·add·a·message·to·the·request·using·the·&#39;messages&#39;·app.</span>
96 <span·class="sd">····&quot;&quot;&quot;</span>97 <span·class="sd">····&quot;&quot;&quot;</span>
97 ····<span·class="k">try</span><span·class="p">:</span>98 ····<span·class="k">try</span><span·class="p">:</span>
98 ········<span·class="n">messages</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">_messages</span>99 ········<span·class="n">messages</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">_messages</span>
99 ····<span·class="k">except</span>·<span·class="ne">AttributeError</span><span·class="p">:</span>100 ····<span·class="k">except</span>·<span·class="ne">AttributeError</span><span·class="p">:</span>
Offset 113, 15 lines modifiedOffset 114, 15 lines modified
113 ············<span·class="p">)</span>114 ············<span·class="p">)</span>
114 ····<span·class="k">else</span><span·class="p">:</span>115 ····<span·class="k">else</span><span·class="p">:</span>
115 ········<span·class="k">return</span>·<span·class="n">messages</span><span·class="o">.</span><span·class="n">add</span><span·class="p">(</span><span·class="n">level</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">extra_tags</span><span·class="p">)</span></div>116 ········<span·class="k">return</span>·<span·class="n">messages</span><span·class="o">.</span><span·class="n">add</span><span·class="p">(</span><span·class="n">level</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">extra_tags</span><span·class="p">)</span></div>
  
  
  
116 <div·class="viewcode-block"·id="get_messages">117 <div·class="viewcode-block"·id="get_messages">
117 <a·class="viewcode-back"·href="../../../../ref/contrib/messages.html#django.contrib.messages.get_messages">[docs]</a>118 <a·class="viewcode-back"·href="../../../../ref/contrib/messages.html#django.contrib.messages.get_messages">[documenti]</a>
118 <span·class="k">def</span>·<span·class="nf">get_messages</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>119 <span·class="k">def</span>·<span·class="nf">get_messages</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
119 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>120 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
120 <span·class="sd">····Return·the·message·storage·on·the·request·if·it·exists,·otherwise·return</span>121 <span·class="sd">····Return·the·message·storage·on·the·request·if·it·exists,·otherwise·return</span>
121 <span·class="sd">····an·empty·list.</span>122 <span·class="sd">····an·empty·list.</span>
122 <span·class="sd">····&quot;&quot;&quot;</span>123 <span·class="sd">····&quot;&quot;&quot;</span>
123 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;_messages&quot;</span><span·class="p">,</span>·<span·class="p">[])</span></div>124 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;_messages&quot;</span><span·class="p">,</span>·<span·class="p">[])</span></div>
  
Offset 212, 35 lines modifiedOffset 213, 35 lines modified
212 ······213 ······
213 ········214 ········
214 ··········<div·class="yui-b"·id="sidebar">215 ··········<div·class="yui-b"·id="sidebar">
215 ············216 ············
216 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">217 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
217 ········<div·class="sphinxsidebarwrapper">218 ········<div·class="sphinxsidebarwrapper">
218 <search·id="searchbox"·style="display:·none"·role="search">219 <search·id="searchbox"·style="display:·none"·role="search">
219 ··<h3·id="searchlabel">Quick·search</h3>220 ··<h3·id="searchlabel">Ricerca·veloce</h3>
220 ····<div·class="searchformwrapper">221 ····<div·class="searchformwrapper">
221 ····<form·class="search"·action="../../../../search.html"·method="get">222 ····<form·class="search"·action="../../../../search.html"·method="get">
222 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>223 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
223 ······<input·type="submit"·value="Go"·/>224 ······<input·type="submit"·value="Vai"·/>
224 ····</form>225 ····</form>
225 ····</div>226 ····</div>
226 </search>227 </search>
227 <script>document.getElementById('searchbox').style.display·=·"block"</script>228 <script>document.getElementById('searchbox').style.display·=·"block"</script>
228 ········</div>229 ········</div>
229 ······</div>230 ······</div>
230 ··············<h3>Last·update:</h3>231 ··············<h3>Last·update:</h3>
231 ··············<p·class="topless">Sep·03,·2024</p>232 ··············<p·class="topless">set·03,·2024</p>
232 ··········</div>233 ··········</div>
233 ········234 ········
234 ······235 ······
235 ····</div>236 ····</div>
  
236 ····<div·id="ft">237 ····<div·id="ft">
237 ······<div·class="nav">238 ······<div·class="nav">
238 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>239 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
239 ····</div>240 ····</div>
240 ··</div>241 ··</div>
  
241 ······<div·class="clearer"></div>242 ······<div·class="clearer"></div>
242 ····</div>243 ····</div>
243 ··</body>244 ··</body>
244 </html>245 </html>
2.16 KB
html2text {}
Max HTML report size reached
7.52 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/messages/middleware.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.messages.middleware·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.messages.middleware·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-messages-middleware">69 ··········<div·class="yui-g"·id="_modules-django-contrib-messages-middleware">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.messages.middleware</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.messages.middleware</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.messages.storage</span>·<span·class="kn">import</span>·<span·class="n">default_storage</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.messages.storage</span>·<span·class="kn">import</span>·<span·class="n">default_storage</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
  
74 <div·class="viewcode-block"·id="MessageMiddleware">75 <div·class="viewcode-block"·id="MessageMiddleware">
75 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.messages.middleware.MessageMiddleware">[docs]</a>76 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.messages.middleware.MessageMiddleware">[documenti]</a>
76 <span·class="k">class</span>·<span·class="nc">MessageMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>77 <span·class="k">class</span>·<span·class="nc">MessageMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>78 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
78 <span·class="sd">····Middleware·that·handles·temporary·messages.</span>79 <span·class="sd">····Middleware·that·handles·temporary·messages.</span>
79 <span·class="sd">····&quot;&quot;&quot;</span>80 <span·class="sd">····&quot;&quot;&quot;</span>
  
80 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>81 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
81 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">_messages</span>·<span·class="o">=</span>·<span·class="n">default_storage</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>82 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">_messages</span>·<span·class="o">=</span>·<span·class="n">default_storage</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>
Offset 108, 35 lines modifiedOffset 109, 35 lines modified
108 ······109 ······
109 ········110 ········
110 ··········<div·class="yui-b"·id="sidebar">111 ··········<div·class="yui-b"·id="sidebar">
111 ············112 ············
112 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">113 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
113 ········<div·class="sphinxsidebarwrapper">114 ········<div·class="sphinxsidebarwrapper">
114 <search·id="searchbox"·style="display:·none"·role="search">115 <search·id="searchbox"·style="display:·none"·role="search">
115 ··<h3·id="searchlabel">Quick·search</h3>116 ··<h3·id="searchlabel">Ricerca·veloce</h3>
116 ····<div·class="searchformwrapper">117 ····<div·class="searchformwrapper">
117 ····<form·class="search"·action="../../../../search.html"·method="get">118 ····<form·class="search"·action="../../../../search.html"·method="get">
118 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>119 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
119 ······<input·type="submit"·value="Go"·/>120 ······<input·type="submit"·value="Vai"·/>
120 ····</form>121 ····</form>
121 ····</div>122 ····</div>
122 </search>123 </search>
123 <script>document.getElementById('searchbox').style.display·=·"block"</script>124 <script>document.getElementById('searchbox').style.display·=·"block"</script>
124 ········</div>125 ········</div>
125 ······</div>126 ······</div>
126 ··············<h3>Last·update:</h3>127 ··············<h3>Last·update:</h3>
127 ··············<p·class="topless">Sep·03,·2024</p>128 ··············<p·class="topless">set·03,·2024</p>
128 ··········</div>129 ··········</div>
129 ········130 ········
130 ······131 ······
131 ····</div>132 ····</div>
  
132 ····<div·id="ft">133 ····<div·id="ft">
133 ······<div·class="nav">134 ······<div·class="nav">
134 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>135 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
135 ····</div>136 ····</div>
136 ··</div>137 ··</div>
  
137 ······<div·class="clearer"></div>138 ······<div·class="clearer"></div>
138 ····</div>139 ····</div>
139 ··</body>140 ··</body>
140 </html>141 </html>
1.91 KB
html2text {}
Max HTML report size reached
8.82 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/postgres/constraints.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.postgres.constraints·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres.constraints·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-constraints">69 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-constraints">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.postgres.constraints</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.postgres.constraints</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.contrib.postgres.indexes</span>·<span·class="kn">import</span>·<span·class="n">OpClass</span>73 <span·class="kn">from</span>·<span·class="nn">django.contrib.postgres.indexes</span>·<span·class="kn">import</span>·<span·class="n">OpClass</span>
73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>
74 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>·<span·class="n">NotSupportedError</span>75 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>·<span·class="n">NotSupportedError</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.backends.ddl_references</span>·<span·class="kn">import</span>·<span·class="n">Expressions</span><span·class="p">,</span>·<span·class="n">Statement</span><span·class="p">,</span>·<span·class="n">Table</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.backends.ddl_references</span>·<span·class="kn">import</span>·<span·class="n">Expressions</span><span·class="p">,</span>·<span·class="n">Statement</span><span·class="p">,</span>·<span·class="n">Table</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">BaseConstraint</span><span·class="p">,</span>·<span·class="n">Deferrable</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">Q</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">BaseConstraint</span><span·class="p">,</span>·<span·class="n">Deferrable</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">Q</span>
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
  
  
88 <span·class="k">class</span>·<span·class="nc">ExclusionConstraintExpression</span><span·class="p">(</span><span·class="n">IndexExpression</span><span·class="p">):</span>89 <span·class="k">class</span>·<span·class="nc">ExclusionConstraintExpression</span><span·class="p">(</span><span·class="n">IndexExpression</span><span·class="p">):</span>
89 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(expressions)s</span><span·class="s2">·WITH·</span><span·class="si">%(operator)s</span><span·class="s2">&quot;</span>90 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(expressions)s</span><span·class="s2">·WITH·</span><span·class="si">%(operator)s</span><span·class="s2">&quot;</span>
  
  
90 <div·class="viewcode-block"·id="ExclusionConstraint">91 <div·class="viewcode-block"·id="ExclusionConstraint">
91 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/constraints.html#django.contrib.postgres.constraints.ExclusionConstraint">[docs]</a>92 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/constraints.html#django.contrib.postgres.constraints.ExclusionConstraint">[documenti]</a>
92 <span·class="k">class</span>·<span·class="nc">ExclusionConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>93 <span·class="k">class</span>·<span·class="nc">ExclusionConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>
93 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="p">(</span>94 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="p">(</span>
94 ········<span·class="s2">&quot;CONSTRAINT·</span><span·class="si">%(name)s</span><span·class="s2">·EXCLUDE·USING·</span><span·class="si">%(index_type)s</span><span·class="s2">·&quot;</span>95 ········<span·class="s2">&quot;CONSTRAINT·</span><span·class="si">%(name)s</span><span·class="s2">·EXCLUDE·USING·</span><span·class="si">%(index_type)s</span><span·class="s2">·&quot;</span>
95 ········<span·class="s2">&quot;(</span><span·class="si">%(expressions)s</span><span·class="s2">)</span><span·class="si">%(include)s%(where)s%(deferrable)s</span><span·class="s2">&quot;</span>96 ········<span·class="s2">&quot;(</span><span·class="si">%(expressions)s</span><span·class="s2">)</span><span·class="si">%(include)s%(where)s%(deferrable)s</span><span·class="s2">&quot;</span>
96 ····<span·class="p">)</span>97 ····<span·class="p">)</span>
  
97 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>98 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
Offset 315, 35 lines modifiedOffset 316, 35 lines modified
315 ······316 ······
316 ········317 ········
317 ··········<div·class="yui-b"·id="sidebar">318 ··········<div·class="yui-b"·id="sidebar">
318 ············319 ············
319 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">320 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
320 ········<div·class="sphinxsidebarwrapper">321 ········<div·class="sphinxsidebarwrapper">
321 <search·id="searchbox"·style="display:·none"·role="search">322 <search·id="searchbox"·style="display:·none"·role="search">
322 ··<h3·id="searchlabel">Quick·search</h3>323 ··<h3·id="searchlabel">Ricerca·veloce</h3>
323 ····<div·class="searchformwrapper">324 ····<div·class="searchformwrapper">
324 ····<form·class="search"·action="../../../../search.html"·method="get">325 ····<form·class="search"·action="../../../../search.html"·method="get">
325 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>326 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
326 ······<input·type="submit"·value="Go"·/>327 ······<input·type="submit"·value="Vai"·/>
327 ····</form>328 ····</form>
328 ····</div>329 ····</div>
329 </search>330 </search>
330 <script>document.getElementById('searchbox').style.display·=·"block"</script>331 <script>document.getElementById('searchbox').style.display·=·"block"</script>
331 ········</div>332 ········</div>
332 ······</div>333 ······</div>
333 ··············<h3>Last·update:</h3>334 ··············<h3>Last·update:</h3>
334 ··············<p·class="topless">Sep·03,·2024</p>335 ··············<p·class="topless">set·03,·2024</p>
335 ··········</div>336 ··········</div>
336 ········337 ········
337 ······338 ······
338 ····</div>339 ····</div>
  
339 ····<div·id="ft">340 ····<div·id="ft">
340 ······<div·class="nav">341 ······<div·class="nav">
341 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>342 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
342 ····</div>343 ····</div>
343 ··</div>344 ··</div>
  
344 ······<div·class="clearer"></div>345 ······<div·class="clearer"></div>
345 ····</div>346 ····</div>
346 ··</body>347 ··</body>
347 </html>348 </html>
2.12 KB
html2text {}
Max HTML report size reached
7.29 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/postgres/functions.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.postgres.functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres.functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 44 lines modifiedOffset 51, 44 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-functions">69 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-functions">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.postgres.functions</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.postgres.functions</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">DateTimeField</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">UUIDField</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">DateTimeField</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">UUIDField</span>
  
  
72 <div·class="viewcode-block"·id="RandomUUID">73 <div·class="viewcode-block"·id="RandomUUID">
73 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/functions.html#django.contrib.postgres.functions.RandomUUID">[docs]</a>74 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/functions.html#django.contrib.postgres.functions.RandomUUID">[documenti]</a>
74 <span·class="k">class</span>·<span·class="nc">RandomUUID</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>75 <span·class="k">class</span>·<span·class="nc">RandomUUID</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
75 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEN_RANDOM_UUID()&quot;</span>76 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;GEN_RANDOM_UUID()&quot;</span>
76 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">UUIDField</span><span·class="p">()</span></div>77 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">UUIDField</span><span·class="p">()</span></div>
  
  
  
77 <div·class="viewcode-block"·id="TransactionNow">78 <div·class="viewcode-block"·id="TransactionNow">
78 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/functions.html#django.contrib.postgres.functions.TransactionNow">[docs]</a>79 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/functions.html#django.contrib.postgres.functions.TransactionNow">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">TransactionNow</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">TransactionNow</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
80 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;CURRENT_TIMESTAMP&quot;</span>81 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;CURRENT_TIMESTAMP&quot;</span>
81 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">DateTimeField</span><span·class="p">()</span></div>82 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">DateTimeField</span><span·class="p">()</span></div>
  
82 </pre></div>83 </pre></div>
  
83 ··········</div>84 ··········</div>
Offset 96, 35 lines modifiedOffset 97, 35 lines modified
96 ······97 ······
97 ········98 ········
98 ··········<div·class="yui-b"·id="sidebar">99 ··········<div·class="yui-b"·id="sidebar">
99 ············100 ············
100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">101 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
101 ········<div·class="sphinxsidebarwrapper">102 ········<div·class="sphinxsidebarwrapper">
102 <search·id="searchbox"·style="display:·none"·role="search">103 <search·id="searchbox"·style="display:·none"·role="search">
103 ··<h3·id="searchlabel">Quick·search</h3>104 ··<h3·id="searchlabel">Ricerca·veloce</h3>
104 ····<div·class="searchformwrapper">105 ····<div·class="searchformwrapper">
105 ····<form·class="search"·action="../../../../search.html"·method="get">106 ····<form·class="search"·action="../../../../search.html"·method="get">
106 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>107 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
107 ······<input·type="submit"·value="Go"·/>108 ······<input·type="submit"·value="Vai"·/>
108 ····</form>109 ····</form>
109 ····</div>110 ····</div>
110 </search>111 </search>
111 <script>document.getElementById('searchbox').style.display·=·"block"</script>112 <script>document.getElementById('searchbox').style.display·=·"block"</script>
112 ········</div>113 ········</div>
113 ······</div>114 ······</div>
114 ··············<h3>Last·update:</h3>115 ··············<h3>Last·update:</h3>
115 ··············<p·class="topless">Sep·03,·2024</p>116 ··············<p·class="topless">set·03,·2024</p>
116 ··········</div>117 ··········</div>
117 ········118 ········
118 ······119 ······
119 ····</div>120 ····</div>
  
120 ····<div·id="ft">121 ····<div·id="ft">
121 ······<div·class="nav">122 ······<div·class="nav">
122 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>123 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
123 ····</div>124 ····</div>
124 ··</div>125 ··</div>
  
125 ······<div·class="clearer"></div>126 ······<div·class="clearer"></div>
126 ····</div>127 ····</div>
127 ··</body>128 ··</body>
128 </html>129 </html>
1.51 KB
html2text {}
Max HTML report size reached
25.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/postgres/indexes.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.postgres.indexes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres.indexes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-indexes">69 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-indexes">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.postgres.indexes</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.postgres.indexes</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span>
72 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Index</span>73 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Index</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
  
74 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span>75 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span>
75 ····<span·class="s2">&quot;BloomIndex&quot;</span><span·class="p">,</span>76 ····<span·class="s2">&quot;BloomIndex&quot;</span><span·class="p">,</span>
76 ····<span·class="s2">&quot;BrinIndex&quot;</span><span·class="p">,</span>77 ····<span·class="s2">&quot;BrinIndex&quot;</span><span·class="p">,</span>
Offset 112, 15 lines modifiedOffset 113, 15 lines modified
112 ········<span·class="k">pass</span>113 ········<span·class="k">pass</span>
  
113 ····<span·class="k">def</span>·<span·class="nf">get_with_params</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>114 ····<span·class="k">def</span>·<span·class="nf">get_with_params</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
114 ········<span·class="k">return</span>·<span·class="p">[]</span>115 ········<span·class="k">return</span>·<span·class="p">[]</span>
  
  
115 <div·class="viewcode-block"·id="BloomIndex">116 <div·class="viewcode-block"·id="BloomIndex">
116 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BloomIndex">[docs]</a>117 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BloomIndex">[documenti]</a>
117 <span·class="k">class</span>·<span·class="nc">BloomIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>118 <span·class="k">class</span>·<span·class="nc">BloomIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>
118 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;bloom&quot;</span>119 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;bloom&quot;</span>
  
119 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">columns</span><span·class="o">=</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>120 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">columns</span><span·class="o">=</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
120 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>121 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
121 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">fields</span><span·class="p">)</span>·<span·class="o">&gt;</span>·<span·class="mi">32</span><span·class="p">:</span>122 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">fields</span><span·class="p">)</span>·<span·class="o">&gt;</span>·<span·class="mi">32</span><span·class="p">:</span>
122 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Bloom·indexes·support·a·maximum·of·32·fields.&quot;</span><span·class="p">)</span>123 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Bloom·indexes·support·a·maximum·of·32·fields.&quot;</span><span·class="p">)</span>
Offset 156, 15 lines modifiedOffset 157, 15 lines modified
156 ················<span·class="s2">&quot;col</span><span·class="si">%d</span><span·class="s2">·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">i</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">i</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="nb">enumerate</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">columns</span><span·class="p">,</span>·<span·class="n">start</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>157 ················<span·class="s2">&quot;col</span><span·class="si">%d</span><span·class="s2">·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">i</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">i</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="nb">enumerate</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">columns</span><span·class="p">,</span>·<span·class="n">start</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>
157 ············<span·class="p">)</span>158 ············<span·class="p">)</span>
158 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>159 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>
  
  
  
159 <div·class="viewcode-block"·id="BrinIndex">160 <div·class="viewcode-block"·id="BrinIndex">
160 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BrinIndex">[docs]</a>161 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BrinIndex">[documenti]</a>
161 <span·class="k">class</span>·<span·class="nc">BrinIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>162 <span·class="k">class</span>·<span·class="nc">BrinIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>
162 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;brin&quot;</span>163 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;brin&quot;</span>
  
163 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>164 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
164 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">autosummarize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">pages_per_range</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span>165 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">autosummarize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">pages_per_range</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span>
165 ····<span·class="p">):</span>166 ····<span·class="p">):</span>
166 ········<span·class="k">if</span>·<span·class="n">pages_per_range</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="n">pages_per_range</span>·<span·class="o">&lt;=</span>·<span·class="mi">0</span><span·class="p">:</span>167 ········<span·class="k">if</span>·<span·class="n">pages_per_range</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="n">pages_per_range</span>·<span·class="o">&lt;=</span>·<span·class="mi">0</span><span·class="p">:</span>
Offset 190, 15 lines modifiedOffset 191, 15 lines modified
190 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pages_per_range</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>191 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pages_per_range</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
191 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;pages_per_range·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pages_per_range</span><span·class="p">)</span>192 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;pages_per_range·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">pages_per_range</span><span·class="p">)</span>
192 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>193 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>
  
  
  
193 <div·class="viewcode-block"·id="BTreeIndex">194 <div·class="viewcode-block"·id="BTreeIndex">
194 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BTreeIndex">[docs]</a>195 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.BTreeIndex">[documenti]</a>
195 <span·class="k">class</span>·<span·class="nc">BTreeIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>196 <span·class="k">class</span>·<span·class="nc">BTreeIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>
196 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;btree&quot;</span>197 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;btree&quot;</span>
  
197 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">fillfactor</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>198 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">fillfactor</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
198 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span>·<span·class="o">=</span>·<span·class="n">fillfactor</span>199 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span>·<span·class="o">=</span>·<span·class="n">fillfactor</span>
199 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>200 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
  
Offset 213, 15 lines modifiedOffset 214, 15 lines modified
213 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>214 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
214 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;fillfactor·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span><span·class="p">)</span>215 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;fillfactor·=·</span><span·class="si">%d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fillfactor</span><span·class="p">)</span>
215 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>216 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>
  
  
  
216 <div·class="viewcode-block"·id="GinIndex">217 <div·class="viewcode-block"·id="GinIndex">
217 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.GinIndex">[docs]</a>218 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.GinIndex">[documenti]</a>
218 <span·class="k">class</span>·<span·class="nc">GinIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>219 <span·class="k">class</span>·<span·class="nc">GinIndex</span><span·class="p">(</span><span·class="n">PostgresIndex</span><span·class="p">):</span>
219 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;gin&quot;</span>220 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;gin&quot;</span>
  
220 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>221 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
221 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">fastupdate</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">gin_pending_list_limit</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span>222 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">fastupdate</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">gin_pending_list_limit</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span>
222 ····<span·class="p">):</span>223 ····<span·class="p">):</span>
223 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="o">=</span>·<span·class="n">fastupdate</span>224 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="o">=</span>·<span·class="n">fastupdate</span>
Offset 245, 15 lines modifiedOffset 246, 15 lines modified
245 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>246 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
246 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;fastupdate·=·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="s2">&quot;on&quot;</span>·<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="k">else</span>·<span·class="s2">&quot;off&quot;</span><span·class="p">))</span>247 ············<span·class="n">with_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="s2">&quot;fastupdate·=·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="s2">&quot;on&quot;</span>·<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">fastupdate</span>·<span·class="k">else</span>·<span·class="s2">&quot;off&quot;</span><span·class="p">))</span>
247 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>248 ········<span·class="k">return</span>·<span·class="n">with_params</span></div>
  
  
  
248 <div·class="viewcode-block"·id="GistIndex">249 <div·class="viewcode-block"·id="GistIndex">
249 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.GistIndex">[docs]</a>250 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/indexes.html#django.contrib.postgres.indexes.GistIndex">[documenti]</a>
Max diff block lines reached; 8685/21877 bytes (39.70%) of diff not shown.
4.27 KB
html2text {}
Max HTML report size reached
23.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/postgres/search.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.postgres.search·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres.search·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-search">69 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-search">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.postgres.search</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.postgres.search</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="p">(</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="p">(</span>
72 ····<span·class="n">CharField</span><span·class="p">,</span>73 ····<span·class="n">CharField</span><span·class="p">,</span>
73 ····<span·class="n">Expression</span><span·class="p">,</span>74 ····<span·class="n">Expression</span><span·class="p">,</span>
74 ····<span·class="n">Field</span><span·class="p">,</span>75 ····<span·class="n">Field</span><span·class="p">,</span>
75 ····<span·class="n">FloatField</span><span·class="p">,</span>76 ····<span·class="n">FloatField</span><span·class="p">,</span>
76 ····<span·class="n">Func</span><span·class="p">,</span>77 ····<span·class="n">Func</span><span·class="p">,</span>
77 ····<span·class="n">Lookup</span><span·class="p">,</span>78 ····<span·class="n">Lookup</span><span·class="p">,</span>
Offset 99, 15 lines modifiedOffset 100, 15 lines modified
99 ········<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">lhs_params</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">process_lhs</span><span·class="p">(</span><span·class="n">qn</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">)</span>100 ········<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">lhs_params</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">process_lhs</span><span·class="p">(</span><span·class="n">qn</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">)</span>
100 ········<span·class="n">rhs</span><span·class="p">,</span>·<span·class="n">rhs_params</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">process_rhs</span><span·class="p">(</span><span·class="n">qn</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">)</span>101 ········<span·class="n">rhs</span><span·class="p">,</span>·<span·class="n">rhs_params</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">process_rhs</span><span·class="p">(</span><span·class="n">qn</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">)</span>
101 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">lhs_params</span>·<span·class="o">+</span>·<span·class="n">rhs_params</span>102 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">lhs_params</span>·<span·class="o">+</span>·<span·class="n">rhs_params</span>
102 ········<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">·@@·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">),</span>·<span·class="n">params</span>103 ········<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">·@@·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">),</span>·<span·class="n">params</span>
  
  
103 <div·class="viewcode-block"·id="SearchVectorField">104 <div·class="viewcode-block"·id="SearchVectorField">
104 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchVectorField">[docs]</a>105 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchVectorField">[documenti]</a>
105 <span·class="k">class</span>·<span·class="nc">SearchVectorField</span><span·class="p">(</span><span·class="n">Field</span><span·class="p">):</span>106 <span·class="k">class</span>·<span·class="nc">SearchVectorField</span><span·class="p">(</span><span·class="n">Field</span><span·class="p">):</span>
106 ····<span·class="k">def</span>·<span·class="nf">db_type</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>107 ····<span·class="k">def</span>·<span·class="nf">db_type</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>
107 ········<span·class="k">return</span>·<span·class="s2">&quot;tsvector&quot;</span></div>108 ········<span·class="k">return</span>·<span·class="s2">&quot;tsvector&quot;</span></div>
  
  
  
108 <span·class="k">class</span>·<span·class="nc">SearchQueryField</span><span·class="p">(</span><span·class="n">Field</span><span·class="p">):</span>109 <span·class="k">class</span>·<span·class="nc">SearchQueryField</span><span·class="p">(</span><span·class="n">Field</span><span·class="p">):</span>
Offset 160, 15 lines modifiedOffset 161, 15 lines modified
  
160 <span·class="n">register_combinable_fields</span><span·class="p">(</span>161 <span·class="n">register_combinable_fields</span><span·class="p">(</span>
161 ····<span·class="n">SearchVectorField</span><span·class="p">,</span>·<span·class="n">SearchVectorCombinable</span><span·class="o">.</span><span·class="n">ADD</span><span·class="p">,</span>·<span·class="n">SearchVectorField</span><span·class="p">,</span>·<span·class="n">SearchVectorField</span>162 ····<span·class="n">SearchVectorField</span><span·class="p">,</span>·<span·class="n">SearchVectorCombinable</span><span·class="o">.</span><span·class="n">ADD</span><span·class="p">,</span>·<span·class="n">SearchVectorField</span><span·class="p">,</span>·<span·class="n">SearchVectorField</span>
162 <span·class="p">)</span>163 <span·class="p">)</span>
  
  
163 <div·class="viewcode-block"·id="SearchVector">164 <div·class="viewcode-block"·id="SearchVector">
164 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchVector">[docs]</a>165 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchVector">[documenti]</a>
165 <span·class="k">class</span>·<span·class="nc">SearchVector</span><span·class="p">(</span><span·class="n">SearchVectorCombinable</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>166 <span·class="k">class</span>·<span·class="nc">SearchVector</span><span·class="p">(</span><span·class="n">SearchVectorCombinable</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>
166 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;to_tsvector&quot;</span>167 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;to_tsvector&quot;</span>
167 ····<span·class="n">arg_joiner</span>·<span·class="o">=</span>·<span·class="s2">&quot;·||·&#39;·&#39;·||·&quot;</span>168 ····<span·class="n">arg_joiner</span>·<span·class="o">=</span>·<span·class="s2">&quot;·||·&#39;·&#39;·||·&quot;</span>
168 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">SearchVectorField</span><span·class="p">()</span>169 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">SearchVectorField</span><span·class="p">()</span>
  
169 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">config</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">weight</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>170 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">config</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">weight</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
170 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">)</span>171 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">)</span>
Offset 259, 15 lines modifiedOffset 260, 15 lines modified
259 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_combine</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">BITAND</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>260 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_combine</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">BITAND</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>
  
260 ····<span·class="k">def</span>·<span·class="fm">__rand__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other</span><span·class="p">):</span>261 ····<span·class="k">def</span>·<span·class="fm">__rand__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other</span><span·class="p">):</span>
261 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_combine</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">BITAND</span><span·class="p">,</span>·<span·class="kc">True</span><span·class="p">)</span>262 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_combine</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">BITAND</span><span·class="p">,</span>·<span·class="kc">True</span><span·class="p">)</span>
  
  
262 <div·class="viewcode-block"·id="SearchQuery">263 <div·class="viewcode-block"·id="SearchQuery">
263 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchQuery">[docs]</a>264 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchQuery">[documenti]</a>
264 <span·class="k">class</span>·<span·class="nc">SearchQuery</span><span·class="p">(</span><span·class="n">SearchQueryCombinable</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>265 <span·class="k">class</span>·<span·class="nc">SearchQuery</span><span·class="p">(</span><span·class="n">SearchQueryCombinable</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>
265 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">SearchQueryField</span><span·class="p">()</span>266 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">SearchQueryField</span><span·class="p">()</span>
266 ····<span·class="n">SEARCH_TYPES</span>·<span·class="o">=</span>·<span·class="p">{</span>267 ····<span·class="n">SEARCH_TYPES</span>·<span·class="o">=</span>·<span·class="p">{</span>
267 ········<span·class="s2">&quot;plain&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;plainto_tsquery&quot;</span><span·class="p">,</span>268 ········<span·class="s2">&quot;plain&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;plainto_tsquery&quot;</span><span·class="p">,</span>
268 ········<span·class="s2">&quot;phrase&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;phraseto_tsquery&quot;</span><span·class="p">,</span>269 ········<span·class="s2">&quot;phrase&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;phraseto_tsquery&quot;</span><span·class="p">,</span>
269 ········<span·class="s2">&quot;raw&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;to_tsquery&quot;</span><span·class="p">,</span>270 ········<span·class="s2">&quot;raw&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;to_tsquery&quot;</span><span·class="p">,</span>
270 ········<span·class="s2">&quot;websearch&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;websearch_to_tsquery&quot;</span><span·class="p">,</span>271 ········<span·class="s2">&quot;websearch&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;websearch_to_tsquery&quot;</span><span·class="p">,</span>
Offset 317, 15 lines modifiedOffset 318, 15 lines modified
317 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">connector</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">)</span>318 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">connector</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">)</span>
  
318 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>319 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
319 ········<span·class="k">return</span>·<span·class="s2">&quot;(</span><span·class="si">%s</span><span·class="s2">)&quot;</span>·<span·class="o">%</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__str__</span><span·class="p">()</span>320 ········<span·class="k">return</span>·<span·class="s2">&quot;(</span><span·class="si">%s</span><span·class="s2">)&quot;</span>·<span·class="o">%</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__str__</span><span·class="p">()</span>
  
  
320 <div·class="viewcode-block"·id="SearchRank">321 <div·class="viewcode-block"·id="SearchRank">
321 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchRank">[docs]</a>322 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchRank">[documenti]</a>
322 <span·class="k">class</span>·<span·class="nc">SearchRank</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>323 <span·class="k">class</span>·<span·class="nc">SearchRank</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
323 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;ts_rank&quot;</span>324 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;ts_rank&quot;</span>
324 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">FloatField</span><span·class="p">()</span>325 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">FloatField</span><span·class="p">()</span>
  
325 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>326 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
326 ········<span·class="bp">self</span><span·class="p">,</span>327 ········<span·class="bp">self</span><span·class="p">,</span>
327 ········<span·class="n">vector</span><span·class="p">,</span>328 ········<span·class="n">vector</span><span·class="p">,</span>
Offset 353, 15 lines modifiedOffset 354, 15 lines modified
353 ········<span·class="k">if</span>·<span·class="n">cover_density</span><span·class="p">:</span>354 ········<span·class="k">if</span>·<span·class="n">cover_density</span><span·class="p">:</span>
354 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;ts_rank_cd&quot;</span>355 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;ts_rank_cd&quot;</span>
355 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">)</span></div>356 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">expressions</span><span·class="p">)</span></div>
  
  
  
356 <div·class="viewcode-block"·id="SearchHeadline">357 <div·class="viewcode-block"·id="SearchHeadline">
357 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchHeadline">[docs]</a>358 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/search.html#django.contrib.postgres.search.SearchHeadline">[documenti]</a>
Max diff block lines reached; 7222/19511 bytes (37.02%) of diff not shown.
4.34 KB
html2text {}
Max HTML report size reached
12.1 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/postgres/validators.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.postgres.validators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres.validators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-validators">69 ··········<div·class="yui-g"·id="_modules-django-contrib-postgres-validators">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.postgres.validators</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.postgres.validators</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>
72 <span·class="kn">from</span>·<span·class="nn">django.core.validators</span>·<span·class="kn">import</span>·<span·class="p">(</span>73 <span·class="kn">from</span>·<span·class="nn">django.core.validators</span>·<span·class="kn">import</span>·<span·class="p">(</span>
73 ····<span·class="n">MaxLengthValidator</span><span·class="p">,</span>74 ····<span·class="n">MaxLengthValidator</span><span·class="p">,</span>
74 ····<span·class="n">MaxValueValidator</span><span·class="p">,</span>75 ····<span·class="n">MaxValueValidator</span><span·class="p">,</span>
75 ····<span·class="n">MinLengthValidator</span><span·class="p">,</span>76 ····<span·class="n">MinLengthValidator</span><span·class="p">,</span>
76 ····<span·class="n">MinValueValidator</span><span·class="p">,</span>77 ····<span·class="n">MinValueValidator</span><span·class="p">,</span>
77 <span·class="p">)</span>78 <span·class="p">)</span>
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 ········<span·class="s2">&quot;List·contains·</span><span·class="si">%(show_value)d</span><span·class="s2">·items,·it·should·contain·no·fewer·than·&quot;</span>101 ········<span·class="s2">&quot;List·contains·</span><span·class="si">%(show_value)d</span><span·class="s2">·items,·it·should·contain·no·fewer·than·&quot;</span>
101 ········<span·class="s2">&quot;</span><span·class="si">%(limit_value)d</span><span·class="s2">.&quot;</span><span·class="p">,</span>102 ········<span·class="s2">&quot;</span><span·class="si">%(limit_value)d</span><span·class="s2">.&quot;</span><span·class="p">,</span>
102 ········<span·class="s2">&quot;limit_value&quot;</span><span·class="p">,</span>103 ········<span·class="s2">&quot;limit_value&quot;</span><span·class="p">,</span>
103 ····<span·class="p">)</span>104 ····<span·class="p">)</span>
  
  
104 <div·class="viewcode-block"·id="KeysValidator">105 <div·class="viewcode-block"·id="KeysValidator">
105 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.KeysValidator">[docs]</a>106 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.KeysValidator">[documenti]</a>
106 <span·class="nd">@deconstructible</span>107 <span·class="nd">@deconstructible</span>
107 <span·class="k">class</span>·<span·class="nc">KeysValidator</span><span·class="p">:</span>108 <span·class="k">class</span>·<span·class="nc">KeysValidator</span><span·class="p">:</span>
108 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·validator·designed·for·HStore·to·require/restrict·keys.&quot;&quot;&quot;</span>109 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·validator·designed·for·HStore·to·require/restrict·keys.&quot;&quot;&quot;</span>
  
109 ····<span·class="n">messages</span>·<span·class="o">=</span>·<span·class="p">{</span>110 ····<span·class="n">messages</span>·<span·class="o">=</span>·<span·class="p">{</span>
110 ········<span·class="s2">&quot;missing_keys&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Some·keys·were·missing:·</span><span·class="si">%(keys)s</span><span·class="s2">&quot;</span><span·class="p">),</span>111 ········<span·class="s2">&quot;missing_keys&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Some·keys·were·missing:·</span><span·class="si">%(keys)s</span><span·class="s2">&quot;</span><span·class="p">),</span>
111 ········<span·class="s2">&quot;extra_keys&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Some·unknown·keys·were·provided:·</span><span·class="si">%(keys)s</span><span·class="s2">&quot;</span><span·class="p">),</span>112 ········<span·class="s2">&quot;extra_keys&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Some·unknown·keys·were·provided:·</span><span·class="si">%(keys)s</span><span·class="s2">&quot;</span><span·class="p">),</span>
Offset 146, 27 lines modifiedOffset 147, 27 lines modified
146 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">messages</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">messages</span>147 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">messages</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">messages</span>
147 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">strict</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">strict</span>148 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">strict</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">strict</span>
148 ········<span·class="p">)</span></div>149 ········<span·class="p">)</span></div>
  
  
  
149 <div·class="viewcode-block"·id="RangeMaxValueValidator">150 <div·class="viewcode-block"·id="RangeMaxValueValidator">
150 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.RangeMaxValueValidator">[docs]</a>151 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.RangeMaxValueValidator">[documenti]</a>
151 <span·class="k">class</span>·<span·class="nc">RangeMaxValueValidator</span><span·class="p">(</span><span·class="n">MaxValueValidator</span><span·class="p">):</span>152 <span·class="k">class</span>·<span·class="nc">RangeMaxValueValidator</span><span·class="p">(</span><span·class="n">MaxValueValidator</span><span·class="p">):</span>
152 ····<span·class="k">def</span>·<span·class="nf">compare</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">a</span><span·class="p">,</span>·<span·class="n">b</span><span·class="p">):</span>153 ····<span·class="k">def</span>·<span·class="nf">compare</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">a</span><span·class="p">,</span>·<span·class="n">b</span><span·class="p">):</span>
153 ········<span·class="k">return</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">upper</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">upper</span>·<span·class="o">&gt;</span>·<span·class="n">b</span>154 ········<span·class="k">return</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">upper</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">upper</span>·<span·class="o">&gt;</span>·<span·class="n">b</span>
  
154 ····<span·class="n">message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>155 ····<span·class="n">message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>
155 ········<span·class="s2">&quot;Ensure·that·the·upper·bound·of·the·range·is·not·greater·than·</span><span·class="si">%(limit_value)s</span><span·class="s2">.&quot;</span>156 ········<span·class="s2">&quot;Ensure·that·the·upper·bound·of·the·range·is·not·greater·than·</span><span·class="si">%(limit_value)s</span><span·class="s2">.&quot;</span>
156 ····<span·class="p">)</span></div>157 ····<span·class="p">)</span></div>
  
  
  
157 <div·class="viewcode-block"·id="RangeMinValueValidator">158 <div·class="viewcode-block"·id="RangeMinValueValidator">
158 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.RangeMinValueValidator">[docs]</a>159 <a·class="viewcode-back"·href="../../../../ref/contrib/postgres/validators.html#django.contrib.postgres.validators.RangeMinValueValidator">[documenti]</a>
159 <span·class="k">class</span>·<span·class="nc">RangeMinValueValidator</span><span·class="p">(</span><span·class="n">MinValueValidator</span><span·class="p">):</span>160 <span·class="k">class</span>·<span·class="nc">RangeMinValueValidator</span><span·class="p">(</span><span·class="n">MinValueValidator</span><span·class="p">):</span>
160 ····<span·class="k">def</span>·<span·class="nf">compare</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">a</span><span·class="p">,</span>·<span·class="n">b</span><span·class="p">):</span>161 ····<span·class="k">def</span>·<span·class="nf">compare</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">a</span><span·class="p">,</span>·<span·class="n">b</span><span·class="p">):</span>
161 ········<span·class="k">return</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">lower</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">lower</span>·<span·class="o">&lt;</span>·<span·class="n">b</span>162 ········<span·class="k">return</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">lower</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">a</span><span·class="o">.</span><span·class="n">lower</span>·<span·class="o">&lt;</span>·<span·class="n">b</span>
  
162 ····<span·class="n">message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>163 ····<span·class="n">message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span>
163 ········<span·class="s2">&quot;Ensure·that·the·lower·bound·of·the·range·is·not·less·than·</span><span·class="si">%(limit_value)s</span><span·class="s2">.&quot;</span>164 ········<span·class="s2">&quot;Ensure·that·the·lower·bound·of·the·range·is·not·less·than·</span><span·class="si">%(limit_value)s</span><span·class="s2">.&quot;</span>
164 ····<span·class="p">)</span></div>165 ····<span·class="p">)</span></div>
Offset 179, 35 lines modifiedOffset 180, 35 lines modified
179 ······180 ······
180 ········181 ········
181 ··········<div·class="yui-b"·id="sidebar">182 ··········<div·class="yui-b"·id="sidebar">
182 ············183 ············
183 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">184 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
184 ········<div·class="sphinxsidebarwrapper">185 ········<div·class="sphinxsidebarwrapper">
185 <search·id="searchbox"·style="display:·none"·role="search">186 <search·id="searchbox"·style="display:·none"·role="search">
186 ··<h3·id="searchlabel">Quick·search</h3>187 ··<h3·id="searchlabel">Ricerca·veloce</h3>
187 ····<div·class="searchformwrapper">188 ····<div·class="searchformwrapper">
188 ····<form·class="search"·action="../../../../search.html"·method="get">189 ····<form·class="search"·action="../../../../search.html"·method="get">
189 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
190 ······<input·type="submit"·value="Go"·/>191 ······<input·type="submit"·value="Vai"·/>
191 ····</form>192 ····</form>
192 ····</div>193 ····</div>
193 </search>194 </search>
194 <script>document.getElementById('searchbox').style.display·=·"block"</script>195 <script>document.getElementById('searchbox').style.display·=·"block"</script>
195 ········</div>196 ········</div>
196 ······</div>197 ······</div>
197 ··············<h3>Last·update:</h3>198 ··············<h3>Last·update:</h3>
198 ··············<p·class="topless">Sep·03,·2024</p>199 ··············<p·class="topless">set·03,·2024</p>
199 ··········</div>200 ··········</div>
200 ········201 ········
201 ······202 ······
202 ····</div>203 ····</div>
  
203 ····<div·id="ft">204 ····<div·id="ft">
204 ······<div·class="nav">205 ······<div·class="nav">
205 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>206 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
Max diff block lines reached; 79/9670 bytes (0.82%) of diff not shown.
2.48 KB
html2text {}
Max HTML report size reached
7.17 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/sessions/exceptions.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.sessions.exceptions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.sessions.exceptions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-sessions-exceptions">69 ··········<div·class="yui-g"·id="_modules-django-contrib-sessions-exceptions">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.sessions.exceptions</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.sessions.exceptions</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">BadRequest</span><span·class="p">,</span>·<span·class="n">SuspiciousOperation</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">BadRequest</span><span·class="p">,</span>·<span·class="n">SuspiciousOperation</span>
  
  
72 <span·class="k">class</span>·<span·class="nc">InvalidSessionKey</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>73 <span·class="k">class</span>·<span·class="nc">InvalidSessionKey</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>
73 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Invalid·characters·in·session·key&quot;&quot;&quot;</span>74 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Invalid·characters·in·session·key&quot;&quot;&quot;</span>
  
74 ····<span·class="k">pass</span>75 ····<span·class="k">pass</span>
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 <span·class="k">class</span>·<span·class="nc">SuspiciousSession</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>84 <span·class="k">class</span>·<span·class="nc">SuspiciousSession</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>
84 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·session·may·be·tampered·with&quot;&quot;&quot;</span>85 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·session·may·be·tampered·with&quot;&quot;&quot;</span>
  
85 ····<span·class="k">pass</span>86 ····<span·class="k">pass</span>
  
  
86 <div·class="viewcode-block"·id="SessionInterrupted">87 <div·class="viewcode-block"·id="SessionInterrupted">
87 <a·class="viewcode-back"·href="../../../../ref/exceptions.html#django.contrib.sessions.exceptions.SessionInterrupted">[docs]</a>88 <a·class="viewcode-back"·href="../../../../ref/exceptions.html#django.contrib.sessions.exceptions.SessionInterrupted">[documenti]</a>
88 <span·class="k">class</span>·<span·class="nc">SessionInterrupted</span><span·class="p">(</span><span·class="n">BadRequest</span><span·class="p">):</span>89 <span·class="k">class</span>·<span·class="nc">SessionInterrupted</span><span·class="p">(</span><span·class="n">BadRequest</span><span·class="p">):</span>
89 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·session·was·interrupted.&quot;&quot;&quot;</span>90 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·session·was·interrupted.&quot;&quot;&quot;</span>
  
90 ····<span·class="k">pass</span></div>91 ····<span·class="k">pass</span></div>
  
91 </pre></div>92 </pre></div>
  
Offset 101, 35 lines modifiedOffset 102, 35 lines modified
101 ······102 ······
102 ········103 ········
103 ··········<div·class="yui-b"·id="sidebar">104 ··········<div·class="yui-b"·id="sidebar">
104 ············105 ············
105 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">106 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
106 ········<div·class="sphinxsidebarwrapper">107 ········<div·class="sphinxsidebarwrapper">
107 <search·id="searchbox"·style="display:·none"·role="search">108 <search·id="searchbox"·style="display:·none"·role="search">
108 ··<h3·id="searchlabel">Quick·search</h3>109 ··<h3·id="searchlabel">Ricerca·veloce</h3>
109 ····<div·class="searchformwrapper">110 ····<div·class="searchformwrapper">
110 ····<form·class="search"·action="../../../../search.html"·method="get">111 ····<form·class="search"·action="../../../../search.html"·method="get">
111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
112 ······<input·type="submit"·value="Go"·/>113 ······<input·type="submit"·value="Vai"·/>
113 ····</form>114 ····</form>
114 ····</div>115 ····</div>
115 </search>116 </search>
116 <script>document.getElementById('searchbox').style.display·=·"block"</script>117 <script>document.getElementById('searchbox').style.display·=·"block"</script>
117 ········</div>118 ········</div>
118 ······</div>119 ······</div>
119 ··············<h3>Last·update:</h3>120 ··············<h3>Last·update:</h3>
120 ··············<p·class="topless">Sep·03,·2024</p>121 ··············<p·class="topless">set·03,·2024</p>
121 ··········</div>122 ··········</div>
122 ········123 ········
123 ······124 ······
124 ····</div>125 ····</div>
  
125 ····<div·id="ft">126 ····<div·id="ft">
126 ······<div·class="nav">127 ······<div·class="nav">
127 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>128 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
128 ····</div>129 ····</div>
129 ··</div>130 ··</div>
  
130 ······<div·class="clearer"></div>131 ······<div·class="clearer"></div>
131 ····</div>132 ····</div>
132 ··</body>133 ··</body>
133 </html>134 </html>
1.59 KB
html2text {}
Max HTML report size reached
8.81 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/sessions/middleware.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.sessions.middleware·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.sessions.middleware·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 44 lines modifiedOffset 51, 44 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-sessions-middleware">69 ··········<div·class="yui-g"·id="_modules-django-contrib-sessions-middleware">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.sessions.middleware</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.sessions.middleware</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">time</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">time</span>
72 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>73 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.contrib.sessions.backends.base</span>·<span·class="kn">import</span>·<span·class="n">UpdateError</span>75 <span·class="kn">from</span>·<span·class="nn">django.contrib.sessions.backends.base</span>·<span·class="kn">import</span>·<span·class="n">UpdateError</span>
75 <span·class="kn">from</span>·<span·class="nn">django.contrib.sessions.exceptions</span>·<span·class="kn">import</span>·<span·class="n">SessionInterrupted</span>76 <span·class="kn">from</span>·<span·class="nn">django.contrib.sessions.exceptions</span>·<span·class="kn">import</span>·<span·class="n">SessionInterrupted</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
78 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">http_date</span>79 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">http_date</span>
  
  
79 <div·class="viewcode-block"·id="SessionMiddleware">80 <div·class="viewcode-block"·id="SessionMiddleware">
80 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware">[docs]</a>81 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware">[documenti]</a>
81 <span·class="k">class</span>·<span·class="nc">SessionMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>82 <span·class="k">class</span>·<span·class="nc">SessionMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
82 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">get_response</span><span·class="p">):</span>83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">get_response</span><span·class="p">):</span>
83 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">get_response</span><span·class="p">)</span>84 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">get_response</span><span·class="p">)</span>
84 ········<span·class="n">engine</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">SESSION_ENGINE</span><span·class="p">)</span>85 ········<span·class="n">engine</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">SESSION_ENGINE</span><span·class="p">)</span>
85 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">SessionStore</span>·<span·class="o">=</span>·<span·class="n">engine</span><span·class="o">.</span><span·class="n">SessionStore</span>86 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">SessionStore</span>·<span·class="o">=</span>·<span·class="n">engine</span><span·class="o">.</span><span·class="n">SessionStore</span>
  
86 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>87 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
Offset 159, 35 lines modifiedOffset 160, 35 lines modified
159 ······160 ······
160 ········161 ········
161 ··········<div·class="yui-b"·id="sidebar">162 ··········<div·class="yui-b"·id="sidebar">
162 ············163 ············
163 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">164 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
164 ········<div·class="sphinxsidebarwrapper">165 ········<div·class="sphinxsidebarwrapper">
165 <search·id="searchbox"·style="display:·none"·role="search">166 <search·id="searchbox"·style="display:·none"·role="search">
166 ··<h3·id="searchlabel">Quick·search</h3>167 ··<h3·id="searchlabel">Ricerca·veloce</h3>
167 ····<div·class="searchformwrapper">168 ····<div·class="searchformwrapper">
168 ····<form·class="search"·action="../../../../search.html"·method="get">169 ····<form·class="search"·action="../../../../search.html"·method="get">
169 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>170 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
170 ······<input·type="submit"·value="Go"·/>171 ······<input·type="submit"·value="Vai"·/>
171 ····</form>172 ····</form>
172 ····</div>173 ····</div>
173 </search>174 </search>
174 <script>document.getElementById('searchbox').style.display·=·"block"</script>175 <script>document.getElementById('searchbox').style.display·=·"block"</script>
175 ········</div>176 ········</div>
176 ······</div>177 ······</div>
177 ··············<h3>Last·update:</h3>178 ··············<h3>Last·update:</h3>
178 ··············<p·class="topless">Sep·03,·2024</p>179 ··············<p·class="topless">set·03,·2024</p>
179 ··········</div>180 ··········</div>
180 ········181 ········
181 ······182 ······
182 ····</div>183 ····</div>
  
183 ····<div·id="ft">184 ····<div·id="ft">
184 ······<div·class="nav">185 ······<div·class="nav">
185 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>186 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
186 ····</div>187 ····</div>
187 ··</div>188 ··</div>
  
188 ······<div·class="clearer"></div>189 ······<div·class="clearer"></div>
189 ····</div>190 ····</div>
190 ··</body>191 ··</body>
191 </html>192 </html>
2.16 KB
html2text {}
Max HTML report size reached
21.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/sitemaps.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.sitemaps·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.sitemaps·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-sitemaps">69 ··········<div·class="yui-g"·id="_modules-django-contrib-sitemaps">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.sitemaps</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.sitemaps</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>
72 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlencode</span>73 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlencode</span>
73 <span·class="kn">from</span>·<span·class="nn">urllib.request</span>·<span·class="kn">import</span>·<span·class="n">urlopen</span>74 <span·class="kn">from</span>·<span·class="nn">urllib.request</span>·<span·class="kn">import</span>·<span·class="n">urlopen</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>75 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>·<span·class="k">as</span>·<span·class="n">django_apps</span>
75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
76 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">paginator</span>77 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">paginator</span>
Offset 87, 15 lines modifiedOffset 88, 15 lines modified
  
  
87 <span·class="k">class</span>·<span·class="nc">SitemapNotFound</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>88 <span·class="k">class</span>·<span·class="nc">SitemapNotFound</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
88 ····<span·class="k">pass</span>89 ····<span·class="k">pass</span>
  
  
89 <div·class="viewcode-block"·id="ping_google">90 <div·class="viewcode-block"·id="ping_google">
90 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.ping_google">[docs]</a>91 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.ping_google">[documenti]</a>
91 <span·class="k">def</span>·<span·class="nf">ping_google</span><span·class="p">(</span><span·class="n">sitemap_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">ping_url</span><span·class="o">=</span><span·class="n">PING_URL</span><span·class="p">,</span>·<span·class="n">sitemap_uses_https</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>92 <span·class="k">def</span>·<span·class="nf">ping_google</span><span·class="p">(</span><span·class="n">sitemap_url</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">ping_url</span><span·class="o">=</span><span·class="n">PING_URL</span><span·class="p">,</span>·<span·class="n">sitemap_uses_https</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
92 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
93 <span·class="sd">····Alert·Google·that·the·sitemap·for·the·current·site·has·been·updated.</span>94 <span·class="sd">····Alert·Google·that·the·sitemap·for·the·current·site·has·been·updated.</span>
94 <span·class="sd">····If·sitemap_url·is·provided,·it·should·be·an·absolute·path·to·the·sitemap</span>95 <span·class="sd">····If·sitemap_url·is·provided,·it·should·be·an·absolute·path·to·the·sitemap</span>
95 <span·class="sd">····for·this·site·--·e.g.,·&#39;/sitemap.xml&#39;.·If·sitemap_url·is·not·provided,·this</span>96 <span·class="sd">····for·this·site·--·e.g.,·&#39;/sitemap.xml&#39;.·If·sitemap_url·is·not·provided,·this</span>
96 <span·class="sd">····function·will·attempt·to·deduce·it·by·using·urls.reverse().</span>97 <span·class="sd">····function·will·attempt·to·deduce·it·by·using·urls.reverse().</span>
97 <span·class="sd">····&quot;&quot;&quot;</span>98 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 131, 15 lines modifiedOffset 132, 15 lines modified
131 ····<span·class="n">Site</span>·<span·class="o">=</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="s2">&quot;sites.Site&quot;</span><span·class="p">)</span>132 ····<span·class="n">Site</span>·<span·class="o">=</span>·<span·class="n">django_apps</span><span·class="o">.</span><span·class="n">get_model</span><span·class="p">(</span><span·class="s2">&quot;sites.Site&quot;</span><span·class="p">)</span>
132 ····<span·class="n">current_site</span>·<span·class="o">=</span>·<span·class="n">Site</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get_current</span><span·class="p">()</span>133 ····<span·class="n">current_site</span>·<span·class="o">=</span>·<span·class="n">Site</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get_current</span><span·class="p">()</span>
133 ····<span·class="n">scheme</span>·<span·class="o">=</span>·<span·class="s2">&quot;https&quot;</span>·<span·class="k">if</span>·<span·class="n">sitemap_uses_https</span>·<span·class="k">else</span>·<span·class="s2">&quot;http&quot;</span>134 ····<span·class="n">scheme</span>·<span·class="o">=</span>·<span·class="s2">&quot;https&quot;</span>·<span·class="k">if</span>·<span·class="n">sitemap_uses_https</span>·<span·class="k">else</span>·<span·class="s2">&quot;http&quot;</span>
134 ····<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">://</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">scheme</span><span·class="p">,</span>·<span·class="n">current_site</span><span·class="o">.</span><span·class="n">domain</span><span·class="p">,</span>·<span·class="n">sitemap_url</span><span·class="p">)</span>135 ····<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">://</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">scheme</span><span·class="p">,</span>·<span·class="n">current_site</span><span·class="o">.</span><span·class="n">domain</span><span·class="p">,</span>·<span·class="n">sitemap_url</span><span·class="p">)</span>
  
  
135 <div·class="viewcode-block"·id="Sitemap">136 <div·class="viewcode-block"·id="Sitemap">
136 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap">[docs]</a>137 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap">[documenti]</a>
137 <span·class="k">class</span>·<span·class="nc">Sitemap</span><span·class="p">:</span>138 <span·class="k">class</span>·<span·class="nc">Sitemap</span><span·class="p">:</span>
138 ····<span·class="c1">#·This·limit·is·defined·by·Google.·See·the·index·documentation·at</span>139 ····<span·class="c1">#·This·limit·is·defined·by·Google.·See·the·index·documentation·at</span>
139 ····<span·class="c1">#·https://www.sitemaps.org/protocol.html#index.</span>140 ····<span·class="c1">#·https://www.sitemaps.org/protocol.html#index.</span>
140 ····<span·class="n">limit</span>·<span·class="o">=</span>·<span·class="mi">50000</span>141 ····<span·class="n">limit</span>·<span·class="o">=</span>·<span·class="mi">50000</span>
  
141 ····<span·class="c1">#·If·protocol·is·None,·the·URLs·in·the·sitemap·will·use·the·protocol</span>142 ····<span·class="c1">#·If·protocol·is·None,·the·URLs·in·the·sitemap·will·use·the·protocol</span>
142 ····<span·class="c1">#·with·which·the·sitemap·was·requested.</span>143 ····<span·class="c1">#·with·which·the·sitemap·was·requested.</span>
Offset 167, 15 lines modifiedOffset 168, 15 lines modified
167 ················<span·class="c1">#·Split·the·(item,·lang_code)·tuples·again·for·the·location,</span>168 ················<span·class="c1">#·Split·the·(item,·lang_code)·tuples·again·for·the·location,</span>
168 ················<span·class="c1">#·priority,·lastmod·and·changefreq·method·calls.</span>169 ················<span·class="c1">#·priority,·lastmod·and·changefreq·method·calls.</span>
169 ················<span·class="n">item</span><span·class="p">,</span>·<span·class="n">lang_code</span>·<span·class="o">=</span>·<span·class="n">item</span>170 ················<span·class="n">item</span><span·class="p">,</span>·<span·class="n">lang_code</span>·<span·class="o">=</span>·<span·class="n">item</span>
170 ············<span·class="k">return</span>·<span·class="n">attr</span><span·class="p">(</span><span·class="n">item</span><span·class="p">)</span>171 ············<span·class="k">return</span>·<span·class="n">attr</span><span·class="p">(</span><span·class="n">item</span><span·class="p">)</span>
171 ········<span·class="k">return</span>·<span·class="n">attr</span>172 ········<span·class="k">return</span>·<span·class="n">attr</span>
  
172 <div·class="viewcode-block"·id="Sitemap.get_languages_for_item">173 <div·class="viewcode-block"·id="Sitemap.get_languages_for_item">
173 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.get_languages_for_item">[docs]</a>174 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.get_languages_for_item">[documenti]</a>
174 ····<span·class="k">def</span>·<span·class="nf">get_languages_for_item</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>175 ····<span·class="k">def</span>·<span·class="nf">get_languages_for_item</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>
175 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Languages·for·which·this·item·is·displayed.&quot;&quot;&quot;</span>176 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Languages·for·which·this·item·is·displayed.&quot;&quot;&quot;</span>
176 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_languages</span><span·class="p">()</span></div>177 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_languages</span><span·class="p">()</span></div>
  
  
177 ····<span·class="k">def</span>·<span·class="nf">_languages</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>178 ····<span·class="k">def</span>·<span·class="nf">_languages</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
178 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">languages</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>179 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">languages</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
Offset 203, 21 lines modifiedOffset 204, 21 lines modified
203 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_get</span><span·class="p">(</span><span·class="s2">&quot;location&quot;</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">)</span>204 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_get</span><span·class="p">(</span><span·class="s2">&quot;location&quot;</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">)</span>
  
204 ····<span·class="nd">@property</span>205 ····<span·class="nd">@property</span>
205 ····<span·class="k">def</span>·<span·class="nf">paginator</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>206 ····<span·class="k">def</span>·<span·class="nf">paginator</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
206 ········<span·class="k">return</span>·<span·class="n">paginator</span><span·class="o">.</span><span·class="n">Paginator</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_items</span><span·class="p">(),</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">limit</span><span·class="p">)</span>207 ········<span·class="k">return</span>·<span·class="n">paginator</span><span·class="o">.</span><span·class="n">Paginator</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_items</span><span·class="p">(),</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">limit</span><span·class="p">)</span>
  
207 <div·class="viewcode-block"·id="Sitemap.items">208 <div·class="viewcode-block"·id="Sitemap.items">
208 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.items">[docs]</a>209 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.items">[documenti]</a>
209 ····<span·class="k">def</span>·<span·class="nf">items</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>210 ····<span·class="k">def</span>·<span·class="nf">items</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
210 ········<span·class="k">return</span>·<span·class="p">[]</span></div>211 ········<span·class="k">return</span>·<span·class="p">[]</span></div>
  
  
211 <div·class="viewcode-block"·id="Sitemap.location">212 <div·class="viewcode-block"·id="Sitemap.location">
212 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.location">[docs]</a>213 <a·class="viewcode-back"·href="../../../ref/contrib/sitemaps.html#django.contrib.sitemaps.Sitemap.location">[documenti]</a>
213 ····<span·class="k">def</span>·<span·class="nf">location</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>214 ····<span·class="k">def</span>·<span·class="nf">location</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">item</span><span·class="p">):</span>
214 ········<span·class="k">return</span>·<span·class="n">item</span><span·class="o">.</span><span·class="n">get_absolute_url</span><span·class="p">()</span></div>215 ········<span·class="k">return</span>·<span·class="n">item</span><span·class="o">.</span><span·class="n">get_absolute_url</span><span·class="p">()</span></div>
  
  
215 ····<span·class="k">def</span>·<span·class="nf">get_protocol</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">protocol</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>216 ····<span·class="k">def</span>·<span·class="nf">get_protocol</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">protocol</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
216 ········<span·class="c1">#·Determine·protocol</span>217 ········<span·class="c1">#·Determine·protocol</span>
217 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">protocol</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="n">protocol</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>218 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">protocol</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="n">protocol</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
Offset 250, 15 lines modifiedOffset 251, 15 lines modified
  
250 ····<span·class="k">def</span>·<span·class="nf">get_urls</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">page</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">site</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">protocol</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>251 ····<span·class="k">def</span>·<span·class="nf">get_urls</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">page</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="n">site</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">protocol</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
Max diff block lines reached; 5529/17410 bytes (31.76%) of diff not shown.
4.36 KB
html2text {}
Max HTML report size reached
6.96 KB
./usr/share/doc/python-django-doc/html/_modules/django/contrib/sites/middleware.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.contrib.sites.middleware·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.sites.middleware·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-contrib-sites-middleware">69 ··········<div·class="yui-g"·id="_modules-django-contrib-sites-middleware">
69 ············70 ············
70 ··<h1>Source·code·for·django.contrib.sites.middleware</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.contrib.sites.middleware</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
72 <span·class="kn">from</span>·<span·class="nn">.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">get_current_site</span>73 <span·class="kn">from</span>·<span·class="nn">.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">get_current_site</span>
  
  
73 <div·class="viewcode-block"·id="CurrentSiteMiddleware">74 <div·class="viewcode-block"·id="CurrentSiteMiddleware">
74 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.sites.middleware.CurrentSiteMiddleware">[docs]</a>75 <a·class="viewcode-back"·href="../../../../ref/middleware.html#django.contrib.sites.middleware.CurrentSiteMiddleware">[documenti]</a>
75 <span·class="k">class</span>·<span·class="nc">CurrentSiteMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>76 <span·class="k">class</span>·<span·class="nc">CurrentSiteMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
77 <span·class="sd">····Middleware·that·sets·`site`·attribute·to·request·object.</span>78 <span·class="sd">····Middleware·that·sets·`site`·attribute·to·request·object.</span>
78 <span·class="sd">····&quot;&quot;&quot;</span>79 <span·class="sd">····&quot;&quot;&quot;</span>
  
79 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>80 ····<span·class="k">def</span>·<span·class="nf">process_request</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
80 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">site</span>·<span·class="o">=</span>·<span·class="n">get_current_site</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span></div>81 ········<span·class="n">request</span><span·class="o">.</span><span·class="n">site</span>·<span·class="o">=</span>·<span·class="n">get_current_site</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span></div>
Offset 94, 35 lines modifiedOffset 95, 35 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 <search·id="searchbox"·style="display:·none"·role="search">101 <search·id="searchbox"·style="display:·none"·role="search">
101 ··<h3·id="searchlabel">Quick·search</h3>102 ··<h3·id="searchlabel">Ricerca·veloce</h3>
102 ····<div·class="searchformwrapper">103 ····<div·class="searchformwrapper">
103 ····<form·class="search"·action="../../../../search.html"·method="get">104 ····<form·class="search"·action="../../../../search.html"·method="get">
104 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>105 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
105 ······<input·type="submit"·value="Go"·/>106 ······<input·type="submit"·value="Vai"·/>
106 ····</form>107 ····</form>
107 ····</div>108 ····</div>
108 </search>109 </search>
109 <script>document.getElementById('searchbox').style.display·=·"block"</script>110 <script>document.getElementById('searchbox').style.display·=·"block"</script>
110 ········</div>111 ········</div>
111 ······</div>112 ······</div>
112 ··············<h3>Last·update:</h3>113 ··············<h3>Last·update:</h3>
113 ··············<p·class="topless">Sep·03,·2024</p>114 ··············<p·class="topless">set·03,·2024</p>
114 ··········</div>115 ··········</div>
115 ········116 ········
116 ······117 ······
117 ····</div>118 ····</div>
  
118 ····<div·id="ft">119 ····<div·id="ft">
119 ······<div·class="nav">120 ······<div·class="nav">
120 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>121 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
121 ····</div>122 ····</div>
122 ··</div>123 ··</div>
  
123 ······<div·class="clearer"></div>124 ······<div·class="clearer"></div>
124 ····</div>125 ····</div>
125 ··</body>126 ··</body>
126 </html>127 </html>
1.5 KB
html2text {}
Max HTML report size reached
14.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/checks/messages.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.checks.messages·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.checks.messages·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-checks-messages">69 ··········<div·class="yui-g"·id="_modules-django-core-checks-messages">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.checks.messages</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.checks.messages</h1><div·class="highlight"><pre>
71 <span></span><span·class="c1">#·Levels</span>72 <span></span><span·class="c1">#·Levels</span>
72 <span·class="n">DEBUG</span>·<span·class="o">=</span>·<span·class="mi">10</span>73 <span·class="n">DEBUG</span>·<span·class="o">=</span>·<span·class="mi">10</span>
73 <span·class="n">INFO</span>·<span·class="o">=</span>·<span·class="mi">20</span>74 <span·class="n">INFO</span>·<span·class="o">=</span>·<span·class="mi">20</span>
74 <span·class="n">WARNING</span>·<span·class="o">=</span>·<span·class="mi">30</span>75 <span·class="n">WARNING</span>·<span·class="o">=</span>·<span·class="mi">30</span>
75 <span·class="n">ERROR</span>·<span·class="o">=</span>·<span·class="mi">40</span>76 <span·class="n">ERROR</span>·<span·class="o">=</span>·<span·class="mi">40</span>
76 <span·class="n">CRITICAL</span>·<span·class="o">=</span>·<span·class="mi">50</span>77 <span·class="n">CRITICAL</span>·<span·class="o">=</span>·<span·class="mi">50</span>
  
  
77 <div·class="viewcode-block"·id="CheckMessage">78 <div·class="viewcode-block"·id="CheckMessage">
78 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.CheckMessage">[docs]</a>79 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.CheckMessage">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">CheckMessage</span><span·class="p">:</span>80 <span·class="k">class</span>·<span·class="nc">CheckMessage</span><span·class="p">:</span>
80 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">level</span><span·class="p">,</span>·<span·class="n">msg</span><span·class="p">,</span>·<span·class="n">hint</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="nb">id</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>81 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">level</span><span·class="p">,</span>·<span·class="n">msg</span><span·class="p">,</span>·<span·class="n">hint</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="nb">id</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
81 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">level</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">):</span>82 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">level</span><span·class="p">,</span>·<span·class="nb">int</span><span·class="p">):</span>
82 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;The·first·argument·should·be·level.&quot;</span><span·class="p">)</span>83 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;The·first·argument·should·be·level.&quot;</span><span·class="p">)</span>
83 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">level</span>·<span·class="o">=</span>·<span·class="n">level</span>84 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">level</span>·<span·class="o">=</span>·<span·class="n">level</span>
84 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">msg</span>·<span·class="o">=</span>·<span·class="n">msg</span>85 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">msg</span>·<span·class="o">=</span>·<span·class="n">msg</span>
85 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">hint</span>·<span·class="o">=</span>·<span·class="n">hint</span>86 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">hint</span>·<span·class="o">=</span>·<span·class="n">hint</span>
Offset 129, 47 lines modifiedOffset 130, 47 lines modified
129 ········<span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>130 ········<span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
  
130 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">id</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SILENCED_SYSTEM_CHECKS</span></div>131 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">id</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SILENCED_SYSTEM_CHECKS</span></div>
  
  
  
131 <div·class="viewcode-block"·id="Debug">132 <div·class="viewcode-block"·id="Debug">
132 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Debug">[docs]</a>133 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Debug">[documenti]</a>
133 <span·class="k">class</span>·<span·class="nc">Debug</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>134 <span·class="k">class</span>·<span·class="nc">Debug</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>
134 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>135 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
135 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">DEBUG</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>136 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">DEBUG</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
  
136 <div·class="viewcode-block"·id="Info">137 <div·class="viewcode-block"·id="Info">
137 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Info">[docs]</a>138 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Info">[documenti]</a>
138 <span·class="k">class</span>·<span·class="nc">Info</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>139 <span·class="k">class</span>·<span·class="nc">Info</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>
139 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>140 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
140 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">INFO</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>141 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">INFO</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
  
141 <div·class="viewcode-block"·id="Warning">142 <div·class="viewcode-block"·id="Warning">
142 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Warning">[docs]</a>143 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Warning">[documenti]</a>
143 <span·class="k">class</span>·<span·class="nc">Warning</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>144 <span·class="k">class</span>·<span·class="nc">Warning</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>
144 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>145 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
145 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">WARNING</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>146 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">WARNING</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
  
146 <div·class="viewcode-block"·id="Error">147 <div·class="viewcode-block"·id="Error">
147 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Error">[docs]</a>148 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Error">[documenti]</a>
148 <span·class="k">class</span>·<span·class="nc">Error</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>149 <span·class="k">class</span>·<span·class="nc">Error</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>
149 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>150 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
150 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">ERROR</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>151 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">ERROR</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
  
151 <div·class="viewcode-block"·id="Critical">152 <div·class="viewcode-block"·id="Critical">
152 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Critical">[docs]</a>153 <a·class="viewcode-back"·href="../../../../ref/checks.html#django.core.checks.Critical">[documenti]</a>
153 <span·class="k">class</span>·<span·class="nc">Critical</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>154 <span·class="k">class</span>·<span·class="nc">Critical</span><span·class="p">(</span><span·class="n">CheckMessage</span><span·class="p">):</span>
154 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>155 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
155 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">CRITICAL</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>156 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">CRITICAL</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
156 </pre></div>157 </pre></div>
  
157 ··········</div>158 ··········</div>
Offset 178, 35 lines modifiedOffset 179, 35 lines modified
178 ······179 ······
179 ········180 ········
180 ··········<div·class="yui-b"·id="sidebar">181 ··········<div·class="yui-b"·id="sidebar">
181 ············182 ············
182 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">183 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
183 ········<div·class="sphinxsidebarwrapper">184 ········<div·class="sphinxsidebarwrapper">
184 <search·id="searchbox"·style="display:·none"·role="search">185 <search·id="searchbox"·style="display:·none"·role="search">
185 ··<h3·id="searchlabel">Quick·search</h3>186 ··<h3·id="searchlabel">Ricerca·veloce</h3>
186 ····<div·class="searchformwrapper">187 ····<div·class="searchformwrapper">
187 ····<form·class="search"·action="../../../../search.html"·method="get">188 ····<form·class="search"·action="../../../../search.html"·method="get">
188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>189 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
189 ······<input·type="submit"·value="Go"·/>190 ······<input·type="submit"·value="Vai"·/>
190 ····</form>191 ····</form>
191 ····</div>192 ····</div>
Max diff block lines reached; 603/11879 bytes (5.08%) of diff not shown.
2.5 KB
html2text {}
Max HTML report size reached
20.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/exceptions.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.exceptions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.exceptions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 77 lines modifiedOffset 51, 77 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-exceptions">69 ··········<div·class="yui-g"·id="_modules-django-core-exceptions">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.exceptions</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.exceptions</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Global·Django·exception·and·warning·classes.</span>73 <span·class="sd">Global·Django·exception·and·warning·classes.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">import</span>·<span·class="nn">operator</span>75 <span·class="kn">import</span>·<span·class="nn">operator</span>
  
75 <span·class="kn">from</span>·<span·class="nn">django.utils.hashable</span>·<span·class="kn">import</span>·<span·class="n">make_hashable</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.hashable</span>·<span·class="kn">import</span>·<span·class="n">make_hashable</span>
  
  
76 <div·class="viewcode-block"·id="FieldDoesNotExist">77 <div·class="viewcode-block"·id="FieldDoesNotExist">
77 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.FieldDoesNotExist">[docs]</a>78 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.FieldDoesNotExist">[documenti]</a>
78 <span·class="k">class</span>·<span·class="nc">FieldDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>79 <span·class="k">class</span>·<span·class="nc">FieldDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
79 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·requested·model·field·does·not·exist&quot;&quot;&quot;</span>80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·requested·model·field·does·not·exist&quot;&quot;&quot;</span>
  
80 ····<span·class="k">pass</span></div>81 ····<span·class="k">pass</span></div>
  
  
  
81 <div·class="viewcode-block"·id="AppRegistryNotReady">82 <div·class="viewcode-block"·id="AppRegistryNotReady">
82 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.AppRegistryNotReady">[docs]</a>83 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.AppRegistryNotReady">[documenti]</a>
83 <span·class="k">class</span>·<span·class="nc">AppRegistryNotReady</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>84 <span·class="k">class</span>·<span·class="nc">AppRegistryNotReady</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
84 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·django.apps·registry·is·not·populated·yet&quot;&quot;&quot;</span>85 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·django.apps·registry·is·not·populated·yet&quot;&quot;&quot;</span>
  
85 ····<span·class="k">pass</span></div>86 ····<span·class="k">pass</span></div>
  
  
  
86 <div·class="viewcode-block"·id="ObjectDoesNotExist">87 <div·class="viewcode-block"·id="ObjectDoesNotExist">
87 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.ObjectDoesNotExist">[docs]</a>88 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.ObjectDoesNotExist">[documenti]</a>
88 <span·class="k">class</span>·<span·class="nc">ObjectDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>89 <span·class="k">class</span>·<span·class="nc">ObjectDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
89 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·requested·object·does·not·exist&quot;&quot;&quot;</span>90 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·requested·object·does·not·exist&quot;&quot;&quot;</span>
  
90 ····<span·class="n">silent_variable_failure</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>91 ····<span·class="n">silent_variable_failure</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
91 <div·class="viewcode-block"·id="MultipleObjectsReturned">92 <div·class="viewcode-block"·id="MultipleObjectsReturned">
92 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.MultipleObjectsReturned">[docs]</a>93 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.MultipleObjectsReturned">[documenti]</a>
93 <span·class="k">class</span>·<span·class="nc">MultipleObjectsReturned</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>94 <span·class="k">class</span>·<span·class="nc">MultipleObjectsReturned</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·query·returned·multiple·objects·when·only·one·was·expected.&quot;&quot;&quot;</span>95 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·query·returned·multiple·objects·when·only·one·was·expected.&quot;&quot;&quot;</span>
  
95 ····<span·class="k">pass</span></div>96 ····<span·class="k">pass</span></div>
  
  
  
96 <div·class="viewcode-block"·id="SuspiciousOperation">97 <div·class="viewcode-block"·id="SuspiciousOperation">
97 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.SuspiciousOperation">[docs]</a>98 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.SuspiciousOperation">[documenti]</a>
98 <span·class="k">class</span>·<span·class="nc">SuspiciousOperation</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>99 <span·class="k">class</span>·<span·class="nc">SuspiciousOperation</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
99 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·user·did·something·suspicious&quot;&quot;&quot;</span></div>100 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·user·did·something·suspicious&quot;&quot;&quot;</span></div>
  
  
  
100 <span·class="k">class</span>·<span·class="nc">SuspiciousMultipartForm</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>101 <span·class="k">class</span>·<span·class="nc">SuspiciousMultipartForm</span><span·class="p">(</span><span·class="n">SuspiciousOperation</span><span·class="p">):</span>
101 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Suspect·MIME·request·in·multipart·form·data&quot;&quot;&quot;</span>102 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Suspect·MIME·request·in·multipart·form·data&quot;&quot;&quot;</span>
Offset 170, 81 lines modifiedOffset 171, 81 lines modified
170 <span·class="sd">····settings.DATA_UPLOAD_MAX_MEMORY_SIZE.</span>171 <span·class="sd">····settings.DATA_UPLOAD_MAX_MEMORY_SIZE.</span>
171 <span·class="sd">····&quot;&quot;&quot;</span>172 <span·class="sd">····&quot;&quot;&quot;</span>
  
172 ····<span·class="k">pass</span>173 ····<span·class="k">pass</span>
  
  
173 <div·class="viewcode-block"·id="RequestAborted">174 <div·class="viewcode-block"·id="RequestAborted">
174 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.RequestAborted">[docs]</a>175 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.RequestAborted">[documenti]</a>
175 <span·class="k">class</span>·<span·class="nc">RequestAborted</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>176 <span·class="k">class</span>·<span·class="nc">RequestAborted</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
176 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·request·was·closed·before·it·was·completed,·or·timed·out.&quot;&quot;&quot;</span>177 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·request·was·closed·before·it·was·completed,·or·timed·out.&quot;&quot;&quot;</span>
  
177 ····<span·class="k">pass</span></div>178 ····<span·class="k">pass</span></div>
  
  
  
178 <div·class="viewcode-block"·id="BadRequest">179 <div·class="viewcode-block"·id="BadRequest">
179 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.BadRequest">[docs]</a>180 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.BadRequest">[documenti]</a>
180 <span·class="k">class</span>·<span·class="nc">BadRequest</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>181 <span·class="k">class</span>·<span·class="nc">BadRequest</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
181 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·request·is·malformed·and·cannot·be·processed.&quot;&quot;&quot;</span>182 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;The·request·is·malformed·and·cannot·be·processed.&quot;&quot;&quot;</span>
  
182 ····<span·class="k">pass</span></div>183 ····<span·class="k">pass</span></div>
  
  
  
183 <div·class="viewcode-block"·id="PermissionDenied">184 <div·class="viewcode-block"·id="PermissionDenied">
184 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.PermissionDenied">[docs]</a>185 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.core.exceptions.PermissionDenied">[documenti]</a>
Max diff block lines reached; 8268/16508 bytes (50.08%) of diff not shown.
4.37 KB
html2text {}
Max HTML report size reached
19.9 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-base">69 ··········<div·class="yui-g"·id="_modules-django-core-files-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>
72 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span><span·class="p">,</span>·<span·class="n">StringIO</span><span·class="p">,</span>·<span·class="n">UnsupportedOperation</span>73 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span><span·class="p">,</span>·<span·class="n">StringIO</span><span·class="p">,</span>·<span·class="n">UnsupportedOperation</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.core.files.utils</span>·<span·class="kn">import</span>·<span·class="n">FileProxyMixin</span>74 <span·class="kn">from</span>·<span·class="nn">django.core.files.utils</span>·<span·class="kn">import</span>·<span·class="n">FileProxyMixin</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
  
  
75 <div·class="viewcode-block"·id="File">76 <div·class="viewcode-block"·id="File">
76 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File">[docs]</a>77 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File">[documenti]</a>
77 <span·class="k">class</span>·<span·class="nc">File</span><span·class="p">(</span><span·class="n">FileProxyMixin</span><span·class="p">):</span>78 <span·class="k">class</span>·<span·class="nc">File</span><span·class="p">(</span><span·class="n">FileProxyMixin</span><span·class="p">):</span>
78 ····<span·class="n">DEFAULT_CHUNK_SIZE</span>·<span·class="o">=</span>·<span·class="mi">64</span>·<span·class="o">*</span>·<span·class="mi">2</span><span·class="o">**</span><span·class="mi">10</span>79 ····<span·class="n">DEFAULT_CHUNK_SIZE</span>·<span·class="o">=</span>·<span·class="mi">64</span>·<span·class="o">*</span>·<span·class="mi">2</span><span·class="o">**</span><span·class="mi">10</span>
  
79 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>80 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
80 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="n">file</span>81 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="n">file</span>
81 ········<span·class="k">if</span>·<span·class="n">name</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>82 ········<span·class="k">if</span>·<span·class="n">name</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
82 ············<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">file</span><span·class="p">,</span>·<span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>83 ············<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">file</span><span·class="p">,</span>·<span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>
Offset 117, 15 lines modifiedOffset 118, 15 lines modified
117 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">SEEK_END</span><span·class="p">)</span>118 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">SEEK_END</span><span·class="p">)</span>
118 ············<span·class="n">size</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">tell</span><span·class="p">()</span>119 ············<span·class="n">size</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">tell</span><span·class="p">()</span>
119 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="n">pos</span><span·class="p">)</span>120 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="n">pos</span><span·class="p">)</span>
120 ············<span·class="k">return</span>·<span·class="n">size</span>121 ············<span·class="k">return</span>·<span·class="n">size</span>
121 ········<span·class="k">raise</span>·<span·class="ne">AttributeError</span><span·class="p">(</span><span·class="s2">&quot;Unable·to·determine·the·file&#39;s·size.&quot;</span><span·class="p">)</span>122 ········<span·class="k">raise</span>·<span·class="ne">AttributeError</span><span·class="p">(</span><span·class="s2">&quot;Unable·to·determine·the·file&#39;s·size.&quot;</span><span·class="p">)</span>
  
122 <div·class="viewcode-block"·id="File.chunks">123 <div·class="viewcode-block"·id="File.chunks">
123 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.chunks">[docs]</a>124 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.chunks">[documenti]</a>
124 ····<span·class="k">def</span>·<span·class="nf">chunks</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>125 ····<span·class="k">def</span>·<span·class="nf">chunks</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
125 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>126 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
126 <span·class="sd">········Read·the·file·and·yield·chunks·of·``chunk_size``·bytes·(defaults·to</span>127 <span·class="sd">········Read·the·file·and·yield·chunks·of·``chunk_size``·bytes·(defaults·to</span>
127 <span·class="sd">········``File.DEFAULT_CHUNK_SIZE``).</span>128 <span·class="sd">········``File.DEFAULT_CHUNK_SIZE``).</span>
128 <span·class="sd">········&quot;&quot;&quot;</span>129 <span·class="sd">········&quot;&quot;&quot;</span>
129 ········<span·class="n">chunk_size</span>·<span·class="o">=</span>·<span·class="n">chunk_size</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">DEFAULT_CHUNK_SIZE</span>130 ········<span·class="n">chunk_size</span>·<span·class="o">=</span>·<span·class="n">chunk_size</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">DEFAULT_CHUNK_SIZE</span>
130 ········<span·class="k">try</span><span·class="p">:</span>131 ········<span·class="k">try</span><span·class="p">:</span>
Offset 137, 28 lines modifiedOffset 138, 28 lines modified
137 ············<span·class="n">data</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">chunk_size</span><span·class="p">)</span>138 ············<span·class="n">data</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">read</span><span·class="p">(</span><span·class="n">chunk_size</span><span·class="p">)</span>
138 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">data</span><span·class="p">:</span>139 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">data</span><span·class="p">:</span>
139 ················<span·class="k">break</span>140 ················<span·class="k">break</span>
140 ············<span·class="k">yield</span>·<span·class="n">data</span></div>141 ············<span·class="k">yield</span>·<span·class="n">data</span></div>
  
  
141 <div·class="viewcode-block"·id="File.multiple_chunks">142 <div·class="viewcode-block"·id="File.multiple_chunks">
142 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.multiple_chunks">[docs]</a>143 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.multiple_chunks">[documenti]</a>
143 ····<span·class="k">def</span>·<span·class="nf">multiple_chunks</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>144 ····<span·class="k">def</span>·<span·class="nf">multiple_chunks</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
144 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>145 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
145 <span·class="sd">········Return·``True``·if·you·can·expect·multiple·chunks.</span>146 <span·class="sd">········Return·``True``·if·you·can·expect·multiple·chunks.</span>
  
146 <span·class="sd">········NB:·If·a·particular·file·representation·is·in·memory,·subclasses·should</span>147 <span·class="sd">········NB:·If·a·particular·file·representation·is·in·memory,·subclasses·should</span>
147 <span·class="sd">········always·return·``False``·--·there&#39;s·no·good·reason·to·read·from·memory·in</span>148 <span·class="sd">········always·return·``False``·--·there&#39;s·no·good·reason·to·read·from·memory·in</span>
148 <span·class="sd">········chunks.</span>149 <span·class="sd">········chunks.</span>
149 <span·class="sd">········&quot;&quot;&quot;</span>150 <span·class="sd">········&quot;&quot;&quot;</span>
150 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">size</span>·<span·class="o">&gt;</span>·<span·class="p">(</span><span·class="n">chunk_size</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">DEFAULT_CHUNK_SIZE</span><span·class="p">)</span></div>151 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">size</span>·<span·class="o">&gt;</span>·<span·class="p">(</span><span·class="n">chunk_size</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">DEFAULT_CHUNK_SIZE</span><span·class="p">)</span></div>
  
  
151 <div·class="viewcode-block"·id="File.__iter__">152 <div·class="viewcode-block"·id="File.__iter__">
152 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.__iter__">[docs]</a>153 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.__iter__">[documenti]</a>
153 ····<span·class="k">def</span>·<span·class="fm">__iter__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>154 ····<span·class="k">def</span>·<span·class="fm">__iter__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
154 ········<span·class="c1">#·Iterate·over·this·file-like·object·by·newlines</span>155 ········<span·class="c1">#·Iterate·over·this·file-like·object·by·newlines</span>
155 ········<span·class="n">buffer_</span>·<span·class="o">=</span>·<span·class="kc">None</span>156 ········<span·class="n">buffer_</span>·<span·class="o">=</span>·<span·class="kc">None</span>
156 ········<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">chunks</span><span·class="p">():</span>157 ········<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">chunks</span><span·class="p">():</span>
157 ············<span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">chunk</span><span·class="o">.</span><span·class="n">splitlines</span><span·class="p">(</span><span·class="kc">True</span><span·class="p">):</span>158 ············<span·class="k">for</span>·<span·class="n">line</span>·<span·class="ow">in</span>·<span·class="n">chunk</span><span·class="o">.</span><span·class="n">splitlines</span><span·class="p">(</span><span·class="kc">True</span><span·class="p">):</span>
158 ················<span·class="k">if</span>·<span·class="n">buffer_</span><span·class="p">:</span>159 ················<span·class="k">if</span>·<span·class="n">buffer_</span><span·class="p">:</span>
159 ····················<span·class="k">if</span>·<span·class="n">endswith_cr</span><span·class="p">(</span><span·class="n">buffer_</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">equals_lf</span><span·class="p">(</span><span·class="n">line</span><span·class="p">):</span>160 ····················<span·class="k">if</span>·<span·class="n">endswith_cr</span><span·class="p">(</span><span·class="n">buffer_</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">equals_lf</span><span·class="p">(</span><span·class="n">line</span><span·class="p">):</span>
Offset 186, 35 lines modifiedOffset 187, 35 lines modified
186 ····<span·class="k">def</span>·<span·class="fm">__enter__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>187 ····<span·class="k">def</span>·<span·class="fm">__enter__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
187 ········<span·class="k">return</span>·<span·class="bp">self</span>188 ········<span·class="k">return</span>·<span·class="bp">self</span>
  
188 ····<span·class="k">def</span>·<span·class="fm">__exit__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">exc_type</span><span·class="p">,</span>·<span·class="n">exc_value</span><span·class="p">,</span>·<span·class="n">tb</span><span·class="p">):</span>189 ····<span·class="k">def</span>·<span·class="fm">__exit__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">exc_type</span><span·class="p">,</span>·<span·class="n">exc_value</span><span·class="p">,</span>·<span·class="n">tb</span><span·class="p">):</span>
189 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">close</span><span·class="p">()</span>190 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">close</span><span·class="p">()</span>
  
190 <div·class="viewcode-block"·id="File.open">191 <div·class="viewcode-block"·id="File.open">
191 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.open">[docs]</a>192 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.File.open">[documenti]</a>
192 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>193 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
193 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">closed</span><span·class="p">:</span>194 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">closed</span><span·class="p">:</span>
194 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">)</span>195 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">seek</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">)</span>
195 ········<span·class="k">elif</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="ow">and</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">exists</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">):</span>196 ········<span·class="k">elif</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="ow">and</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">exists</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">):</span>
196 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="nb">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">mode</span><span·class="p">)</span>197 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="nb">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">mode</span><span·class="p">)</span>
197 ········<span·class="k">else</span><span·class="p">:</span>198 ········<span·class="k">else</span><span·class="p">:</span>
198 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;The·file·cannot·be·reopened.&quot;</span><span·class="p">)</span>199 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;The·file·cannot·be·reopened.&quot;</span><span·class="p">)</span>
199 ········<span·class="k">return</span>·<span·class="bp">self</span></div>200 ········<span·class="k">return</span>·<span·class="bp">self</span></div>
  
  
Max diff block lines reached; 3163/16041 bytes (19.72%) of diff not shown.
4.13 KB
html2text {}
Max HTML report size reached
6.88 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/images.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.images·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.images·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 44 lines modifiedOffset 51, 44 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-images">69 ··········<div·class="yui-g"·id="_modules-django-core-files-images">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.images</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.images</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Utility·functions·for·handling·images.</span>73 <span·class="sd">Utility·functions·for·handling·images.</span>
  
73 <span·class="sd">Requires·Pillow·as·you·might·imagine.</span>74 <span·class="sd">Requires·Pillow·as·you·might·imagine.</span>
74 <span·class="sd">&quot;&quot;&quot;</span>75 <span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="kn">import</span>·<span·class="nn">struct</span>76 <span·class="kn">import</span>·<span·class="nn">struct</span>
76 <span·class="kn">import</span>·<span·class="nn">zlib</span>77 <span·class="kn">import</span>·<span·class="nn">zlib</span>
  
77 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span>78 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span>
  
  
78 <div·class="viewcode-block"·id="ImageFile">79 <div·class="viewcode-block"·id="ImageFile">
79 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.images.ImageFile">[docs]</a>80 <a·class="viewcode-back"·href="../../../../ref/files/file.html#django.core.files.images.ImageFile">[documenti]</a>
80 <span·class="k">class</span>·<span·class="nc">ImageFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">):</span>81 <span·class="k">class</span>·<span·class="nc">ImageFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">):</span>
81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
82 <span·class="sd">····A·mixin·for·use·alongside·django.core.files.base.File,·which·provides</span>83 <span·class="sd">····A·mixin·for·use·alongside·django.core.files.base.File,·which·provides</span>
83 <span·class="sd">····additional·features·for·dealing·with·images.</span>84 <span·class="sd">····additional·features·for·dealing·with·images.</span>
84 <span·class="sd">····&quot;&quot;&quot;</span>85 <span·class="sd">····&quot;&quot;&quot;</span>
  
85 ····<span·class="nd">@property</span>86 ····<span·class="nd">@property</span>
Offset 170, 35 lines modifiedOffset 171, 35 lines modified
170 ······171 ······
171 ········172 ········
172 ··········<div·class="yui-b"·id="sidebar">173 ··········<div·class="yui-b"·id="sidebar">
173 ············174 ············
174 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">175 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
175 ········<div·class="sphinxsidebarwrapper">176 ········<div·class="sphinxsidebarwrapper">
176 <search·id="searchbox"·style="display:·none"·role="search">177 <search·id="searchbox"·style="display:·none"·role="search">
177 ··<h3·id="searchlabel">Quick·search</h3>178 ··<h3·id="searchlabel">Ricerca·veloce</h3>
178 ····<div·class="searchformwrapper">179 ····<div·class="searchformwrapper">
179 ····<form·class="search"·action="../../../../search.html"·method="get">180 ····<form·class="search"·action="../../../../search.html"·method="get">
180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
181 ······<input·type="submit"·value="Go"·/>182 ······<input·type="submit"·value="Vai"·/>
182 ····</form>183 ····</form>
183 ····</div>184 ····</div>
184 </search>185 </search>
185 <script>document.getElementById('searchbox').style.display·=·"block"</script>186 <script>document.getElementById('searchbox').style.display·=·"block"</script>
186 ········</div>187 ········</div>
187 ······</div>188 ······</div>
188 ··············<h3>Last·update:</h3>189 ··············<h3>Last·update:</h3>
189 ··············<p·class="topless">Sep·03,·2024</p>190 ··············<p·class="topless">set·03,·2024</p>
190 ··········</div>191 ··········</div>
191 ········192 ········
192 ······193 ······
193 ····</div>194 ····</div>
  
194 ····<div·id="ft">195 ····<div·id="ft">
195 ······<div·class="nav">196 ······<div·class="nav">
196 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>197 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
197 ····</div>198 ····</div>
198 ··</div>199 ··</div>
  
199 ······<div·class="clearer"></div>200 ······<div·class="clearer"></div>
200 ····</div>201 ····</div>
201 ··</body>202 ··</body>
202 </html>203 </html>
1.66 KB
html2text {}
Max HTML report size reached
32.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/storage/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.storage.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.storage.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 61 lines modifiedOffset 51, 61 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-base">69 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.storage.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.storage.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>
72 <span·class="kn">import</span>·<span·class="nn">pathlib</span>73 <span·class="kn">import</span>·<span·class="nn">pathlib</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">SuspiciousFileOperation</span>74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">SuspiciousFileOperation</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.files.utils</span>·<span·class="kn">import</span>·<span·class="n">validate_file_name</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.files.utils</span>·<span·class="kn">import</span>·<span·class="n">validate_file_name</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.crypto</span>·<span·class="kn">import</span>·<span·class="n">get_random_string</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.crypto</span>·<span·class="kn">import</span>·<span·class="n">get_random_string</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">get_valid_filename</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">get_valid_filename</span>
  
  
78 <div·class="viewcode-block"·id="Storage">79 <div·class="viewcode-block"·id="Storage">
79 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage">[docs]</a>80 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage">[documenti]</a>
80 <span·class="k">class</span>·<span·class="nc">Storage</span><span·class="p">:</span>81 <span·class="k">class</span>·<span·class="nc">Storage</span><span·class="p">:</span>
81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
82 <span·class="sd">····A·base·storage·class,·providing·some·default·behaviors·that·all·other</span>83 <span·class="sd">····A·base·storage·class,·providing·some·default·behaviors·that·all·other</span>
83 <span·class="sd">····storage·systems·can·inherit·or·override,·as·necessary.</span>84 <span·class="sd">····storage·systems·can·inherit·or·override,·as·necessary.</span>
84 <span·class="sd">····&quot;&quot;&quot;</span>85 <span·class="sd">····&quot;&quot;&quot;</span>
  
85 ····<span·class="c1">#·The·following·methods·represent·a·public·interface·to·private·methods.</span>86 ····<span·class="c1">#·The·following·methods·represent·a·public·interface·to·private·methods.</span>
86 ····<span·class="c1">#·These·shouldn&#39;t·be·overridden·by·subclasses·unless·absolutely·necessary.</span>87 ····<span·class="c1">#·These·shouldn&#39;t·be·overridden·by·subclasses·unless·absolutely·necessary.</span>
  
87 <div·class="viewcode-block"·id="Storage.open">88 <div·class="viewcode-block"·id="Storage.open">
88 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.open">[docs]</a>89 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.open">[documenti]</a>
89 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">):</span>90 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">):</span>
90 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Retrieve·the·specified·file·from·storage.&quot;&quot;&quot;</span>91 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Retrieve·the·specified·file·from·storage.&quot;&quot;&quot;</span>
91 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_open</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="p">)</span></div>92 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_open</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="p">)</span></div>
  
  
92 <div·class="viewcode-block"·id="Storage.save">93 <div·class="viewcode-block"·id="Storage.save">
93 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.save">[docs]</a>94 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.save">[documenti]</a>
94 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>95 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
95 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>96 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
96 <span·class="sd">········Save·new·content·to·the·file·specified·by·name.·The·content·should·be</span>97 <span·class="sd">········Save·new·content·to·the·file·specified·by·name.·The·content·should·be</span>
97 <span·class="sd">········a·proper·File·object·or·any·Python·file-like·object,·ready·to·be·read</span>98 <span·class="sd">········a·proper·File·object·or·any·Python·file-like·object,·ready·to·be·read</span>
98 <span·class="sd">········from·the·beginning.</span>99 <span·class="sd">········from·the·beginning.</span>
99 <span·class="sd">········&quot;&quot;&quot;</span>100 <span·class="sd">········&quot;&quot;&quot;</span>
100 ········<span·class="c1">#·Get·the·proper·name·for·the·file,·as·it·will·actually·be·saved.</span>101 ········<span·class="c1">#·Get·the·proper·name·for·the·file,·as·it·will·actually·be·saved.</span>
Offset 131, 36 lines modifiedOffset 132, 36 lines modified
131 ········<span·class="n">validate_file_name</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">allow_relative_path</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>132 ········<span·class="n">validate_file_name</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">allow_relative_path</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>
132 ········<span·class="k">return</span>·<span·class="n">name</span></div>133 ········<span·class="k">return</span>·<span·class="n">name</span></div>
  
  
133 ····<span·class="c1">#·These·methods·are·part·of·the·public·API,·with·default·implementations.</span>134 ····<span·class="c1">#·These·methods·are·part·of·the·public·API,·with·default·implementations.</span>
  
134 <div·class="viewcode-block"·id="Storage.get_valid_name">135 <div·class="viewcode-block"·id="Storage.get_valid_name">
135 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_valid_name">[docs]</a>136 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_valid_name">[documenti]</a>
136 ····<span·class="k">def</span>·<span·class="nf">get_valid_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>137 ····<span·class="k">def</span>·<span·class="nf">get_valid_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
137 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>138 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
138 <span·class="sd">········Return·a·filename,·based·on·the·provided·filename,·that&#39;s·suitable·for</span>139 <span·class="sd">········Return·a·filename,·based·on·the·provided·filename,·that&#39;s·suitable·for</span>
139 <span·class="sd">········use·in·the·target·storage·system.</span>140 <span·class="sd">········use·in·the·target·storage·system.</span>
140 <span·class="sd">········&quot;&quot;&quot;</span>141 <span·class="sd">········&quot;&quot;&quot;</span>
141 ········<span·class="k">return</span>·<span·class="n">get_valid_filename</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span></div>142 ········<span·class="k">return</span>·<span·class="n">get_valid_filename</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span></div>
  
  
142 <div·class="viewcode-block"·id="Storage.get_alternative_name">143 <div·class="viewcode-block"·id="Storage.get_alternative_name">
143 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_alternative_name">[docs]</a>144 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_alternative_name">[documenti]</a>
144 ····<span·class="k">def</span>·<span·class="nf">get_alternative_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">file_ext</span><span·class="p">):</span>145 ····<span·class="k">def</span>·<span·class="nf">get_alternative_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">file_ext</span><span·class="p">):</span>
145 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>146 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
146 <span·class="sd">········Return·an·alternative·filename,·by·adding·an·underscore·and·a·random·7</span>147 <span·class="sd">········Return·an·alternative·filename,·by·adding·an·underscore·and·a·random·7</span>
147 <span·class="sd">········character·alphanumeric·string·(before·the·file·extension,·if·one</span>148 <span·class="sd">········character·alphanumeric·string·(before·the·file·extension,·if·one</span>
148 <span·class="sd">········exists)·to·the·filename.</span>149 <span·class="sd">········exists)·to·the·filename.</span>
149 <span·class="sd">········&quot;&quot;&quot;</span>150 <span·class="sd">········&quot;&quot;&quot;</span>
150 ········<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">_</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">get_random_string</span><span·class="p">(</span><span·class="mi">7</span><span·class="p">),</span>·<span·class="n">file_ext</span><span·class="p">)</span></div>151 ········<span·class="k">return</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">_</span><span·class="si">%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">get_random_string</span><span·class="p">(</span><span·class="mi">7</span><span·class="p">),</span>·<span·class="n">file_ext</span><span·class="p">)</span></div>
  
  
151 <div·class="viewcode-block"·id="Storage.get_available_name">152 <div·class="viewcode-block"·id="Storage.get_available_name">
152 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_available_name">[docs]</a>153 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.Storage.get_available_name">[documenti]</a>
153 ····<span·class="k">def</span>·<span·class="nf">get_available_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>154 ····<span·class="k">def</span>·<span·class="nf">get_available_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
154 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>155 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
155 <span·class="sd">········Return·a·filename·that&#39;s·free·on·the·target·storage·system·and</span>156 <span·class="sd">········Return·a·filename·that&#39;s·free·on·the·target·storage·system·and</span>
156 <span·class="sd">········available·for·new·content·to·be·written·to.</span>157 <span·class="sd">········available·for·new·content·to·be·written·to.</span>
157 <span·class="sd">········&quot;&quot;&quot;</span>158 <span·class="sd">········&quot;&quot;&quot;</span>
158 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/&quot;</span><span·class="p">)</span>159 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/&quot;</span><span·class="p">)</span>
159 ········<span·class="n">dir_name</span><span·class="p">,</span>·<span·class="n">file_name</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">split</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span>160 ········<span·class="n">dir_name</span><span·class="p">,</span>·<span·class="n">file_name</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">split</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span>
Offset 196, 15 lines modifiedOffset 197, 15 lines modified
196 ················<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span>197 ················<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span>
197 ····················<span·class="n">dir_name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_alternative_name</span><span·class="p">(</span><span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">file_ext</span><span·class="p">)</span>198 ····················<span·class="n">dir_name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_alternative_name</span><span·class="p">(</span><span·class="n">file_root</span><span·class="p">,</span>·<span·class="n">file_ext</span><span·class="p">)</span>
198 ················<span·class="p">)</span>199 ················<span·class="p">)</span>
199 ········<span·class="k">return</span>·<span·class="n">name</span></div>200 ········<span·class="k">return</span>·<span·class="n">name</span></div>
  
Max diff block lines reached; 13364/25228 bytes (52.97%) of diff not shown.
7.53 KB
html2text {}
Max HTML report size reached
11.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/storage/filesystem.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.storage.filesystem·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.storage.filesystem·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-filesystem">69 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-filesystem">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.storage.filesystem</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.storage.filesystem</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">os</span>
72 <span·class="kn">from</span>·<span·class="nn">datetime</span>·<span·class="kn">import</span>·<span·class="n">datetime</span><span·class="p">,</span>·<span·class="n">timezone</span>73 <span·class="kn">from</span>·<span·class="nn">datetime</span>·<span·class="kn">import</span>·<span·class="n">datetime</span><span·class="p">,</span>·<span·class="n">timezone</span>
73 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urljoin</span>74 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urljoin</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span><span·class="p">,</span>·<span·class="n">locks</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.files</span>·<span·class="kn">import</span>·<span·class="n">File</span><span·class="p">,</span>·<span·class="n">locks</span>
76 <span·class="kn">from</span>·<span·class="nn">django.core.files.move</span>·<span·class="kn">import</span>·<span·class="n">file_move_safe</span>77 <span·class="kn">from</span>·<span·class="nn">django.core.files.move</span>·<span·class="kn">import</span>·<span·class="n">file_move_safe</span>
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>86 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
  
86 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Storage</span>87 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Storage</span>
87 <span·class="kn">from</span>·<span·class="nn">.mixins</span>·<span·class="kn">import</span>·<span·class="n">StorageSettingsMixin</span>88 <span·class="kn">from</span>·<span·class="nn">.mixins</span>·<span·class="kn">import</span>·<span·class="n">StorageSettingsMixin</span>
  
  
88 <div·class="viewcode-block"·id="FileSystemStorage">89 <div·class="viewcode-block"·id="FileSystemStorage">
89 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.FileSystemStorage">[docs]</a>90 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.FileSystemStorage">[documenti]</a>
90 <span·class="nd">@deconstructible</span><span·class="p">(</span><span·class="n">path</span><span·class="o">=</span><span·class="s2">&quot;django.core.files.storage.FileSystemStorage&quot;</span><span·class="p">)</span>91 <span·class="nd">@deconstructible</span><span·class="p">(</span><span·class="n">path</span><span·class="o">=</span><span·class="s2">&quot;django.core.files.storage.FileSystemStorage&quot;</span><span·class="p">)</span>
91 <span·class="k">class</span>·<span·class="nc">FileSystemStorage</span><span·class="p">(</span><span·class="n">Storage</span><span·class="p">,</span>·<span·class="n">StorageSettingsMixin</span><span·class="p">):</span>92 <span·class="k">class</span>·<span·class="nc">FileSystemStorage</span><span·class="p">(</span><span·class="n">Storage</span><span·class="p">,</span>·<span·class="n">StorageSettingsMixin</span><span·class="p">):</span>
92 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
93 <span·class="sd">····Standard·filesystem·storage</span>94 <span·class="sd">····Standard·filesystem·storage</span>
94 <span·class="sd">····&quot;&quot;&quot;</span>95 <span·class="sd">····&quot;&quot;&quot;</span>
  
95 ····<span·class="c1">#·The·combination·of·O_CREAT·and·O_EXCL·makes·os.open()·raise·OSError·if</span>96 ····<span·class="c1">#·The·combination·of·O_CREAT·and·O_EXCL·makes·os.open()·raise·OSError·if</span>
Offset 272, 15 lines modifiedOffset 273, 15 lines modified
272 ········<span·class="n">tz</span>·<span·class="o">=</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">utc</span>·<span·class="k">if</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">USE_TZ</span>·<span·class="k">else</span>·<span·class="kc">None</span>273 ········<span·class="n">tz</span>·<span·class="o">=</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">utc</span>·<span·class="k">if</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">USE_TZ</span>·<span·class="k">else</span>·<span·class="kc">None</span>
273 ········<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">fromtimestamp</span><span·class="p">(</span><span·class="n">ts</span><span·class="p">,</span>·<span·class="n">tz</span><span·class="o">=</span><span·class="n">tz</span><span·class="p">)</span>274 ········<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">fromtimestamp</span><span·class="p">(</span><span·class="n">ts</span><span·class="p">,</span>·<span·class="n">tz</span><span·class="o">=</span><span·class="n">tz</span><span·class="p">)</span>
  
274 ····<span·class="k">def</span>·<span·class="nf">get_accessed_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>275 ····<span·class="k">def</span>·<span·class="nf">get_accessed_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
275 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getatime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span>276 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getatime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span>
  
276 <div·class="viewcode-block"·id="FileSystemStorage.get_created_time">277 <div·class="viewcode-block"·id="FileSystemStorage.get_created_time">
277 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.FileSystemStorage.get_created_time">[docs]</a>278 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.FileSystemStorage.get_created_time">[documenti]</a>
278 ····<span·class="k">def</span>·<span·class="nf">get_created_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>279 ····<span·class="k">def</span>·<span·class="nf">get_created_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
279 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getctime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span></div>280 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getctime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span></div>
  
  
280 ····<span·class="k">def</span>·<span·class="nf">get_modified_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>281 ····<span·class="k">def</span>·<span·class="nf">get_modified_time</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
281 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getmtime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span></div>282 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_datetime_from_timestamp</span><span·class="p">(</span><span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">getmtime</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">path</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)))</span></div>
  
Offset 292, 35 lines modifiedOffset 293, 35 lines modified
292 ······293 ······
293 ········294 ········
294 ··········<div·class="yui-b"·id="sidebar">295 ··········<div·class="yui-b"·id="sidebar">
295 ············296 ············
296 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">297 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
297 ········<div·class="sphinxsidebarwrapper">298 ········<div·class="sphinxsidebarwrapper">
298 <search·id="searchbox"·style="display:·none"·role="search">299 <search·id="searchbox"·style="display:·none"·role="search">
299 ··<h3·id="searchlabel">Quick·search</h3>300 ··<h3·id="searchlabel">Ricerca·veloce</h3>
300 ····<div·class="searchformwrapper">301 ····<div·class="searchformwrapper">
301 ····<form·class="search"·action="../../../../../search.html"·method="get">302 ····<form·class="search"·action="../../../../../search.html"·method="get">
302 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>303 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
303 ······<input·type="submit"·value="Go"·/>304 ······<input·type="submit"·value="Vai"·/>
304 ····</form>305 ····</form>
305 ····</div>306 ····</div>
306 </search>307 </search>
307 <script>document.getElementById('searchbox').style.display·=·"block"</script>308 <script>document.getElementById('searchbox').style.display·=·"block"</script>
308 ········</div>309 ········</div>
309 ······</div>310 ······</div>
310 ··············<h3>Last·update:</h3>311 ··············<h3>Last·update:</h3>
311 ··············<p·class="topless">Sep·03,·2024</p>312 ··············<p·class="topless">set·03,·2024</p>
312 ··········</div>313 ··········</div>
313 ········314 ········
314 ······315 ······
315 ····</div>316 ····</div>
  
316 ····<div·id="ft">317 ····<div·id="ft">
317 ······<div·class="nav">318 ······<div·class="nav">
318 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>319 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
319 ····</div>320 ····</div>
320 ··</div>321 ··</div>
  
321 ······<div·class="clearer"></div>322 ······<div·class="clearer"></div>
322 ····</div>323 ····</div>
323 ··</body>324 ··</body>
324 </html>325 </html>
2.37 KB
html2text {}
Max HTML report size reached
8.23 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/storage/memory.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.storage.memory·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.storage.memory·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-memory">69 ··········<div·class="yui-g"·id="_modules-django-core-files-storage-memory">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.storage.memory</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.storage.memory</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Based·on·dj-inmemorystorage·(BSD)·by·Cody·Soyland,·Seán·Hayes,·Tore·Birkeland,</span>73 <span·class="sd">Based·on·dj-inmemorystorage·(BSD)·by·Cody·Soyland,·Seán·Hayes,·Tore·Birkeland,</span>
73 <span·class="sd">and·Nick·Presta.</span>74 <span·class="sd">and·Nick·Presta.</span>
74 <span·class="sd">&quot;&quot;&quot;</span>75 <span·class="sd">&quot;&quot;&quot;</span>
  
75 <span·class="kn">import</span>·<span·class="nn">errno</span>76 <span·class="kn">import</span>·<span·class="nn">errno</span>
76 <span·class="kn">import</span>·<span·class="nn">io</span>77 <span·class="kn">import</span>·<span·class="nn">io</span>
Offset 231, 15 lines modifiedOffset 232, 15 lines modified
231 ········<span·class="k">if</span>·<span·class="n">name</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_children</span><span·class="p">:</span>232 ········<span·class="k">if</span>·<span·class="n">name</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_children</span><span·class="p">:</span>
232 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_update_accessed_time</span><span·class="p">()</span>233 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_update_accessed_time</span><span·class="p">()</span>
233 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_update_modified_time</span><span·class="p">()</span>234 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_update_modified_time</span><span·class="p">()</span>
234 ············<span·class="k">del</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_children</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>235 ············<span·class="k">del</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_children</span><span·class="p">[</span><span·class="n">name</span><span·class="p">]</span>
  
  
235 <div·class="viewcode-block"·id="InMemoryStorage">236 <div·class="viewcode-block"·id="InMemoryStorage">
236 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.InMemoryStorage">[docs]</a>237 <a·class="viewcode-back"·href="../../../../../ref/files/storage.html#django.core.files.storage.InMemoryStorage">[documenti]</a>
237 <span·class="nd">@deconstructible</span><span·class="p">(</span><span·class="n">path</span><span·class="o">=</span><span·class="s2">&quot;django.core.files.storage.InMemoryStorage&quot;</span><span·class="p">)</span>238 <span·class="nd">@deconstructible</span><span·class="p">(</span><span·class="n">path</span><span·class="o">=</span><span·class="s2">&quot;django.core.files.storage.InMemoryStorage&quot;</span><span·class="p">)</span>
238 <span·class="k">class</span>·<span·class="nc">InMemoryStorage</span><span·class="p">(</span><span·class="n">Storage</span><span·class="p">,</span>·<span·class="n">StorageSettingsMixin</span><span·class="p">):</span>239 <span·class="k">class</span>·<span·class="nc">InMemoryStorage</span><span·class="p">(</span><span·class="n">Storage</span><span·class="p">,</span>·<span·class="n">StorageSettingsMixin</span><span·class="p">):</span>
239 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·storage·saving·files·in·memory.&quot;&quot;&quot;</span>240 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·storage·saving·files·in·memory.&quot;&quot;&quot;</span>
  
240 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>241 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
241 ········<span·class="bp">self</span><span·class="p">,</span>242 ········<span·class="bp">self</span><span·class="p">,</span>
242 ········<span·class="n">location</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>243 ········<span·class="n">location</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 372, 35 lines modifiedOffset 373, 35 lines modified
372 ······373 ······
373 ········374 ········
374 ··········<div·class="yui-b"·id="sidebar">375 ··········<div·class="yui-b"·id="sidebar">
375 ············376 ············
376 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">377 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
377 ········<div·class="sphinxsidebarwrapper">378 ········<div·class="sphinxsidebarwrapper">
378 <search·id="searchbox"·style="display:·none"·role="search">379 <search·id="searchbox"·style="display:·none"·role="search">
379 ··<h3·id="searchlabel">Quick·search</h3>380 ··<h3·id="searchlabel">Ricerca·veloce</h3>
380 ····<div·class="searchformwrapper">381 ····<div·class="searchformwrapper">
381 ····<form·class="search"·action="../../../../../search.html"·method="get">382 ····<form·class="search"·action="../../../../../search.html"·method="get">
382 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>383 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
383 ······<input·type="submit"·value="Go"·/>384 ······<input·type="submit"·value="Vai"·/>
384 ····</form>385 ····</form>
385 ····</div>386 ····</div>
386 </search>387 </search>
387 <script>document.getElementById('searchbox').style.display·=·"block"</script>388 <script>document.getElementById('searchbox').style.display·=·"block"</script>
388 ········</div>389 ········</div>
389 ······</div>390 ······</div>
390 ··············<h3>Last·update:</h3>391 ··············<h3>Last·update:</h3>
391 ··············<p·class="topless">Sep·03,·2024</p>392 ··············<p·class="topless">set·03,·2024</p>
392 ··········</div>393 ··········</div>
393 ········394 ········
394 ······395 ······
395 ····</div>396 ····</div>
  
396 ····<div·id="ft">397 ····<div·id="ft">
397 ······<div·class="nav">398 ······<div·class="nav">
398 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>399 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
399 ····</div>400 ····</div>
400 ··</div>401 ··</div>
  
401 ······<div·class="clearer"></div>402 ······<div·class="clearer"></div>
402 ····</div>403 ····</div>
403 ··</body>404 ··</body>
404 </html>405 </html>
1.94 KB
html2text {}
Max HTML report size reached
9.27 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/storage.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.storage·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.storage·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-storage">69 ··········<div·class="yui-g"·id="_modules-django-core-files-storage">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.storage</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.storage</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">warnings</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_STORAGE_ALIAS</span><span·class="p">,</span>·<span·class="n">settings</span>73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_STORAGE_ALIAS</span><span·class="p">,</span>·<span·class="n">settings</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">RemovedInDjango51Warning</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">RemovedInDjango51Warning</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">LazyObject</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">LazyObject</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>
  
Offset 98, 27 lines modifiedOffset 99, 27 lines modified
98 <span·class="n">GET_STORAGE_CLASS_DEPRECATED_MSG</span>·<span·class="o">=</span>·<span·class="p">(</span>99 <span·class="n">GET_STORAGE_CLASS_DEPRECATED_MSG</span>·<span·class="o">=</span>·<span·class="p">(</span>
99 ····<span·class="s2">&quot;django.core.files.storage.get_storage_class·is·deprecated·in·favor·of·&quot;</span>100 ····<span·class="s2">&quot;django.core.files.storage.get_storage_class·is·deprecated·in·favor·of·&quot;</span>
100 ····<span·class="s2">&quot;using·django.core.files.storage.storages.&quot;</span>101 ····<span·class="s2">&quot;using·django.core.files.storage.storages.&quot;</span>
101 <span·class="p">)</span>102 <span·class="p">)</span>
  
  
102 <div·class="viewcode-block"·id="get_storage_class">103 <div·class="viewcode-block"·id="get_storage_class">
103 <a·class="viewcode-back"·href="../../../../ref/files/storage.html#django.core.files.storage.get_storage_class">[docs]</a>104 <a·class="viewcode-back"·href="../../../../ref/files/storage.html#django.core.files.storage.get_storage_class">[documenti]</a>
104 <span·class="k">def</span>·<span·class="nf">get_storage_class</span><span·class="p">(</span><span·class="n">import_path</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>105 <span·class="k">def</span>·<span·class="nf">get_storage_class</span><span·class="p">(</span><span·class="n">import_path</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
105 ····<span·class="n">warnings</span><span·class="o">.</span><span·class="n">warn</span><span·class="p">(</span>106 ····<span·class="n">warnings</span><span·class="o">.</span><span·class="n">warn</span><span·class="p">(</span>
106 ········<span·class="n">GET_STORAGE_CLASS_DEPRECATED_MSG</span><span·class="p">,</span>107 ········<span·class="n">GET_STORAGE_CLASS_DEPRECATED_MSG</span><span·class="p">,</span>
107 ········<span·class="n">RemovedInDjango51Warning</span><span·class="p">,</span>108 ········<span·class="n">RemovedInDjango51Warning</span><span·class="p">,</span>
108 ········<span·class="n">stacklevel</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>109 ········<span·class="n">stacklevel</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>
109 ····<span·class="p">)</span>110 ····<span·class="p">)</span>
110 ····<span·class="k">return</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">import_path</span>·<span·class="ow">or</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEFAULT_FILE_STORAGE</span><span·class="p">)</span></div>111 ····<span·class="k">return</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">import_path</span>·<span·class="ow">or</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEFAULT_FILE_STORAGE</span><span·class="p">)</span></div>
  
  
  
111 <div·class="viewcode-block"·id="DefaultStorage">112 <div·class="viewcode-block"·id="DefaultStorage">
112 <a·class="viewcode-back"·href="../../../../ref/files/storage.html#django.core.files.storage.DefaultStorage">[docs]</a>113 <a·class="viewcode-back"·href="../../../../ref/files/storage.html#django.core.files.storage.DefaultStorage">[documenti]</a>
113 <span·class="k">class</span>·<span·class="nc">DefaultStorage</span><span·class="p">(</span><span·class="n">LazyObject</span><span·class="p">):</span>114 <span·class="k">class</span>·<span·class="nc">DefaultStorage</span><span·class="p">(</span><span·class="n">LazyObject</span><span·class="p">):</span>
114 ····<span·class="k">def</span>·<span·class="nf">_setup</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>115 ····<span·class="k">def</span>·<span·class="nf">_setup</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
115 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_wrapped</span>·<span·class="o">=</span>·<span·class="n">storages</span><span·class="p">[</span><span·class="n">DEFAULT_STORAGE_ALIAS</span><span·class="p">]</span></div>116 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_wrapped</span>·<span·class="o">=</span>·<span·class="n">storages</span><span·class="p">[</span><span·class="n">DEFAULT_STORAGE_ALIAS</span><span·class="p">]</span></div>
  
  
  
116 <span·class="n">storages</span>·<span·class="o">=</span>·<span·class="n">StorageHandler</span><span·class="p">()</span>117 <span·class="n">storages</span>·<span·class="o">=</span>·<span·class="n">StorageHandler</span><span·class="p">()</span>
Offset 131, 35 lines modifiedOffset 132, 35 lines modified
131 ······132 ······
132 ········133 ········
133 ··········<div·class="yui-b"·id="sidebar">134 ··········<div·class="yui-b"·id="sidebar">
134 ············135 ············
135 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">136 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
136 ········<div·class="sphinxsidebarwrapper">137 ········<div·class="sphinxsidebarwrapper">
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../../../../search.html"·method="get">141 ····<form·class="search"·action="../../../../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
157 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>158 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
158 ····</div>159 ····</div>
159 ··</div>160 ··</div>
  
160 ······<div·class="clearer"></div>161 ······<div·class="clearer"></div>
161 ····</div>162 ····</div>
162 ··</body>163 ··</body>
163 </html>164 </html>
2.06 KB
html2text {}
Max HTML report size reached
13.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/uploadedfile.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.uploadedfile·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.uploadedfile·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-uploadedfile">69 ··········<div·class="yui-g"·id="_modules-django-core-files-uploadedfile">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.uploadedfile</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.uploadedfile</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Classes·representing·uploaded·files.</span>73 <span·class="sd">Classes·representing·uploaded·files.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
  
74 <span·class="kn">import</span>·<span·class="nn">os</span>75 <span·class="kn">import</span>·<span·class="nn">os</span>
75 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>76 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>
  
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 ····<span·class="s2">&quot;TemporaryUploadedFile&quot;</span><span·class="p">,</span>89 ····<span·class="s2">&quot;TemporaryUploadedFile&quot;</span><span·class="p">,</span>
89 ····<span·class="s2">&quot;InMemoryUploadedFile&quot;</span><span·class="p">,</span>90 ····<span·class="s2">&quot;InMemoryUploadedFile&quot;</span><span·class="p">,</span>
90 ····<span·class="s2">&quot;SimpleUploadedFile&quot;</span><span·class="p">,</span>91 ····<span·class="s2">&quot;SimpleUploadedFile&quot;</span><span·class="p">,</span>
91 <span·class="p">)</span>92 <span·class="p">)</span>
  
  
92 <div·class="viewcode-block"·id="UploadedFile">93 <div·class="viewcode-block"·id="UploadedFile">
93 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.UploadedFile">[docs]</a>94 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.UploadedFile">[documenti]</a>
94 <span·class="k">class</span>·<span·class="nc">UploadedFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">):</span>95 <span·class="k">class</span>·<span·class="nc">UploadedFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">):</span>
95 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>96 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
96 <span·class="sd">····An·abstract·uploaded·file·(``TemporaryUploadedFile``·and</span>97 <span·class="sd">····An·abstract·uploaded·file·(``TemporaryUploadedFile``·and</span>
97 <span·class="sd">····``InMemoryUploadedFile``·are·the·built-in·concrete·subclasses).</span>98 <span·class="sd">····``InMemoryUploadedFile``·are·the·built-in·concrete·subclasses).</span>
  
98 <span·class="sd">····An·``UploadedFile``·object·behaves·somewhat·like·a·file·object·and</span>99 <span·class="sd">····An·``UploadedFile``·object·behaves·somewhat·like·a·file·object·and</span>
99 <span·class="sd">····represents·some·file·data·that·the·user·submitted·with·a·form.</span>100 <span·class="sd">····represents·some·file·data·that·the·user·submitted·with·a·form.</span>
Offset 140, 29 lines modifiedOffset 141, 29 lines modified
140 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_name</span>·<span·class="o">=</span>·<span·class="n">name</span>141 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_name</span>·<span·class="o">=</span>·<span·class="n">name</span>
  
141 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">property</span><span·class="p">(</span><span·class="n">_get_name</span><span·class="p">,</span>·<span·class="n">_set_name</span><span·class="p">)</span></div>142 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="nb">property</span><span·class="p">(</span><span·class="n">_get_name</span><span·class="p">,</span>·<span·class="n">_set_name</span><span·class="p">)</span></div>
  
  
  
142 <div·class="viewcode-block"·id="TemporaryUploadedFile">143 <div·class="viewcode-block"·id="TemporaryUploadedFile">
143 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.TemporaryUploadedFile">[docs]</a>144 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.TemporaryUploadedFile">[documenti]</a>
144 <span·class="k">class</span>·<span·class="nc">TemporaryUploadedFile</span><span·class="p">(</span><span·class="n">UploadedFile</span><span·class="p">):</span>145 <span·class="k">class</span>·<span·class="nc">TemporaryUploadedFile</span><span·class="p">(</span><span·class="n">UploadedFile</span><span·class="p">):</span>
145 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>146 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
146 <span·class="sd">····A·file·uploaded·to·a·temporary·location·(i.e.·stream-to-disk).</span>147 <span·class="sd">····A·file·uploaded·to·a·temporary·location·(i.e.·stream-to-disk).</span>
147 <span·class="sd">····&quot;&quot;&quot;</span>148 <span·class="sd">····&quot;&quot;&quot;</span>
  
148 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">size</span><span·class="p">,</span>·<span·class="n">charset</span><span·class="p">,</span>·<span·class="n">content_type_extra</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>149 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">size</span><span·class="p">,</span>·<span·class="n">charset</span><span·class="p">,</span>·<span·class="n">content_type_extra</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
149 ········<span·class="n">_</span><span·class="p">,</span>·<span·class="n">ext</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">splitext</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span>150 ········<span·class="n">_</span><span·class="p">,</span>·<span·class="n">ext</span>·<span·class="o">=</span>·<span·class="n">os</span><span·class="o">.</span><span·class="n">path</span><span·class="o">.</span><span·class="n">splitext</span><span·class="p">(</span><span·class="n">name</span><span·class="p">)</span>
150 ········<span·class="n">file</span>·<span·class="o">=</span>·<span·class="n">tempfile</span><span·class="o">.</span><span·class="n">NamedTemporaryFile</span><span·class="p">(</span>151 ········<span·class="n">file</span>·<span·class="o">=</span>·<span·class="n">tempfile</span><span·class="o">.</span><span·class="n">NamedTemporaryFile</span><span·class="p">(</span>
151 ············<span·class="n">suffix</span><span·class="o">=</span><span·class="s2">&quot;.upload&quot;</span>·<span·class="o">+</span>·<span·class="n">ext</span><span·class="p">,</span>·<span·class="nb">dir</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">FILE_UPLOAD_TEMP_DIR</span>152 ············<span·class="n">suffix</span><span·class="o">=</span><span·class="s2">&quot;.upload&quot;</span>·<span·class="o">+</span>·<span·class="n">ext</span><span·class="p">,</span>·<span·class="nb">dir</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">FILE_UPLOAD_TEMP_DIR</span>
152 ········<span·class="p">)</span>153 ········<span·class="p">)</span>
153 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">file</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">size</span><span·class="p">,</span>·<span·class="n">charset</span><span·class="p">,</span>·<span·class="n">content_type_extra</span><span·class="p">)</span>154 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">file</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">size</span><span·class="p">,</span>·<span·class="n">charset</span><span·class="p">,</span>·<span·class="n">content_type_extra</span><span·class="p">)</span>
  
154 <div·class="viewcode-block"·id="TemporaryUploadedFile.temporary_file_path">155 <div·class="viewcode-block"·id="TemporaryUploadedFile.temporary_file_path">
155 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.TemporaryUploadedFile.temporary_file_path">[docs]</a>156 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.TemporaryUploadedFile.temporary_file_path">[documenti]</a>
156 ····<span·class="k">def</span>·<span·class="nf">temporary_file_path</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>157 ····<span·class="k">def</span>·<span·class="nf">temporary_file_path</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
157 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·full·path·of·this·file.&quot;&quot;&quot;</span>158 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·full·path·of·this·file.&quot;&quot;&quot;</span>
158 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">name</span></div>159 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">name</span></div>
  
  
159 ····<span·class="k">def</span>·<span·class="nf">close</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>160 ····<span·class="k">def</span>·<span·class="nf">close</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
160 ········<span·class="k">try</span><span·class="p">:</span>161 ········<span·class="k">try</span><span·class="p">:</span>
Offset 172, 15 lines modifiedOffset 173, 15 lines modified
172 ············<span·class="c1">#·it.·Still·sets·self.file.close_called·and·calls</span>173 ············<span·class="c1">#·it.·Still·sets·self.file.close_called·and·calls</span>
173 ············<span·class="c1">#·self.file.file.close()·before·the·exception.</span>174 ············<span·class="c1">#·self.file.file.close()·before·the·exception.</span>
174 ············<span·class="k">pass</span></div>175 ············<span·class="k">pass</span></div>
  
  
  
175 <div·class="viewcode-block"·id="InMemoryUploadedFile">176 <div·class="viewcode-block"·id="InMemoryUploadedFile">
176 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.InMemoryUploadedFile">[docs]</a>177 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadedfile.InMemoryUploadedFile">[documenti]</a>
177 <span·class="k">class</span>·<span·class="nc">InMemoryUploadedFile</span><span·class="p">(</span><span·class="n">UploadedFile</span><span·class="p">):</span>178 <span·class="k">class</span>·<span·class="nc">InMemoryUploadedFile</span><span·class="p">(</span><span·class="n">UploadedFile</span><span·class="p">):</span>
178 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>179 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
179 <span·class="sd">····A·file·uploaded·into·memory·(i.e.·stream-to-memory).</span>180 <span·class="sd">····A·file·uploaded·into·memory·(i.e.·stream-to-memory).</span>
180 <span·class="sd">····&quot;&quot;&quot;</span>181 <span·class="sd">····&quot;&quot;&quot;</span>
  
181 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>182 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
182 ········<span·class="bp">self</span><span·class="p">,</span>183 ········<span·class="bp">self</span><span·class="p">,</span>
Offset 241, 35 lines modifiedOffset 242, 35 lines modified
241 ······242 ······
242 ········243 ········
243 ··········<div·class="yui-b"·id="sidebar">244 ··········<div·class="yui-b"·id="sidebar">
244 ············245 ············
245 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">246 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
246 ········<div·class="sphinxsidebarwrapper">247 ········<div·class="sphinxsidebarwrapper">
247 <search·id="searchbox"·style="display:·none"·role="search">248 <search·id="searchbox"·style="display:·none"·role="search">
248 ··<h3·id="searchlabel">Quick·search</h3>249 ··<h3·id="searchlabel">Ricerca·veloce</h3>
249 ····<div·class="searchformwrapper">250 ····<div·class="searchformwrapper">
250 ····<form·class="search"·action="../../../../search.html"·method="get">251 ····<form·class="search"·action="../../../../search.html"·method="get">
Max diff block lines reached; 724/10583 bytes (6.84%) of diff not shown.
2.97 KB
html2text {}
Max HTML report size reached
20.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/files/uploadhandler.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.files.uploadhandler·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.files.uploadhandler·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-files-uploadhandler">69 ··········<div·class="yui-g"·id="_modules-django-core-files-uploadhandler">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.files.uploadhandler</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.files.uploadhandler</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Base·file·upload·handler·classes,·and·the·built-in·concrete·subclasses</span>73 <span·class="sd">Base·file·upload·handler·classes,·and·the·built-in·concrete·subclasses</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">import</span>·<span·class="nn">os</span>75 <span·class="kn">import</span>·<span·class="nn">os</span>
75 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>76 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>77 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
Offset 135, 15 lines modifiedOffset 136, 15 lines modified
135 <span·class="sd">····run·should·raise·this·exception·instead·of·returning·None.</span>136 <span·class="sd">····run·should·raise·this·exception·instead·of·returning·None.</span>
136 <span·class="sd">····&quot;&quot;&quot;</span>137 <span·class="sd">····&quot;&quot;&quot;</span>
  
137 ····<span·class="k">pass</span>138 ····<span·class="k">pass</span>
  
  
138 <div·class="viewcode-block"·id="FileUploadHandler">139 <div·class="viewcode-block"·id="FileUploadHandler">
139 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler">[docs]</a>140 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler">[documenti]</a>
140 <span·class="k">class</span>·<span·class="nc">FileUploadHandler</span><span·class="p">:</span>141 <span·class="k">class</span>·<span·class="nc">FileUploadHandler</span><span·class="p">:</span>
141 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>142 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
142 <span·class="sd">····Base·class·for·streaming·upload·handlers.</span>143 <span·class="sd">····Base·class·for·streaming·upload·handlers.</span>
143 <span·class="sd">····&quot;&quot;&quot;</span>144 <span·class="sd">····&quot;&quot;&quot;</span>
  
144 ····<span·class="n">chunk_size</span>·<span·class="o">=</span>·<span·class="mi">64</span>·<span·class="o">*</span>·<span·class="mi">2</span><span·class="o">**</span><span·class="mi">10</span>··<span·class="c1">#·:·The·default·chunk·size·is·64·KB.</span>145 ····<span·class="n">chunk_size</span>·<span·class="o">=</span>·<span·class="mi">64</span>·<span·class="o">*</span>·<span·class="mi">2</span><span·class="o">**</span><span·class="mi">10</span>··<span·class="c1">#·:·The·default·chunk·size·is·64·KB.</span>
  
Offset 152, 15 lines modifiedOffset 153, 15 lines modified
152 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type</span>·<span·class="o">=</span>·<span·class="kc">None</span>153 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type</span>·<span·class="o">=</span>·<span·class="kc">None</span>
153 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_length</span>·<span·class="o">=</span>·<span·class="kc">None</span>154 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_length</span>·<span·class="o">=</span>·<span·class="kc">None</span>
154 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">charset</span>·<span·class="o">=</span>·<span·class="kc">None</span>155 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">charset</span>·<span·class="o">=</span>·<span·class="kc">None</span>
155 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_extra</span>·<span·class="o">=</span>·<span·class="kc">None</span>156 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_extra</span>·<span·class="o">=</span>·<span·class="kc">None</span>
156 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">request</span>·<span·class="o">=</span>·<span·class="n">request</span>157 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">request</span>·<span·class="o">=</span>·<span·class="n">request</span>
  
157 <div·class="viewcode-block"·id="FileUploadHandler.handle_raw_input">158 <div·class="viewcode-block"·id="FileUploadHandler.handle_raw_input">
158 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.handle_raw_input">[docs]</a>159 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.handle_raw_input">[documenti]</a>
159 ····<span·class="k">def</span>·<span·class="nf">handle_raw_input</span><span·class="p">(</span>160 ····<span·class="k">def</span>·<span·class="nf">handle_raw_input</span><span·class="p">(</span>
160 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">input_data</span><span·class="p">,</span>·<span·class="n">META</span><span·class="p">,</span>·<span·class="n">content_length</span><span·class="p">,</span>·<span·class="n">boundary</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="kc">None</span>161 ········<span·class="bp">self</span><span·class="p">,</span>·<span·class="n">input_data</span><span·class="p">,</span>·<span·class="n">META</span><span·class="p">,</span>·<span·class="n">content_length</span><span·class="p">,</span>·<span·class="n">boundary</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="kc">None</span>
161 ····<span·class="p">):</span>162 ····<span·class="p">):</span>
162 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>163 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
163 <span·class="sd">········Handle·the·raw·input·from·the·client.</span>164 <span·class="sd">········Handle·the·raw·input·from·the·client.</span>
  
164 <span·class="sd">········Parameters:</span>165 <span·class="sd">········Parameters:</span>
Offset 175, 15 lines modifiedOffset 176, 15 lines modified
175 <span·class="sd">············:boundary:·The·boundary·from·the·Content-Type·header.·Be·sure·to</span>176 <span·class="sd">············:boundary:·The·boundary·from·the·Content-Type·header.·Be·sure·to</span>
176 <span·class="sd">················prepend·two·&#39;--&#39;.</span>177 <span·class="sd">················prepend·two·&#39;--&#39;.</span>
177 <span·class="sd">········&quot;&quot;&quot;</span>178 <span·class="sd">········&quot;&quot;&quot;</span>
178 ········<span·class="k">pass</span></div>179 ········<span·class="k">pass</span></div>
  
  
179 <div·class="viewcode-block"·id="FileUploadHandler.new_file">180 <div·class="viewcode-block"·id="FileUploadHandler.new_file">
180 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.new_file">[docs]</a>181 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.new_file">[documenti]</a>
181 ····<span·class="k">def</span>·<span·class="nf">new_file</span><span·class="p">(</span>182 ····<span·class="k">def</span>·<span·class="nf">new_file</span><span·class="p">(</span>
182 ········<span·class="bp">self</span><span·class="p">,</span>183 ········<span·class="bp">self</span><span·class="p">,</span>
183 ········<span·class="n">field_name</span><span·class="p">,</span>184 ········<span·class="n">field_name</span><span·class="p">,</span>
184 ········<span·class="n">file_name</span><span·class="p">,</span>185 ········<span·class="n">file_name</span><span·class="p">,</span>
185 ········<span·class="n">content_type</span><span·class="p">,</span>186 ········<span·class="n">content_type</span><span·class="p">,</span>
186 ········<span·class="n">content_length</span><span·class="p">,</span>187 ········<span·class="n">content_length</span><span·class="p">,</span>
187 ········<span·class="n">charset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>188 ········<span·class="n">charset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 200, 63 lines modifiedOffset 201, 63 lines modified
200 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type</span>·<span·class="o">=</span>·<span·class="n">content_type</span>201 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type</span>·<span·class="o">=</span>·<span·class="n">content_type</span>
201 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_length</span>·<span·class="o">=</span>·<span·class="n">content_length</span>202 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_length</span>·<span·class="o">=</span>·<span·class="n">content_length</span>
202 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">charset</span>·<span·class="o">=</span>·<span·class="n">charset</span>203 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">charset</span>·<span·class="o">=</span>·<span·class="n">charset</span>
203 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_extra</span>·<span·class="o">=</span>·<span·class="n">content_type_extra</span></div>204 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_extra</span>·<span·class="o">=</span>·<span·class="n">content_type_extra</span></div>
  
  
204 <div·class="viewcode-block"·id="FileUploadHandler.receive_data_chunk">205 <div·class="viewcode-block"·id="FileUploadHandler.receive_data_chunk">
205 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.receive_data_chunk">[docs]</a>206 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.receive_data_chunk">[documenti]</a>
206 ····<span·class="k">def</span>·<span·class="nf">receive_data_chunk</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">raw_data</span><span·class="p">,</span>·<span·class="n">start</span><span·class="p">):</span>207 ····<span·class="k">def</span>·<span·class="nf">receive_data_chunk</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">raw_data</span><span·class="p">,</span>·<span·class="n">start</span><span·class="p">):</span>
207 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>208 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
208 <span·class="sd">········Receive·data·from·the·streamed·upload·parser.·``start``·is·the·position</span>209 <span·class="sd">········Receive·data·from·the·streamed·upload·parser.·``start``·is·the·position</span>
209 <span·class="sd">········in·the·file·of·the·chunk.</span>210 <span·class="sd">········in·the·file·of·the·chunk.</span>
210 <span·class="sd">········&quot;&quot;&quot;</span>211 <span·class="sd">········&quot;&quot;&quot;</span>
211 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span>212 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span>
212 ············<span·class="s2">&quot;subclasses·of·FileUploadHandler·must·provide·a·receive_data_chunk()·method&quot;</span>213 ············<span·class="s2">&quot;subclasses·of·FileUploadHandler·must·provide·a·receive_data_chunk()·method&quot;</span>
213 ········<span·class="p">)</span></div>214 ········<span·class="p">)</span></div>
  
  
214 <div·class="viewcode-block"·id="FileUploadHandler.file_complete">215 <div·class="viewcode-block"·id="FileUploadHandler.file_complete">
215 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.file_complete">[docs]</a>216 <a·class="viewcode-back"·href="../../../../ref/files/uploads.html#django.core.files.uploadhandler.FileUploadHandler.file_complete">[documenti]</a>
216 ····<span·class="k">def</span>·<span·class="nf">file_complete</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file_size</span><span·class="p">):</span>217 ····<span·class="k">def</span>·<span·class="nf">file_complete</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">file_size</span><span·class="p">):</span>
217 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>218 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
218 <span·class="sd">········Signal·that·a·file·has·completed.·File·size·corresponds·to·the·actual</span>219 <span·class="sd">········Signal·that·a·file·has·completed.·File·size·corresponds·to·the·actual</span>
219 <span·class="sd">········size·accumulated·by·all·the·chunks.</span>220 <span·class="sd">········size·accumulated·by·all·the·chunks.</span>
Max diff block lines reached; 6149/16059 bytes (38.29%) of diff not shown.
4.71 KB
html2text {}
Max HTML report size reached
8.92 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/mail/message.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.mail.message·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.mail.message·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-mail-message">69 ··········<div·class="yui-g"·id="_modules-django-core-mail-message">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.mail.message</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.mail.message</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">mimetypes</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">mimetypes</span>
72 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">charset</span>·<span·class="k">as</span>·<span·class="n">Charset</span>73 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">charset</span>·<span·class="k">as</span>·<span·class="n">Charset</span>
73 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">encoders</span>·<span·class="k">as</span>·<span·class="n">Encoders</span>74 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">encoders</span>·<span·class="k">as</span>·<span·class="n">Encoders</span>
74 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">generator</span><span·class="p">,</span>·<span·class="n">message_from_string</span>75 <span·class="kn">from</span>·<span·class="nn">email</span>·<span·class="kn">import</span>·<span·class="n">generator</span><span·class="p">,</span>·<span·class="n">message_from_string</span>
75 <span·class="kn">from</span>·<span·class="nn">email.errors</span>·<span·class="kn">import</span>·<span·class="n">HeaderParseError</span>76 <span·class="kn">from</span>·<span·class="nn">email.errors</span>·<span·class="kn">import</span>·<span·class="n">HeaderParseError</span>
76 <span·class="kn">from</span>·<span·class="nn">email.header</span>·<span·class="kn">import</span>·<span·class="n">Header</span>77 <span·class="kn">from</span>·<span·class="nn">email.header</span>·<span·class="kn">import</span>·<span·class="n">Header</span>
77 <span·class="kn">from</span>·<span·class="nn">email.headerregistry</span>·<span·class="kn">import</span>·<span·class="n">Address</span><span·class="p">,</span>·<span·class="n">parser</span>78 <span·class="kn">from</span>·<span·class="nn">email.headerregistry</span>·<span·class="kn">import</span>·<span·class="n">Address</span><span·class="p">,</span>·<span·class="n">parser</span>
Offset 258, 15 lines modifiedOffset 259, 15 lines modified
  
258 ····<span·class="k">def</span>·<span·class="fm">__setitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">):</span>259 ····<span·class="k">def</span>·<span·class="fm">__setitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">):</span>
259 ········<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span>·<span·class="o">=</span>·<span·class="n">forbid_multi_line_headers</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">encoding</span><span·class="p">)</span>260 ········<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span>·<span·class="o">=</span>·<span·class="n">forbid_multi_line_headers</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">encoding</span><span·class="p">)</span>
260 ········<span·class="n">MIMEMultipart</span><span·class="o">.</span><span·class="fm">__setitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">)</span>261 ········<span·class="n">MIMEMultipart</span><span·class="o">.</span><span·class="fm">__setitem__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">val</span><span·class="p">)</span>
  
  
261 <div·class="viewcode-block"·id="EmailMessage">262 <div·class="viewcode-block"·id="EmailMessage">
262 <a·class="viewcode-back"·href="../../../../topics/email.html#django.core.mail.EmailMessage">[docs]</a>263 <a·class="viewcode-back"·href="../../../../topics/email.html#django.core.mail.EmailMessage">[documenti]</a>
263 <span·class="k">class</span>·<span·class="nc">EmailMessage</span><span·class="p">:</span>264 <span·class="k">class</span>·<span·class="nc">EmailMessage</span><span·class="p">:</span>
264 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·container·for·email·information.&quot;&quot;&quot;</span>265 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;A·container·for·email·information.&quot;&quot;&quot;</span>
  
265 ····<span·class="n">content_subtype</span>·<span·class="o">=</span>·<span·class="s2">&quot;plain&quot;</span>266 ····<span·class="n">content_subtype</span>·<span·class="o">=</span>·<span·class="s2">&quot;plain&quot;</span>
266 ····<span·class="n">mixed_subtype</span>·<span·class="o">=</span>·<span·class="s2">&quot;mixed&quot;</span>267 ····<span·class="n">mixed_subtype</span>·<span·class="o">=</span>·<span·class="s2">&quot;mixed&quot;</span>
267 ····<span·class="n">encoding</span>·<span·class="o">=</span>·<span·class="kc">None</span>··<span·class="c1">#·None·=&gt;·use·settings·default</span>268 ····<span·class="n">encoding</span>·<span·class="o">=</span>·<span·class="kc">None</span>··<span·class="c1">#·None·=&gt;·use·settings·default</span>
  
Offset 576, 35 lines modifiedOffset 577, 35 lines modified
576 ······577 ······
577 ········578 ········
578 ··········<div·class="yui-b"·id="sidebar">579 ··········<div·class="yui-b"·id="sidebar">
579 ············580 ············
580 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">581 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
581 ········<div·class="sphinxsidebarwrapper">582 ········<div·class="sphinxsidebarwrapper">
582 <search·id="searchbox"·style="display:·none"·role="search">583 <search·id="searchbox"·style="display:·none"·role="search">
583 ··<h3·id="searchlabel">Quick·search</h3>584 ··<h3·id="searchlabel">Ricerca·veloce</h3>
584 ····<div·class="searchformwrapper">585 ····<div·class="searchformwrapper">
585 ····<form·class="search"·action="../../../../search.html"·method="get">586 ····<form·class="search"·action="../../../../search.html"·method="get">
586 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>587 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
587 ······<input·type="submit"·value="Go"·/>588 ······<input·type="submit"·value="Vai"·/>
588 ····</form>589 ····</form>
589 ····</div>590 ····</div>
590 </search>591 </search>
591 <script>document.getElementById('searchbox').style.display·=·"block"</script>592 <script>document.getElementById('searchbox').style.display·=·"block"</script>
592 ········</div>593 ········</div>
593 ······</div>594 ······</div>
594 ··············<h3>Last·update:</h3>595 ··············<h3>Last·update:</h3>
595 ··············<p·class="topless">Sep·03,·2024</p>596 ··············<p·class="topless">set·03,·2024</p>
596 ··········</div>597 ··········</div>
597 ········598 ········
598 ······599 ······
599 ····</div>600 ····</div>
  
600 ····<div·id="ft">601 ····<div·id="ft">
601 ······<div·class="nav">602 ······<div·class="nav">
602 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>603 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
603 ····</div>604 ····</div>
604 ··</div>605 ··</div>
  
605 ······<div·class="clearer"></div>606 ······<div·class="clearer"></div>
606 ····</div>607 ····</div>
607 ··</body>608 ··</body>
608 </html>609 </html>
2.08 KB
html2text {}
Max HTML report size reached
16.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/mail.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.mail·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.mail·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-mail">69 ··········<div·class="yui-g"·id="_modules-django-core-mail">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.mail</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.mail</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Tools·for·sending·email.</span>73 <span·class="sd">Tools·for·sending·email.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
  
75 <span·class="c1">#·Imported·for·backwards·compatibility·and·for·the·sake</span>76 <span·class="c1">#·Imported·for·backwards·compatibility·and·for·the·sake</span>
76 <span·class="c1">#·of·a·cleaner·namespace.·These·symbols·used·to·be·in</span>77 <span·class="c1">#·of·a·cleaner·namespace.·These·symbols·used·to·be·in</span>
Offset 109, 30 lines modifiedOffset 110, 30 lines modified
109 ····<span·class="s2">&quot;send_mass_mail&quot;</span><span·class="p">,</span>110 ····<span·class="s2">&quot;send_mass_mail&quot;</span><span·class="p">,</span>
110 ····<span·class="s2">&quot;mail_admins&quot;</span><span·class="p">,</span>111 ····<span·class="s2">&quot;mail_admins&quot;</span><span·class="p">,</span>
111 ····<span·class="s2">&quot;mail_managers&quot;</span><span·class="p">,</span>112 ····<span·class="s2">&quot;mail_managers&quot;</span><span·class="p">,</span>
112 <span·class="p">]</span>113 <span·class="p">]</span>
  
  
113 <div·class="viewcode-block"·id="get_connection">114 <div·class="viewcode-block"·id="get_connection">
114 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.get_connection">[docs]</a>115 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.get_connection">[documenti]</a>
115 <span·class="k">def</span>·<span·class="nf">get_connection</span><span·class="p">(</span><span·class="n">backend</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwds</span><span·class="p">):</span>116 <span·class="k">def</span>·<span·class="nf">get_connection</span><span·class="p">(</span><span·class="n">backend</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwds</span><span·class="p">):</span>
116 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Load·an·email·backend·and·return·an·instance·of·it.</span>117 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Load·an·email·backend·and·return·an·instance·of·it.</span>
  
117 <span·class="sd">····If·backend·is·None·(default),·use·settings.EMAIL_BACKEND.</span>118 <span·class="sd">····If·backend·is·None·(default),·use·settings.EMAIL_BACKEND.</span>
  
118 <span·class="sd">····Both·fail_silently·and·other·keyword·arguments·are·used·in·the</span>119 <span·class="sd">····Both·fail_silently·and·other·keyword·arguments·are·used·in·the</span>
119 <span·class="sd">····constructor·of·the·backend.</span>120 <span·class="sd">····constructor·of·the·backend.</span>
120 <span·class="sd">····&quot;&quot;&quot;</span>121 <span·class="sd">····&quot;&quot;&quot;</span>
121 ····<span·class="n">klass</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">backend</span>·<span·class="ow">or</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">EMAIL_BACKEND</span><span·class="p">)</span>122 ····<span·class="n">klass</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">backend</span>·<span·class="ow">or</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">EMAIL_BACKEND</span><span·class="p">)</span>
122 ····<span·class="k">return</span>·<span·class="n">klass</span><span·class="p">(</span><span·class="n">fail_silently</span><span·class="o">=</span><span·class="n">fail_silently</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwds</span><span·class="p">)</span></div>123 ····<span·class="k">return</span>·<span·class="n">klass</span><span·class="p">(</span><span·class="n">fail_silently</span><span·class="o">=</span><span·class="n">fail_silently</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwds</span><span·class="p">)</span></div>
  
  
  
123 <div·class="viewcode-block"·id="send_mail">124 <div·class="viewcode-block"·id="send_mail">
124 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.send_mail">[docs]</a>125 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.send_mail">[documenti]</a>
125 <span·class="k">def</span>·<span·class="nf">send_mail</span><span·class="p">(</span>126 <span·class="k">def</span>·<span·class="nf">send_mail</span><span·class="p">(</span>
126 ····<span·class="n">subject</span><span·class="p">,</span>127 ····<span·class="n">subject</span><span·class="p">,</span>
127 ····<span·class="n">message</span><span·class="p">,</span>128 ····<span·class="n">message</span><span·class="p">,</span>
128 ····<span·class="n">from_email</span><span·class="p">,</span>129 ····<span·class="n">from_email</span><span·class="p">,</span>
129 ····<span·class="n">recipient_list</span><span·class="p">,</span>130 ····<span·class="n">recipient_list</span><span·class="p">,</span>
130 ····<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>131 ····<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
131 ····<span·class="n">auth_user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>132 ····<span·class="n">auth_user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 163, 15 lines modifiedOffset 164, 15 lines modified
163 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">attach_alternative</span><span·class="p">(</span><span·class="n">html_message</span><span·class="p">,</span>·<span·class="s2">&quot;text/html&quot;</span><span·class="p">)</span>164 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">attach_alternative</span><span·class="p">(</span><span·class="n">html_message</span><span·class="p">,</span>·<span·class="s2">&quot;text/html&quot;</span><span·class="p">)</span>
  
164 ····<span·class="k">return</span>·<span·class="n">mail</span><span·class="o">.</span><span·class="n">send</span><span·class="p">()</span></div>165 ····<span·class="k">return</span>·<span·class="n">mail</span><span·class="o">.</span><span·class="n">send</span><span·class="p">()</span></div>
  
  
  
165 <div·class="viewcode-block"·id="send_mass_mail">166 <div·class="viewcode-block"·id="send_mass_mail">
166 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.send_mass_mail">[docs]</a>167 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.send_mass_mail">[documenti]</a>
167 <span·class="k">def</span>·<span·class="nf">send_mass_mail</span><span·class="p">(</span>168 <span·class="k">def</span>·<span·class="nf">send_mass_mail</span><span·class="p">(</span>
168 ····<span·class="n">datatuple</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">auth_user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">auth_password</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="kc">None</span>169 ····<span·class="n">datatuple</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">auth_user</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">auth_password</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="kc">None</span>
169 <span·class="p">):</span>170 <span·class="p">):</span>
170 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>171 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
171 <span·class="sd">····Given·a·datatuple·of·(subject,·message,·from_email,·recipient_list),·send</span>172 <span·class="sd">····Given·a·datatuple·of·(subject,·message,·from_email,·recipient_list),·send</span>
172 <span·class="sd">····each·message·to·each·recipient·list.·Return·the·number·of·emails·sent.</span>173 <span·class="sd">····each·message·to·each·recipient·list.·Return·the·number·of·emails·sent.</span>
  
Offset 193, 15 lines modifiedOffset 194, 15 lines modified
193 ········<span·class="k">for</span>·<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="p">,</span>·<span·class="n">recipient</span>·<span·class="ow">in</span>·<span·class="n">datatuple</span>194 ········<span·class="k">for</span>·<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="p">,</span>·<span·class="n">recipient</span>·<span·class="ow">in</span>·<span·class="n">datatuple</span>
194 ····<span·class="p">]</span>195 ····<span·class="p">]</span>
195 ····<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">send_messages</span><span·class="p">(</span><span·class="n">messages</span><span·class="p">)</span></div>196 ····<span·class="k">return</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">send_messages</span><span·class="p">(</span><span·class="n">messages</span><span·class="p">)</span></div>
  
  
  
196 <div·class="viewcode-block"·id="mail_admins">197 <div·class="viewcode-block"·id="mail_admins">
197 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.mail_admins">[docs]</a>198 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.mail_admins">[documenti]</a>
198 <span·class="k">def</span>·<span·class="nf">mail_admins</span><span·class="p">(</span>199 <span·class="k">def</span>·<span·class="nf">mail_admins</span><span·class="p">(</span>
199 ····<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">html_message</span><span·class="o">=</span><span·class="kc">None</span>200 ····<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">html_message</span><span·class="o">=</span><span·class="kc">None</span>
200 <span·class="p">):</span>201 <span·class="p">):</span>
201 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Send·a·message·to·the·admins,·as·defined·by·the·ADMINS·setting.&quot;&quot;&quot;</span>202 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Send·a·message·to·the·admins,·as·defined·by·the·ADMINS·setting.&quot;&quot;&quot;</span>
202 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">ADMINS</span><span·class="p">:</span>203 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">ADMINS</span><span·class="p">:</span>
203 ········<span·class="k">return</span>204 ········<span·class="k">return</span>
204 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">all</span><span·class="p">(</span><span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">))</span>·<span·class="ow">and</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">a</span><span·class="p">)</span>·<span·class="o">==</span>·<span·class="mi">2</span>·<span·class="k">for</span>·<span·class="n">a</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">ADMINS</span><span·class="p">):</span>205 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">all</span><span·class="p">(</span><span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">a</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">))</span>·<span·class="ow">and</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">a</span><span·class="p">)</span>·<span·class="o">==</span>·<span·class="mi">2</span>·<span·class="k">for</span>·<span·class="n">a</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">ADMINS</span><span·class="p">):</span>
Offset 216, 15 lines modifiedOffset 217, 15 lines modified
216 ····<span·class="k">if</span>·<span·class="n">html_message</span><span·class="p">:</span>217 ····<span·class="k">if</span>·<span·class="n">html_message</span><span·class="p">:</span>
217 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">attach_alternative</span><span·class="p">(</span><span·class="n">html_message</span><span·class="p">,</span>·<span·class="s2">&quot;text/html&quot;</span><span·class="p">)</span>218 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">attach_alternative</span><span·class="p">(</span><span·class="n">html_message</span><span·class="p">,</span>·<span·class="s2">&quot;text/html&quot;</span><span·class="p">)</span>
218 ····<span·class="n">mail</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span><span·class="n">fail_silently</span><span·class="o">=</span><span·class="n">fail_silently</span><span·class="p">)</span></div>219 ····<span·class="n">mail</span><span·class="o">.</span><span·class="n">send</span><span·class="p">(</span><span·class="n">fail_silently</span><span·class="o">=</span><span·class="n">fail_silently</span><span·class="p">)</span></div>
  
  
  
219 <div·class="viewcode-block"·id="mail_managers">220 <div·class="viewcode-block"·id="mail_managers">
220 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.mail_managers">[docs]</a>221 <a·class="viewcode-back"·href="../../../topics/email.html#django.core.mail.mail_managers">[documenti]</a>
221 <span·class="k">def</span>·<span·class="nf">mail_managers</span><span·class="p">(</span>222 <span·class="k">def</span>·<span·class="nf">mail_managers</span><span·class="p">(</span>
Max diff block lines reached; 2441/13535 bytes (18.03%) of diff not shown.
3.48 KB
html2text {}
Max HTML report size reached
22.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/management/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.management.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.management.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-management-base">69 ··········<div·class="yui-g"·id="_modules-django-core-management-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.management.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.management.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Base·classes·for·writing·management·commands·(named·commands·which·can</span>73 <span·class="sd">Base·classes·for·writing·management·commands·(named·commands·which·can</span>
73 <span·class="sd">be·executed·through·``django-admin``·or·``manage.py``).</span>74 <span·class="sd">be·executed·through·``django-admin``·or·``manage.py``).</span>
74 <span·class="sd">&quot;&quot;&quot;</span>75 <span·class="sd">&quot;&quot;&quot;</span>
75 <span·class="kn">import</span>·<span·class="nn">argparse</span>76 <span·class="kn">import</span>·<span·class="nn">argparse</span>
76 <span·class="kn">import</span>·<span·class="nn">os</span>77 <span·class="kn">import</span>·<span·class="nn">os</span>
77 <span·class="kn">import</span>·<span·class="nn">sys</span>78 <span·class="kn">import</span>·<span·class="nn">sys</span>
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 <span·class="kn">from</span>·<span·class="nn">django.core.management.color</span>·<span·class="kn">import</span>·<span·class="n">color_style</span><span·class="p">,</span>·<span·class="n">no_style</span>89 <span·class="kn">from</span>·<span·class="nn">django.core.management.color</span>·<span·class="kn">import</span>·<span·class="n">color_style</span><span·class="p">,</span>·<span·class="n">no_style</span>
89 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>·<span·class="n">connections</span>90 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>·<span·class="n">connections</span>
  
90 <span·class="n">ALL_CHECKS</span>·<span·class="o">=</span>·<span·class="s2">&quot;__all__&quot;</span>91 <span·class="n">ALL_CHECKS</span>·<span·class="o">=</span>·<span·class="s2">&quot;__all__&quot;</span>
  
  
91 <div·class="viewcode-block"·id="CommandError">92 <div·class="viewcode-block"·id="CommandError">
92 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.CommandError">[docs]</a>93 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.CommandError">[documenti]</a>
93 <span·class="k">class</span>·<span·class="nc">CommandError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>94 <span·class="k">class</span>·<span·class="nc">CommandError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>95 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
95 <span·class="sd">····Exception·class·indicating·a·problem·while·executing·a·management</span>96 <span·class="sd">····Exception·class·indicating·a·problem·while·executing·a·management</span>
96 <span·class="sd">····command.</span>97 <span·class="sd">····command.</span>
  
97 <span·class="sd">····If·this·exception·is·raised·during·the·execution·of·a·management</span>98 <span·class="sd">····If·this·exception·is·raised·during·the·execution·of·a·management</span>
98 <span·class="sd">····command,·it·will·be·caught·and·turned·into·a·nicely-printed·error</span>99 <span·class="sd">····command,·it·will·be·caught·and·turned·into·a·nicely-printed·error</span>
Offset 253, 15 lines modifiedOffset 254, 15 lines modified
253 ········<span·class="k">if</span>·<span·class="n">ending</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">msg</span><span·class="o">.</span><span·class="n">endswith</span><span·class="p">(</span><span·class="n">ending</span><span·class="p">):</span>254 ········<span·class="k">if</span>·<span·class="n">ending</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">msg</span><span·class="o">.</span><span·class="n">endswith</span><span·class="p">(</span><span·class="n">ending</span><span·class="p">):</span>
254 ············<span·class="n">msg</span>·<span·class="o">+=</span>·<span·class="n">ending</span>255 ············<span·class="n">msg</span>·<span·class="o">+=</span>·<span·class="n">ending</span>
255 ········<span·class="n">style_func</span>·<span·class="o">=</span>·<span·class="n">style_func</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">style_func</span>256 ········<span·class="n">style_func</span>·<span·class="o">=</span>·<span·class="n">style_func</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">style_func</span>
256 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_out</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="n">style_func</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">))</span>257 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_out</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="n">style_func</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">))</span>
  
  
257 <div·class="viewcode-block"·id="BaseCommand">258 <div·class="viewcode-block"·id="BaseCommand">
258 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand">[docs]</a>259 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand">[documenti]</a>
259 <span·class="k">class</span>·<span·class="nc">BaseCommand</span><span·class="p">:</span>260 <span·class="k">class</span>·<span·class="nc">BaseCommand</span><span·class="p">:</span>
260 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>261 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
261 <span·class="sd">····The·base·class·from·which·all·management·commands·ultimately</span>262 <span·class="sd">····The·base·class·from·which·all·management·commands·ultimately</span>
262 <span·class="sd">····derive.</span>263 <span·class="sd">····derive.</span>
  
263 <span·class="sd">····Use·this·class·if·you·want·access·to·all·of·the·mechanisms·which</span>264 <span·class="sd">····Use·this·class·if·you·want·access·to·all·of·the·mechanisms·which</span>
264 <span·class="sd">····parse·the·command-line·arguments·and·work·out·what·code·to·call·in</span>265 <span·class="sd">····parse·the·command-line·arguments·and·work·out·what·code·to·call·in</span>
Offset 358, 26 lines modifiedOffset 359, 26 lines modified
358 ········<span·class="k">if</span>·<span·class="p">(</span>359 ········<span·class="k">if</span>·<span·class="p">(</span>
359 ············<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">requires_system_checks</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">))</span>360 ············<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">requires_system_checks</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">))</span>
360 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">requires_system_checks</span>·<span·class="o">!=</span>·<span·class="n">ALL_CHECKS</span>361 ············<span·class="ow">and</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">requires_system_checks</span>·<span·class="o">!=</span>·<span·class="n">ALL_CHECKS</span>
361 ········<span·class="p">):</span>362 ········<span·class="p">):</span>
362 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;requires_system_checks·must·be·a·list·or·tuple.&quot;</span><span·class="p">)</span>363 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;requires_system_checks·must·be·a·list·or·tuple.&quot;</span><span·class="p">)</span>
  
363 <div·class="viewcode-block"·id="BaseCommand.get_version">364 <div·class="viewcode-block"·id="BaseCommand.get_version">
364 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.get_version">[docs]</a>365 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.get_version">[documenti]</a>
365 ····<span·class="k">def</span>·<span·class="nf">get_version</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>366 ····<span·class="k">def</span>·<span·class="nf">get_version</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
366 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>367 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
367 <span·class="sd">········Return·the·Django·version,·which·should·be·correct·for·all·built-in</span>368 <span·class="sd">········Return·the·Django·version,·which·should·be·correct·for·all·built-in</span>
368 <span·class="sd">········Django·commands.·User-supplied·commands·can·override·this·method·to</span>369 <span·class="sd">········Django·commands.·User-supplied·commands·can·override·this·method·to</span>
369 <span·class="sd">········return·their·own·version.</span>370 <span·class="sd">········return·their·own·version.</span>
370 <span·class="sd">········&quot;&quot;&quot;</span>371 <span·class="sd">········&quot;&quot;&quot;</span>
371 ········<span·class="k">return</span>·<span·class="n">django</span><span·class="o">.</span><span·class="n">get_version</span><span·class="p">()</span></div>372 ········<span·class="k">return</span>·<span·class="n">django</span><span·class="o">.</span><span·class="n">get_version</span><span·class="p">()</span></div>
  
  
372 <div·class="viewcode-block"·id="BaseCommand.create_parser">373 <div·class="viewcode-block"·id="BaseCommand.create_parser">
373 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.create_parser">[docs]</a>374 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.create_parser">[documenti]</a>
374 ····<span·class="k">def</span>·<span·class="nf">create_parser</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">prog_name</span><span·class="p">,</span>·<span·class="n">subcommand</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>375 ····<span·class="k">def</span>·<span·class="nf">create_parser</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">prog_name</span><span·class="p">,</span>·<span·class="n">subcommand</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
375 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>376 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
376 <span·class="sd">········Create·and·return·the·``ArgumentParser``·which·will·be·used·to</span>377 <span·class="sd">········Create·and·return·the·``ArgumentParser``·which·will·be·used·to</span>
377 <span·class="sd">········parse·the·arguments·to·this·command.</span>378 <span·class="sd">········parse·the·arguments·to·this·command.</span>
378 <span·class="sd">········&quot;&quot;&quot;</span>379 <span·class="sd">········&quot;&quot;&quot;</span>
379 ········<span·class="n">kwargs</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;formatter_class&quot;</span><span·class="p">,</span>·<span·class="n">DjangoHelpFormatter</span><span·class="p">)</span>380 ········<span·class="n">kwargs</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;formatter_class&quot;</span><span·class="p">,</span>·<span·class="n">DjangoHelpFormatter</span><span·class="p">)</span>
380 ········<span·class="n">parser</span>·<span·class="o">=</span>·<span·class="n">CommandParser</span><span·class="p">(</span>381 ········<span·class="n">parser</span>·<span·class="o">=</span>·<span·class="n">CommandParser</span><span·class="p">(</span>
Offset 448, 15 lines modifiedOffset 449, 15 lines modified
448 ················<span·class="n">help</span><span·class="o">=</span><span·class="s2">&quot;Skip·system·checks.&quot;</span><span·class="p">,</span>449 ················<span·class="n">help</span><span·class="o">=</span><span·class="s2">&quot;Skip·system·checks.&quot;</span><span·class="p">,</span>
449 ············<span·class="p">)</span>450 ············<span·class="p">)</span>
450 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_arguments</span><span·class="p">(</span><span·class="n">parser</span><span·class="p">)</span>451 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">add_arguments</span><span·class="p">(</span><span·class="n">parser</span><span·class="p">)</span>
451 ········<span·class="k">return</span>·<span·class="n">parser</span></div>452 ········<span·class="k">return</span>·<span·class="n">parser</span></div>
  
  
452 <div·class="viewcode-block"·id="BaseCommand.add_arguments">453 <div·class="viewcode-block"·id="BaseCommand.add_arguments">
453 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.add_arguments">[docs]</a>454 <a·class="viewcode-back"·href="../../../../howto/custom-management-commands.html#django.core.management.BaseCommand.add_arguments">[documenti]</a>
454 ····<span·class="k">def</span>·<span·class="nf">add_arguments</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">parser</span><span·class="p">):</span>455 ····<span·class="k">def</span>·<span·class="nf">add_arguments</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">parser</span><span·class="p">):</span>
455 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>456 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
456 <span·class="sd">········Entry·point·for·subclassed·commands·to·add·custom·arguments.</span>457 <span·class="sd">········Entry·point·for·subclassed·commands·to·add·custom·arguments.</span>
457 <span·class="sd">········&quot;&quot;&quot;</span>458 <span·class="sd">········&quot;&quot;&quot;</span>
458 ········<span·class="k">pass</span></div>459 ········<span·class="k">pass</span></div>
Max diff block lines reached; 6719/17453 bytes (38.50%) of diff not shown.
5.21 KB
html2text {}
Max HTML report size reached
28.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/paginator.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.paginator·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.paginator·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-paginator">69 ··········<div·class="yui-g"·id="_modules-django-core-paginator">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.paginator</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.paginator</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">collections.abc</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">collections.abc</span>
72 <span·class="kn">import</span>·<span·class="nn">inspect</span>73 <span·class="kn">import</span>·<span·class="nn">inspect</span>
73 <span·class="kn">import</span>·<span·class="nn">warnings</span>74 <span·class="kn">import</span>·<span·class="nn">warnings</span>
74 <span·class="kn">from</span>·<span·class="nn">math</span>·<span·class="kn">import</span>·<span·class="n">ceil</span>75 <span·class="kn">from</span>·<span·class="nn">math</span>·<span·class="kn">import</span>·<span·class="n">ceil</span>
  
75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.inspect</span>·<span·class="kn">import</span>·<span·class="n">method_has_no_args</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.inspect</span>·<span·class="kn">import</span>·<span·class="n">method_has_no_args</span>
Offset 82, 36 lines modifiedOffset 83, 36 lines modified
  
  
82 <span·class="k">class</span>·<span·class="nc">UnorderedObjectListWarning</span><span·class="p">(</span><span·class="ne">RuntimeWarning</span><span·class="p">):</span>83 <span·class="k">class</span>·<span·class="nc">UnorderedObjectListWarning</span><span·class="p">(</span><span·class="ne">RuntimeWarning</span><span·class="p">):</span>
83 ····<span·class="k">pass</span>84 ····<span·class="k">pass</span>
  
  
84 <div·class="viewcode-block"·id="InvalidPage">85 <div·class="viewcode-block"·id="InvalidPage">
85 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.InvalidPage">[docs]</a>86 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.InvalidPage">[documenti]</a>
86 <span·class="k">class</span>·<span·class="nc">InvalidPage</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>87 <span·class="k">class</span>·<span·class="nc">InvalidPage</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
87 ····<span·class="k">pass</span></div>88 ····<span·class="k">pass</span></div>
  
  
  
88 <div·class="viewcode-block"·id="PageNotAnInteger">89 <div·class="viewcode-block"·id="PageNotAnInteger">
89 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.PageNotAnInteger">[docs]</a>90 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.PageNotAnInteger">[documenti]</a>
90 <span·class="k">class</span>·<span·class="nc">PageNotAnInteger</span><span·class="p">(</span><span·class="n">InvalidPage</span><span·class="p">):</span>91 <span·class="k">class</span>·<span·class="nc">PageNotAnInteger</span><span·class="p">(</span><span·class="n">InvalidPage</span><span·class="p">):</span>
91 ····<span·class="k">pass</span></div>92 ····<span·class="k">pass</span></div>
  
  
  
92 <div·class="viewcode-block"·id="EmptyPage">93 <div·class="viewcode-block"·id="EmptyPage">
93 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.EmptyPage">[docs]</a>94 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.EmptyPage">[documenti]</a>
94 <span·class="k">class</span>·<span·class="nc">EmptyPage</span><span·class="p">(</span><span·class="n">InvalidPage</span><span·class="p">):</span>95 <span·class="k">class</span>·<span·class="nc">EmptyPage</span><span·class="p">(</span><span·class="n">InvalidPage</span><span·class="p">):</span>
95 ····<span·class="k">pass</span></div>96 ····<span·class="k">pass</span></div>
  
  
  
96 <div·class="viewcode-block"·id="Paginator">97 <div·class="viewcode-block"·id="Paginator">
97 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator">[docs]</a>98 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator">[documenti]</a>
98 <span·class="k">class</span>·<span·class="nc">Paginator</span><span·class="p">:</span>99 <span·class="k">class</span>·<span·class="nc">Paginator</span><span·class="p">:</span>
99 ····<span·class="c1">#·Translators:·String·used·to·replace·omitted·page·numbers·in·elided·page</span>100 ····<span·class="c1">#·Translators:·String·used·to·replace·omitted·page·numbers·in·elided·page</span>
100 ····<span·class="c1">#·range·generated·by·paginators,·e.g.·[1,·2,·&#39;…&#39;,·5,·6,·7,·&#39;…&#39;,·9,·10].</span>101 ····<span·class="c1">#·range·generated·by·paginators,·e.g.·[1,·2,·&#39;…&#39;,·5,·6,·7,·&#39;…&#39;,·9,·10].</span>
101 ····<span·class="n">ELLIPSIS</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;…&quot;</span><span·class="p">)</span>102 ····<span·class="n">ELLIPSIS</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;…&quot;</span><span·class="p">)</span>
  
102 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">object_list</span><span·class="p">,</span>·<span·class="n">per_page</span><span·class="p">,</span>·<span·class="n">orphans</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">allow_empty_first_page</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>103 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">object_list</span><span·class="p">,</span>·<span·class="n">per_page</span><span·class="p">,</span>·<span·class="n">orphans</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">allow_empty_first_page</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
103 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">object_list</span>·<span·class="o">=</span>·<span·class="n">object_list</span>104 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">object_list</span>·<span·class="o">=</span>·<span·class="n">object_list</span>
Offset 135, 15 lines modifiedOffset 136, 15 lines modified
135 ········<span·class="k">if</span>·<span·class="n">number</span>·<span·class="o">&lt;</span>·<span·class="mi">1</span><span·class="p">:</span>136 ········<span·class="k">if</span>·<span·class="n">number</span>·<span·class="o">&lt;</span>·<span·class="mi">1</span><span·class="p">:</span>
136 ············<span·class="k">raise</span>·<span·class="n">EmptyPage</span><span·class="p">(</span><span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;That·page·number·is·less·than·1&quot;</span><span·class="p">))</span>137 ············<span·class="k">raise</span>·<span·class="n">EmptyPage</span><span·class="p">(</span><span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;That·page·number·is·less·than·1&quot;</span><span·class="p">))</span>
137 ········<span·class="k">if</span>·<span·class="n">number</span>·<span·class="o">&gt;</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_pages</span><span·class="p">:</span>138 ········<span·class="k">if</span>·<span·class="n">number</span>·<span·class="o">&gt;</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_pages</span><span·class="p">:</span>
138 ············<span·class="k">raise</span>·<span·class="n">EmptyPage</span><span·class="p">(</span><span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;That·page·contains·no·results&quot;</span><span·class="p">))</span>139 ············<span·class="k">raise</span>·<span·class="n">EmptyPage</span><span·class="p">(</span><span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;That·page·contains·no·results&quot;</span><span·class="p">))</span>
139 ········<span·class="k">return</span>·<span·class="n">number</span>140 ········<span·class="k">return</span>·<span·class="n">number</span>
  
140 <div·class="viewcode-block"·id="Paginator.get_page">141 <div·class="viewcode-block"·id="Paginator.get_page">
141 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator.get_page">[docs]</a>142 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator.get_page">[documenti]</a>
142 ····<span·class="k">def</span>·<span·class="nf">get_page</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>143 ····<span·class="k">def</span>·<span·class="nf">get_page</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>
143 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>144 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
144 <span·class="sd">········Return·a·valid·page,·even·if·the·page·argument·isn&#39;t·a·number·or·isn&#39;t</span>145 <span·class="sd">········Return·a·valid·page,·even·if·the·page·argument·isn&#39;t·a·number·or·isn&#39;t</span>
145 <span·class="sd">········in·range.</span>146 <span·class="sd">········in·range.</span>
146 <span·class="sd">········&quot;&quot;&quot;</span>147 <span·class="sd">········&quot;&quot;&quot;</span>
147 ········<span·class="k">try</span><span·class="p">:</span>148 ········<span·class="k">try</span><span·class="p">:</span>
148 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">validate_number</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span>149 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">validate_number</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span>
Offset 151, 15 lines modifiedOffset 152, 15 lines modified
151 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="mi">1</span>152 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="mi">1</span>
152 ········<span·class="k">except</span>·<span·class="n">EmptyPage</span><span·class="p">:</span>153 ········<span·class="k">except</span>·<span·class="n">EmptyPage</span><span·class="p">:</span>
153 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_pages</span>154 ············<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">num_pages</span>
154 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">page</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span></div>155 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">page</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span></div>
  
  
155 <div·class="viewcode-block"·id="Paginator.page">156 <div·class="viewcode-block"·id="Paginator.page">
156 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator.page">[docs]</a>157 <a·class="viewcode-back"·href="../../../ref/paginator.html#django.core.paginator.Paginator.page">[documenti]</a>
157 ····<span·class="k">def</span>·<span·class="nf">page</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>158 ····<span·class="k">def</span>·<span·class="nf">page</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>
158 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·Page·object·for·the·given·1-based·page·number.&quot;&quot;&quot;</span>159 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·Page·object·for·the·given·1-based·page·number.&quot;&quot;&quot;</span>
159 ········<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">validate_number</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span>160 ········<span·class="n">number</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">validate_number</span><span·class="p">(</span><span·class="n">number</span><span·class="p">)</span>
160 ········<span·class="n">bottom</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">number</span>·<span·class="o">-</span>·<span·class="mi">1</span><span·class="p">)</span>·<span·class="o">*</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">per_page</span>161 ········<span·class="n">bottom</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">number</span>·<span·class="o">-</span>·<span·class="mi">1</span><span·class="p">)</span>·<span·class="o">*</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">per_page</span>
161 ········<span·class="n">top</span>·<span·class="o">=</span>·<span·class="n">bottom</span>·<span·class="o">+</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">per_page</span>162 ········<span·class="n">top</span>·<span·class="o">=</span>·<span·class="n">bottom</span>·<span·class="o">+</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">per_page</span>
162 ········<span·class="k">if</span>·<span·class="n">top</span>·<span·class="o">+</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">orphans</span>·<span·class="o">&gt;=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">count</span><span·class="p">:</span>163 ········<span·class="k">if</span>·<span·class="n">top</span>·<span·class="o">+</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">orphans</span>·<span·class="o">&gt;=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">count</span><span·class="p">:</span>
163 ············<span·class="n">top</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">count</span>164 ············<span·class="n">top</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">count</span>
Offset 216, 15 lines modifiedOffset 217, 15 lines modified
216 ················<span·class="s2">&quot;Pagination·may·yield·inconsistent·results·with·an·unordered·&quot;</span>217 ················<span·class="s2">&quot;Pagination·may·yield·inconsistent·results·with·an·unordered·&quot;</span>
217 ················<span·class="s2">&quot;object_list:·</span><span·class="si">{}</span><span·class="s2">.&quot;</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">obj_list_repr</span><span·class="p">),</span>218 ················<span·class="s2">&quot;object_list:·</span><span·class="si">{}</span><span·class="s2">.&quot;</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">obj_list_repr</span><span·class="p">),</span>
218 ················<span·class="n">UnorderedObjectListWarning</span><span·class="p">,</span>219 ················<span·class="n">UnorderedObjectListWarning</span><span·class="p">,</span>
Max diff block lines reached; 11955/23062 bytes (51.84%) of diff not shown.
5.9 KB
html2text {}
Max HTML report size reached
16.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/signing.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.core.signing·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.core.signing·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-core-signing">69 ··········<div·class="yui-g"·id="_modules-django-core-signing">
69 ············70 ············
70 ··<h1>Source·code·for·django.core.signing</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.core.signing</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Functions·for·creating·and·restoring·url-safe·signed·JSON·objects.</span>73 <span·class="sd">Functions·for·creating·and·restoring·url-safe·signed·JSON·objects.</span>
  
73 <span·class="sd">The·format·used·looks·like·this:</span>74 <span·class="sd">The·format·used·looks·like·this:</span>
  
74 <span·class="sd">&gt;&gt;&gt;·signing.dumps(&quot;hello&quot;)</span>75 <span·class="sd">&gt;&gt;&gt;·signing.dumps(&quot;hello&quot;)</span>
75 <span·class="sd">&#39;ImhlbGxvIg:1QaUZC:YIye-ze3TTx7gtSv422nZA4sgmk&#39;</span>76 <span·class="sd">&#39;ImhlbGxvIg:1QaUZC:YIye-ze3TTx7gtSv422nZA4sgmk&#39;</span>
Offset 200, 15 lines modifiedOffset 201, 15 lines modified
200 ········<span·class="k">return</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">dumps</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">,</span>·<span·class="n">separators</span><span·class="o">=</span><span·class="p">(</span><span·class="s2">&quot;,&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;:&quot;</span><span·class="p">))</span><span·class="o">.</span><span·class="n">encode</span><span·class="p">(</span><span·class="s2">&quot;latin-1&quot;</span><span·class="p">)</span>201 ········<span·class="k">return</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">dumps</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">,</span>·<span·class="n">separators</span><span·class="o">=</span><span·class="p">(</span><span·class="s2">&quot;,&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;:&quot;</span><span·class="p">))</span><span·class="o">.</span><span·class="n">encode</span><span·class="p">(</span><span·class="s2">&quot;latin-1&quot;</span><span·class="p">)</span>
  
201 ····<span·class="k">def</span>·<span·class="nf">loads</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>202 ····<span·class="k">def</span>·<span·class="nf">loads</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>
202 ········<span·class="k">return</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span><span·class="n">data</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="s2">&quot;latin-1&quot;</span><span·class="p">))</span>203 ········<span·class="k">return</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span><span·class="n">data</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="s2">&quot;latin-1&quot;</span><span·class="p">))</span>
  
  
203 <div·class="viewcode-block"·id="dumps">204 <div·class="viewcode-block"·id="dumps">
204 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.dumps">[docs]</a>205 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.dumps">[documenti]</a>
205 <span·class="k">def</span>·<span·class="nf">dumps</span><span·class="p">(</span>206 <span·class="k">def</span>·<span·class="nf">dumps</span><span·class="p">(</span>
206 ····<span·class="n">obj</span><span·class="p">,</span>·<span·class="n">key</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="s2">&quot;django.core.signing&quot;</span><span·class="p">,</span>·<span·class="n">serializer</span><span·class="o">=</span><span·class="n">JSONSerializer</span><span·class="p">,</span>·<span·class="n">compress</span><span·class="o">=</span><span·class="kc">False</span>207 ····<span·class="n">obj</span><span·class="p">,</span>·<span·class="n">key</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="s2">&quot;django.core.signing&quot;</span><span·class="p">,</span>·<span·class="n">serializer</span><span·class="o">=</span><span·class="n">JSONSerializer</span><span·class="p">,</span>·<span·class="n">compress</span><span·class="o">=</span><span·class="kc">False</span>
207 <span·class="p">):</span>208 <span·class="p">):</span>
208 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>209 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
209 <span·class="sd">····Return·URL-safe,·hmac·signed·base64·compressed·JSON·string.·If·key·is</span>210 <span·class="sd">····Return·URL-safe,·hmac·signed·base64·compressed·JSON·string.·If·key·is</span>
210 <span·class="sd">····None,·use·settings.SECRET_KEY·instead.·The·hmac·algorithm·is·the·default</span>211 <span·class="sd">····None,·use·settings.SECRET_KEY·instead.·The·hmac·algorithm·is·the·default</span>
211 <span·class="sd">····Signer·algorithm.</span>212 <span·class="sd">····Signer·algorithm.</span>
Offset 227, 15 lines modifiedOffset 228, 15 lines modified
227 ····<span·class="k">return</span>·<span·class="n">TimestampSigner</span><span·class="p">(</span><span·class="n">key</span><span·class="o">=</span><span·class="n">key</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="n">salt</span><span·class="p">)</span><span·class="o">.</span><span·class="n">sign_object</span><span·class="p">(</span>228 ····<span·class="k">return</span>·<span·class="n">TimestampSigner</span><span·class="p">(</span><span·class="n">key</span><span·class="o">=</span><span·class="n">key</span><span·class="p">,</span>·<span·class="n">salt</span><span·class="o">=</span><span·class="n">salt</span><span·class="p">)</span><span·class="o">.</span><span·class="n">sign_object</span><span·class="p">(</span>
228 ········<span·class="n">obj</span><span·class="p">,</span>·<span·class="n">serializer</span><span·class="o">=</span><span·class="n">serializer</span><span·class="p">,</span>·<span·class="n">compress</span><span·class="o">=</span><span·class="n">compress</span>229 ········<span·class="n">obj</span><span·class="p">,</span>·<span·class="n">serializer</span><span·class="o">=</span><span·class="n">serializer</span><span·class="p">,</span>·<span·class="n">compress</span><span·class="o">=</span><span·class="n">compress</span>
229 ····<span·class="p">)</span></div>230 ····<span·class="p">)</span></div>
  
  
  
230 <div·class="viewcode-block"·id="loads">231 <div·class="viewcode-block"·id="loads">
231 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.loads">[docs]</a>232 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.loads">[documenti]</a>
232 <span·class="k">def</span>·<span·class="nf">loads</span><span·class="p">(</span>233 <span·class="k">def</span>·<span·class="nf">loads</span><span·class="p">(</span>
233 ····<span·class="n">s</span><span·class="p">,</span>234 ····<span·class="n">s</span><span·class="p">,</span>
234 ····<span·class="n">key</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>235 ····<span·class="n">key</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
235 ····<span·class="n">salt</span><span·class="o">=</span><span·class="s2">&quot;django.core.signing&quot;</span><span·class="p">,</span>236 ····<span·class="n">salt</span><span·class="o">=</span><span·class="s2">&quot;django.core.signing&quot;</span><span·class="p">,</span>
236 ····<span·class="n">serializer</span><span·class="o">=</span><span·class="n">JSONSerializer</span><span·class="p">,</span>237 ····<span·class="n">serializer</span><span·class="o">=</span><span·class="n">JSONSerializer</span><span·class="p">,</span>
237 ····<span·class="n">max_age</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>238 ····<span·class="n">max_age</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
238 ····<span·class="n">fallback_keys</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>239 ····<span·class="n">fallback_keys</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 252, 15 lines modifiedOffset 253, 15 lines modified
252 ········<span·class="n">serializer</span><span·class="o">=</span><span·class="n">serializer</span><span·class="p">,</span>253 ········<span·class="n">serializer</span><span·class="o">=</span><span·class="n">serializer</span><span·class="p">,</span>
253 ········<span·class="n">max_age</span><span·class="o">=</span><span·class="n">max_age</span><span·class="p">,</span>254 ········<span·class="n">max_age</span><span·class="o">=</span><span·class="n">max_age</span><span·class="p">,</span>
254 ····<span·class="p">)</span></div>255 ····<span·class="p">)</span></div>
  
  
  
255 <div·class="viewcode-block"·id="Signer">256 <div·class="viewcode-block"·id="Signer">
256 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.Signer">[docs]</a>257 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.Signer">[documenti]</a>
257 <span·class="k">class</span>·<span·class="nc">Signer</span><span·class="p">:</span>258 <span·class="k">class</span>·<span·class="nc">Signer</span><span·class="p">:</span>
258 ····<span·class="c1">#·RemovedInDjango51Warning:·When·the·deprecation·ends,·replace·with:</span>259 ····<span·class="c1">#·RemovedInDjango51Warning:·When·the·deprecation·ends,·replace·with:</span>
259 ····<span·class="c1">#·def·__init__(</span>260 ····<span·class="c1">#·def·__init__(</span>
260 ····<span·class="c1">#···self,·*,·key=None,·sep=&quot;:&quot;,·salt=None,·algorithm=None,·fallback_keys=None</span>261 ····<span·class="c1">#···self,·*,·key=None,·sep=&quot;:&quot;,·salt=None,·algorithm=None,·fallback_keys=None</span>
261 ····<span·class="c1">#·):</span>262 ····<span·class="c1">#·):</span>
262 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>263 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
263 ········<span·class="bp">self</span><span·class="p">,</span>264 ········<span·class="bp">self</span><span·class="p">,</span>
Offset 355, 28 lines modifiedOffset 356, 28 lines modified
355 ········<span·class="k">if</span>·<span·class="n">decompress</span><span·class="p">:</span>356 ········<span·class="k">if</span>·<span·class="n">decompress</span><span·class="p">:</span>
356 ············<span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">zlib</span><span·class="o">.</span><span·class="n">decompress</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span>357 ············<span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">zlib</span><span·class="o">.</span><span·class="n">decompress</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span>
357 ········<span·class="k">return</span>·<span·class="n">serializer</span><span·class="p">()</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span></div>358 ········<span·class="k">return</span>·<span·class="n">serializer</span><span·class="p">()</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span><span·class="n">data</span><span·class="p">)</span></div>
  
  
  
358 <div·class="viewcode-block"·id="TimestampSigner">359 <div·class="viewcode-block"·id="TimestampSigner">
359 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner">[docs]</a>360 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner">[documenti]</a>
360 <span·class="k">class</span>·<span·class="nc">TimestampSigner</span><span·class="p">(</span><span·class="n">Signer</span><span·class="p">):</span>361 <span·class="k">class</span>·<span·class="nc">TimestampSigner</span><span·class="p">(</span><span·class="n">Signer</span><span·class="p">):</span>
361 ····<span·class="k">def</span>·<span·class="nf">timestamp</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>362 ····<span·class="k">def</span>·<span·class="nf">timestamp</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
362 ········<span·class="k">return</span>·<span·class="n">b62_encode</span><span·class="p">(</span><span·class="nb">int</span><span·class="p">(</span><span·class="n">time</span><span·class="o">.</span><span·class="n">time</span><span·class="p">()))</span>363 ········<span·class="k">return</span>·<span·class="n">b62_encode</span><span·class="p">(</span><span·class="nb">int</span><span·class="p">(</span><span·class="n">time</span><span·class="o">.</span><span·class="n">time</span><span·class="p">()))</span>
  
363 <div·class="viewcode-block"·id="TimestampSigner.sign">364 <div·class="viewcode-block"·id="TimestampSigner.sign">
364 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner.sign">[docs]</a>365 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner.sign">[documenti]</a>
365 ····<span·class="k">def</span>·<span·class="nf">sign</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>366 ····<span·class="k">def</span>·<span·class="nf">sign</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>
366 ········<span·class="n">value</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">sep</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">timestamp</span><span·class="p">())</span>367 ········<span·class="n">value</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s%s%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">sep</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">timestamp</span><span·class="p">())</span>
367 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">sign</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>368 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">sign</span><span·class="p">(</span><span·class="n">value</span><span·class="p">)</span></div>
  
  
368 <div·class="viewcode-block"·id="TimestampSigner.unsign">369 <div·class="viewcode-block"·id="TimestampSigner.unsign">
369 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner.unsign">[docs]</a>370 <a·class="viewcode-back"·href="../../../topics/signing.html#django.core.signing.TimestampSigner.unsign">[documenti]</a>
370 ····<span·class="k">def</span>·<span·class="nf">unsign</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">max_age</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>371 ····<span·class="k">def</span>·<span·class="nf">unsign</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">max_age</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
371 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>372 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
372 <span·class="sd">········Retrieve·original·value·and·check·it·wasn&#39;t·signed·more</span>373 <span·class="sd">········Retrieve·original·value·and·check·it·wasn&#39;t·signed·more</span>
Max diff block lines reached; 2008/13311 bytes (15.09%) of diff not shown.
3.33 KB
html2text {}
Max HTML report size reached
34.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/core/validators.html
Max HTML report size reached
48.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/backends/base/schema.html
Max HTML report size reached
15.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/migrations/operations/fields.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.migrations.operations.fields·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.migrations.operations.fields·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-migrations-operations-fields">69 ··········<div·class="yui-g"·id="_modules-django-db-migrations-operations-fields">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.migrations.operations.fields</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.migrations.operations.fields</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.migrations.utils</span>·<span·class="kn">import</span>·<span·class="n">field_references</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.migrations.utils</span>·<span·class="kn">import</span>·<span·class="n">field_references</span>
72 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">NOT_PROVIDED</span>73 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">NOT_PROVIDED</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
  
74 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Operation</span>75 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Operation</span>
  
  
Offset 142, 15 lines modifiedOffset 143, 15 lines modified
142 ····<span·class="k">def</span>·<span·class="nf">reduce</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">):</span>143 ····<span·class="k">def</span>·<span·class="nf">reduce</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">):</span>
143 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="n">operation</span><span·class="o">.</span><span·class="n">references_field</span><span·class="p">(</span>144 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="ow">not</span>·<span·class="n">operation</span><span·class="o">.</span><span·class="n">references_field</span><span·class="p">(</span>
144 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">app_label</span>145 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">app_label</span>
145 ········<span·class="p">)</span>146 ········<span·class="p">)</span>
  
  
146 <div·class="viewcode-block"·id="AddField">147 <div·class="viewcode-block"·id="AddField">
147 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.AddField">[docs]</a>148 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.AddField">[documenti]</a>
148 <span·class="k">class</span>·<span·class="nc">AddField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>149 <span·class="k">class</span>·<span·class="nc">AddField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>
149 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Add·a·field·to·a·model.&quot;&quot;&quot;</span>150 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Add·a·field·to·a·model.&quot;&quot;&quot;</span>
  
150 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">preserve_default</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>151 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">preserve_default</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
151 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">preserve_default</span>·<span·class="o">=</span>·<span·class="n">preserve_default</span>152 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">preserve_default</span>·<span·class="o">=</span>·<span·class="n">preserve_default</span>
152 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">)</span>153 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">)</span>
  
Offset 224, 15 lines modifiedOffset 225, 15 lines modified
224 ····················<span·class="p">),</span>225 ····················<span·class="p">),</span>
225 ················<span·class="p">]</span>226 ················<span·class="p">]</span>
226 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>227 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>
  
  
  
227 <div·class="viewcode-block"·id="RemoveField">228 <div·class="viewcode-block"·id="RemoveField">
228 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RemoveField">[docs]</a>229 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RemoveField">[documenti]</a>
229 <span·class="k">class</span>·<span·class="nc">RemoveField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>230 <span·class="k">class</span>·<span·class="nc">RemoveField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>
230 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Remove·a·field·from·a·model.&quot;&quot;&quot;</span>231 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Remove·a·field·from·a·model.&quot;&quot;&quot;</span>
  
231 ····<span·class="k">def</span>·<span·class="nf">deconstruct</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>232 ····<span·class="k">def</span>·<span·class="nf">deconstruct</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
232 ········<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="p">{</span>233 ········<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="p">{</span>
233 ············<span·class="s2">&quot;model_name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">model_name</span><span·class="p">,</span>234 ············<span·class="s2">&quot;model_name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">model_name</span><span·class="p">,</span>
234 ············<span·class="s2">&quot;name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>235 ············<span·class="s2">&quot;name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>
Offset 271, 15 lines modifiedOffset 272, 15 lines modified
271 ········<span·class="p">):</span>272 ········<span·class="p">):</span>
272 ············<span·class="k">return</span>·<span·class="p">[</span><span·class="n">operation</span><span·class="p">]</span>273 ············<span·class="k">return</span>·<span·class="p">[</span><span·class="n">operation</span><span·class="p">]</span>
273 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>274 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>
  
  
  
274 <div·class="viewcode-block"·id="AlterField">275 <div·class="viewcode-block"·id="AlterField">
275 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.AlterField">[docs]</a>276 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.AlterField">[documenti]</a>
276 <span·class="k">class</span>·<span·class="nc">AlterField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>277 <span·class="k">class</span>·<span·class="nc">AlterField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>
277 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>278 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
278 <span·class="sd">····Alter·a·field&#39;s·database·column·(e.g.·null,·max_length)·to·the·provided</span>279 <span·class="sd">····Alter·a·field&#39;s·database·column·(e.g.·null,·max_length)·to·the·provided</span>
279 <span·class="sd">····new·field.</span>280 <span·class="sd">····new·field.</span>
280 <span·class="sd">····&quot;&quot;&quot;</span>281 <span·class="sd">····&quot;&quot;&quot;</span>
  
281 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">preserve_default</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>282 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">preserve_default</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
Offset 346, 15 lines modifiedOffset 347, 15 lines modified
346 ················<span·class="p">),</span>347 ················<span·class="p">),</span>
347 ············<span·class="p">]</span>348 ············<span·class="p">]</span>
348 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>349 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">reduce</span><span·class="p">(</span><span·class="n">operation</span><span·class="p">,</span>·<span·class="n">app_label</span><span·class="p">)</span></div>
  
  
  
349 <div·class="viewcode-block"·id="RenameField">350 <div·class="viewcode-block"·id="RenameField">
350 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RenameField">[docs]</a>351 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RenameField">[documenti]</a>
351 <span·class="k">class</span>·<span·class="nc">RenameField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>352 <span·class="k">class</span>·<span·class="nc">RenameField</span><span·class="p">(</span><span·class="n">FieldOperation</span><span·class="p">):</span>
352 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Rename·a·field·on·the·model.·Might·affect·db_column·too.&quot;&quot;&quot;</span>353 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Rename·a·field·on·the·model.·Might·affect·db_column·too.&quot;&quot;&quot;</span>
  
353 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">,</span>·<span·class="n">new_name</span><span·class="p">):</span>354 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">,</span>·<span·class="n">new_name</span><span·class="p">):</span>
354 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">old_name</span>·<span·class="o">=</span>·<span·class="n">old_name</span>355 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">old_name</span>·<span·class="o">=</span>·<span·class="n">old_name</span>
355 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">new_name</span>·<span·class="o">=</span>·<span·class="n">new_name</span>356 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">new_name</span>·<span·class="o">=</span>·<span·class="n">new_name</span>
356 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">)</span>357 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">model_name</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">)</span>
Offset 448, 35 lines modifiedOffset 449, 35 lines modified
448 ······449 ······
449 ········450 ········
450 ··········<div·class="yui-b"·id="sidebar">451 ··········<div·class="yui-b"·id="sidebar">
451 ············452 ············
452 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">453 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
453 ········<div·class="sphinxsidebarwrapper">454 ········<div·class="sphinxsidebarwrapper">
454 <search·id="searchbox"·style="display:·none"·role="search">455 <search·id="searchbox"·style="display:·none"·role="search">
455 ··<h3·id="searchlabel">Quick·search</h3>456 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 950/12302 bytes (7.72%) of diff not shown.
3.18 KB
html2text {}
Max HTML report size reached
39.1 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/migrations/operations/models.html
Max HTML report size reached
12.1 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/migrations/operations/special.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.migrations.operations.special·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.migrations.operations.special·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-migrations-operations-special">69 ··········<div·class="yui-g"·id="_modules-django-db-migrations-operations-special">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.migrations.operations.special</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.migrations.operations.special</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">router</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">router</span>
  
72 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Operation</span>73 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Operation</span>
  
  
73 <div·class="viewcode-block"·id="SeparateDatabaseAndState">74 <div·class="viewcode-block"·id="SeparateDatabaseAndState">
74 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.SeparateDatabaseAndState">[docs]</a>75 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.SeparateDatabaseAndState">[documenti]</a>
75 <span·class="k">class</span>·<span·class="nc">SeparateDatabaseAndState</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>76 <span·class="k">class</span>·<span·class="nc">SeparateDatabaseAndState</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>
76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
77 <span·class="sd">····Take·two·lists·of·operations·-·ones·that·will·be·used·for·the·database,</span>78 <span·class="sd">····Take·two·lists·of·operations·-·ones·that·will·be·used·for·the·database,</span>
78 <span·class="sd">····and·ones·that·will·be·used·for·the·state·change.·This·allows·operations</span>79 <span·class="sd">····and·ones·that·will·be·used·for·the·state·change.·This·allows·operations</span>
79 <span·class="sd">····that·don&#39;t·support·state·change·to·have·it·applied,·or·have·operations</span>80 <span·class="sd">····that·don&#39;t·support·state·change·to·have·it·applied,·or·have·operations</span>
80 <span·class="sd">····that·affect·the·state·or·not·the·database,·or·so·on.</span>81 <span·class="sd">····that·affect·the·state·or·not·the·database,·or·so·on.</span>
81 <span·class="sd">····&quot;&quot;&quot;</span>82 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 133, 15 lines modifiedOffset 134, 15 lines modified
  
133 ····<span·class="k">def</span>·<span·class="nf">describe</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>134 ····<span·class="k">def</span>·<span·class="nf">describe</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
134 ········<span·class="k">return</span>·<span·class="s2">&quot;Custom·state/database·change·combination&quot;</span></div>135 ········<span·class="k">return</span>·<span·class="s2">&quot;Custom·state/database·change·combination&quot;</span></div>
  
  
  
135 <div·class="viewcode-block"·id="RunSQL">136 <div·class="viewcode-block"·id="RunSQL">
136 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunSQL">[docs]</a>137 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunSQL">[documenti]</a>
137 <span·class="k">class</span>·<span·class="nc">RunSQL</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>138 <span·class="k">class</span>·<span·class="nc">RunSQL</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>
138 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
139 <span·class="sd">····Run·some·raw·SQL.·A·reverse·SQL·statement·may·be·provided.</span>140 <span·class="sd">····Run·some·raw·SQL.·A·reverse·SQL·statement·may·be·provided.</span>
  
140 <span·class="sd">····Also·accept·a·list·of·operations·that·represent·the·state·change·effected</span>141 <span·class="sd">····Also·accept·a·list·of·operations·that·represent·the·state·change·effected</span>
141 <span·class="sd">····by·this·SQL·change,·in·case·it&#39;s·custom·column/table·creation/deletion.</span>142 <span·class="sd">····by·this·SQL·change,·in·case·it&#39;s·custom·column/table·creation/deletion.</span>
142 <span·class="sd">····&quot;&quot;&quot;</span>143 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 209, 15 lines modifiedOffset 210, 15 lines modified
209 ············<span·class="n">statements</span>·<span·class="o">=</span>·<span·class="n">schema_editor</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">prepare_sql_script</span><span·class="p">(</span><span·class="n">sqls</span><span·class="p">)</span>210 ············<span·class="n">statements</span>·<span·class="o">=</span>·<span·class="n">schema_editor</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">prepare_sql_script</span><span·class="p">(</span><span·class="n">sqls</span><span·class="p">)</span>
210 ············<span·class="k">for</span>·<span·class="n">statement</span>·<span·class="ow">in</span>·<span·class="n">statements</span><span·class="p">:</span>211 ············<span·class="k">for</span>·<span·class="n">statement</span>·<span·class="ow">in</span>·<span·class="n">statements</span><span·class="p">:</span>
211 ················<span·class="n">schema_editor</span><span·class="o">.</span><span·class="n">execute</span><span·class="p">(</span><span·class="n">statement</span><span·class="p">,</span>·<span·class="n">params</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span></div>212 ················<span·class="n">schema_editor</span><span·class="o">.</span><span·class="n">execute</span><span·class="p">(</span><span·class="n">statement</span><span·class="p">,</span>·<span·class="n">params</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span></div>
  
  
  
212 <div·class="viewcode-block"·id="RunPython">213 <div·class="viewcode-block"·id="RunPython">
213 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunPython">[docs]</a>214 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunPython">[documenti]</a>
214 <span·class="k">class</span>·<span·class="nc">RunPython</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>215 <span·class="k">class</span>·<span·class="nc">RunPython</span><span·class="p">(</span><span·class="n">Operation</span><span·class="p">):</span>
215 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>216 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
216 <span·class="sd">····Run·Python·code·in·a·context·suitable·for·doing·versioned·ORM·operations.</span>217 <span·class="sd">····Run·Python·code·in·a·context·suitable·for·doing·versioned·ORM·operations.</span>
217 <span·class="sd">····&quot;&quot;&quot;</span>218 <span·class="sd">····&quot;&quot;&quot;</span>
  
218 ····<span·class="n">reduces_to_sql</span>·<span·class="o">=</span>·<span·class="kc">False</span>219 ····<span·class="n">reduces_to_sql</span>·<span·class="o">=</span>·<span·class="kc">False</span>
  
Offset 281, 15 lines modifiedOffset 282, 15 lines modified
281 ········<span·class="p">):</span>282 ········<span·class="p">):</span>
282 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">reverse_code</span><span·class="p">(</span><span·class="n">from_state</span><span·class="o">.</span><span·class="n">apps</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">)</span>283 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">reverse_code</span><span·class="p">(</span><span·class="n">from_state</span><span·class="o">.</span><span·class="n">apps</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">)</span>
  
283 ····<span·class="k">def</span>·<span·class="nf">describe</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>284 ····<span·class="k">def</span>·<span·class="nf">describe</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
284 ········<span·class="k">return</span>·<span·class="s2">&quot;Raw·Python·operation&quot;</span>285 ········<span·class="k">return</span>·<span·class="s2">&quot;Raw·Python·operation&quot;</span>
  
285 <div·class="viewcode-block"·id="RunPython.noop">286 <div·class="viewcode-block"·id="RunPython.noop">
286 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunPython.noop">[docs]</a>287 <a·class="viewcode-back"·href="../../../../../ref/migration-operations.html#django.db.migrations.operations.RunPython.noop">[documenti]</a>
287 ····<span·class="nd">@staticmethod</span>288 ····<span·class="nd">@staticmethod</span>
288 ····<span·class="k">def</span>·<span·class="nf">noop</span><span·class="p">(</span><span·class="n">apps</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>289 ····<span·class="k">def</span>·<span·class="nf">noop</span><span·class="p">(</span><span·class="n">apps</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>
289 ········<span·class="k">return</span>·<span·class="kc">None</span></div>290 ········<span·class="k">return</span>·<span·class="kc">None</span></div>
290 </div>291 </div>
  
291 </pre></div>292 </pre></div>
  
Offset 299, 35 lines modifiedOffset 300, 35 lines modified
299 ······300 ······
300 ········301 ········
301 ··········<div·class="yui-b"·id="sidebar">302 ··········<div·class="yui-b"·id="sidebar">
302 ············303 ············
303 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">304 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
304 ········<div·class="sphinxsidebarwrapper">305 ········<div·class="sphinxsidebarwrapper">
305 <search·id="searchbox"·style="display:·none"·role="search">306 <search·id="searchbox"·style="display:·none"·role="search">
306 ··<h3·id="searchlabel">Quick·search</h3>307 ··<h3·id="searchlabel">Ricerca·veloce</h3>
307 ····<div·class="searchformwrapper">308 ····<div·class="searchformwrapper">
308 ····<form·class="search"·action="../../../../../search.html"·method="get">309 ····<form·class="search"·action="../../../../../search.html"·method="get">
309 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>310 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
310 ······<input·type="submit"·value="Go"·/>311 ······<input·type="submit"·value="Vai"·/>
311 ····</form>312 ····</form>
312 ····</div>313 ····</div>
313 </search>314 </search>
314 <script>document.getElementById('searchbox').style.display·=·"block"</script>315 <script>document.getElementById('searchbox').style.display·=·"block"</script>
315 ········</div>316 ········</div>
Max diff block lines reached; 500/9437 bytes (5.30%) of diff not shown.
2.7 KB
html2text {}
Max HTML report size reached
18.9 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/aggregates.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.aggregates·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.aggregates·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-aggregates">69 ··········<div·class="yui-g"·id="_modules-django-db-models-aggregates">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.aggregates</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.aggregates</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Classes·to·represent·the·definitions·of·aggregate·functions.</span>73 <span·class="sd">Classes·to·represent·the·definitions·of·aggregate·functions.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">FieldError</span><span·class="p">,</span>·<span·class="n">FullResultSet</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">FieldError</span><span·class="p">,</span>·<span·class="n">FullResultSet</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Case</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Star</span><span·class="p">,</span>·<span·class="n">Value</span><span·class="p">,</span>·<span·class="n">When</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Case</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Star</span><span·class="p">,</span>·<span·class="n">Value</span><span·class="p">,</span>·<span·class="n">When</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">IntegerField</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">IntegerField</span>
77 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions.comparison</span>·<span·class="kn">import</span>·<span·class="n">Coalesce</span>78 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions.comparison</span>·<span·class="kn">import</span>·<span·class="n">Coalesce</span>
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
92 ····<span·class="s2">&quot;StdDev&quot;</span><span·class="p">,</span>93 ····<span·class="s2">&quot;StdDev&quot;</span><span·class="p">,</span>
93 ····<span·class="s2">&quot;Sum&quot;</span><span·class="p">,</span>94 ····<span·class="s2">&quot;Sum&quot;</span><span·class="p">,</span>
94 ····<span·class="s2">&quot;Variance&quot;</span><span·class="p">,</span>95 ····<span·class="s2">&quot;Variance&quot;</span><span·class="p">,</span>
95 <span·class="p">]</span>96 <span·class="p">]</span>
  
  
96 <div·class="viewcode-block"·id="Aggregate">97 <div·class="viewcode-block"·id="Aggregate">
97 <a·class="viewcode-back"·href="../../../../ref/models/expressions.html#django.db.models.Aggregate">[docs]</a>98 <a·class="viewcode-back"·href="../../../../ref/models/expressions.html#django.db.models.Aggregate">[documenti]</a>
98 <span·class="k">class</span>·<span·class="nc">Aggregate</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>99 <span·class="k">class</span>·<span·class="nc">Aggregate</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
99 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(function)s</span><span·class="s2">(</span><span·class="si">%(distinct)s%(expressions)s</span><span·class="s2">)&quot;</span>100 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(function)s</span><span·class="s2">(</span><span·class="si">%(distinct)s%(expressions)s</span><span·class="s2">)&quot;</span>
100 ····<span·class="n">contains_aggregate</span>·<span·class="o">=</span>·<span·class="kc">True</span>101 ····<span·class="n">contains_aggregate</span>·<span·class="o">=</span>·<span·class="kc">True</span>
101 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="kc">None</span>102 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="kc">None</span>
102 ····<span·class="n">filter_template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">·FILTER·(WHERE·</span><span·class="si">%%</span><span·class="s2">(filter)s)&quot;</span>103 ····<span·class="n">filter_template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">·FILTER·(WHERE·</span><span·class="si">%%</span><span·class="s2">(filter)s)&quot;</span>
103 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span>104 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span>
104 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">False</span>105 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">False</span>
Offset 224, 24 lines modifiedOffset 225, 24 lines modified
224 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">:</span>225 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">:</span>
225 ············<span·class="n">options</span><span·class="p">[</span><span·class="s2">&quot;filter&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">filter</span>226 ············<span·class="n">options</span><span·class="p">[</span><span·class="s2">&quot;filter&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">filter</span>
226 ········<span·class="k">return</span>·<span·class="n">options</span></div>227 ········<span·class="k">return</span>·<span·class="n">options</span></div>
  
  
  
227 <div·class="viewcode-block"·id="Avg">228 <div·class="viewcode-block"·id="Avg">
228 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Avg">[docs]</a>229 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Avg">[documenti]</a>
229 <span·class="k">class</span>·<span·class="nc">Avg</span><span·class="p">(</span><span·class="n">FixDurationInputMixin</span><span·class="p">,</span>·<span·class="n">NumericOutputFieldMixin</span><span·class="p">,</span>·<span·class="n">Aggregate</span><span·class="p">):</span>230 <span·class="k">class</span>·<span·class="nc">Avg</span><span·class="p">(</span><span·class="n">FixDurationInputMixin</span><span·class="p">,</span>·<span·class="n">NumericOutputFieldMixin</span><span·class="p">,</span>·<span·class="n">Aggregate</span><span·class="p">):</span>
230 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;AVG&quot;</span>231 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;AVG&quot;</span>
231 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Avg&quot;</span>232 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Avg&quot;</span>
232 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>233 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
233 <div·class="viewcode-block"·id="Count">234 <div·class="viewcode-block"·id="Count">
234 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Count">[docs]</a>235 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Count">[documenti]</a>
235 <span·class="k">class</span>·<span·class="nc">Count</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>236 <span·class="k">class</span>·<span·class="nc">Count</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>
236 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COUNT&quot;</span>237 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COUNT&quot;</span>
237 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Count&quot;</span>238 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Count&quot;</span>
238 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">IntegerField</span><span·class="p">()</span>239 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">IntegerField</span><span·class="p">()</span>
239 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">True</span>240 ····<span·class="n">allow_distinct</span>·<span·class="o">=</span>·<span·class="kc">True</span>
240 ····<span·class="n">empty_result_set_value</span>·<span·class="o">=</span>·<span·class="mi">0</span>241 ····<span·class="n">empty_result_set_value</span>·<span·class="o">=</span>·<span·class="mi">0</span>
  
Offset 251, 54 lines modifiedOffset 252, 54 lines modified
251 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">Star</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="nb">filter</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>252 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="n">Star</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="nb">filter</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
252 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Star·cannot·be·used·with·filter.·Please·specify·a·field.&quot;</span><span·class="p">)</span>253 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Star·cannot·be·used·with·filter.·Please·specify·a·field.&quot;</span><span·class="p">)</span>
253 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="nb">filter</span><span·class="o">=</span><span·class="nb">filter</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span></div>254 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="nb">filter</span><span·class="o">=</span><span·class="nb">filter</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span></div>
  
  
  
254 <div·class="viewcode-block"·id="Max">255 <div·class="viewcode-block"·id="Max">
255 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Max">[docs]</a>256 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Max">[documenti]</a>
256 <span·class="k">class</span>·<span·class="nc">Max</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>257 <span·class="k">class</span>·<span·class="nc">Max</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>
257 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;MAX&quot;</span>258 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;MAX&quot;</span>
258 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Max&quot;</span></div>259 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Max&quot;</span></div>
  
  
  
259 <div·class="viewcode-block"·id="Min">260 <div·class="viewcode-block"·id="Min">
260 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Min">[docs]</a>261 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Min">[documenti]</a>
261 <span·class="k">class</span>·<span·class="nc">Min</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>262 <span·class="k">class</span>·<span·class="nc">Min</span><span·class="p">(</span><span·class="n">Aggregate</span><span·class="p">):</span>
262 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;MIN&quot;</span>263 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;MIN&quot;</span>
263 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Min&quot;</span></div>264 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;Min&quot;</span></div>
  
  
  
264 <div·class="viewcode-block"·id="StdDev">265 <div·class="viewcode-block"·id="StdDev">
265 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.StdDev">[docs]</a>266 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.StdDev">[documenti]</a>
266 <span·class="k">class</span>·<span·class="nc">StdDev</span><span·class="p">(</span><span·class="n">NumericOutputFieldMixin</span><span·class="p">,</span>·<span·class="n">Aggregate</span><span·class="p">):</span>267 <span·class="k">class</span>·<span·class="nc">StdDev</span><span·class="p">(</span><span·class="n">NumericOutputFieldMixin</span><span·class="p">,</span>·<span·class="n">Aggregate</span><span·class="p">):</span>
267 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;StdDev&quot;</span>268 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="s2">&quot;StdDev&quot;</span>
  
268 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">sample</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>269 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">sample</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>
269 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;STDDEV_SAMP&quot;</span>·<span·class="k">if</span>·<span·class="n">sample</span>·<span·class="k">else</span>·<span·class="s2">&quot;STDDEV_POP&quot;</span>270 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;STDDEV_SAMP&quot;</span>·<span·class="k">if</span>·<span·class="n">sample</span>·<span·class="k">else</span>·<span·class="s2">&quot;STDDEV_POP&quot;</span>
270 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>271 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">expression</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">)</span>
  
Max diff block lines reached; 4141/15497 bytes (26.72%) of diff not shown.
3.65 KB
html2text {}
Max HTML report size reached
46.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/base.html
Max HTML report size reached
17.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/constraints.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.constraints·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.constraints·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-constraints">69 ··········<div·class="yui-g"·id="_modules-django-db-models-constraints">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.constraints</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.constraints</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">enum</span>·<span·class="kn">import</span>·<span·class="n">Enum</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">enum</span>·<span·class="kn">import</span>·<span·class="n">Enum</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">FieldError</span><span·class="p">,</span>·<span·class="n">ValidationError</span>73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">FieldError</span><span·class="p">,</span>·<span·class="n">ValidationError</span>
73 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">connections</span>74 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">connections</span>
74 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Exists</span><span·class="p">,</span>·<span·class="n">ExpressionList</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">OrderBy</span>75 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Exists</span><span·class="p">,</span>·<span·class="n">ExpressionList</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">OrderBy</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.models.indexes</span>·<span·class="kn">import</span>·<span·class="n">IndexExpression</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.models.indexes</span>·<span·class="kn">import</span>·<span·class="n">IndexExpression</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models.lookups</span>·<span·class="kn">import</span>·<span·class="n">Exact</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models.lookups</span>·<span·class="kn">import</span>·<span·class="n">Exact</span>
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 <span·class="kn">from</span>·<span·class="nn">django.db.utils</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span>84 <span·class="kn">from</span>·<span·class="nn">django.db.utils</span>·<span·class="kn">import</span>·<span·class="n">DEFAULT_DB_ALIAS</span>
84 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>85 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>
  
85 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;BaseConstraint&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;CheckConstraint&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;Deferrable&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;UniqueConstraint&quot;</span><span·class="p">]</span>86 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;BaseConstraint&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;CheckConstraint&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;Deferrable&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;UniqueConstraint&quot;</span><span·class="p">]</span>
  
  
86 <div·class="viewcode-block"·id="BaseConstraint">87 <div·class="viewcode-block"·id="BaseConstraint">
87 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.BaseConstraint">[docs]</a>88 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.BaseConstraint">[documenti]</a>
88 <span·class="k">class</span>·<span·class="nc">BaseConstraint</span><span·class="p">:</span>89 <span·class="k">class</span>·<span·class="nc">BaseConstraint</span><span·class="p">:</span>
89 ····<span·class="n">default_violation_error_message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Constraint·“</span><span·class="si">%(name)s</span><span·class="s2">”·is·violated.&quot;</span><span·class="p">)</span>90 ····<span·class="n">default_violation_error_message</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Constraint·“</span><span·class="si">%(name)s</span><span·class="s2">”·is·violated.&quot;</span><span·class="p">)</span>
90 ····<span·class="n">violation_error_message</span>·<span·class="o">=</span>·<span·class="kc">None</span>91 ····<span·class="n">violation_error_message</span>·<span·class="o">=</span>·<span·class="kc">None</span>
  
91 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">violation_error_message</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>92 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">violation_error_message</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
92 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>93 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>
93 ········<span·class="k">if</span>·<span·class="n">violation_error_message</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>94 ········<span·class="k">if</span>·<span·class="n">violation_error_message</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">:</span>
Offset 109, 15 lines modifiedOffset 110, 15 lines modified
109 ····<span·class="k">def</span>·<span·class="nf">create_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>110 ····<span·class="k">def</span>·<span·class="nf">create_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>
110 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span>111 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span>
  
111 ····<span·class="k">def</span>·<span·class="nf">remove_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>112 ····<span·class="k">def</span>·<span·class="nf">remove_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">schema_editor</span><span·class="p">):</span>
112 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span>113 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span>
  
113 <div·class="viewcode-block"·id="BaseConstraint.validate">114 <div·class="viewcode-block"·id="BaseConstraint.validate">
114 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.BaseConstraint.validate">[docs]</a>115 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.BaseConstraint.validate">[documenti]</a>
115 ····<span·class="k">def</span>·<span·class="nf">validate</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="n">exclude</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">):</span>116 ····<span·class="k">def</span>·<span·class="nf">validate</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="n">exclude</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">):</span>
116 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span></div>117 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;This·method·must·be·implemented·by·a·subclass.&quot;</span><span·class="p">)</span></div>
  
  
117 ····<span·class="k">def</span>·<span·class="nf">get_violation_error_message</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>118 ····<span·class="k">def</span>·<span·class="nf">get_violation_error_message</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
118 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">violation_error_message</span>·<span·class="o">%</span>·<span·class="p">{</span><span·class="s2">&quot;name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">}</span>119 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">violation_error_message</span>·<span·class="o">%</span>·<span·class="p">{</span><span·class="s2">&quot;name&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">}</span>
  
Offset 135, 15 lines modifiedOffset 136, 15 lines modified
135 ····<span·class="k">def</span>·<span·class="nf">clone</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>136 ····<span·class="k">def</span>·<span·class="nf">clone</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
136 ········<span·class="n">_</span><span·class="p">,</span>·<span·class="n">args</span><span·class="p">,</span>·<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">deconstruct</span><span·class="p">()</span>137 ········<span·class="n">_</span><span·class="p">,</span>·<span·class="n">args</span><span·class="p">,</span>·<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">deconstruct</span><span·class="p">()</span>
137 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>138 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
  
138 <div·class="viewcode-block"·id="CheckConstraint">139 <div·class="viewcode-block"·id="CheckConstraint">
139 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.CheckConstraint">[docs]</a>140 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.CheckConstraint">[documenti]</a>
140 <span·class="k">class</span>·<span·class="nc">CheckConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>141 <span·class="k">class</span>·<span·class="nc">CheckConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>
141 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">check</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">violation_error_message</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>142 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">check</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">violation_error_message</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
142 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">check</span>·<span·class="o">=</span>·<span·class="n">check</span>143 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">check</span>·<span·class="o">=</span>·<span·class="n">check</span>
143 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">check</span><span·class="p">,</span>·<span·class="s2">&quot;conditional&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">):</span>144 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">check</span><span·class="p">,</span>·<span·class="s2">&quot;conditional&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">):</span>
144 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span>145 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span>
145 ················<span·class="s2">&quot;CheckConstraint.check·must·be·a·Q·instance·or·boolean·expression.&quot;</span>146 ················<span·class="s2">&quot;CheckConstraint.check·must·be·a·Q·instance·or·boolean·expression.&quot;</span>
146 ············<span·class="p">)</span>147 ············<span·class="p">)</span>
Offset 204, 15 lines modifiedOffset 205, 15 lines modified
  
204 ····<span·class="c1">#·A·similar·format·was·proposed·for·Python·3.10.</span>205 ····<span·class="c1">#·A·similar·format·was·proposed·for·Python·3.10.</span>
205 ····<span·class="k">def</span>·<span·class="fm">__repr__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>206 ····<span·class="k">def</span>·<span·class="fm">__repr__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
206 ········<span·class="k">return</span>·<span·class="sa">f</span><span·class="s2">&quot;</span><span·class="si">{</span><span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__qualname__</span><span·class="si">}</span><span·class="s2">.</span><span·class="si">{</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_name_</span><span·class="si">}</span><span·class="s2">&quot;</span>207 ········<span·class="k">return</span>·<span·class="sa">f</span><span·class="s2">&quot;</span><span·class="si">{</span><span·class="bp">self</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__qualname__</span><span·class="si">}</span><span·class="s2">.</span><span·class="si">{</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_name_</span><span·class="si">}</span><span·class="s2">&quot;</span>
  
  
207 <div·class="viewcode-block"·id="UniqueConstraint">208 <div·class="viewcode-block"·id="UniqueConstraint">
208 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.UniqueConstraint">[docs]</a>209 <a·class="viewcode-back"·href="../../../../ref/models/constraints.html#django.db.models.UniqueConstraint">[documenti]</a>
209 <span·class="k">class</span>·<span·class="nc">UniqueConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>210 <span·class="k">class</span>·<span·class="nc">UniqueConstraint</span><span·class="p">(</span><span·class="n">BaseConstraint</span><span·class="p">):</span>
210 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>211 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
211 ········<span·class="bp">self</span><span·class="p">,</span>212 ········<span·class="bp">self</span><span·class="p">,</span>
212 ········<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>213 ········<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>
213 ········<span·class="n">fields</span><span·class="o">=</span><span·class="p">(),</span>214 ········<span·class="n">fields</span><span·class="o">=</span><span·class="p">(),</span>
214 ········<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>215 ········<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
215 ········<span·class="n">condition</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>216 ········<span·class="n">condition</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 462, 35 lines modifiedOffset 463, 35 lines modified
462 ······463 ······
463 ········464 ········
464 ··········<div·class="yui-b"·id="sidebar">465 ··········<div·class="yui-b"·id="sidebar">
465 ············466 ············
466 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">467 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
467 ········<div·class="sphinxsidebarwrapper">468 ········<div·class="sphinxsidebarwrapper">
468 <search·id="searchbox"·style="display:·none"·role="search">469 <search·id="searchbox"·style="display:·none"·role="search">
469 ··<h3·id="searchlabel">Quick·search</h3>470 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 941/13747 bytes (6.85%) of diff not shown.
3.42 KB
html2text {}
Max HTML report size reached
19.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/deletion.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.deletion·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.deletion·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-deletion">69 ··········<div·class="yui-g"·id="_modules-django-db-models-deletion">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.deletion</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.deletion</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">Counter</span><span·class="p">,</span>·<span·class="n">defaultdict</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">Counter</span><span·class="p">,</span>·<span·class="n">defaultdict</span>
72 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span><span·class="p">,</span>·<span·class="n">reduce</span>73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span><span·class="p">,</span>·<span·class="n">reduce</span>
73 <span·class="kn">from</span>·<span·class="nn">itertools</span>·<span·class="kn">import</span>·<span·class="n">chain</span>74 <span·class="kn">from</span>·<span·class="nn">itertools</span>·<span·class="kn">import</span>·<span·class="n">chain</span>
74 <span·class="kn">from</span>·<span·class="nn">operator</span>·<span·class="kn">import</span>·<span·class="n">attrgetter</span><span·class="p">,</span>·<span·class="n">or_</span>75 <span·class="kn">from</span>·<span·class="nn">operator</span>·<span·class="kn">import</span>·<span·class="n">attrgetter</span><span·class="p">,</span>·<span·class="n">or_</span>
  
75 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">IntegrityError</span><span·class="p">,</span>·<span·class="n">connections</span><span·class="p">,</span>·<span·class="n">models</span><span·class="p">,</span>·<span·class="n">transaction</span>76 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">IntegrityError</span><span·class="p">,</span>·<span·class="n">connections</span><span·class="p">,</span>·<span·class="n">models</span><span·class="p">,</span>·<span·class="n">transaction</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">query_utils</span><span·class="p">,</span>·<span·class="n">signals</span><span·class="p">,</span>·<span·class="n">sql</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">query_utils</span><span·class="p">,</span>·<span·class="n">signals</span><span·class="p">,</span>·<span·class="n">sql</span>
Offset 89, 30 lines modifiedOffset 90, 30 lines modified
89 <span·class="k">class</span>·<span·class="nc">RestrictedError</span><span·class="p">(</span><span·class="n">IntegrityError</span><span·class="p">):</span>90 <span·class="k">class</span>·<span·class="nc">RestrictedError</span><span·class="p">(</span><span·class="n">IntegrityError</span><span·class="p">):</span>
90 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">msg</span><span·class="p">,</span>·<span·class="n">restricted_objects</span><span·class="p">):</span>91 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">msg</span><span·class="p">,</span>·<span·class="n">restricted_objects</span><span·class="p">):</span>
91 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">restricted_objects</span>·<span·class="o">=</span>·<span·class="n">restricted_objects</span>92 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">restricted_objects</span>·<span·class="o">=</span>·<span·class="n">restricted_objects</span>
92 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">,</span>·<span·class="n">restricted_objects</span><span·class="p">)</span>93 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">,</span>·<span·class="n">restricted_objects</span><span·class="p">)</span>
  
  
93 <div·class="viewcode-block"·id="CASCADE">94 <div·class="viewcode-block"·id="CASCADE">
94 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.CASCADE">[docs]</a>95 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.CASCADE">[documenti]</a>
95 <span·class="k">def</span>·<span·class="nf">CASCADE</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>96 <span·class="k">def</span>·<span·class="nf">CASCADE</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>
96 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">collect</span><span·class="p">(</span>97 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">collect</span><span·class="p">(</span>
97 ········<span·class="n">sub_objs</span><span·class="p">,</span>98 ········<span·class="n">sub_objs</span><span·class="p">,</span>
98 ········<span·class="n">source</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">,</span>99 ········<span·class="n">source</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">,</span>
99 ········<span·class="n">source_attr</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>100 ········<span·class="n">source_attr</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>
100 ········<span·class="n">nullable</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">null</span><span·class="p">,</span>101 ········<span·class="n">nullable</span><span·class="o">=</span><span·class="n">field</span><span·class="o">.</span><span·class="n">null</span><span·class="p">,</span>
101 ········<span·class="n">fail_on_restricted</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>102 ········<span·class="n">fail_on_restricted</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
102 ····<span·class="p">)</span>103 ····<span·class="p">)</span>
103 ····<span·class="k">if</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">null</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">connections</span><span·class="p">[</span><span·class="n">using</span><span·class="p">]</span><span·class="o">.</span><span·class="n">features</span><span·class="o">.</span><span·class="n">can_defer_constraint_checks</span><span·class="p">:</span>104 ····<span·class="k">if</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">null</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">connections</span><span·class="p">[</span><span·class="n">using</span><span·class="p">]</span><span·class="o">.</span><span·class="n">features</span><span·class="o">.</span><span·class="n">can_defer_constraint_checks</span><span·class="p">:</span>
104 ········<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span></div>105 ········<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span></div>
  
  
  
105 <div·class="viewcode-block"·id="PROTECT">106 <div·class="viewcode-block"·id="PROTECT">
106 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.PROTECT">[docs]</a>107 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.PROTECT">[documenti]</a>
107 <span·class="k">def</span>·<span·class="nf">PROTECT</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>108 <span·class="k">def</span>·<span·class="nf">PROTECT</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>
108 ····<span·class="k">raise</span>·<span·class="n">ProtectedError</span><span·class="p">(</span>109 ····<span·class="k">raise</span>·<span·class="n">ProtectedError</span><span·class="p">(</span>
109 ········<span·class="s2">&quot;Cannot·delete·some·instances·of·model·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·because·they·are·&quot;</span>110 ········<span·class="s2">&quot;Cannot·delete·some·instances·of·model·&#39;</span><span·class="si">%s</span><span·class="s2">&#39;·because·they·are·&quot;</span>
110 ········<span·class="s2">&quot;referenced·through·a·protected·foreign·key:·&#39;</span><span·class="si">%s</span><span·class="s2">.</span><span·class="si">%s</span><span·class="s2">&#39;&quot;</span>111 ········<span·class="s2">&quot;referenced·through·a·protected·foreign·key:·&#39;</span><span·class="si">%s</span><span·class="s2">.</span><span·class="si">%s</span><span·class="s2">&#39;&quot;</span>
111 ········<span·class="o">%</span>·<span·class="p">(</span>112 ········<span·class="o">%</span>·<span·class="p">(</span>
112 ············<span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>113 ············<span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>
113 ············<span·class="n">sub_objs</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>114 ············<span·class="n">sub_objs</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>
Offset 120, 23 lines modifiedOffset 121, 23 lines modified
120 ········<span·class="p">),</span>121 ········<span·class="p">),</span>
121 ········<span·class="n">sub_objs</span><span·class="p">,</span>122 ········<span·class="n">sub_objs</span><span·class="p">,</span>
122 ····<span·class="p">)</span></div>123 ····<span·class="p">)</span></div>
  
  
  
123 <div·class="viewcode-block"·id="RESTRICT">124 <div·class="viewcode-block"·id="RESTRICT">
124 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.RESTRICT">[docs]</a>125 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.RESTRICT">[documenti]</a>
125 <span·class="k">def</span>·<span·class="nf">RESTRICT</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>126 <span·class="k">def</span>·<span·class="nf">RESTRICT</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>
126 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_restricted_objects</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span>127 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_restricted_objects</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span>
127 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_dependency</span><span·class="p">(</span><span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">,</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">)</span></div>128 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_dependency</span><span·class="p">(</span><span·class="n">field</span><span·class="o">.</span><span·class="n">remote_field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">,</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">model</span><span·class="p">)</span></div>
  
  
  
128 <div·class="viewcode-block"·id="SET">129 <div·class="viewcode-block"·id="SET">
129 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.SET">[docs]</a>130 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.SET">[documenti]</a>
130 <span·class="k">def</span>·<span·class="nf">SET</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>131 <span·class="k">def</span>·<span·class="nf">SET</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
131 ····<span·class="k">if</span>·<span·class="nb">callable</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>132 ····<span·class="k">if</span>·<span·class="nb">callable</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
  
132 ········<span·class="k">def</span>·<span·class="nf">set_on_delete</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>133 ········<span·class="k">def</span>·<span·class="nf">set_on_delete</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>
133 ············<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">(),</span>·<span·class="n">sub_objs</span><span·class="p">)</span>134 ············<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">(),</span>·<span·class="n">sub_objs</span><span·class="p">)</span>
  
134 ····<span·class="k">else</span><span·class="p">:</span>135 ····<span·class="k">else</span><span·class="p">:</span>
Offset 147, 35 lines modifiedOffset 148, 35 lines modified
147 ····<span·class="n">set_on_delete</span><span·class="o">.</span><span·class="n">deconstruct</span>·<span·class="o">=</span>·<span·class="k">lambda</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;django.db.models.SET&quot;</span><span·class="p">,</span>·<span·class="p">(</span><span·class="n">value</span><span·class="p">,),</span>·<span·class="p">{})</span>148 ····<span·class="n">set_on_delete</span><span·class="o">.</span><span·class="n">deconstruct</span>·<span·class="o">=</span>·<span·class="k">lambda</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;django.db.models.SET&quot;</span><span·class="p">,</span>·<span·class="p">(</span><span·class="n">value</span><span·class="p">,),</span>·<span·class="p">{})</span>
148 ····<span·class="n">set_on_delete</span><span·class="o">.</span><span·class="n">lazy_sub_objs</span>·<span·class="o">=</span>·<span·class="kc">True</span>149 ····<span·class="n">set_on_delete</span><span·class="o">.</span><span·class="n">lazy_sub_objs</span>·<span·class="o">=</span>·<span·class="kc">True</span>
149 ····<span·class="k">return</span>·<span·class="n">set_on_delete</span></div>150 ····<span·class="k">return</span>·<span·class="n">set_on_delete</span></div>
  
  
  
150 <div·class="viewcode-block"·id="SET_NULL">151 <div·class="viewcode-block"·id="SET_NULL">
151 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.SET_NULL">[docs]</a>152 <a·class="viewcode-back"·href="../../../../ref/models/fields.html#django.db.models.SET_NULL">[documenti]</a>
152 <span·class="k">def</span>·<span·class="nf">SET_NULL</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>153 <span·class="k">def</span>·<span·class="nf">SET_NULL</span><span·class="p">(</span><span·class="n">collector</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">,</span>·<span·class="n">using</span><span·class="p">):</span>
153 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span></div>154 ····<span·class="n">collector</span><span·class="o">.</span><span·class="n">add_field_update</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sub_objs</span><span·class="p">)</span></div>
  
  
  
154 <span·class="n">SET_NULL</span><span·class="o">.</span><span·class="n">lazy_sub_objs</span>·<span·class="o">=</span>·<span·class="kc">True</span>155 <span·class="n">SET_NULL</span><span·class="o">.</span><span·class="n">lazy_sub_objs</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
  
155 <div·class="viewcode-block"·id="SET_DEFAULT">156 <div·class="viewcode-block"·id="SET_DEFAULT">
Max diff block lines reached; 2734/16019 bytes (17.07%) of diff not shown.
3.88 KB
html2text {}
Max HTML report size reached
2.35 MB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/expressions.html
Max HTML report size reached
23.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/fields/files.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.fields.files·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.fields.files·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-files">69 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-files">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.fields.files</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.fields.files</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>
72 <span·class="kn">import</span>·<span·class="nn">posixpath</span>73 <span·class="kn">import</span>·<span·class="nn">posixpath</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>74 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">checks</span>75 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">checks</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.files.base</span>·<span·class="kn">import</span>·<span·class="n">File</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.files.base</span>·<span·class="kn">import</span>·<span·class="n">File</span>
76 <span·class="kn">from</span>·<span·class="nn">django.core.files.images</span>·<span·class="kn">import</span>·<span·class="n">ImageFile</span>77 <span·class="kn">from</span>·<span·class="nn">django.core.files.images</span>·<span·class="kn">import</span>·<span·class="n">ImageFile</span>
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">Field</span>85 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">Field</span>
85 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">DeferredAttribute</span>86 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">DeferredAttribute</span>
86 <span·class="kn">from</span>·<span·class="nn">django.db.models.utils</span>·<span·class="kn">import</span>·<span·class="n">AltersData</span>87 <span·class="kn">from</span>·<span·class="nn">django.db.models.utils</span>·<span·class="kn">import</span>·<span·class="n">AltersData</span>
87 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>88 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>
  
  
88 <div·class="viewcode-block"·id="FieldFile">89 <div·class="viewcode-block"·id="FieldFile">
89 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile">[docs]</a>90 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile">[documenti]</a>
90 <span·class="k">class</span>·<span·class="nc">FieldFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">,</span>·<span·class="n">AltersData</span><span·class="p">):</span>91 <span·class="k">class</span>·<span·class="nc">FieldFile</span><span·class="p">(</span><span·class="n">File</span><span·class="p">,</span>·<span·class="n">AltersData</span><span·class="p">):</span>
91 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>92 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
92 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">)</span>93 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">)</span>
93 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span>·<span·class="o">=</span>·<span·class="n">instance</span>94 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span>·<span·class="o">=</span>·<span·class="n">instance</span>
94 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span>·<span·class="o">=</span>·<span·class="n">field</span>95 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span>·<span·class="o">=</span>·<span·class="n">field</span>
95 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span>·<span·class="o">=</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">storage</span>96 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span>·<span·class="o">=</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">storage</span>
96 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span>·<span·class="o">=</span>·<span·class="kc">True</span>97 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span>·<span·class="o">=</span>·<span·class="kc">True</span>
Offset 145, 15 lines modifiedOffset 146, 15 lines modified
145 ····<span·class="k">def</span>·<span·class="nf">size</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>146 ····<span·class="k">def</span>·<span·class="nf">size</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
146 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_require_file</span><span·class="p">()</span>147 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_require_file</span><span·class="p">()</span>
147 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span><span·class="p">:</span>148 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span><span·class="p">:</span>
148 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">size</span>149 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">size</span>
149 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">size</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>150 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">size</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>
  
150 <div·class="viewcode-block"·id="FieldFile.open">151 <div·class="viewcode-block"·id="FieldFile.open">
151 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.open">[docs]</a>152 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.open">[documenti]</a>
152 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">):</span>153 ····<span·class="k">def</span>·<span·class="nf">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">):</span>
153 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_require_file</span><span·class="p">()</span>154 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_require_file</span><span·class="p">()</span>
154 ········<span·class="k">if</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>155 ········<span·class="k">if</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
155 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="p">)</span>156 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">mode</span><span·class="p">)</span>
156 ········<span·class="k">else</span><span·class="p">:</span>157 ········<span·class="k">else</span><span·class="p">:</span>
157 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="n">mode</span><span·class="p">)</span>158 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">file</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="n">mode</span><span·class="p">)</span>
158 ········<span·class="k">return</span>·<span·class="bp">self</span></div>159 ········<span·class="k">return</span>·<span·class="bp">self</span></div>
Offset 163, 30 lines modifiedOffset 164, 30 lines modified
163 ····<span·class="nb">open</span><span·class="o">.</span><span·class="n">alters_data</span>·<span·class="o">=</span>·<span·class="kc">True</span>164 ····<span·class="nb">open</span><span·class="o">.</span><span·class="n">alters_data</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
164 ····<span·class="c1">#·In·addition·to·the·standard·File·API,·FieldFiles·have·extra·methods</span>165 ····<span·class="c1">#·In·addition·to·the·standard·File·API,·FieldFiles·have·extra·methods</span>
165 ····<span·class="c1">#·to·further·manipulate·the·underlying·file,·as·well·as·update·the</span>166 ····<span·class="c1">#·to·further·manipulate·the·underlying·file,·as·well·as·update·the</span>
166 ····<span·class="c1">#·associated·model·instance.</span>167 ····<span·class="c1">#·associated·model·instance.</span>
  
167 <div·class="viewcode-block"·id="FieldFile.save">168 <div·class="viewcode-block"·id="FieldFile.save">
168 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.save">[docs]</a>169 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.save">[documenti]</a>
169 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">save</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>170 ····<span·class="k">def</span>·<span·class="nf">save</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">save</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
170 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">generate_filename</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">)</span>171 ········<span·class="n">name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">generate_filename</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">)</span>
171 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">save</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">max_length</span><span·class="p">)</span>172 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">storage</span><span·class="o">.</span><span·class="n">save</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">content</span><span·class="p">,</span>·<span·class="n">max_length</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">max_length</span><span·class="p">)</span>
172 ········<span·class="nb">setattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">attname</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>173 ········<span·class="nb">setattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">attname</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>
173 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span>·<span·class="o">=</span>·<span·class="kc">True</span>174 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_committed</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
174 ········<span·class="c1">#·Save·the·object·because·it·has·changed,·unless·save·is·False</span>175 ········<span·class="c1">#·Save·the·object·because·it·has·changed,·unless·save·is·False</span>
175 ········<span·class="k">if</span>·<span·class="n">save</span><span·class="p">:</span>176 ········<span·class="k">if</span>·<span·class="n">save</span><span·class="p">:</span>
176 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span></div>177 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">instance</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span></div>
  
  
177 ····<span·class="n">save</span><span·class="o">.</span><span·class="n">alters_data</span>·<span·class="o">=</span>·<span·class="kc">True</span>178 ····<span·class="n">save</span><span·class="o">.</span><span·class="n">alters_data</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
178 <div·class="viewcode-block"·id="FieldFile.delete">179 <div·class="viewcode-block"·id="FieldFile.delete">
179 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.delete">[docs]</a>180 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.delete">[documenti]</a>
180 ····<span·class="k">def</span>·<span·class="nf">delete</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">save</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>181 ····<span·class="k">def</span>·<span·class="nf">delete</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">save</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
181 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="p">:</span>182 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="p">:</span>
182 ············<span·class="k">return</span>183 ············<span·class="k">return</span>
183 ········<span·class="c1">#·Only·close·the·file·if·it&#39;s·already·open,·which·we·know·by·the</span>184 ········<span·class="c1">#·Only·close·the·file·if·it&#39;s·already·open,·which·we·know·by·the</span>
184 ········<span·class="c1">#·presence·of·self._file</span>185 ········<span·class="c1">#·presence·of·self._file</span>
185 ········<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">):</span>186 ········<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">):</span>
186 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">close</span><span·class="p">()</span>187 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">close</span><span·class="p">()</span>
Offset 206, 15 lines modifiedOffset 207, 15 lines modified
  
206 ····<span·class="nd">@property</span>207 ····<span·class="nd">@property</span>
207 ····<span·class="k">def</span>·<span·class="nf">closed</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>208 ····<span·class="k">def</span>·<span·class="nf">closed</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
208 ········<span·class="n">file</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>209 ········<span·class="n">file</span>·<span·class="o">=</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="s2">&quot;_file&quot;</span><span·class="p">,</span>·<span·class="kc">None</span><span·class="p">)</span>
209 ········<span·class="k">return</span>·<span·class="n">file</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">file</span><span·class="o">.</span><span·class="n">closed</span>210 ········<span·class="k">return</span>·<span·class="n">file</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="ow">or</span>·<span·class="n">file</span><span·class="o">.</span><span·class="n">closed</span>
  
210 <div·class="viewcode-block"·id="FieldFile.close">211 <div·class="viewcode-block"·id="FieldFile.close">
211 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.close">[docs]</a>212 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.FieldFile.close">[documenti]</a>
212 ····<span·class="k">def</span>·<span·class="nf">close</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>213 ····<span·class="k">def</span>·<span·class="nf">close</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
Max diff block lines reached; 5225/19402 bytes (26.93%) of diff not shown.
4.71 KB
html2text {}
Max HTML report size reached
8.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/fields/json.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.fields.json·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.fields.json·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-json">69 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-json">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.fields.json</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.fields.json</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>
72 <span·class="kn">import</span>·<span·class="nn">warnings</span>73 <span·class="kn">import</span>·<span·class="nn">warnings</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>74 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">checks</span><span·class="p">,</span>·<span·class="n">exceptions</span>75 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">checks</span><span·class="p">,</span>·<span·class="n">exceptions</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span><span·class="p">,</span>·<span·class="n">connections</span><span·class="p">,</span>·<span·class="n">router</span>76 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span><span·class="p">,</span>·<span·class="n">connections</span><span·class="p">,</span>·<span·class="n">router</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">lookups</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">expressions</span><span·class="p">,</span>·<span·class="n">lookups</span>
Offset 91, 15 lines modifiedOffset 92, 15 lines modified
91 <span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">Field</span>92 <span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">Field</span>
92 <span·class="kn">from</span>·<span·class="nn">.mixins</span>·<span·class="kn">import</span>·<span·class="n">CheckFieldDefaultMixin</span>93 <span·class="kn">from</span>·<span·class="nn">.mixins</span>·<span·class="kn">import</span>·<span·class="n">CheckFieldDefaultMixin</span>
  
93 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;JSONField&quot;</span><span·class="p">]</span>94 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;JSONField&quot;</span><span·class="p">]</span>
  
  
94 <div·class="viewcode-block"·id="JSONField">95 <div·class="viewcode-block"·id="JSONField">
95 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.JSONField">[docs]</a>96 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.JSONField">[documenti]</a>
96 <span·class="k">class</span>·<span·class="nc">JSONField</span><span·class="p">(</span><span·class="n">CheckFieldDefaultMixin</span><span·class="p">,</span>·<span·class="n">Field</span><span·class="p">):</span>97 <span·class="k">class</span>·<span·class="nc">JSONField</span><span·class="p">(</span><span·class="n">CheckFieldDefaultMixin</span><span·class="p">,</span>·<span·class="n">Field</span><span·class="p">):</span>
97 ····<span·class="n">empty_strings_allowed</span>·<span·class="o">=</span>·<span·class="kc">False</span>98 ····<span·class="n">empty_strings_allowed</span>·<span·class="o">=</span>·<span·class="kc">False</span>
98 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;A·JSON·object&quot;</span><span·class="p">)</span>99 ····<span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;A·JSON·object&quot;</span><span·class="p">)</span>
99 ····<span·class="n">default_error_messages</span>·<span·class="o">=</span>·<span·class="p">{</span>100 ····<span·class="n">default_error_messages</span>·<span·class="o">=</span>·<span·class="p">{</span>
100 ········<span·class="s2">&quot;invalid&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Value·must·be·valid·JSON.&quot;</span><span·class="p">),</span>101 ········<span·class="s2">&quot;invalid&quot;</span><span·class="p">:</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;Value·must·be·valid·JSON.&quot;</span><span·class="p">),</span>
101 ····<span·class="p">}</span>102 ····<span·class="p">}</span>
102 ····<span·class="n">_default_hint</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;dict&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="si">{}</span><span·class="s2">&quot;</span><span·class="p">)</span>103 ····<span·class="n">_default_hint</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;dict&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="si">{}</span><span·class="s2">&quot;</span><span·class="p">)</span>
Offset 720, 35 lines modifiedOffset 721, 35 lines modified
720 ······721 ······
721 ········722 ········
722 ··········<div·class="yui-b"·id="sidebar">723 ··········<div·class="yui-b"·id="sidebar">
723 ············724 ············
724 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">725 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
725 ········<div·class="sphinxsidebarwrapper">726 ········<div·class="sphinxsidebarwrapper">
726 <search·id="searchbox"·style="display:·none"·role="search">727 <search·id="searchbox"·style="display:·none"·role="search">
727 ··<h3·id="searchlabel">Quick·search</h3>728 ··<h3·id="searchlabel">Ricerca·veloce</h3>
728 ····<div·class="searchformwrapper">729 ····<div·class="searchformwrapper">
729 ····<form·class="search"·action="../../../../../search.html"·method="get">730 ····<form·class="search"·action="../../../../../search.html"·method="get">
730 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>731 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
731 ······<input·type="submit"·value="Go"·/>732 ······<input·type="submit"·value="Vai"·/>
732 ····</form>733 ····</form>
733 ····</div>734 ····</div>
734 </search>735 </search>
735 <script>document.getElementById('searchbox').style.display·=·"block"</script>736 <script>document.getElementById('searchbox').style.display·=·"block"</script>
736 ········</div>737 ········</div>
737 ······</div>738 ······</div>
738 ··············<h3>Last·update:</h3>739 ··············<h3>Last·update:</h3>
739 ··············<p·class="topless">Sep·03,·2024</p>740 ··············<p·class="topless">set·03,·2024</p>
740 ··········</div>741 ··········</div>
741 ········742 ········
742 ······743 ······
743 ····</div>744 ····</div>
  
744 ····<div·id="ft">745 ····<div·id="ft">
745 ······<div·class="nav">746 ······<div·class="nav">
746 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>747 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
747 ····</div>748 ····</div>
748 ··</div>749 ··</div>
  
749 ······<div·class="clearer"></div>750 ······<div·class="clearer"></div>
750 ····</div>751 ····</div>
751 ··</body>752 ··</body>
752 </html>753 </html>
1.95 KB
html2text {}
Max HTML report size reached
12.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/fields/related.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.fields.related·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.fields.related·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-related">69 ··········<div·class="yui-g"·id="_modules-django-db-models-fields-related">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.fields.related</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.fields.related</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
72 <span·class="kn">import</span>·<span·class="nn">inspect</span>73 <span·class="kn">import</span>·<span·class="nn">inspect</span>
73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>74 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>75 <span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
75 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>76 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">SettingsReference</span><span·class="p">,</span>·<span·class="n">settings</span>77 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">SettingsReference</span><span·class="p">,</span>·<span·class="n">settings</span>
Offset 966, 15 lines modifiedOffset 967, 15 lines modified
966 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedGreaterThan</span><span·class="p">)</span>967 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedGreaterThan</span><span·class="p">)</span>
967 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedGreaterThanOrEqual</span><span·class="p">)</span>968 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedGreaterThanOrEqual</span><span·class="p">)</span>
968 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedLessThanOrEqual</span><span·class="p">)</span>969 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedLessThanOrEqual</span><span·class="p">)</span>
969 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedIsNull</span><span·class="p">)</span>970 <span·class="n">ForeignObject</span><span·class="o">.</span><span·class="n">register_lookup</span><span·class="p">(</span><span·class="n">RelatedIsNull</span><span·class="p">)</span>
  
  
970 <div·class="viewcode-block"·id="ForeignKey">971 <div·class="viewcode-block"·id="ForeignKey">
971 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.ForeignKey">[docs]</a>972 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.ForeignKey">[documenti]</a>
972 <span·class="k">class</span>·<span·class="nc">ForeignKey</span><span·class="p">(</span><span·class="n">ForeignObject</span><span·class="p">):</span>973 <span·class="k">class</span>·<span·class="nc">ForeignKey</span><span·class="p">(</span><span·class="n">ForeignObject</span><span·class="p">):</span>
973 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>974 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
974 <span·class="sd">····Provide·a·many-to-one·relation·by·adding·a·column·to·the·local·model</span>975 <span·class="sd">····Provide·a·many-to-one·relation·by·adding·a·column·to·the·local·model</span>
975 <span·class="sd">····to·hold·the·remote·value.</span>976 <span·class="sd">····to·hold·the·remote·value.</span>
  
976 <span·class="sd">····By·default·ForeignKey·will·target·the·pk·of·the·remote·model·but·this</span>977 <span·class="sd">····By·default·ForeignKey·will·target·the·pk·of·the·remote·model·but·this</span>
977 <span·class="sd">····behavior·can·be·changed·by·using·the·``to_field``·argument.</span>978 <span·class="sd">····behavior·can·be·changed·by·using·the·``to_field``·argument.</span>
Offset 1264, 15 lines modifiedOffset 1265, 15 lines modified
1264 ················<span·class="k">if</span>·<span·class="n">output_field</span>·<span·class="ow">is</span>·<span·class="bp">self</span><span·class="p">:</span>1265 ················<span·class="k">if</span>·<span·class="n">output_field</span>·<span·class="ow">is</span>·<span·class="bp">self</span><span·class="p">:</span>
1265 ····················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Cannot·resolve·output_field.&quot;</span><span·class="p">)</span>1266 ····················<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Cannot·resolve·output_field.&quot;</span><span·class="p">)</span>
1266 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_col</span><span·class="p">(</span><span·class="n">alias</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">)</span></div>1267 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_col</span><span·class="p">(</span><span·class="n">alias</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">)</span></div>
  
  
  
1267 <div·class="viewcode-block"·id="OneToOneField">1268 <div·class="viewcode-block"·id="OneToOneField">
1268 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.OneToOneField">[docs]</a>1269 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.OneToOneField">[documenti]</a>
1269 <span·class="k">class</span>·<span·class="nc">OneToOneField</span><span·class="p">(</span><span·class="n">ForeignKey</span><span·class="p">):</span>1270 <span·class="k">class</span>·<span·class="nc">OneToOneField</span><span·class="p">(</span><span·class="n">ForeignKey</span><span·class="p">):</span>
1270 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>1271 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
1271 <span·class="sd">····A·OneToOneField·is·essentially·the·same·as·a·ForeignKey,·with·the·exception</span>1272 <span·class="sd">····A·OneToOneField·is·essentially·the·same·as·a·ForeignKey,·with·the·exception</span>
1272 <span·class="sd">····that·it·always·carries·a·&quot;unique&quot;·constraint·with·it·and·the·reverse</span>1273 <span·class="sd">····that·it·always·carries·a·&quot;unique&quot;·constraint·with·it·and·the·reverse</span>
1273 <span·class="sd">····relation·always·returns·the·object·pointed·to·(since·there·will·only·ever</span>1274 <span·class="sd">····relation·always·returns·the·object·pointed·to·(since·there·will·only·ever</span>
1274 <span·class="sd">····be·one),·rather·than·returning·a·list.</span>1275 <span·class="sd">····be·one),·rather·than·returning·a·list.</span>
1275 <span·class="sd">····&quot;&quot;&quot;</span>1276 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 1374, 15 lines modifiedOffset 1375, 15 lines modified
1374 ················<span·class="n">on_delete</span><span·class="o">=</span><span·class="n">CASCADE</span><span·class="p">,</span>1375 ················<span·class="n">on_delete</span><span·class="o">=</span><span·class="n">CASCADE</span><span·class="p">,</span>
1375 ············<span·class="p">),</span>1376 ············<span·class="p">),</span>
1376 ········<span·class="p">},</span>1377 ········<span·class="p">},</span>
1377 ····<span·class="p">)</span>1378 ····<span·class="p">)</span>
  
  
1378 <div·class="viewcode-block"·id="ManyToManyField">1379 <div·class="viewcode-block"·id="ManyToManyField">
1379 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.ManyToManyField">[docs]</a>1380 <a·class="viewcode-back"·href="../../../../../ref/models/fields.html#django.db.models.ManyToManyField">[documenti]</a>
1380 <span·class="k">class</span>·<span·class="nc">ManyToManyField</span><span·class="p">(</span><span·class="n">RelatedField</span><span·class="p">):</span>1381 <span·class="k">class</span>·<span·class="nc">ManyToManyField</span><span·class="p">(</span><span·class="n">RelatedField</span><span·class="p">):</span>
1381 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>1382 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
1382 <span·class="sd">····Provide·a·many-to-many·relation·by·using·an·intermediary·model·that</span>1383 <span·class="sd">····Provide·a·many-to-many·relation·by·using·an·intermediary·model·that</span>
1383 <span·class="sd">····holds·two·ForeignKey·fields·pointed·at·the·two·sides·of·the·relation.</span>1384 <span·class="sd">····holds·two·ForeignKey·fields·pointed·at·the·two·sides·of·the·relation.</span>
  
1384 <span·class="sd">····Unless·a·``through``·model·was·provided,·ManyToManyField·will·use·the</span>1385 <span·class="sd">····Unless·a·``through``·model·was·provided,·ManyToManyField·will·use·the</span>
1385 <span·class="sd">····create_many_to_many_intermediary_model·factory·to·automatically·generate</span>1386 <span·class="sd">····create_many_to_many_intermediary_model·factory·to·automatically·generate</span>
Offset 2070, 35 lines modifiedOffset 2071, 35 lines modified
2070 ······2071 ······
2071 ········2072 ········
2072 ··········<div·class="yui-b"·id="sidebar">2073 ··········<div·class="yui-b"·id="sidebar">
2073 ············2074 ············
2074 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">2075 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
2075 ········<div·class="sphinxsidebarwrapper">2076 ········<div·class="sphinxsidebarwrapper">
2076 <search·id="searchbox"·style="display:·none"·role="search">2077 <search·id="searchbox"·style="display:·none"·role="search">
2077 ··<h3·id="searchlabel">Quick·search</h3>2078 ··<h3·id="searchlabel">Ricerca·veloce</h3>
2078 ····<div·class="searchformwrapper">2079 ····<div·class="searchformwrapper">
2079 ····<form·class="search"·action="../../../../../search.html"·method="get">2080 ····<form·class="search"·action="../../../../../search.html"·method="get">
2080 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>2081 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
2081 ······<input·type="submit"·value="Go"·/>2082 ······<input·type="submit"·value="Vai"·/>
2082 ····</form>2083 ····</form>
2083 ····</div>2084 ····</div>
2084 </search>2085 </search>
2085 <script>document.getElementById('searchbox').style.display·=·"block"</script>2086 <script>document.getElementById('searchbox').style.display·=·"block"</script>
2086 ········</div>2087 ········</div>
2087 ······</div>2088 ······</div>
2088 ··············<h3>Last·update:</h3>2089 ··············<h3>Last·update:</h3>
2089 ··············<p·class="topless">Sep·03,·2024</p>2090 ··············<p·class="topless">set·03,·2024</p>
2090 ··········</div>2091 ··········</div>
2091 ········2092 ········
2092 ······2093 ······
2093 ····</div>2094 ····</div>
Max diff block lines reached; 311/9180 bytes (3.39%) of diff not shown.
3.12 KB
html2text {}
Max HTML report size reached
3.16 MB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/fields.html
Max HTML report size reached
22.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/functions/comparison.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.functions.comparison·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.functions.comparison·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-functions-comparison">69 ··········<div·class="yui-g"·id="_modules-django-db-models-functions-comparison">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.functions.comparison</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.functions.comparison</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;Database·functions·that·do·comparisons·or·type·conversions.&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;Database·functions·that·do·comparisons·or·type·conversions.&quot;&quot;&quot;</span>
72 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span>73 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">NotSupportedError</span>
73 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Value</span>74 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Value</span>
74 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">TextField</span>75 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">TextField</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields.json</span>·<span·class="kn">import</span>·<span·class="n">JSONField</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields.json</span>·<span·class="kn">import</span>·<span·class="n">JSONField</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.regex_helper</span>·<span·class="kn">import</span>·<span·class="n">_lazy_re_compile</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.regex_helper</span>·<span·class="kn">import</span>·<span·class="n">_lazy_re_compile</span>
  
  
77 <div·class="viewcode-block"·id="Cast">78 <div·class="viewcode-block"·id="Cast">
78 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Cast">[docs]</a>79 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Cast">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">Cast</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">Cast</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Coerce·an·expression·to·a·new·field·type.&quot;&quot;&quot;</span>81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Coerce·an·expression·to·a·new·field·type.&quot;&quot;&quot;</span>
  
81 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;CAST&quot;</span>82 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;CAST&quot;</span>
82 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(function)s</span><span·class="s2">(</span><span·class="si">%(expressions)s</span><span·class="s2">·AS·</span><span·class="si">%(db_type)s</span><span·class="s2">)&quot;</span>83 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(function)s</span><span·class="s2">(</span><span·class="si">%(expressions)s</span><span·class="s2">·AS·</span><span·class="si">%(db_type)s</span><span·class="s2">)&quot;</span>
  
83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">):</span>84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="p">):</span>
Offset 142, 15 lines modifiedOffset 143, 15 lines modified
142 ················<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">template</span><span·class="o">=</span><span·class="n">template</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span>143 ················<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">template</span><span·class="o">=</span><span·class="n">template</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span>
143 ············<span·class="p">)</span>144 ············<span·class="p">)</span>
144 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>145 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>
  
  
  
145 <div·class="viewcode-block"·id="Coalesce">146 <div·class="viewcode-block"·id="Coalesce">
146 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Coalesce">[docs]</a>147 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Coalesce">[documenti]</a>
147 <span·class="k">class</span>·<span·class="nc">Coalesce</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>148 <span·class="k">class</span>·<span·class="nc">Coalesce</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
148 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return,·from·left·to·right,·the·first·non-null·expression.&quot;&quot;&quot;</span>149 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return,·from·left·to·right,·the·first·non-null·expression.&quot;&quot;&quot;</span>
  
149 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COALESCE&quot;</span>150 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COALESCE&quot;</span>
  
150 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>151 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">expressions</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>
151 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">expressions</span><span·class="p">)</span>·<span·class="o">&lt;</span>·<span·class="mi">2</span><span·class="p">:</span>152 ········<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">expressions</span><span·class="p">)</span>·<span·class="o">&lt;</span>·<span·class="mi">2</span><span·class="p">:</span>
Offset 178, 15 lines modifiedOffset 179, 15 lines modified
178 ············<span·class="p">)</span>179 ············<span·class="p">)</span>
179 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">(</span><span·class="n">Coalesce</span><span·class="p">,</span>·<span·class="n">clone</span><span·class="p">)</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span>180 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">(</span><span·class="n">Coalesce</span><span·class="p">,</span>·<span·class="n">clone</span><span·class="p">)</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span>
180 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>181 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>
  
  
  
181 <div·class="viewcode-block"·id="Collate">182 <div·class="viewcode-block"·id="Collate">
182 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Collate">[docs]</a>183 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Collate">[documenti]</a>
183 <span·class="k">class</span>·<span·class="nc">Collate</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>184 <span·class="k">class</span>·<span·class="nc">Collate</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
184 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COLLATE&quot;</span>185 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;COLLATE&quot;</span>
185 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(expressions)s</span><span·class="s2">·</span><span·class="si">%(function)s</span><span·class="s2">·</span><span·class="si">%(collation)s</span><span·class="s2">&quot;</span>186 ····<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%(expressions)s</span><span·class="s2">·</span><span·class="si">%(function)s</span><span·class="s2">·</span><span·class="si">%(collation)s</span><span·class="s2">&quot;</span>
186 ····<span·class="c1">#·Inspired·from</span>187 ····<span·class="c1">#·Inspired·from</span>
187 ····<span·class="c1">#·https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS</span>188 ····<span·class="c1">#·https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS</span>
188 ····<span·class="n">collation_re</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;^[\w\-]+$&quot;</span><span·class="p">)</span>189 ····<span·class="n">collation_re</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;^[\w\-]+$&quot;</span><span·class="p">)</span>
  
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 ····<span·class="k">def</span>·<span·class="nf">as_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">):</span>200 ····<span·class="k">def</span>·<span·class="nf">as_sql</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">):</span>
200 ········<span·class="n">extra_context</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;collation&quot;</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">quote_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">collation</span><span·class="p">))</span>201 ········<span·class="n">extra_context</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;collation&quot;</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">.</span><span·class="n">ops</span><span·class="o">.</span><span·class="n">quote_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">collation</span><span·class="p">))</span>
201 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>202 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">as_sql</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>
  
  
  
202 <div·class="viewcode-block"·id="Greatest">203 <div·class="viewcode-block"·id="Greatest">
203 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Greatest">[docs]</a>204 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Greatest">[documenti]</a>
204 <span·class="k">class</span>·<span·class="nc">Greatest</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>205 <span·class="k">class</span>·<span·class="nc">Greatest</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
205 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>206 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
206 <span·class="sd">····Return·the·maximum·expression.</span>207 <span·class="sd">····Return·the·maximum·expression.</span>
  
207 <span·class="sd">····If·any·expression·is·null·the·return·value·is·database-specific:</span>208 <span·class="sd">····If·any·expression·is·null·the·return·value·is·database-specific:</span>
208 <span·class="sd">····On·PostgreSQL,·the·maximum·not-null·expression·is·returned.</span>209 <span·class="sd">····On·PostgreSQL,·the·maximum·not-null·expression·is·returned.</span>
209 <span·class="sd">····On·MySQL,·Oracle,·and·SQLite,·if·any·expression·is·null,·null·is·returned.</span>210 <span·class="sd">····On·MySQL,·Oracle,·and·SQLite,·if·any·expression·is·null,·null·is·returned.</span>
Offset 223, 15 lines modifiedOffset 224, 15 lines modified
223 ····<span·class="k">def</span>·<span·class="nf">as_sqlite</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">):</span>224 ····<span·class="k">def</span>·<span·class="nf">as_sqlite</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">):</span>
224 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Use·the·MAX·function·on·SQLite.&quot;&quot;&quot;</span>225 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Use·the·MAX·function·on·SQLite.&quot;&quot;&quot;</span>
225 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">as_sqlite</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">function</span><span·class="o">=</span><span·class="s2">&quot;MAX&quot;</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>226 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">as_sqlite</span><span·class="p">(</span><span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">function</span><span·class="o">=</span><span·class="s2">&quot;MAX&quot;</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra_context</span><span·class="p">)</span></div>
  
  
  
226 <div·class="viewcode-block"·id="JSONObject">227 <div·class="viewcode-block"·id="JSONObject">
227 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.JSONObject">[docs]</a>228 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.JSONObject">[documenti]</a>
228 <span·class="k">class</span>·<span·class="nc">JSONObject</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>229 <span·class="k">class</span>·<span·class="nc">JSONObject</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
229 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;JSON_OBJECT&quot;</span>230 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;JSON_OBJECT&quot;</span>
230 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">JSONField</span><span·class="p">()</span>231 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">JSONField</span><span·class="p">()</span>
  
231 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">fields</span><span·class="p">):</span>232 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">fields</span><span·class="p">):</span>
232 ········<span·class="n">expressions</span>·<span·class="o">=</span>·<span·class="p">[]</span>233 ········<span·class="n">expressions</span>·<span·class="o">=</span>·<span·class="p">[]</span>
Max diff block lines reached; 5239/18519 bytes (28.29%) of diff not shown.
4.32 KB
html2text {}
Max HTML report size reached
34.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/functions/datetime.html
Max HTML report size reached
38.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/functions/math.html
Max HTML report size reached
44.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/functions/text.html
Max HTML report size reached
19.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/functions/window.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../../">2 <html·lang="it"·data-content_root="../../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.functions.window·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.functions.window·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../../templatebuiltins.js"></script>16 <script·src="../../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-functions-window">69 ··········<div·class="yui-g"·id="_modules-django-db-models-functions-window">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.functions.window</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.functions.window</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Func</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Func</span>
72 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">FloatField</span><span·class="p">,</span>·<span·class="n">IntegerField</span>73 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="n">FloatField</span><span·class="p">,</span>·<span·class="n">IntegerField</span>
  
73 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span>74 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span>
74 ····<span·class="s2">&quot;CumeDist&quot;</span><span·class="p">,</span>75 ····<span·class="s2">&quot;CumeDist&quot;</span><span·class="p">,</span>
75 ····<span·class="s2">&quot;DenseRank&quot;</span><span·class="p">,</span>76 ····<span·class="s2">&quot;DenseRank&quot;</span><span·class="p">,</span>
76 ····<span·class="s2">&quot;FirstValue&quot;</span><span·class="p">,</span>77 ····<span·class="s2">&quot;FirstValue&quot;</span><span·class="p">,</span>
Offset 86, 33 lines modifiedOffset 87, 33 lines modified
86 ····<span·class="s2">&quot;PercentRank&quot;</span><span·class="p">,</span>87 ····<span·class="s2">&quot;PercentRank&quot;</span><span·class="p">,</span>
87 ····<span·class="s2">&quot;Rank&quot;</span><span·class="p">,</span>88 ····<span·class="s2">&quot;Rank&quot;</span><span·class="p">,</span>
88 ····<span·class="s2">&quot;RowNumber&quot;</span><span·class="p">,</span>89 ····<span·class="s2">&quot;RowNumber&quot;</span><span·class="p">,</span>
89 <span·class="p">]</span>90 <span·class="p">]</span>
  
  
90 <div·class="viewcode-block"·id="CumeDist">91 <div·class="viewcode-block"·id="CumeDist">
91 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.CumeDist">[docs]</a>92 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.CumeDist">[documenti]</a>
92 <span·class="k">class</span>·<span·class="nc">CumeDist</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>93 <span·class="k">class</span>·<span·class="nc">CumeDist</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
93 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;CUME_DIST&quot;</span>94 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;CUME_DIST&quot;</span>
94 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">FloatField</span><span·class="p">()</span>95 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">FloatField</span><span·class="p">()</span>
95 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>96 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
96 <div·class="viewcode-block"·id="DenseRank">97 <div·class="viewcode-block"·id="DenseRank">
97 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.DenseRank">[docs]</a>98 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.DenseRank">[documenti]</a>
98 <span·class="k">class</span>·<span·class="nc">DenseRank</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>99 <span·class="k">class</span>·<span·class="nc">DenseRank</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
99 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;DENSE_RANK&quot;</span>100 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;DENSE_RANK&quot;</span>
100 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">IntegerField</span><span·class="p">()</span>101 ····<span·class="n">output_field</span>·<span·class="o">=</span>·<span·class="n">IntegerField</span><span·class="p">()</span>
101 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>102 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
102 <div·class="viewcode-block"·id="FirstValue">103 <div·class="viewcode-block"·id="FirstValue">
103 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.FirstValue">[docs]</a>104 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.FirstValue">[documenti]</a>
104 <span·class="k">class</span>·<span·class="nc">FirstValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>105 <span·class="k">class</span>·<span·class="nc">FirstValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
105 ····<span·class="n">arity</span>·<span·class="o">=</span>·<span·class="mi">1</span>106 ····<span·class="n">arity</span>·<span·class="o">=</span>·<span·class="mi">1</span>
106 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;FIRST_VALUE&quot;</span>107 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;FIRST_VALUE&quot;</span>
107 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>108 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
Offset 136, 38 lines modifiedOffset 137, 38 lines modified
  
136 ····<span·class="k">def</span>·<span·class="nf">_resolve_output_field</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>137 ····<span·class="k">def</span>·<span·class="nf">_resolve_output_field</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
137 ········<span·class="n">sources</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_source_expressions</span><span·class="p">()</span>138 ········<span·class="n">sources</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_source_expressions</span><span·class="p">()</span>
138 ········<span·class="k">return</span>·<span·class="n">sources</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">output_field</span>139 ········<span·class="k">return</span>·<span·class="n">sources</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">output_field</span>
  
  
139 <div·class="viewcode-block"·id="Lag">140 <div·class="viewcode-block"·id="Lag">
140 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Lag">[docs]</a>141 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Lag">[documenti]</a>
141 <span·class="k">class</span>·<span·class="nc">Lag</span><span·class="p">(</span><span·class="n">LagLeadFunction</span><span·class="p">):</span>142 <span·class="k">class</span>·<span·class="nc">Lag</span><span·class="p">(</span><span·class="n">LagLeadFunction</span><span·class="p">):</span>
142 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LAG&quot;</span></div>143 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LAG&quot;</span></div>
  
  
  
143 <div·class="viewcode-block"·id="LastValue">144 <div·class="viewcode-block"·id="LastValue">
144 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.LastValue">[docs]</a>145 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.LastValue">[documenti]</a>
145 <span·class="k">class</span>·<span·class="nc">LastValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>146 <span·class="k">class</span>·<span·class="nc">LastValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
146 ····<span·class="n">arity</span>·<span·class="o">=</span>·<span·class="mi">1</span>147 ····<span·class="n">arity</span>·<span·class="o">=</span>·<span·class="mi">1</span>
147 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LAST_VALUE&quot;</span>148 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LAST_VALUE&quot;</span>
148 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>149 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span></div>
  
  
  
149 <div·class="viewcode-block"·id="Lead">150 <div·class="viewcode-block"·id="Lead">
150 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Lead">[docs]</a>151 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.Lead">[documenti]</a>
151 <span·class="k">class</span>·<span·class="nc">Lead</span><span·class="p">(</span><span·class="n">LagLeadFunction</span><span·class="p">):</span>152 <span·class="k">class</span>·<span·class="nc">Lead</span><span·class="p">(</span><span·class="n">LagLeadFunction</span><span·class="p">):</span>
152 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LEAD&quot;</span></div>153 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;LEAD&quot;</span></div>
  
  
  
153 <div·class="viewcode-block"·id="NthValue">154 <div·class="viewcode-block"·id="NthValue">
154 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.NthValue">[docs]</a>155 <a·class="viewcode-back"·href="../../../../../ref/models/database-functions.html#django.db.models.functions.NthValue">[documenti]</a>
155 <span·class="k">class</span>·<span·class="nc">NthValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>156 <span·class="k">class</span>·<span·class="nc">NthValue</span><span·class="p">(</span><span·class="n">Func</span><span·class="p">):</span>
156 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;NTH_VALUE&quot;</span>157 ····<span·class="n">function</span>·<span·class="o">=</span>·<span·class="s2">&quot;NTH_VALUE&quot;</span>
157 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span>158 ····<span·class="n">window_compatible</span>·<span·class="o">=</span>·<span·class="kc">True</span>
  
158 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">nth</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>159 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">expression</span><span·class="p">,</span>·<span·class="n">nth</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span><span·class="p">):</span>
159 ········<span·class="k">if</span>·<span·class="n">expression</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>160 ········<span·class="k">if</span>·<span·class="n">expression</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
160 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>161 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span>
Max diff block lines reached; 6032/15805 bytes (38.17%) of diff not shown.
3.69 KB
html2text {}
Max HTML report size reached
8.04 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/indexes.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.indexes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.indexes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 43 lines modifiedOffset 51, 43 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-indexes">69 ··········<div·class="yui-g"·id="_modules-django-db-models-indexes">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.indexes</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.indexes</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.backends.utils</span>·<span·class="kn">import</span>·<span·class="n">names_digest</span><span·class="p">,</span>·<span·class="n">split_identifier</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.db.backends.utils</span>·<span·class="kn">import</span>·<span·class="n">names_digest</span><span·class="p">,</span>·<span·class="n">split_identifier</span>
72 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Col</span><span·class="p">,</span>·<span·class="n">ExpressionList</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">OrderBy</span>73 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Col</span><span·class="p">,</span>·<span·class="n">ExpressionList</span><span·class="p">,</span>·<span·class="n">F</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">OrderBy</span>
73 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions</span>·<span·class="kn">import</span>·<span·class="n">Collate</span>74 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions</span>·<span·class="kn">import</span>·<span·class="n">Collate</span>
74 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">Q</span>75 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">Q</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.models.sql</span>·<span·class="kn">import</span>·<span·class="n">Query</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.models.sql</span>·<span·class="kn">import</span>·<span·class="n">Query</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">partition</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">partition</span>
  
77 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;Index&quot;</span><span·class="p">]</span>78 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;Index&quot;</span><span·class="p">]</span>
  
  
78 <div·class="viewcode-block"·id="Index">79 <div·class="viewcode-block"·id="Index">
79 <a·class="viewcode-back"·href="../../../../ref/models/indexes.html#django.db.models.Index">[docs]</a>80 <a·class="viewcode-back"·href="../../../../ref/models/indexes.html#django.db.models.Index">[documenti]</a>
80 <span·class="k">class</span>·<span·class="nc">Index</span><span·class="p">:</span>81 <span·class="k">class</span>·<span·class="nc">Index</span><span·class="p">:</span>
81 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;idx&quot;</span>82 ····<span·class="n">suffix</span>·<span·class="o">=</span>·<span·class="s2">&quot;idx&quot;</span>
82 ····<span·class="c1">#·The·max·length·of·the·name·of·the·index·(restricted·to·30·for</span>83 ····<span·class="c1">#·The·max·length·of·the·name·of·the·index·(restricted·to·30·for</span>
83 ····<span·class="c1">#·cross-database·compatibility·with·Oracle)</span>84 ····<span·class="c1">#·cross-database·compatibility·with·Oracle)</span>
84 ····<span·class="n">max_name_length</span>·<span·class="o">=</span>·<span·class="mi">30</span>85 ····<span·class="n">max_name_length</span>·<span·class="o">=</span>·<span·class="mi">30</span>
  
85 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>86 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
Offset 377, 35 lines modifiedOffset 378, 35 lines modified
377 ······378 ······
378 ········379 ········
379 ··········<div·class="yui-b"·id="sidebar">380 ··········<div·class="yui-b"·id="sidebar">
380 ············381 ············
381 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">382 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
382 ········<div·class="sphinxsidebarwrapper">383 ········<div·class="sphinxsidebarwrapper">
383 <search·id="searchbox"·style="display:·none"·role="search">384 <search·id="searchbox"·style="display:·none"·role="search">
384 ··<h3·id="searchlabel">Quick·search</h3>385 ··<h3·id="searchlabel">Ricerca·veloce</h3>
385 ····<div·class="searchformwrapper">386 ····<div·class="searchformwrapper">
386 ····<form·class="search"·action="../../../../search.html"·method="get">387 ····<form·class="search"·action="../../../../search.html"·method="get">
387 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>388 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
388 ······<input·type="submit"·value="Go"·/>389 ······<input·type="submit"·value="Vai"·/>
389 ····</form>390 ····</form>
390 ····</div>391 ····</div>
391 </search>392 </search>
392 <script>document.getElementById('searchbox').style.display·=·"block"</script>393 <script>document.getElementById('searchbox').style.display·=·"block"</script>
393 ········</div>394 ········</div>
394 ······</div>395 ······</div>
395 ··············<h3>Last·update:</h3>396 ··············<h3>Last·update:</h3>
396 ··············<p·class="topless">Sep·03,·2024</p>397 ··············<p·class="topless">set·03,·2024</p>
397 ··········</div>398 ··········</div>
398 ········399 ········
399 ······400 ······
400 ····</div>401 ····</div>
  
401 ····<div·id="ft">402 ····<div·id="ft">
402 ······<div·class="nav">403 ······<div·class="nav">
403 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>404 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
404 ····</div>405 ····</div>
405 ··</div>406 ··</div>
  
406 ······<div·class="clearer"></div>407 ······<div·class="clearer"></div>
407 ····</div>408 ····</div>
408 ··</body>409 ··</body>
409 </html>410 </html>
1.99 KB
html2text {}
Max HTML report size reached
16.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/lookups.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.lookups·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.lookups·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-lookups">69 ··········<div·class="yui-g"·id="_modules-django-db-models-lookups">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.lookups</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.lookups</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">itertools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">itertools</span>
72 <span·class="kn">import</span>·<span·class="nn">math</span>73 <span·class="kn">import</span>·<span·class="nn">math</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">EmptyResultSet</span><span·class="p">,</span>·<span·class="n">FullResultSet</span>74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">EmptyResultSet</span><span·class="p">,</span>·<span·class="n">FullResultSet</span>
74 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Case</span><span·class="p">,</span>·<span·class="n">Expression</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Value</span><span·class="p">,</span>·<span·class="n">When</span>75 <span·class="kn">from</span>·<span·class="nn">django.db.models.expressions</span>·<span·class="kn">import</span>·<span·class="n">Case</span><span·class="p">,</span>·<span·class="n">Expression</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">,</span>·<span·class="n">Value</span><span·class="p">,</span>·<span·class="n">When</span>
75 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="p">(</span>76 <span·class="kn">from</span>·<span·class="nn">django.db.models.fields</span>·<span·class="kn">import</span>·<span·class="p">(</span>
76 ····<span·class="n">BooleanField</span><span·class="p">,</span>77 ····<span·class="n">BooleanField</span><span·class="p">,</span>
Offset 87, 15 lines modifiedOffset 88, 15 lines modified
87 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">RegisterLookupMixin</span>88 <span·class="kn">from</span>·<span·class="nn">django.db.models.query_utils</span>·<span·class="kn">import</span>·<span·class="n">RegisterLookupMixin</span>
88 <span·class="kn">from</span>·<span·class="nn">django.utils.datastructures</span>·<span·class="kn">import</span>·<span·class="n">OrderedSet</span>89 <span·class="kn">from</span>·<span·class="nn">django.utils.datastructures</span>·<span·class="kn">import</span>·<span·class="n">OrderedSet</span>
89 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>90 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
90 <span·class="kn">from</span>·<span·class="nn">django.utils.hashable</span>·<span·class="kn">import</span>·<span·class="n">make_hashable</span>91 <span·class="kn">from</span>·<span·class="nn">django.utils.hashable</span>·<span·class="kn">import</span>·<span·class="n">make_hashable</span>
  
  
91 <div·class="viewcode-block"·id="Lookup">92 <div·class="viewcode-block"·id="Lookup">
92 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup">[docs]</a>93 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup">[documenti]</a>
93 <span·class="k">class</span>·<span·class="nc">Lookup</span><span·class="p">(</span><span·class="n">Expression</span><span·class="p">):</span>94 <span·class="k">class</span>·<span·class="nc">Lookup</span><span·class="p">(</span><span·class="n">Expression</span><span·class="p">):</span>
94 ····<span·class="n">lookup_name</span>·<span·class="o">=</span>·<span·class="kc">None</span>95 ····<span·class="n">lookup_name</span>·<span·class="o">=</span>·<span·class="kc">None</span>
95 ····<span·class="n">prepare_rhs</span>·<span·class="o">=</span>·<span·class="kc">True</span>96 ····<span·class="n">prepare_rhs</span>·<span·class="o">=</span>·<span·class="kc">True</span>
96 ····<span·class="n">can_use_none_as_rhs</span>·<span·class="o">=</span>·<span·class="kc">False</span>97 ····<span·class="n">can_use_none_as_rhs</span>·<span·class="o">=</span>·<span·class="kc">False</span>
  
97 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">):</span>98 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span><span·class="p">):</span>
98 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span>99 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">rhs</span>
Offset 167, 28 lines modifiedOffset 168, 28 lines modified
167 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span>168 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span>
168 ········<span·class="k">return</span>·<span·class="n">Value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="p">)</span>169 ········<span·class="k">return</span>·<span·class="n">Value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="p">)</span>
  
169 ····<span·class="k">def</span>·<span·class="nf">get_db_prep_lookup</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>170 ····<span·class="k">def</span>·<span·class="nf">get_db_prep_lookup</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>
170 ········<span·class="k">return</span>·<span·class="p">(</span><span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="p">[</span><span·class="n">value</span><span·class="p">])</span>171 ········<span·class="k">return</span>·<span·class="p">(</span><span·class="s2">&quot;</span><span·class="si">%s</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="p">[</span><span·class="n">value</span><span·class="p">])</span>
  
171 <div·class="viewcode-block"·id="Lookup.process_lhs">172 <div·class="viewcode-block"·id="Lookup.process_lhs">
172 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup.process_lhs">[docs]</a>173 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup.process_lhs">[documenti]</a>
173 ····<span·class="k">def</span>·<span·class="nf">process_lhs</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">lhs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>174 ····<span·class="k">def</span>·<span·class="nf">process_lhs</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">lhs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
174 ········<span·class="n">lhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span>175 ········<span·class="n">lhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span>
175 ········<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="s2">&quot;resolve_expression&quot;</span><span·class="p">):</span>176 ········<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="s2">&quot;resolve_expression&quot;</span><span·class="p">):</span>
176 ············<span·class="n">lhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span><span·class="o">.</span><span·class="n">resolve_expression</span><span·class="p">(</span><span·class="n">compiler</span><span·class="o">.</span><span·class="n">query</span><span·class="p">)</span>177 ············<span·class="n">lhs</span>·<span·class="o">=</span>·<span·class="n">lhs</span><span·class="o">.</span><span·class="n">resolve_expression</span><span·class="p">(</span><span·class="n">compiler</span><span·class="o">.</span><span·class="n">query</span><span·class="p">)</span>
177 ········<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">compile</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">)</span>178 ········<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">compile</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">)</span>
178 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">Lookup</span><span·class="p">):</span>179 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">lhs</span><span·class="p">,</span>·<span·class="n">Lookup</span><span·class="p">):</span>
179 ············<span·class="c1">#·Wrapped·in·parentheses·to·respect·operator·precedence.</span>180 ············<span·class="c1">#·Wrapped·in·parentheses·to·respect·operator·precedence.</span>
180 ············<span·class="n">sql</span>·<span·class="o">=</span>·<span·class="sa">f</span><span·class="s2">&quot;(</span><span·class="si">{</span><span·class="n">sql</span><span·class="si">}</span><span·class="s2">)&quot;</span>181 ············<span·class="n">sql</span>·<span·class="o">=</span>·<span·class="sa">f</span><span·class="s2">&quot;(</span><span·class="si">{</span><span·class="n">sql</span><span·class="si">}</span><span·class="s2">)&quot;</span>
181 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>182 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>
  
  
182 <div·class="viewcode-block"·id="Lookup.process_rhs">183 <div·class="viewcode-block"·id="Lookup.process_rhs">
183 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup.process_rhs">[docs]</a>184 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Lookup.process_rhs">[documenti]</a>
184 ····<span·class="k">def</span>·<span·class="nf">process_rhs</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>185 ····<span·class="k">def</span>·<span·class="nf">process_rhs</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">compiler</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="p">):</span>
185 ········<span·class="n">value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs</span>186 ········<span·class="n">value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs</span>
186 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">bilateral_transforms</span><span·class="p">:</span>187 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">bilateral_transforms</span><span·class="p">:</span>
187 ············<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs_is_direct_value</span><span·class="p">():</span>188 ············<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rhs_is_direct_value</span><span·class="p">():</span>
188 ················<span·class="c1">#·Do·not·call·get_db_prep_lookup·here·as·the·value·will·be</span>189 ················<span·class="c1">#·Do·not·call·get_db_prep_lookup·here·as·the·value·will·be</span>
189 ················<span·class="c1">#·transformed·before·being·used·for·lookup</span>190 ················<span·class="c1">#·transformed·before·being·used·for·lookup</span>
190 ················<span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">Value</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="o">.</span><span·class="n">output_field</span><span·class="p">)</span>191 ················<span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">Value</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">output_field</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lhs</span><span·class="o">.</span><span·class="n">output_field</span><span·class="p">)</span>
Offset 265, 15 lines modifiedOffset 266, 15 lines modified
265 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">features</span><span·class="o">.</span><span·class="n">supports_boolean_expr_in_select_clause</span><span·class="p">:</span>266 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">connection</span><span·class="o">.</span><span·class="n">features</span><span·class="o">.</span><span·class="n">supports_boolean_expr_in_select_clause</span><span·class="p">:</span>
266 ············<span·class="n">sql</span>·<span·class="o">=</span>·<span·class="sa">f</span><span·class="s2">&quot;CASE·WHEN·</span><span·class="si">{</span><span·class="n">sql</span><span·class="si">}</span><span·class="s2">·THEN·1·ELSE·0·END&quot;</span>267 ············<span·class="n">sql</span>·<span·class="o">=</span>·<span·class="sa">f</span><span·class="s2">&quot;CASE·WHEN·</span><span·class="si">{</span><span·class="n">sql</span><span·class="si">}</span><span·class="s2">·THEN·1·ELSE·0·END&quot;</span>
267 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>268 ········<span·class="k">return</span>·<span·class="n">sql</span><span·class="p">,</span>·<span·class="n">params</span></div>
  
  
  
268 <div·class="viewcode-block"·id="Transform">269 <div·class="viewcode-block"·id="Transform">
269 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Transform">[docs]</a>270 <a·class="viewcode-back"·href="../../../../ref/models/lookups.html#django.db.models.Transform">[documenti]</a>
270 <span·class="k">class</span>·<span·class="nc">Transform</span><span·class="p">(</span><span·class="n">RegisterLookupMixin</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>271 <span·class="k">class</span>·<span·class="nc">Transform</span><span·class="p">(</span><span·class="n">RegisterLookupMixin</span><span·class="p">,</span>·<span·class="n">Func</span><span·class="p">):</span>
271 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>272 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
272 <span·class="sd">····RegisterLookupMixin()·is·first·so·that·get_lookup()·and·get_transform()</span>273 <span·class="sd">····RegisterLookupMixin()·is·first·so·that·get_lookup()·and·get_transform()</span>
273 <span·class="sd">····first·examine·self·and·then·check·output_field.</span>274 <span·class="sd">····first·examine·self·and·then·check·output_field.</span>
274 <span·class="sd">····&quot;&quot;&quot;</span>275 <span·class="sd">····&quot;&quot;&quot;</span>
  
275 ····<span·class="n">bilateral</span>·<span·class="o">=</span>·<span·class="kc">False</span>276 ····<span·class="n">bilateral</span>·<span·class="o">=</span>·<span·class="kc">False</span>
Offset 818, 35 lines modifiedOffset 819, 35 lines modified
818 ······819 ······
819 ········820 ········
820 ··········<div·class="yui-b"·id="sidebar">821 ··········<div·class="yui-b"·id="sidebar">
821 ············822 ············
822 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">823 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
823 ········<div·class="sphinxsidebarwrapper">824 ········<div·class="sphinxsidebarwrapper">
824 <search·id="searchbox"·style="display:·none"·role="search">825 <search·id="searchbox"·style="display:·none"·role="search">
825 ··<h3·id="searchlabel">Quick·search</h3>826 ··<h3·id="searchlabel">Ricerca·veloce</h3>
826 ····<div·class="searchformwrapper">827 ····<div·class="searchformwrapper">
827 ····<form·class="search"·action="../../../../search.html"·method="get">828 ····<form·class="search"·action="../../../../search.html"·method="get">
828 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>829 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
Max diff block lines reached; 626/13025 bytes (4.81%) of diff not shown.
3.37 KB
html2text {}
Max HTML report size reached
7.54 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/manager.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.manager·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.manager·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-manager">69 ··········<div·class="yui-g"·id="_modules-django-db-models-manager">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.manager</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.manager</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>
72 <span·class="kn">import</span>·<span·class="nn">inspect</span>73 <span·class="kn">import</span>·<span·class="nn">inspect</span>
73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>74 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
74 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>75 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
  
75 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">router</span>76 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">router</span>
76 <span·class="kn">from</span>·<span·class="nn">django.db.models.query</span>·<span·class="kn">import</span>·<span·class="n">QuerySet</span>77 <span·class="kn">from</span>·<span·class="nn">django.db.models.query</span>·<span·class="kn">import</span>·<span·class="n">QuerySet</span>
Offset 243, 15 lines modifiedOffset 244, 15 lines modified
243 ········<span·class="p">)</span>244 ········<span·class="p">)</span>
  
244 ····<span·class="k">def</span>·<span·class="fm">__hash__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>245 ····<span·class="k">def</span>·<span·class="fm">__hash__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
245 ········<span·class="k">return</span>·<span·class="nb">id</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>246 ········<span·class="k">return</span>·<span·class="nb">id</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>
  
  
246 <div·class="viewcode-block"·id="Manager">247 <div·class="viewcode-block"·id="Manager">
247 <a·class="viewcode-back"·href="../../../../topics/db/managers.html#django.db.models.Manager">[docs]</a>248 <a·class="viewcode-back"·href="../../../../topics/db/managers.html#django.db.models.Manager">[documenti]</a>
248 <span·class="k">class</span>·<span·class="nc">Manager</span><span·class="p">(</span><span·class="n">BaseManager</span><span·class="o">.</span><span·class="n">from_queryset</span><span·class="p">(</span><span·class="n">QuerySet</span><span·class="p">)):</span>249 <span·class="k">class</span>·<span·class="nc">Manager</span><span·class="p">(</span><span·class="n">BaseManager</span><span·class="o">.</span><span·class="n">from_queryset</span><span·class="p">(</span><span·class="n">QuerySet</span><span·class="p">)):</span>
249 ····<span·class="k">pass</span></div>250 ····<span·class="k">pass</span></div>
  
  
  
250 <span·class="k">class</span>·<span·class="nc">ManagerDescriptor</span><span·class="p">:</span>251 <span·class="k">class</span>·<span·class="nc">ManagerDescriptor</span><span·class="p">:</span>
251 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">manager</span><span·class="p">):</span>252 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">manager</span><span·class="p">):</span>
Offset 295, 35 lines modifiedOffset 296, 35 lines modified
295 ······296 ······
296 ········297 ········
297 ··········<div·class="yui-b"·id="sidebar">298 ··········<div·class="yui-b"·id="sidebar">
298 ············299 ············
299 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">300 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
300 ········<div·class="sphinxsidebarwrapper">301 ········<div·class="sphinxsidebarwrapper">
301 <search·id="searchbox"·style="display:·none"·role="search">302 <search·id="searchbox"·style="display:·none"·role="search">
302 ··<h3·id="searchlabel">Quick·search</h3>303 ··<h3·id="searchlabel">Ricerca·veloce</h3>
303 ····<div·class="searchformwrapper">304 ····<div·class="searchformwrapper">
304 ····<form·class="search"·action="../../../../search.html"·method="get">305 ····<form·class="search"·action="../../../../search.html"·method="get">
305 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>306 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
306 ······<input·type="submit"·value="Go"·/>307 ······<input·type="submit"·value="Vai"·/>
307 ····</form>308 ····</form>
308 ····</div>309 ····</div>
309 </search>310 </search>
310 <script>document.getElementById('searchbox').style.display·=·"block"</script>311 <script>document.getElementById('searchbox').style.display·=·"block"</script>
311 ········</div>312 ········</div>
312 ······</div>313 ······</div>
313 ··············<h3>Last·update:</h3>314 ··············<h3>Last·update:</h3>
314 ··············<p·class="topless">Sep·03,·2024</p>315 ··············<p·class="topless">set·03,·2024</p>
315 ··········</div>316 ··········</div>
316 ········317 ········
317 ······318 ······
318 ····</div>319 ····</div>
  
319 ····<div·id="ft">320 ····<div·id="ft">
320 ······<div·class="nav">321 ······<div·class="nav">
321 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>322 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
322 ····</div>323 ····</div>
323 ··</div>324 ··</div>
  
324 ······<div·class="clearer"></div>325 ······<div·class="clearer"></div>
325 ····</div>326 ····</div>
326 ··</body>327 ··</body>
327 </html>328 </html>
1.7 KB
html2text {}
Max HTML report size reached
12.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/options.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.options·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.options·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-options">69 ··········<div·class="yui-g"·id="_modules-django-db-models-options">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.options</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.options</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">bisect</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">bisect</span>
72 <span·class="kn">import</span>·<span·class="nn">copy</span>73 <span·class="kn">import</span>·<span·class="nn">copy</span>
73 <span·class="kn">import</span>·<span·class="nn">inspect</span>74 <span·class="kn">import</span>·<span·class="nn">inspect</span>
74 <span·class="kn">import</span>·<span·class="nn">warnings</span>75 <span·class="kn">import</span>·<span·class="nn">warnings</span>
75 <span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">defaultdict</span>76 <span·class="kn">from</span>·<span·class="nn">collections</span>·<span·class="kn">import</span>·<span·class="n">defaultdict</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>77 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
Offset 154, 15 lines modifiedOffset 155, 15 lines modified
  
  
154 <span·class="k">def</span>·<span·class="nf">make_immutable_fields_list</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>155 <span·class="k">def</span>·<span·class="nf">make_immutable_fields_list</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>
155 ····<span·class="k">return</span>·<span·class="n">ImmutableList</span><span·class="p">(</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">warning</span><span·class="o">=</span><span·class="n">IMMUTABLE_WARNING</span>·<span·class="o">%</span>·<span·class="n">name</span><span·class="p">)</span>156 ····<span·class="k">return</span>·<span·class="n">ImmutableList</span><span·class="p">(</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">warning</span><span·class="o">=</span><span·class="n">IMMUTABLE_WARNING</span>·<span·class="o">%</span>·<span·class="n">name</span><span·class="p">)</span>
  
  
156 <div·class="viewcode-block"·id="Options">157 <div·class="viewcode-block"·id="Options">
157 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options">[docs]</a>158 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options">[documenti]</a>
158 <span·class="k">class</span>·<span·class="nc">Options</span><span·class="p">:</span>159 <span·class="k">class</span>·<span·class="nc">Options</span><span·class="p">:</span>
159 ····<span·class="n">FORWARD_PROPERTIES</span>·<span·class="o">=</span>·<span·class="p">{</span>160 ····<span·class="n">FORWARD_PROPERTIES</span>·<span·class="o">=</span>·<span·class="p">{</span>
160 ········<span·class="s2">&quot;fields&quot;</span><span·class="p">,</span>161 ········<span·class="s2">&quot;fields&quot;</span><span·class="p">,</span>
161 ········<span·class="s2">&quot;many_to_many&quot;</span><span·class="p">,</span>162 ········<span·class="s2">&quot;many_to_many&quot;</span><span·class="p">,</span>
162 ········<span·class="s2">&quot;concrete_fields&quot;</span><span·class="p">,</span>163 ········<span·class="s2">&quot;concrete_fields&quot;</span><span·class="p">,</span>
163 ········<span·class="s2">&quot;local_concrete_fields&quot;</span><span·class="p">,</span>164 ········<span·class="s2">&quot;local_concrete_fields&quot;</span><span·class="p">,</span>
164 ········<span·class="s2">&quot;_non_pk_concrete_field_names&quot;</span><span·class="p">,</span>165 ········<span·class="s2">&quot;_non_pk_concrete_field_names&quot;</span><span·class="p">,</span>
Offset 729, 15 lines modifiedOffset 730, 15 lines modified
729 ············<span·class="k">try</span><span·class="p">:</span>730 ············<span·class="k">try</span><span·class="p">:</span>
730 ················<span·class="n">res</span><span·class="p">[</span><span·class="n">field</span><span·class="o">.</span><span·class="n">attname</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">field</span>731 ················<span·class="n">res</span><span·class="p">[</span><span·class="n">field</span><span·class="o">.</span><span·class="n">attname</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">field</span>
731 ············<span·class="k">except</span>·<span·class="ne">AttributeError</span><span·class="p">:</span>732 ············<span·class="k">except</span>·<span·class="ne">AttributeError</span><span·class="p">:</span>
732 ················<span·class="k">pass</span>733 ················<span·class="k">pass</span>
733 ········<span·class="k">return</span>·<span·class="n">res</span>734 ········<span·class="k">return</span>·<span·class="n">res</span>
  
734 <div·class="viewcode-block"·id="Options.get_field">735 <div·class="viewcode-block"·id="Options.get_field">
735 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options.get_field">[docs]</a>736 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options.get_field">[documenti]</a>
736 ····<span·class="k">def</span>·<span·class="nf">get_field</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">field_name</span><span·class="p">):</span>737 ····<span·class="k">def</span>·<span·class="nf">get_field</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">field_name</span><span·class="p">):</span>
737 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>738 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
738 <span·class="sd">········Return·a·field·instance·given·the·name·of·a·forward·or·reverse·field.</span>739 <span·class="sd">········Return·a·field·instance·given·the·name·of·a·forward·or·reverse·field.</span>
739 <span·class="sd">········&quot;&quot;&quot;</span>740 <span·class="sd">········&quot;&quot;&quot;</span>
740 ········<span·class="k">try</span><span·class="p">:</span>741 ········<span·class="k">try</span><span·class="p">:</span>
741 ············<span·class="c1">#·In·order·to·avoid·premature·loading·of·the·relation·tree</span>742 ············<span·class="c1">#·In·order·to·avoid·premature·loading·of·the·relation·tree</span>
742 ············<span·class="c1">#·(expensive)·we·prefer·checking·if·the·field·is·a·forward·field.</span>743 ············<span·class="c1">#·(expensive)·we·prefer·checking·if·the·field·is·a·forward·field.</span>
Offset 918, 15 lines modifiedOffset 919, 15 lines modified
918 ········<span·class="k">if</span>·<span·class="n">reverse</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">abstract</span><span·class="p">:</span>919 ········<span·class="k">if</span>·<span·class="n">reverse</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">abstract</span><span·class="p">:</span>
919 ············<span·class="k">for</span>·<span·class="n">cache_key</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">REVERSE_PROPERTIES</span><span·class="p">:</span>920 ············<span·class="k">for</span>·<span·class="n">cache_key</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">REVERSE_PROPERTIES</span><span·class="p">:</span>
920 ················<span·class="k">if</span>·<span·class="n">cache_key</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="vm">__dict__</span><span·class="p">:</span>921 ················<span·class="k">if</span>·<span·class="n">cache_key</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="vm">__dict__</span><span·class="p">:</span>
921 ····················<span·class="nb">delattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">cache_key</span><span·class="p">)</span>922 ····················<span·class="nb">delattr</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">cache_key</span><span·class="p">)</span>
922 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_get_fields_cache</span>·<span·class="o">=</span>·<span·class="p">{}</span>923 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_get_fields_cache</span>·<span·class="o">=</span>·<span·class="p">{}</span>
  
923 <div·class="viewcode-block"·id="Options.get_fields">924 <div·class="viewcode-block"·id="Options.get_fields">
924 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options.get_fields">[docs]</a>925 <a·class="viewcode-back"·href="../../../../ref/models/meta.html#django.db.models.options.Options.get_fields">[documenti]</a>
925 ····<span·class="k">def</span>·<span·class="nf">get_fields</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">include_parents</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">include_hidden</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>926 ····<span·class="k">def</span>·<span·class="nf">get_fields</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">include_parents</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">include_hidden</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
926 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>927 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
927 <span·class="sd">········Return·a·list·of·fields·associated·to·the·model.·By·default,·include</span>928 <span·class="sd">········Return·a·list·of·fields·associated·to·the·model.·By·default,·include</span>
928 <span·class="sd">········forward·and·reverse·fields,·fields·derived·from·inheritance,·but·not</span>929 <span·class="sd">········forward·and·reverse·fields,·fields·derived·from·inheritance,·but·not</span>
929 <span·class="sd">········hidden·fields.·The·returned·fields·can·be·changed·using·the·parameters:</span>930 <span·class="sd">········hidden·fields.·The·returned·fields·can·be·changed·using·the·parameters:</span>
  
930 <span·class="sd">········-·include_parents:·include·fields·derived·from·inheritance</span>931 <span·class="sd">········-·include_parents:·include·fields·derived·from·inheritance</span>
Offset 1102, 35 lines modifiedOffset 1103, 35 lines modified
1102 ······1103 ······
1103 ········1104 ········
1104 ··········<div·class="yui-b"·id="sidebar">1105 ··········<div·class="yui-b"·id="sidebar">
1105 ············1106 ············
1106 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">1107 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
1107 ········<div·class="sphinxsidebarwrapper">1108 ········<div·class="sphinxsidebarwrapper">
1108 <search·id="searchbox"·style="display:·none"·role="search">1109 <search·id="searchbox"·style="display:·none"·role="search">
1109 ··<h3·id="searchlabel">Quick·search</h3>1110 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1110 ····<div·class="searchformwrapper">1111 ····<div·class="searchformwrapper">
1111 ····<form·class="search"·action="../../../../search.html"·method="get">1112 ····<form·class="search"·action="../../../../search.html"·method="get">
1112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1113 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1113 ······<input·type="submit"·value="Go"·/>1114 ······<input·type="submit"·value="Vai"·/>
1114 ····</form>1115 ····</form>
1115 ····</div>1116 ····</div>
1116 </search>1117 </search>
1117 <script>document.getElementById('searchbox').style.display·=·"block"</script>1118 <script>document.getElementById('searchbox').style.display·=·"block"</script>
1118 ········</div>1119 ········</div>
1119 ······</div>1120 ······</div>
1120 ··············<h3>Last·update:</h3>1121 ··············<h3>Last·update:</h3>
1121 ··············<p·class="topless">Sep·03,·2024</p>1122 ··············<p·class="topless">set·03,·2024</p>
1122 ··········</div>1123 ··········</div>
1123 ········1124 ········
1124 ······1125 ······
1125 ····</div>1126 ····</div>
Max diff block lines reached; 305/9618 bytes (3.17%) of diff not shown.
3.03 KB
html2text {}
Max HTML report size reached
13.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/query.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.query·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.query·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-query">69 ··········<div·class="yui-g"·id="_modules-django-db-models-query">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.query</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.query</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">The·main·QuerySet·implementation.·This·provides·the·public·API·for·the·ORM.</span>73 <span·class="sd">The·main·QuerySet·implementation.·This·provides·the·public·API·for·the·ORM.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
  
74 <span·class="kn">import</span>·<span·class="nn">copy</span>75 <span·class="kn">import</span>·<span·class="nn">copy</span>
75 <span·class="kn">import</span>·<span·class="nn">operator</span>76 <span·class="kn">import</span>·<span·class="nn">operator</span>
76 <span·class="kn">import</span>·<span·class="nn">warnings</span>77 <span·class="kn">import</span>·<span·class="nn">warnings</span>
Offset 358, 15 lines modifiedOffset 359, 15 lines modified
358 ········<span·class="k">for</span>·<span·class="n">row</span>·<span·class="ow">in</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">results_iter</span><span·class="p">(</span>359 ········<span·class="k">for</span>·<span·class="n">row</span>·<span·class="ow">in</span>·<span·class="n">compiler</span><span·class="o">.</span><span·class="n">results_iter</span><span·class="p">(</span>
359 ············<span·class="n">chunked_fetch</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">chunked_fetch</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">chunk_size</span>360 ············<span·class="n">chunked_fetch</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">chunked_fetch</span><span·class="p">,</span>·<span·class="n">chunk_size</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">chunk_size</span>
360 ········<span·class="p">):</span>361 ········<span·class="p">):</span>
361 ············<span·class="k">yield</span>·<span·class="n">row</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>362 ············<span·class="k">yield</span>·<span·class="n">row</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>
  
  
362 <div·class="viewcode-block"·id="QuerySet">363 <div·class="viewcode-block"·id="QuerySet">
363 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.QuerySet">[docs]</a>364 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.QuerySet">[documenti]</a>
364 <span·class="k">class</span>·<span·class="nc">QuerySet</span><span·class="p">(</span><span·class="n">AltersData</span><span·class="p">):</span>365 <span·class="k">class</span>·<span·class="nc">QuerySet</span><span·class="p">(</span><span·class="n">AltersData</span><span·class="p">):</span>
365 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Represent·a·lazy·database·lookup·for·a·set·of·objects.&quot;&quot;&quot;</span>366 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Represent·a·lazy·database·lookup·for·a·set·of·objects.&quot;&quot;&quot;</span>
  
366 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">query</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">hints</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>367 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">model</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">query</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">hints</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
367 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">model</span>368 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">model</span>
368 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_db</span>·<span·class="o">=</span>·<span·class="n">using</span>369 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_db</span>·<span·class="o">=</span>·<span·class="n">using</span>
369 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_hints</span>·<span·class="o">=</span>·<span·class="n">hints</span>·<span·class="ow">or</span>·<span·class="p">{}</span>370 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_hints</span>·<span·class="o">=</span>·<span·class="n">hints</span>·<span·class="ow">or</span>·<span·class="p">{}</span>
Offset 2217, 15 lines modifiedOffset 2218, 15 lines modified
2217 ········<span·class="k">for</span>·<span·class="n">field</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">fields</span><span·class="p">:</span>2218 ········<span·class="k">for</span>·<span·class="n">field</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">fields</span><span·class="p">:</span>
2218 ············<span·class="n">name</span><span·class="p">,</span>·<span·class="n">column</span>·<span·class="o">=</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">get_attname_column</span><span·class="p">()</span>2219 ············<span·class="n">name</span><span·class="p">,</span>·<span·class="n">column</span>·<span·class="o">=</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">get_attname_column</span><span·class="p">()</span>
2219 ············<span·class="n">model_fields</span><span·class="p">[</span><span·class="n">converter</span><span·class="p">(</span><span·class="n">column</span><span·class="p">)]</span>·<span·class="o">=</span>·<span·class="n">field</span>2220 ············<span·class="n">model_fields</span><span·class="p">[</span><span·class="n">converter</span><span·class="p">(</span><span·class="n">column</span><span·class="p">)]</span>·<span·class="o">=</span>·<span·class="n">field</span>
2220 ········<span·class="k">return</span>·<span·class="n">model_fields</span>2221 ········<span·class="k">return</span>·<span·class="n">model_fields</span>
  
  
2221 <div·class="viewcode-block"·id="Prefetch">2222 <div·class="viewcode-block"·id="Prefetch">
2222 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.Prefetch">[docs]</a>2223 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.Prefetch">[documenti]</a>
2223 <span·class="k">class</span>·<span·class="nc">Prefetch</span><span·class="p">:</span>2224 <span·class="k">class</span>·<span·class="nc">Prefetch</span><span·class="p">:</span>
2224 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">lookup</span><span·class="p">,</span>·<span·class="n">queryset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">to_attr</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>2225 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">lookup</span><span·class="p">,</span>·<span·class="n">queryset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">to_attr</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
2225 ········<span·class="c1">#·`prefetch_through`·is·the·path·we·traverse·to·perform·the·prefetch.</span>2226 ········<span·class="c1">#·`prefetch_through`·is·the·path·we·traverse·to·perform·the·prefetch.</span>
2226 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">prefetch_through</span>·<span·class="o">=</span>·<span·class="n">lookup</span>2227 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">prefetch_through</span>·<span·class="o">=</span>·<span·class="n">lookup</span>
2227 ········<span·class="c1">#·`prefetch_to`·is·the·path·to·the·attribute·that·stores·the·result.</span>2228 ········<span·class="c1">#·`prefetch_to`·is·the·path·to·the·attribute·that·stores·the·result.</span>
2228 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">prefetch_to</span>·<span·class="o">=</span>·<span·class="n">lookup</span>2229 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">prefetch_to</span>·<span·class="o">=</span>·<span·class="n">lookup</span>
2229 ········<span·class="k">if</span>·<span·class="n">queryset</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="p">(</span>2230 ········<span·class="k">if</span>·<span·class="n">queryset</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span>·<span·class="ow">and</span>·<span·class="p">(</span>
Offset 2293, 15 lines modifiedOffset 2294, 15 lines modified
2293 ········<span·class="k">if</span>·<span·class="n">prefix</span><span·class="p">:</span>2294 ········<span·class="k">if</span>·<span·class="n">prefix</span><span·class="p">:</span>
2294 ············<span·class="n">lookup</span><span·class="o">.</span><span·class="n">add_prefix</span><span·class="p">(</span><span·class="n">prefix</span><span·class="p">)</span>2295 ············<span·class="n">lookup</span><span·class="o">.</span><span·class="n">add_prefix</span><span·class="p">(</span><span·class="n">prefix</span><span·class="p">)</span>
2295 ········<span·class="n">ret</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">lookup</span><span·class="p">)</span>2296 ········<span·class="n">ret</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">lookup</span><span·class="p">)</span>
2296 ····<span·class="k">return</span>·<span·class="n">ret</span>2297 ····<span·class="k">return</span>·<span·class="n">ret</span>
  
  
2297 <div·class="viewcode-block"·id="prefetch_related_objects">2298 <div·class="viewcode-block"·id="prefetch_related_objects">
2298 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.prefetch_related_objects">[docs]</a>2299 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.query.prefetch_related_objects">[documenti]</a>
2299 <span·class="k">def</span>·<span·class="nf">prefetch_related_objects</span><span·class="p">(</span><span·class="n">model_instances</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">related_lookups</span><span·class="p">):</span>2300 <span·class="k">def</span>·<span·class="nf">prefetch_related_objects</span><span·class="p">(</span><span·class="n">model_instances</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">related_lookups</span><span·class="p">):</span>
2300 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>2301 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
2301 <span·class="sd">····Populate·prefetched·object·caches·for·a·list·of·model·instances·based·on</span>2302 <span·class="sd">····Populate·prefetched·object·caches·for·a·list·of·model·instances·based·on</span>
2302 <span·class="sd">····the·lookups/Prefetch·instances·given.</span>2303 <span·class="sd">····the·lookups/Prefetch·instances·given.</span>
2303 <span·class="sd">····&quot;&quot;&quot;</span>2304 <span·class="sd">····&quot;&quot;&quot;</span>
2304 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">model_instances</span><span·class="p">:</span>2305 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">model_instances</span><span·class="p">:</span>
2305 ········<span·class="k">return</span>··<span·class="c1">#·nothing·to·do</span>2306 ········<span·class="k">return</span>··<span·class="c1">#·nothing·to·do</span>
Offset 2719, 35 lines modifiedOffset 2720, 35 lines modified
2719 ······2720 ······
2720 ········2721 ········
2721 ··········<div·class="yui-b"·id="sidebar">2722 ··········<div·class="yui-b"·id="sidebar">
2722 ············2723 ············
2723 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">2724 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
2724 ········<div·class="sphinxsidebarwrapper">2725 ········<div·class="sphinxsidebarwrapper">
2725 <search·id="searchbox"·style="display:·none"·role="search">2726 <search·id="searchbox"·style="display:·none"·role="search">
2726 ··<h3·id="searchlabel">Quick·search</h3>2727 ··<h3·id="searchlabel">Ricerca·veloce</h3>
2727 ····<div·class="searchformwrapper">2728 ····<div·class="searchformwrapper">
2728 ····<form·class="search"·action="../../../../search.html"·method="get">2729 ····<form·class="search"·action="../../../../search.html"·method="get">
2729 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>2730 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
2730 ······<input·type="submit"·value="Go"·/>2731 ······<input·type="submit"·value="Vai"·/>
2731 ····</form>2732 ····</form>
2732 ····</div>2733 ····</div>
2733 </search>2734 </search>
2734 <script>document.getElementById('searchbox').style.display·=·"block"</script>2735 <script>document.getElementById('searchbox').style.display·=·"block"</script>
2735 ········</div>2736 ········</div>
2736 ······</div>2737 ······</div>
2737 ··············<h3>Last·update:</h3>2738 ··············<h3>Last·update:</h3>
2738 ··············<p·class="topless">Sep·03,·2024</p>2739 ··············<p·class="topless">set·03,·2024</p>
2739 ··········</div>2740 ··········</div>
2740 ········2741 ········
2741 ······2742 ······
2742 ····</div>2743 ····</div>
Max diff block lines reached; 305/10652 bytes (2.86%) of diff not shown.
3.07 KB
html2text {}
Max HTML report size reached
10.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/models/query_utils.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.models.query_utils·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.models.query_utils·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-models-query_utils">69 ··········<div·class="yui-g"·id="_modules-django-db-models-query_utils">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.models.query_utils</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.models.query_utils</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Various·data·structures·used·in·query·construction.</span>73 <span·class="sd">Various·data·structures·used·in·query·construction.</span>
  
73 <span·class="sd">Factored·out·from·django.db.models.query·to·avoid·making·the·main·module·very</span>74 <span·class="sd">Factored·out·from·django.db.models.query·to·avoid·making·the·main·module·very</span>
74 <span·class="sd">large·and/or·so·that·they·can·be·used·by·other·modules·without·getting·into</span>75 <span·class="sd">large·and/or·so·that·they·can·be·used·by·other·modules·without·getting·into</span>
75 <span·class="sd">circular·import·difficulties.</span>76 <span·class="sd">circular·import·difficulties.</span>
76 <span·class="sd">&quot;&quot;&quot;</span>77 <span·class="sd">&quot;&quot;&quot;</span>
Offset 102, 15 lines modifiedOffset 103, 15 lines modified
102 <span·class="k">def</span>·<span·class="nf">subclasses</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>103 <span·class="k">def</span>·<span·class="nf">subclasses</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>
103 ····<span·class="k">yield</span>·<span·class="bp">cls</span>104 ····<span·class="k">yield</span>·<span·class="bp">cls</span>
104 ····<span·class="k">for</span>·<span·class="n">subclass</span>·<span·class="ow">in</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">__subclasses__</span><span·class="p">():</span>105 ····<span·class="k">for</span>·<span·class="n">subclass</span>·<span·class="ow">in</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">__subclasses__</span><span·class="p">():</span>
105 ········<span·class="k">yield·from</span>·<span·class="n">subclasses</span><span·class="p">(</span><span·class="n">subclass</span><span·class="p">)</span>106 ········<span·class="k">yield·from</span>·<span·class="n">subclasses</span><span·class="p">(</span><span·class="n">subclass</span><span·class="p">)</span>
  
  
106 <div·class="viewcode-block"·id="Q">107 <div·class="viewcode-block"·id="Q">
107 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Q">[docs]</a>108 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.Q">[documenti]</a>
108 <span·class="k">class</span>·<span·class="nc">Q</span><span·class="p">(</span><span·class="n">tree</span><span·class="o">.</span><span·class="n">Node</span><span·class="p">):</span>109 <span·class="k">class</span>·<span·class="nc">Q</span><span·class="p">(</span><span·class="n">tree</span><span·class="o">.</span><span·class="n">Node</span><span·class="p">):</span>
109 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>110 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
110 <span·class="sd">····Encapsulate·filters·as·objects·that·can·then·be·combined·logically·(using</span>111 <span·class="sd">····Encapsulate·filters·as·objects·that·can·then·be·combined·logically·(using</span>
111 <span·class="sd">····`&amp;`·and·`|`).</span>112 <span·class="sd">····`&amp;`·and·`|`).</span>
112 <span·class="sd">····&quot;&quot;&quot;</span>113 <span·class="sd">····&quot;&quot;&quot;</span>
  
113 ····<span·class="c1">#·Connection·types</span>114 ····<span·class="c1">#·Connection·types</span>
Offset 466, 15 lines modifiedOffset 467, 15 lines modified
466 ····<span·class="c1">#·we·are·going·to·turn·this·into·__in=qs.values(&#39;pk&#39;)·later·on.</span>467 ····<span·class="c1">#·we·are·going·to·turn·this·into·__in=qs.values(&#39;pk&#39;)·later·on.</span>
467 ····<span·class="k">return</span>·<span·class="n">check</span><span·class="p">(</span><span·class="n">target_opts</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="p">(</span>468 ····<span·class="k">return</span>·<span·class="n">check</span><span·class="p">(</span><span·class="n">target_opts</span><span·class="p">)</span>·<span·class="ow">or</span>·<span·class="p">(</span>
468 ········<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="s2">&quot;primary_key&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="n">check</span><span·class="p">(</span><span·class="n">field</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="p">)</span>469 ········<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="s2">&quot;primary_key&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>·<span·class="ow">and</span>·<span·class="n">check</span><span·class="p">(</span><span·class="n">field</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="p">)</span>
469 ····<span·class="p">)</span>470 ····<span·class="p">)</span>
  
  
470 <div·class="viewcode-block"·id="FilteredRelation">471 <div·class="viewcode-block"·id="FilteredRelation">
471 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.FilteredRelation">[docs]</a>472 <a·class="viewcode-back"·href="../../../../ref/models/querysets.html#django.db.models.FilteredRelation">[documenti]</a>
472 <span·class="k">class</span>·<span·class="nc">FilteredRelation</span><span·class="p">:</span>473 <span·class="k">class</span>·<span·class="nc">FilteredRelation</span><span·class="p">:</span>
473 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Specify·custom·filtering·in·the·ON·clause·of·SQL·joins.&quot;&quot;&quot;</span>474 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Specify·custom·filtering·in·the·ON·clause·of·SQL·joins.&quot;&quot;&quot;</span>
  
474 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">relation_name</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">condition</span><span·class="o">=</span><span·class="n">Q</span><span·class="p">()):</span>475 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">relation_name</span><span·class="p">,</span>·<span·class="o">*</span><span·class="p">,</span>·<span·class="n">condition</span><span·class="o">=</span><span·class="n">Q</span><span·class="p">()):</span>
475 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">relation_name</span><span·class="p">:</span>476 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">relation_name</span><span·class="p">:</span>
476 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;relation_name·cannot·be·empty.&quot;</span><span·class="p">)</span>477 ············<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;relation_name·cannot·be·empty.&quot;</span><span·class="p">)</span>
477 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">relation_name</span>·<span·class="o">=</span>·<span·class="n">relation_name</span>478 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">relation_name</span>·<span·class="o">=</span>·<span·class="n">relation_name</span>
Offset 520, 35 lines modifiedOffset 521, 35 lines modified
520 ······521 ······
521 ········522 ········
522 ··········<div·class="yui-b"·id="sidebar">523 ··········<div·class="yui-b"·id="sidebar">
523 ············524 ············
524 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">525 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
525 ········<div·class="sphinxsidebarwrapper">526 ········<div·class="sphinxsidebarwrapper">
526 <search·id="searchbox"·style="display:·none"·role="search">527 <search·id="searchbox"·style="display:·none"·role="search">
527 ··<h3·id="searchlabel">Quick·search</h3>528 ··<h3·id="searchlabel">Ricerca·veloce</h3>
528 ····<div·class="searchformwrapper">529 ····<div·class="searchformwrapper">
529 ····<form·class="search"·action="../../../../search.html"·method="get">530 ····<form·class="search"·action="../../../../search.html"·method="get">
530 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>531 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
531 ······<input·type="submit"·value="Go"·/>532 ······<input·type="submit"·value="Vai"·/>
532 ····</form>533 ····</form>
533 ····</div>534 ····</div>
534 </search>535 </search>
535 <script>document.getElementById('searchbox').style.display·=·"block"</script>536 <script>document.getElementById('searchbox').style.display·=·"block"</script>
536 ········</div>537 ········</div>
537 ······</div>538 ······</div>
538 ··············<h3>Last·update:</h3>539 ··············<h3>Last·update:</h3>
539 ··············<p·class="topless">Sep·03,·2024</p>540 ··············<p·class="topless">set·03,·2024</p>
540 ··········</div>541 ··········</div>
541 ········542 ········
542 ······543 ······
543 ····</div>544 ····</div>
  
544 ····<div·id="ft">545 ····<div·id="ft">
545 ······<div·class="nav">546 ······<div·class="nav">
546 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>547 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
547 ····</div>548 ····</div>
548 ··</div>549 ··</div>
  
549 ······<div·class="clearer"></div>550 ······<div·class="clearer"></div>
550 ····</div>551 ····</div>
551 ··</body>552 ··</body>
552 </html>553 </html>
2.54 KB
html2text {}
Max HTML report size reached
26.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/transaction.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.transaction·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.transaction·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 44 lines modifiedOffset 51, 44 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-transaction">69 ··········<div·class="yui-g"·id="_modules-django-db-transaction">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.transaction</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.transaction</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">ContextDecorator</span><span·class="p">,</span>·<span·class="n">contextmanager</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">ContextDecorator</span><span·class="p">,</span>·<span·class="n">contextmanager</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="p">(</span>73 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="p">(</span>
73 ····<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>74 ····<span·class="n">DEFAULT_DB_ALIAS</span><span·class="p">,</span>
74 ····<span·class="n">DatabaseError</span><span·class="p">,</span>75 ····<span·class="n">DatabaseError</span><span·class="p">,</span>
75 ····<span·class="n">Error</span><span·class="p">,</span>76 ····<span·class="n">Error</span><span·class="p">,</span>
76 ····<span·class="n">ProgrammingError</span><span·class="p">,</span>77 ····<span·class="n">ProgrammingError</span><span·class="p">,</span>
77 ····<span·class="n">connections</span><span·class="p">,</span>78 ····<span·class="n">connections</span><span·class="p">,</span>
78 <span·class="p">)</span>79 <span·class="p">)</span>
  
  
79 <div·class="viewcode-block"·id="TransactionManagementError">80 <div·class="viewcode-block"·id="TransactionManagementError">
80 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.transaction.TransactionManagementError">[docs]</a>81 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.transaction.TransactionManagementError">[documenti]</a>
81 <span·class="k">class</span>·<span·class="nc">TransactionManagementError</span><span·class="p">(</span><span·class="n">ProgrammingError</span><span·class="p">):</span>82 <span·class="k">class</span>·<span·class="nc">TransactionManagementError</span><span·class="p">(</span><span·class="n">ProgrammingError</span><span·class="p">):</span>
82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Transaction·management·is·used·improperly.&quot;&quot;&quot;</span>83 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Transaction·management·is·used·improperly.&quot;&quot;&quot;</span>
  
83 ····<span·class="k">pass</span></div>84 ····<span·class="k">pass</span></div>
  
  
  
Offset 98, 99 lines modifiedOffset 99, 99 lines modified
98 <span·class="sd">····&quot;&quot;&quot;</span>99 <span·class="sd">····&quot;&quot;&quot;</span>
99 ····<span·class="k">if</span>·<span·class="n">using</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>100 ····<span·class="k">if</span>·<span·class="n">using</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
100 ········<span·class="n">using</span>·<span·class="o">=</span>·<span·class="n">DEFAULT_DB_ALIAS</span>101 ········<span·class="n">using</span>·<span·class="o">=</span>·<span·class="n">DEFAULT_DB_ALIAS</span>
101 ····<span·class="k">return</span>·<span·class="n">connections</span><span·class="p">[</span><span·class="n">using</span><span·class="p">]</span>102 ····<span·class="k">return</span>·<span·class="n">connections</span><span·class="p">[</span><span·class="n">using</span><span·class="p">]</span>
  
  
102 <div·class="viewcode-block"·id="get_autocommit">103 <div·class="viewcode-block"·id="get_autocommit">
103 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.get_autocommit">[docs]</a>104 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.get_autocommit">[documenti]</a>
104 <span·class="k">def</span>·<span·class="nf">get_autocommit</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>105 <span·class="k">def</span>·<span·class="nf">get_autocommit</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
105 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Get·the·autocommit·status·of·the·connection.&quot;&quot;&quot;</span>106 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Get·the·autocommit·status·of·the·connection.&quot;&quot;&quot;</span>
106 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">get_autocommit</span><span·class="p">()</span></div>107 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">get_autocommit</span><span·class="p">()</span></div>
  
  
  
107 <div·class="viewcode-block"·id="set_autocommit">108 <div·class="viewcode-block"·id="set_autocommit">
108 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.set_autocommit">[docs]</a>109 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.set_autocommit">[documenti]</a>
109 <span·class="k">def</span>·<span·class="nf">set_autocommit</span><span·class="p">(</span><span·class="n">autocommit</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>110 <span·class="k">def</span>·<span·class="nf">set_autocommit</span><span·class="p">(</span><span·class="n">autocommit</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
110 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Set·the·autocommit·status·of·the·connection.&quot;&quot;&quot;</span>111 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Set·the·autocommit·status·of·the·connection.&quot;&quot;&quot;</span>
111 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">set_autocommit</span><span·class="p">(</span><span·class="n">autocommit</span><span·class="p">)</span></div>112 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">set_autocommit</span><span·class="p">(</span><span·class="n">autocommit</span><span·class="p">)</span></div>
  
  
  
112 <div·class="viewcode-block"·id="commit">113 <div·class="viewcode-block"·id="commit">
113 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.commit">[docs]</a>114 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.commit">[documenti]</a>
114 <span·class="k">def</span>·<span·class="nf">commit</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>115 <span·class="k">def</span>·<span·class="nf">commit</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
115 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Commit·a·transaction.&quot;&quot;&quot;</span>116 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Commit·a·transaction.&quot;&quot;&quot;</span>
116 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">commit</span><span·class="p">()</span></div>117 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">commit</span><span·class="p">()</span></div>
  
  
  
117 <div·class="viewcode-block"·id="rollback">118 <div·class="viewcode-block"·id="rollback">
118 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.rollback">[docs]</a>119 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.rollback">[documenti]</a>
119 <span·class="k">def</span>·<span·class="nf">rollback</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>120 <span·class="k">def</span>·<span·class="nf">rollback</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
120 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Roll·back·a·transaction.&quot;&quot;&quot;</span>121 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Roll·back·a·transaction.&quot;&quot;&quot;</span>
121 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">rollback</span><span·class="p">()</span></div>122 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">rollback</span><span·class="p">()</span></div>
  
  
  
122 <div·class="viewcode-block"·id="savepoint">123 <div·class="viewcode-block"·id="savepoint">
123 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.savepoint">[docs]</a>124 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.savepoint">[documenti]</a>
124 <span·class="k">def</span>·<span·class="nf">savepoint</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>125 <span·class="k">def</span>·<span·class="nf">savepoint</span><span·class="p">(</span><span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
125 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>126 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
126 <span·class="sd">····Create·a·savepoint·(if·supported·and·required·by·the·backend)·inside·the</span>127 <span·class="sd">····Create·a·savepoint·(if·supported·and·required·by·the·backend)·inside·the</span>
127 <span·class="sd">····current·transaction.·Return·an·identifier·for·the·savepoint·that·will·be</span>128 <span·class="sd">····current·transaction.·Return·an·identifier·for·the·savepoint·that·will·be</span>
128 <span·class="sd">····used·for·the·subsequent·rollback·or·commit.</span>129 <span·class="sd">····used·for·the·subsequent·rollback·or·commit.</span>
129 <span·class="sd">····&quot;&quot;&quot;</span>130 <span·class="sd">····&quot;&quot;&quot;</span>
130 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">savepoint</span><span·class="p">()</span></div>131 ····<span·class="k">return</span>·<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">savepoint</span><span·class="p">()</span></div>
  
  
  
131 <div·class="viewcode-block"·id="savepoint_rollback">132 <div·class="viewcode-block"·id="savepoint_rollback">
132 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.savepoint_rollback">[docs]</a>133 <a·class="viewcode-back"·href="../../../topics/db/transactions.html#django.db.transaction.savepoint_rollback">[documenti]</a>
133 <span·class="k">def</span>·<span·class="nf">savepoint_rollback</span><span·class="p">(</span><span·class="n">sid</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>134 <span·class="k">def</span>·<span·class="nf">savepoint_rollback</span><span·class="p">(</span><span·class="n">sid</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
134 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>135 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
135 <span·class="sd">····Roll·back·the·most·recent·savepoint·(if·one·exists).·Do·nothing·if</span>136 <span·class="sd">····Roll·back·the·most·recent·savepoint·(if·one·exists).·Do·nothing·if</span>
136 <span·class="sd">····savepoints·are·not·supported.</span>137 <span·class="sd">····savepoints·are·not·supported.</span>
137 <span·class="sd">····&quot;&quot;&quot;</span>138 <span·class="sd">····&quot;&quot;&quot;</span>
138 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">savepoint_rollback</span><span·class="p">(</span><span·class="n">sid</span><span·class="p">)</span></div>139 ····<span·class="n">get_connection</span><span·class="p">(</span><span·class="n">using</span><span·class="p">)</span><span·class="o">.</span><span·class="n">savepoint_rollback</span><span·class="p">(</span><span·class="n">sid</span><span·class="p">)</span></div>
  
Max diff block lines reached; 11209/21163 bytes (52.97%) of diff not shown.
5.6 KB
html2text {}
Max HTML report size reached
11.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/db/utils.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.db.utils·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.db.utils·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-db-utils">69 ··········<div·class="yui-g"·id="_modules-django-db-utils">
69 ············70 ············
70 ··<h1>Source·code·for·django.db.utils</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.db.utils</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">pkgutil</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">pkgutil</span>
72 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>73 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>
  
75 <span·class="c1">#·For·backwards·compatibility·with·Django·&lt;·3.2</span>76 <span·class="c1">#·For·backwards·compatibility·with·Django·&lt;·3.2</span>
Offset 84, 71 lines modifiedOffset 85, 71 lines modified
84 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>85 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>
  
85 <span·class="n">DEFAULT_DB_ALIAS</span>·<span·class="o">=</span>·<span·class="s2">&quot;default&quot;</span>86 <span·class="n">DEFAULT_DB_ALIAS</span>·<span·class="o">=</span>·<span·class="s2">&quot;default&quot;</span>
86 <span·class="n">DJANGO_VERSION_PICKLE_KEY</span>·<span·class="o">=</span>·<span·class="s2">&quot;_django_version&quot;</span>87 <span·class="n">DJANGO_VERSION_PICKLE_KEY</span>·<span·class="o">=</span>·<span·class="s2">&quot;_django_version&quot;</span>
  
  
87 <div·class="viewcode-block"·id="Error">88 <div·class="viewcode-block"·id="Error">
88 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.Error">[docs]</a>89 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.Error">[documenti]</a>
89 <span·class="k">class</span>·<span·class="nc">Error</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>90 <span·class="k">class</span>·<span·class="nc">Error</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
90 ····<span·class="k">pass</span></div>91 ····<span·class="k">pass</span></div>
  
  
  
91 <div·class="viewcode-block"·id="InterfaceError">92 <div·class="viewcode-block"·id="InterfaceError">
92 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.InterfaceError">[docs]</a>93 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.InterfaceError">[documenti]</a>
93 <span·class="k">class</span>·<span·class="nc">InterfaceError</span><span·class="p">(</span><span·class="n">Error</span><span·class="p">):</span>94 <span·class="k">class</span>·<span·class="nc">InterfaceError</span><span·class="p">(</span><span·class="n">Error</span><span·class="p">):</span>
94 ····<span·class="k">pass</span></div>95 ····<span·class="k">pass</span></div>
  
  
  
95 <div·class="viewcode-block"·id="DatabaseError">96 <div·class="viewcode-block"·id="DatabaseError">
96 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.DatabaseError">[docs]</a>97 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.DatabaseError">[documenti]</a>
97 <span·class="k">class</span>·<span·class="nc">DatabaseError</span><span·class="p">(</span><span·class="n">Error</span><span·class="p">):</span>98 <span·class="k">class</span>·<span·class="nc">DatabaseError</span><span·class="p">(</span><span·class="n">Error</span><span·class="p">):</span>
98 ····<span·class="k">pass</span></div>99 ····<span·class="k">pass</span></div>
  
  
  
99 <div·class="viewcode-block"·id="DataError">100 <div·class="viewcode-block"·id="DataError">
100 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.DataError">[docs]</a>101 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.DataError">[documenti]</a>
101 <span·class="k">class</span>·<span·class="nc">DataError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>102 <span·class="k">class</span>·<span·class="nc">DataError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
102 ····<span·class="k">pass</span></div>103 ····<span·class="k">pass</span></div>
  
  
  
103 <div·class="viewcode-block"·id="OperationalError">104 <div·class="viewcode-block"·id="OperationalError">
104 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.OperationalError">[docs]</a>105 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.OperationalError">[documenti]</a>
105 <span·class="k">class</span>·<span·class="nc">OperationalError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>106 <span·class="k">class</span>·<span·class="nc">OperationalError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
106 ····<span·class="k">pass</span></div>107 ····<span·class="k">pass</span></div>
  
  
  
107 <div·class="viewcode-block"·id="IntegrityError">108 <div·class="viewcode-block"·id="IntegrityError">
108 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.IntegrityError">[docs]</a>109 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.IntegrityError">[documenti]</a>
109 <span·class="k">class</span>·<span·class="nc">IntegrityError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>110 <span·class="k">class</span>·<span·class="nc">IntegrityError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
110 ····<span·class="k">pass</span></div>111 ····<span·class="k">pass</span></div>
  
  
  
111 <div·class="viewcode-block"·id="InternalError">112 <div·class="viewcode-block"·id="InternalError">
112 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.InternalError">[docs]</a>113 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.InternalError">[documenti]</a>
113 <span·class="k">class</span>·<span·class="nc">InternalError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>114 <span·class="k">class</span>·<span·class="nc">InternalError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
114 ····<span·class="k">pass</span></div>115 ····<span·class="k">pass</span></div>
  
  
  
115 <div·class="viewcode-block"·id="ProgrammingError">116 <div·class="viewcode-block"·id="ProgrammingError">
116 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.ProgrammingError">[docs]</a>117 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.ProgrammingError">[documenti]</a>
117 <span·class="k">class</span>·<span·class="nc">ProgrammingError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>118 <span·class="k">class</span>·<span·class="nc">ProgrammingError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
118 ····<span·class="k">pass</span></div>119 ····<span·class="k">pass</span></div>
  
  
  
119 <div·class="viewcode-block"·id="NotSupportedError">120 <div·class="viewcode-block"·id="NotSupportedError">
120 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.NotSupportedError">[docs]</a>121 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.db.NotSupportedError">[documenti]</a>
121 <span·class="k">class</span>·<span·class="nc">NotSupportedError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>122 <span·class="k">class</span>·<span·class="nc">NotSupportedError</span><span·class="p">(</span><span·class="n">DatabaseError</span><span·class="p">):</span>
122 ····<span·class="k">pass</span></div>123 ····<span·class="k">pass</span></div>
  
  
  
123 <span·class="k">class</span>·<span·class="nc">DatabaseErrorWrapper</span><span·class="p">:</span>124 <span·class="k">class</span>·<span·class="nc">DatabaseErrorWrapper</span><span·class="p">:</span>
124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>125 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
Offset 384, 35 lines modifiedOffset 385, 35 lines modified
Max diff block lines reached; 1307/8983 bytes (14.55%) of diff not shown.
2.71 KB
html2text {}
Max HTML report size reached
17.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/dispatch/dispatcher.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.dispatch.dispatcher·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.dispatch.dispatcher·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-dispatch-dispatcher">69 ··········<div·class="yui-g"·id="_modules-django-dispatch-dispatcher">
69 ············70 ············
70 ··<h1>Source·code·for·django.dispatch.dispatcher</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.dispatch.dispatcher</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>
72 <span·class="kn">import</span>·<span·class="nn">threading</span>73 <span·class="kn">import</span>·<span·class="nn">threading</span>
73 <span·class="kn">import</span>·<span·class="nn">weakref</span>74 <span·class="kn">import</span>·<span·class="nn">weakref</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.utils.inspect</span>·<span·class="kn">import</span>·<span·class="n">func_accepts_kwargs</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.inspect</span>·<span·class="kn">import</span>·<span·class="n">func_accepts_kwargs</span>
  
75 <span·class="n">logger</span>·<span·class="o">=</span>·<span·class="n">logging</span><span·class="o">.</span><span·class="n">getLogger</span><span·class="p">(</span><span·class="s2">&quot;django.dispatch&quot;</span><span·class="p">)</span>76 <span·class="n">logger</span>·<span·class="o">=</span>·<span·class="n">logging</span><span·class="o">.</span><span·class="n">getLogger</span><span·class="p">(</span><span·class="s2">&quot;django.dispatch&quot;</span><span·class="p">)</span>
Offset 89, 15 lines modifiedOffset 90, 15 lines modified
89 <span·class="n">NONE_ID</span>·<span·class="o">=</span>·<span·class="n">_make_id</span><span·class="p">(</span><span·class="kc">None</span><span·class="p">)</span>90 <span·class="n">NONE_ID</span>·<span·class="o">=</span>·<span·class="n">_make_id</span><span·class="p">(</span><span·class="kc">None</span><span·class="p">)</span>
  
90 <span·class="c1">#·A·marker·for·caching</span>91 <span·class="c1">#·A·marker·for·caching</span>
91 <span·class="n">NO_RECEIVERS</span>·<span·class="o">=</span>·<span·class="nb">object</span><span·class="p">()</span>92 <span·class="n">NO_RECEIVERS</span>·<span·class="o">=</span>·<span·class="nb">object</span><span·class="p">()</span>
  
  
92 <div·class="viewcode-block"·id="Signal">93 <div·class="viewcode-block"·id="Signal">
93 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal">[docs]</a>94 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal">[documenti]</a>
94 <span·class="k">class</span>·<span·class="nc">Signal</span><span·class="p">:</span>95 <span·class="k">class</span>·<span·class="nc">Signal</span><span·class="p">:</span>
95 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>96 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
96 <span·class="sd">····Base·class·for·all·signals</span>97 <span·class="sd">····Base·class·for·all·signals</span>
  
97 <span·class="sd">····Internal·attributes:</span>98 <span·class="sd">····Internal·attributes:</span>
  
98 <span·class="sd">········receivers</span>99 <span·class="sd">········receivers</span>
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 ········<span·class="c1">#·distinct·sender·we·cache·the·receivers·that·sender·has·in</span>117 ········<span·class="c1">#·distinct·sender·we·cache·the·receivers·that·sender·has·in</span>
117 ········<span·class="c1">#·&#39;sender_receivers_cache&#39;.·The·cache·is·cleaned·when·.connect()·or</span>118 ········<span·class="c1">#·&#39;sender_receivers_cache&#39;.·The·cache·is·cleaned·when·.connect()·or</span>
118 ········<span·class="c1">#·.disconnect()·is·called·and·populated·on·send().</span>119 ········<span·class="c1">#·.disconnect()·is·called·and·populated·on·send().</span>
119 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sender_receivers_cache</span>·<span·class="o">=</span>·<span·class="n">weakref</span><span·class="o">.</span><span·class="n">WeakKeyDictionary</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">use_caching</span>·<span·class="k">else</span>·<span·class="p">{}</span>120 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sender_receivers_cache</span>·<span·class="o">=</span>·<span·class="n">weakref</span><span·class="o">.</span><span·class="n">WeakKeyDictionary</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">use_caching</span>·<span·class="k">else</span>·<span·class="p">{}</span>
120 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_dead_receivers</span>·<span·class="o">=</span>·<span·class="kc">False</span>121 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">_dead_receivers</span>·<span·class="o">=</span>·<span·class="kc">False</span>
  
121 <div·class="viewcode-block"·id="Signal.connect">122 <div·class="viewcode-block"·id="Signal.connect">
122 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.connect">[docs]</a>123 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.connect">[documenti]</a>
123 ····<span·class="k">def</span>·<span·class="nf">connect</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">weak</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">dispatch_uid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>124 ····<span·class="k">def</span>·<span·class="nf">connect</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">weak</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">dispatch_uid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
124 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>125 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
125 <span·class="sd">········Connect·receiver·to·sender·for·signal.</span>126 <span·class="sd">········Connect·receiver·to·sender·for·signal.</span>
  
126 <span·class="sd">········Arguments:</span>127 <span·class="sd">········Arguments:</span>
  
127 <span·class="sd">············receiver</span>128 <span·class="sd">············receiver</span>
Offset 185, 15 lines modifiedOffset 186, 15 lines modified
185 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_clear_dead_receivers</span><span·class="p">()</span>186 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_clear_dead_receivers</span><span·class="p">()</span>
186 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">any</span><span·class="p">(</span><span·class="n">r_key</span>·<span·class="o">==</span>·<span·class="n">lookup_key</span>·<span·class="k">for</span>·<span·class="n">r_key</span><span·class="p">,</span>·<span·class="n">_</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">receivers</span><span·class="p">):</span>187 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">any</span><span·class="p">(</span><span·class="n">r_key</span>·<span·class="o">==</span>·<span·class="n">lookup_key</span>·<span·class="k">for</span>·<span·class="n">r_key</span><span·class="p">,</span>·<span·class="n">_</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">receivers</span><span·class="p">):</span>
187 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">receivers</span><span·class="o">.</span><span·class="n">append</span><span·class="p">((</span><span·class="n">lookup_key</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">))</span>188 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">receivers</span><span·class="o">.</span><span·class="n">append</span><span·class="p">((</span><span·class="n">lookup_key</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">))</span>
188 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">sender_receivers_cache</span><span·class="o">.</span><span·class="n">clear</span><span·class="p">()</span></div>189 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">sender_receivers_cache</span><span·class="o">.</span><span·class="n">clear</span><span·class="p">()</span></div>
  
  
189 <div·class="viewcode-block"·id="Signal.disconnect">190 <div·class="viewcode-block"·id="Signal.disconnect">
190 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.disconnect">[docs]</a>191 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.disconnect">[documenti]</a>
191 ····<span·class="k">def</span>·<span·class="nf">disconnect</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">dispatch_uid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>192 ····<span·class="k">def</span>·<span·class="nf">disconnect</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">dispatch_uid</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
192 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>193 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
193 <span·class="sd">········Disconnect·receiver·from·sender·for·signal.</span>194 <span·class="sd">········Disconnect·receiver·from·sender·for·signal.</span>
  
194 <span·class="sd">········If·weak·references·are·used,·disconnect·need·not·be·called.·The·receiver</span>195 <span·class="sd">········If·weak·references·are·used,·disconnect·need·not·be·called.·The·receiver</span>
195 <span·class="sd">········will·be·removed·from·dispatch·automatically.</span>196 <span·class="sd">········will·be·removed·from·dispatch·automatically.</span>
  
Offset 227, 15 lines modifiedOffset 228, 15 lines modified
227 ········<span·class="k">return</span>·<span·class="n">disconnected</span></div>228 ········<span·class="k">return</span>·<span·class="n">disconnected</span></div>
  
  
228 ····<span·class="k">def</span>·<span·class="nf">has_listeners</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>229 ····<span·class="k">def</span>·<span·class="nf">has_listeners</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
229 ········<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_live_receivers</span><span·class="p">(</span><span·class="n">sender</span><span·class="p">))</span>230 ········<span·class="k">return</span>·<span·class="nb">bool</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">_live_receivers</span><span·class="p">(</span><span·class="n">sender</span><span·class="p">))</span>
  
230 <div·class="viewcode-block"·id="Signal.send">231 <div·class="viewcode-block"·id="Signal.send">
231 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.send">[docs]</a>232 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.send">[documenti]</a>
232 ····<span·class="k">def</span>·<span·class="nf">send</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">named</span><span·class="p">):</span>233 ····<span·class="k">def</span>·<span·class="nf">send</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">named</span><span·class="p">):</span>
233 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>234 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
234 <span·class="sd">········Send·signal·from·sender·to·all·connected·receivers.</span>235 <span·class="sd">········Send·signal·from·sender·to·all·connected·receivers.</span>
  
235 <span·class="sd">········If·any·receiver·raises·an·error,·the·error·propagates·back·through·send,</span>236 <span·class="sd">········If·any·receiver·raises·an·error,·the·error·propagates·back·through·send,</span>
236 <span·class="sd">········terminating·the·dispatch·loop.·So·it&#39;s·possible·that·all·receivers</span>237 <span·class="sd">········terminating·the·dispatch·loop.·So·it&#39;s·possible·that·all·receivers</span>
237 <span·class="sd">········won&#39;t·be·called·if·an·error·is·raised.</span>238 <span·class="sd">········won&#39;t·be·called·if·an·error·is·raised.</span>
Offset 259, 15 lines modifiedOffset 260, 15 lines modified
259 ········<span·class="k">return</span>·<span·class="p">[</span>260 ········<span·class="k">return</span>·<span·class="p">[</span>
260 ············<span·class="p">(</span><span·class="n">receiver</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">(</span><span·class="n">signal</span><span·class="o">=</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="n">sender</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">named</span><span·class="p">))</span>261 ············<span·class="p">(</span><span·class="n">receiver</span><span·class="p">,</span>·<span·class="n">receiver</span><span·class="p">(</span><span·class="n">signal</span><span·class="o">=</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">sender</span><span·class="o">=</span><span·class="n">sender</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">named</span><span·class="p">))</span>
261 ············<span·class="k">for</span>·<span·class="n">receiver</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_live_receivers</span><span·class="p">(</span><span·class="n">sender</span><span·class="p">)</span>262 ············<span·class="k">for</span>·<span·class="n">receiver</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_live_receivers</span><span·class="p">(</span><span·class="n">sender</span><span·class="p">)</span>
262 ········<span·class="p">]</span></div>263 ········<span·class="p">]</span></div>
  
  
263 <div·class="viewcode-block"·id="Signal.send_robust">264 <div·class="viewcode-block"·id="Signal.send_robust">
264 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.send_robust">[docs]</a>265 <a·class="viewcode-back"·href="../../../topics/signals.html#django.dispatch.Signal.send_robust">[documenti]</a>
Max diff block lines reached; 2805/13891 bytes (20.19%) of diff not shown.
3.99 KB
html2text {}
Max HTML report size reached
24.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/boundfield.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.forms.boundfield·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.forms.boundfield·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 45 lines modifiedOffset 51, 45 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-forms-boundfield">69 ··········<div·class="yui-g"·id="_modules-django-forms-boundfield">
69 ············70 ············
70 ··<h1>Source·code·for·django.forms.boundfield</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.forms.boundfield</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>
73 <span·class="kn">from</span>·<span·class="nn">django.forms.utils</span>·<span·class="kn">import</span>·<span·class="n">pretty_name</span>74 <span·class="kn">from</span>·<span·class="nn">django.forms.utils</span>·<span·class="kn">import</span>·<span·class="n">pretty_name</span>
74 <span·class="kn">from</span>·<span·class="nn">django.forms.widgets</span>·<span·class="kn">import</span>·<span·class="n">MultiWidget</span><span·class="p">,</span>·<span·class="n">Textarea</span><span·class="p">,</span>·<span·class="n">TextInput</span>75 <span·class="kn">from</span>·<span·class="nn">django.forms.widgets</span>·<span·class="kn">import</span>·<span·class="n">MultiWidget</span><span·class="p">,</span>·<span·class="n">Textarea</span><span·class="p">,</span>·<span·class="n">TextInput</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.html</span>·<span·class="kn">import</span>·<span·class="n">format_html</span><span·class="p">,</span>·<span·class="n">html_safe</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.html</span>·<span·class="kn">import</span>·<span·class="n">format_html</span><span·class="p">,</span>·<span·class="n">html_safe</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">gettext_lazy</span>·<span·class="k">as</span>·<span·class="n">_</span>
  
78 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;BoundField&quot;</span><span·class="p">,)</span>79 <span·class="n">__all__</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;BoundField&quot;</span><span·class="p">,)</span>
  
  
79 <div·class="viewcode-block"·id="BoundField">80 <div·class="viewcode-block"·id="BoundField">
80 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField">[docs]</a>81 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField">[documenti]</a>
81 <span·class="nd">@html_safe</span>82 <span·class="nd">@html_safe</span>
82 <span·class="k">class</span>·<span·class="nc">BoundField</span><span·class="p">:</span>83 <span·class="k">class</span>·<span·class="nc">BoundField</span><span·class="p">:</span>
83 ····<span·class="s2">&quot;A·Field·plus·data&quot;</span>84 ····<span·class="s2">&quot;A·Field·plus·data&quot;</span>
  
84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">form</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>85 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">form</span><span·class="p">,</span>·<span·class="n">field</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">):</span>
85 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span>·<span·class="o">=</span>·<span·class="n">form</span>86 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span>·<span·class="o">=</span>·<span·class="n">form</span>
86 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span>·<span·class="o">=</span>·<span·class="n">field</span>87 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span>·<span·class="o">=</span>·<span·class="n">field</span>
Offset 153, 15 lines modifiedOffset 154, 15 lines modified
153 <span·class="sd">········Return·an·ErrorList·(empty·if·there·are·no·errors)·for·this·field.</span>154 <span·class="sd">········Return·an·ErrorList·(empty·if·there·are·no·errors)·for·this·field.</span>
154 <span·class="sd">········&quot;&quot;&quot;</span>155 <span·class="sd">········&quot;&quot;&quot;</span>
155 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">errors</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span>156 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">errors</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span>
156 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">error_class</span><span·class="p">(</span><span·class="n">renderer</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">renderer</span><span·class="p">)</span>157 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">error_class</span><span·class="p">(</span><span·class="n">renderer</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">renderer</span><span·class="p">)</span>
157 ········<span·class="p">)</span>158 ········<span·class="p">)</span>
  
158 <div·class="viewcode-block"·id="BoundField.as_widget">159 <div·class="viewcode-block"·id="BoundField.as_widget">
159 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.as_widget">[docs]</a>160 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.as_widget">[documenti]</a>
160 ····<span·class="k">def</span>·<span·class="nf">as_widget</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">widget</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">only_initial</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>161 ····<span·class="k">def</span>·<span·class="nf">as_widget</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">widget</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">only_initial</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
161 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>162 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
162 <span·class="sd">········Render·the·field·by·rendering·the·passed·widget,·adding·any·HTML</span>163 <span·class="sd">········Render·the·field·by·rendering·the·passed·widget,·adding·any·HTML</span>
163 <span·class="sd">········attributes·passed·as·attrs.·If·a·widget·isn&#39;t·specified,·use·the</span>164 <span·class="sd">········attributes·passed·as·attrs.·If·a·widget·isn&#39;t·specified,·use·the</span>
164 <span·class="sd">········field&#39;s·default·widget.</span>165 <span·class="sd">········field&#39;s·default·widget.</span>
165 <span·class="sd">········&quot;&quot;&quot;</span>166 <span·class="sd">········&quot;&quot;&quot;</span>
166 ········<span·class="n">widget</span>·<span·class="o">=</span>·<span·class="n">widget</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span>167 ········<span·class="n">widget</span>·<span·class="o">=</span>·<span·class="n">widget</span>·<span·class="ow">or</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span>
Offset 196, 15 lines modifiedOffset 197, 15 lines modified
196 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="n">TextInput</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>197 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="n">TextInput</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
  
197 ····<span·class="k">def</span>·<span·class="nf">as_textarea</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>198 ····<span·class="k">def</span>·<span·class="nf">as_textarea</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
198 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·string·of·HTML·for·representing·this·as·a·&lt;textarea&gt;.&quot;&quot;&quot;</span>199 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·string·of·HTML·for·representing·this·as·a·&lt;textarea&gt;.&quot;&quot;&quot;</span>
199 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="n">Textarea</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>200 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="n">Textarea</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
  
200 <div·class="viewcode-block"·id="BoundField.as_hidden">201 <div·class="viewcode-block"·id="BoundField.as_hidden">
201 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.as_hidden">[docs]</a>202 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.as_hidden">[documenti]</a>
202 ····<span·class="k">def</span>·<span·class="nf">as_hidden</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>203 ····<span·class="k">def</span>·<span·class="nf">as_hidden</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
203 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>204 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
204 <span·class="sd">········Return·a·string·of·HTML·for·representing·this·as·an·&lt;input·type=&quot;hidden&quot;&gt;.</span>205 <span·class="sd">········Return·a·string·of·HTML·for·representing·this·as·an·&lt;input·type=&quot;hidden&quot;&gt;.</span>
205 <span·class="sd">········&quot;&quot;&quot;</span>206 <span·class="sd">········&quot;&quot;&quot;</span>
206 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">hidden_widget</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>207 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">as_widget</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">hidden_widget</span><span·class="p">(),</span>·<span·class="n">attrs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span></div>
  
  
Offset 212, 15 lines modifiedOffset 213, 15 lines modified
212 ····<span·class="k">def</span>·<span·class="nf">data</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>213 ····<span·class="k">def</span>·<span·class="nf">data</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
213 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>214 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
214 <span·class="sd">········Return·the·data·for·this·BoundField,·or·None·if·it·wasn&#39;t·given.</span>215 <span·class="sd">········Return·the·data·for·this·BoundField,·or·None·if·it·wasn&#39;t·given.</span>
215 <span·class="sd">········&quot;&quot;&quot;</span>216 <span·class="sd">········&quot;&quot;&quot;</span>
216 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">_widget_data_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">html_name</span><span·class="p">)</span>217 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">_widget_data_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">html_name</span><span·class="p">)</span>
  
217 <div·class="viewcode-block"·id="BoundField.value">218 <div·class="viewcode-block"·id="BoundField.value">
218 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.value">[docs]</a>219 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.value">[documenti]</a>
219 ····<span·class="k">def</span>·<span·class="nf">value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>220 ····<span·class="k">def</span>·<span·class="nf">value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
220 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>221 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
221 <span·class="sd">········Return·the·value·for·this·BoundField,·using·the·initial·value·if</span>222 <span·class="sd">········Return·the·value·for·this·BoundField,·using·the·initial·value·if</span>
222 <span·class="sd">········the·form·is·not·bound·or·the·data·otherwise.</span>223 <span·class="sd">········the·form·is·not·bound·or·the·data·otherwise.</span>
223 <span·class="sd">········&quot;&quot;&quot;</span>224 <span·class="sd">········&quot;&quot;&quot;</span>
224 ········<span·class="n">data</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">initial</span>225 ········<span·class="n">data</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">initial</span>
225 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">is_bound</span><span·class="p">:</span>226 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">form</span><span·class="o">.</span><span·class="n">is_bound</span><span·class="p">:</span>
Offset 242, 15 lines modifiedOffset 243, 15 lines modified
242 ················<span·class="c1">#·Always·assume·data·has·changed·if·validation·fails.</span>243 ················<span·class="c1">#·Always·assume·data·has·changed·if·validation·fails.</span>
243 ················<span·class="k">return</span>·<span·class="kc">True</span>244 ················<span·class="k">return</span>·<span·class="kc">True</span>
244 ········<span·class="k">else</span><span·class="p">:</span>245 ········<span·class="k">else</span><span·class="p">:</span>
245 ············<span·class="n">initial_value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">initial</span>246 ············<span·class="n">initial_value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">initial</span>
246 ········<span·class="k">return</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">has_changed</span><span·class="p">(</span><span·class="n">initial_value</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">data</span><span·class="p">)</span>247 ········<span·class="k">return</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">has_changed</span><span·class="p">(</span><span·class="n">initial_value</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">data</span><span·class="p">)</span>
  
247 <div·class="viewcode-block"·id="BoundField.label_tag">248 <div·class="viewcode-block"·id="BoundField.label_tag">
248 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.label_tag">[docs]</a>249 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.BoundField.label_tag">[documenti]</a>
249 ····<span·class="k">def</span>·<span·class="nf">label_tag</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">contents</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">label_suffix</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">tag</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>250 ····<span·class="k">def</span>·<span·class="nf">label_tag</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">contents</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">attrs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">label_suffix</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">tag</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
250 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>251 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
Max diff block lines reached; 5700/19067 bytes (29.89%) of diff not shown.
5.19 KB
html2text {}
Max HTML report size reached
74.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/fields.html
Max HTML report size reached
7.57 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/forms.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.forms.forms·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.forms.forms·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-forms-forms">69 ··········<div·class="yui-g"·id="_modules-django-forms-forms">
69 ············70 ············
70 ··<h1>Source·code·for·django.forms.forms</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.forms.forms</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Form·classes</span>73 <span·class="sd">Form·classes</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
  
74 <span·class="kn">import</span>·<span·class="nn">copy</span>75 <span·class="kn">import</span>·<span·class="nn">copy</span>
75 <span·class="kn">import</span>·<span·class="nn">datetime</span>76 <span·class="kn">import</span>·<span·class="nn">datetime</span>
76 <span·class="kn">import</span>·<span·class="nn">warnings</span>77 <span·class="kn">import</span>·<span·class="nn">warnings</span>
Offset 600, 15 lines modifiedOffset 601, 15 lines modified
600 ············<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span><span·class="o">.</span><span·class="n">supports_microseconds</span>601 ············<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">field</span><span·class="o">.</span><span·class="n">widget</span><span·class="o">.</span><span·class="n">supports_microseconds</span>
601 ········<span·class="p">):</span>602 ········<span·class="p">):</span>
602 ············<span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="n">microsecond</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span>603 ············<span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="n">microsecond</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">)</span>
603 ········<span·class="k">return</span>·<span·class="n">value</span>604 ········<span·class="k">return</span>·<span·class="n">value</span>
  
  
604 <div·class="viewcode-block"·id="Form">605 <div·class="viewcode-block"·id="Form">
605 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.Form">[docs]</a>606 <a·class="viewcode-back"·href="../../../ref/forms/api.html#django.forms.Form">[documenti]</a>
606 <span·class="k">class</span>·<span·class="nc">Form</span><span·class="p">(</span><span·class="n">BaseForm</span><span·class="p">,</span>·<span·class="n">metaclass</span><span·class="o">=</span><span·class="n">DeclarativeFieldsMetaclass</span><span·class="p">):</span>607 <span·class="k">class</span>·<span·class="nc">Form</span><span·class="p">(</span><span·class="n">BaseForm</span><span·class="p">,</span>·<span·class="n">metaclass</span><span·class="o">=</span><span·class="n">DeclarativeFieldsMetaclass</span><span·class="p">):</span>
607 ····<span·class="s2">&quot;A·collection·of·Fields,·plus·their·associated·data.&quot;</span></div>608 ····<span·class="s2">&quot;A·collection·of·Fields,·plus·their·associated·data.&quot;</span></div>
  
608 ····<span·class="c1">#·This·is·a·separate·class·from·BaseForm·in·order·to·abstract·the·way</span>609 ····<span·class="c1">#·This·is·a·separate·class·from·BaseForm·in·order·to·abstract·the·way</span>
609 ····<span·class="c1">#·self.fields·is·specified.·This·class·(Form)·is·the·one·that·does·the</span>610 ····<span·class="c1">#·self.fields·is·specified.·This·class·(Form)·is·the·one·that·does·the</span>
610 ····<span·class="c1">#·fancy·metaclass·stuff·purely·for·the·semantic·sugar·--·it·allows·one</span>611 ····<span·class="c1">#·fancy·metaclass·stuff·purely·for·the·semantic·sugar·--·it·allows·one</span>
611 ····<span·class="c1">#·to·define·a·form·using·declarative·syntax.</span>612 ····<span·class="c1">#·to·define·a·form·using·declarative·syntax.</span>
Offset 621, 35 lines modifiedOffset 622, 35 lines modified
621 ······622 ······
622 ········623 ········
623 ··········<div·class="yui-b"·id="sidebar">624 ··········<div·class="yui-b"·id="sidebar">
624 ············625 ············
625 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">626 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
626 ········<div·class="sphinxsidebarwrapper">627 ········<div·class="sphinxsidebarwrapper">
627 <search·id="searchbox"·style="display:·none"·role="search">628 <search·id="searchbox"·style="display:·none"·role="search">
628 ··<h3·id="searchlabel">Quick·search</h3>629 ··<h3·id="searchlabel">Ricerca·veloce</h3>
629 ····<div·class="searchformwrapper">630 ····<div·class="searchformwrapper">
630 ····<form·class="search"·action="../../../search.html"·method="get">631 ····<form·class="search"·action="../../../search.html"·method="get">
631 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>632 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
632 ······<input·type="submit"·value="Go"·/>633 ······<input·type="submit"·value="Vai"·/>
633 ····</form>634 ····</form>
634 ····</div>635 ····</div>
635 </search>636 </search>
636 <script>document.getElementById('searchbox').style.display·=·"block"</script>637 <script>document.getElementById('searchbox').style.display·=·"block"</script>
637 ········</div>638 ········</div>
638 ······</div>639 ······</div>
639 ··············<h3>Last·update:</h3>640 ··············<h3>Last·update:</h3>
640 ··············<p·class="topless">Sep·03,·2024</p>641 ··············<p·class="topless">set·03,·2024</p>
641 ··········</div>642 ··········</div>
642 ········643 ········
643 ······644 ······
644 ····</div>645 ····</div>
  
645 ····<div·id="ft">646 ····<div·id="ft">
646 ······<div·class="nav">647 ······<div·class="nav">
647 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>648 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
648 ····</div>649 ····</div>
649 ··</div>650 ··</div>
  
650 ······<div·class="clearer"></div>651 ······<div·class="clearer"></div>
651 ····</div>652 ····</div>
652 ··</body>653 ··</body>
653 </html>654 </html>
1.79 KB
html2text {}
Max HTML report size reached
16.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/formsets.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.forms.formsets·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.forms.formsets·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-forms-formsets">69 ··········<div·class="yui-g"·id="_modules-django-forms-formsets">
69 ············70 ············
70 ··<h1>Source·code·for·django.forms.formsets</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.forms.formsets</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ValidationError</span>
72 <span·class="kn">from</span>·<span·class="nn">django.forms</span>·<span·class="kn">import</span>·<span·class="n">Form</span>73 <span·class="kn">from</span>·<span·class="nn">django.forms</span>·<span·class="kn">import</span>·<span·class="n">Form</span>
73 <span·class="kn">from</span>·<span·class="nn">django.forms.fields</span>·<span·class="kn">import</span>·<span·class="n">BooleanField</span><span·class="p">,</span>·<span·class="n">IntegerField</span>74 <span·class="kn">from</span>·<span·class="nn">django.forms.fields</span>·<span·class="kn">import</span>·<span·class="n">BooleanField</span><span·class="p">,</span>·<span·class="n">IntegerField</span>
74 <span·class="kn">from</span>·<span·class="nn">django.forms.renderers</span>·<span·class="kn">import</span>·<span·class="n">get_default_renderer</span>75 <span·class="kn">from</span>·<span·class="nn">django.forms.renderers</span>·<span·class="kn">import</span>·<span·class="n">get_default_renderer</span>
75 <span·class="kn">from</span>·<span·class="nn">django.forms.utils</span>·<span·class="kn">import</span>·<span·class="n">ErrorList</span><span·class="p">,</span>·<span·class="n">RenderableFormMixin</span>76 <span·class="kn">from</span>·<span·class="nn">django.forms.utils</span>·<span·class="kn">import</span>·<span·class="n">ErrorList</span><span·class="p">,</span>·<span·class="n">RenderableFormMixin</span>
76 <span·class="kn">from</span>·<span·class="nn">django.forms.widgets</span>·<span·class="kn">import</span>·<span·class="n">CheckboxInput</span><span·class="p">,</span>·<span·class="n">HiddenInput</span><span·class="p">,</span>·<span·class="n">NumberInput</span>77 <span·class="kn">from</span>·<span·class="nn">django.forms.widgets</span>·<span·class="kn">import</span>·<span·class="n">CheckboxInput</span><span·class="p">,</span>·<span·class="n">HiddenInput</span><span·class="p">,</span>·<span·class="n">NumberInput</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
Offset 121, 15 lines modifiedOffset 122, 15 lines modified
121 ········<span·class="c1">#·were·submitted.</span>122 ········<span·class="c1">#·were·submitted.</span>
122 ········<span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="n">TOTAL_FORM_COUNT</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>123 ········<span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="n">TOTAL_FORM_COUNT</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>
123 ········<span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="n">INITIAL_FORM_COUNT</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>124 ········<span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="n">INITIAL_FORM_COUNT</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>
124 ········<span·class="k">return</span>·<span·class="n">cleaned_data</span>125 ········<span·class="k">return</span>·<span·class="n">cleaned_data</span>
  
  
125 <div·class="viewcode-block"·id="BaseFormSet">126 <div·class="viewcode-block"·id="BaseFormSet">
126 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet">[docs]</a>127 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet">[documenti]</a>
127 <span·class="k">class</span>·<span·class="nc">BaseFormSet</span><span·class="p">(</span><span·class="n">RenderableFormMixin</span><span·class="p">):</span>128 <span·class="k">class</span>·<span·class="nc">BaseFormSet</span><span·class="p">(</span><span·class="n">RenderableFormMixin</span><span·class="p">):</span>
128 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>129 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
129 <span·class="sd">····A·collection·of·instances·of·the·same·Form·class.</span>130 <span·class="sd">····A·collection·of·instances·of·the·same·Form·class.</span>
130 <span·class="sd">····&quot;&quot;&quot;</span>131 <span·class="sd">····&quot;&quot;&quot;</span>
  
131 ····<span·class="n">deletion_widget</span>·<span·class="o">=</span>·<span·class="n">CheckboxInput</span>132 ····<span·class="n">deletion_widget</span>·<span·class="o">=</span>·<span·class="n">CheckboxInput</span>
132 ····<span·class="n">ordering_widget</span>·<span·class="o">=</span>·<span·class="n">NumberInput</span>133 ····<span·class="n">ordering_widget</span>·<span·class="o">=</span>·<span·class="n">NumberInput</span>
Offset 413, 22 lines modifiedOffset 414, 22 lines modified
413 ········<span·class="k">return</span>·<span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">forms</span><span·class="p">[</span><span·class="n">i</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]]</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_ordering</span><span·class="p">]</span>414 ········<span·class="k">return</span>·<span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">forms</span><span·class="p">[</span><span·class="n">i</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]]</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_ordering</span><span·class="p">]</span>
  
414 ····<span·class="nd">@classmethod</span>415 ····<span·class="nd">@classmethod</span>
415 ····<span·class="k">def</span>·<span·class="nf">get_default_prefix</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>416 ····<span·class="k">def</span>·<span·class="nf">get_default_prefix</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>
416 ········<span·class="k">return</span>·<span·class="s2">&quot;form&quot;</span>417 ········<span·class="k">return</span>·<span·class="s2">&quot;form&quot;</span>
  
417 <div·class="viewcode-block"·id="BaseFormSet.get_deletion_widget">418 <div·class="viewcode-block"·id="BaseFormSet.get_deletion_widget">
418 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_deletion_widget">[docs]</a>419 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_deletion_widget">[documenti]</a>
419 ····<span·class="nd">@classmethod</span>420 ····<span·class="nd">@classmethod</span>
420 ····<span·class="k">def</span>·<span·class="nf">get_deletion_widget</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>421 ····<span·class="k">def</span>·<span·class="nf">get_deletion_widget</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>
421 ········<span·class="k">return</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">deletion_widget</span></div>422 ········<span·class="k">return</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">deletion_widget</span></div>
  
  
422 <div·class="viewcode-block"·id="BaseFormSet.get_ordering_widget">423 <div·class="viewcode-block"·id="BaseFormSet.get_ordering_widget">
423 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_ordering_widget">[docs]</a>424 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_ordering_widget">[documenti]</a>
424 ····<span·class="nd">@classmethod</span>425 ····<span·class="nd">@classmethod</span>
425 ····<span·class="k">def</span>·<span·class="nf">get_ordering_widget</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>426 ····<span·class="k">def</span>·<span·class="nf">get_ordering_widget</span><span·class="p">(</span><span·class="bp">cls</span><span·class="p">):</span>
426 ········<span·class="k">return</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">ordering_widget</span></div>427 ········<span·class="k">return</span>·<span·class="bp">cls</span><span·class="o">.</span><span·class="n">ordering_widget</span></div>
  
  
427 ····<span·class="k">def</span>·<span·class="nf">non_form_errors</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>428 ····<span·class="k">def</span>·<span·class="nf">non_form_errors</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
428 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>429 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
Offset 444, 15 lines modifiedOffset 445, 15 lines modified
444 ····<span·class="k">def</span>·<span·class="nf">errors</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>445 ····<span·class="k">def</span>·<span·class="nf">errors</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
445 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·list·of·form.errors·for·every·form·in·self.forms.&quot;&quot;&quot;</span>446 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·a·list·of·form.errors·for·every·form·in·self.forms.&quot;&quot;&quot;</span>
446 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_errors</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>447 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_errors</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
447 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">full_clean</span><span·class="p">()</span>448 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">full_clean</span><span·class="p">()</span>
448 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_errors</span>449 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_errors</span>
  
449 <div·class="viewcode-block"·id="BaseFormSet.total_error_count">450 <div·class="viewcode-block"·id="BaseFormSet.total_error_count">
450 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.total_error_count">[docs]</a>451 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.total_error_count">[documenti]</a>
451 ····<span·class="k">def</span>·<span·class="nf">total_error_count</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>452 ····<span·class="k">def</span>·<span·class="nf">total_error_count</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
452 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·number·of·errors·across·all·forms·in·the·formset.&quot;&quot;&quot;</span>453 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·number·of·errors·across·all·forms·in·the·formset.&quot;&quot;&quot;</span>
453 ········<span·class="k">return</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">non_form_errors</span><span·class="p">())</span>·<span·class="o">+</span>·<span·class="nb">sum</span><span·class="p">(</span>454 ········<span·class="k">return</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">non_form_errors</span><span·class="p">())</span>·<span·class="o">+</span>·<span·class="nb">sum</span><span·class="p">(</span>
454 ············<span·class="nb">len</span><span·class="p">(</span><span·class="n">form_errors</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">form_errors</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">errors</span>455 ············<span·class="nb">len</span><span·class="p">(</span><span·class="n">form_errors</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">form_errors</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">errors</span>
455 ········<span·class="p">)</span></div>456 ········<span·class="p">)</span></div>
  
  
Offset 608, 23 lines modifiedOffset 609, 23 lines modified
608 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">empty_form</span><span·class="o">.</span><span·class="n">media</span>609 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">empty_form</span><span·class="o">.</span><span·class="n">media</span>
  
609 ····<span·class="nd">@property</span>610 ····<span·class="nd">@property</span>
610 ····<span·class="k">def</span>·<span·class="nf">template_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>611 ····<span·class="k">def</span>·<span·class="nf">template_name</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
611 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">renderer</span><span·class="o">.</span><span·class="n">formset_template_name</span>612 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">renderer</span><span·class="o">.</span><span·class="n">formset_template_name</span>
  
612 <div·class="viewcode-block"·id="BaseFormSet.get_context">613 <div·class="viewcode-block"·id="BaseFormSet.get_context">
613 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_context">[docs]</a>614 <a·class="viewcode-back"·href="../../../topics/forms/formsets.html#django.forms.formsets.BaseFormSet.get_context">[documenti]</a>
614 ····<span·class="k">def</span>·<span·class="nf">get_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>615 ····<span·class="k">def</span>·<span·class="nf">get_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
615 ········<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;formset&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="p">}</span></div>616 ········<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;formset&quot;</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="p">}</span></div>
616 </div>617 </div>
  
  
  
617 <div·class="viewcode-block"·id="formset_factory">618 <div·class="viewcode-block"·id="formset_factory">
618 <a·class="viewcode-back"·href="../../../ref/forms/formsets.html#django.forms.formsets.formset_factory">[docs]</a>619 <a·class="viewcode-back"·href="../../../ref/forms/formsets.html#django.forms.formsets.formset_factory">[documenti]</a>
619 <span·class="k">def</span>·<span·class="nf">formset_factory</span><span·class="p">(</span>620 <span·class="k">def</span>·<span·class="nf">formset_factory</span><span·class="p">(</span>
Max diff block lines reached; 1897/13190 bytes (14.38%) of diff not shown.
3.58 KB
html2text {}
Max HTML report size reached
1.92 MB
./usr/share/doc/python-django-doc/html/_modules/django/forms/models.html
Max HTML report size reached
17.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/renderers.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.forms.renderers·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.forms.renderers·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-forms-renderers">69 ··········<div·class="yui-g"·id="_modules-django-forms-renderers">
69 ············70 ············
70 ··<h1>Source·code·for·django.forms.renderers</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.forms.renderers</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
72 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>73 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.template.backends.django</span>·<span·class="kn">import</span>·<span·class="n">DjangoTemplates</span>75 <span·class="kn">from</span>·<span·class="nn">django.template.backends.django</span>·<span·class="kn">import</span>·<span·class="n">DjangoTemplates</span>
75 <span·class="kn">from</span>·<span·class="nn">django.template.loader</span>·<span·class="kn">import</span>·<span·class="n">get_template</span>76 <span·class="kn">from</span>·<span·class="nn">django.template.loader</span>·<span·class="kn">import</span>·<span·class="n">get_template</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
Offset 84, 30 lines modifiedOffset 85, 30 lines modified
84 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>85 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>
85 <span·class="k">def</span>·<span·class="nf">get_default_renderer</span><span·class="p">():</span>86 <span·class="k">def</span>·<span·class="nf">get_default_renderer</span><span·class="p">():</span>
86 ····<span·class="n">renderer_class</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">FORM_RENDERER</span><span·class="p">)</span>87 ····<span·class="n">renderer_class</span>·<span·class="o">=</span>·<span·class="n">import_string</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">FORM_RENDERER</span><span·class="p">)</span>
87 ····<span·class="k">return</span>·<span·class="n">renderer_class</span><span·class="p">()</span>88 ····<span·class="k">return</span>·<span·class="n">renderer_class</span><span·class="p">()</span>
  
  
88 <div·class="viewcode-block"·id="BaseRenderer">89 <div·class="viewcode-block"·id="BaseRenderer">
89 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer">[docs]</a>90 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer">[documenti]</a>
90 <span·class="k">class</span>·<span·class="nc">BaseRenderer</span><span·class="p">:</span>91 <span·class="k">class</span>·<span·class="nc">BaseRenderer</span><span·class="p">:</span>
91 ····<span·class="c1">#·RemovedInDjango50Warning:·When·the·deprecation·ends,·replace·with</span>92 ····<span·class="c1">#·RemovedInDjango50Warning:·When·the·deprecation·ends,·replace·with</span>
92 ····<span·class="c1">#·form_template_name·=·&quot;django/forms/div.html&quot;</span>93 ····<span·class="c1">#·form_template_name·=·&quot;django/forms/div.html&quot;</span>
93 ····<span·class="c1">#·formset_template_name·=·&quot;django/forms/formsets/div.html&quot;</span>94 ····<span·class="c1">#·formset_template_name·=·&quot;django/forms/formsets/div.html&quot;</span>
94 ····<span·class="n">form_template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;django/forms/default.html&quot;</span>95 ····<span·class="n">form_template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;django/forms/default.html&quot;</span>
95 ····<span·class="n">formset_template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;django/forms/formsets/default.html&quot;</span>96 ····<span·class="n">formset_template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;django/forms/formsets/default.html&quot;</span>
  
96 <div·class="viewcode-block"·id="BaseRenderer.get_template">97 <div·class="viewcode-block"·id="BaseRenderer.get_template">
97 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer.get_template">[docs]</a>98 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer.get_template">[documenti]</a>
98 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>99 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>
99 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;subclasses·must·implement·get_template()&quot;</span><span·class="p">)</span></div>100 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span><span·class="s2">&quot;subclasses·must·implement·get_template()&quot;</span><span·class="p">)</span></div>
  
  
100 <div·class="viewcode-block"·id="BaseRenderer.render">101 <div·class="viewcode-block"·id="BaseRenderer.render">
101 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer.render">[docs]</a>102 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.BaseRenderer.render">[documenti]</a>
102 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>103 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
103 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">)</span>104 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">)</span>
104 ········<span·class="k">return</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span><span·class="o">.</span><span·class="n">strip</span><span·class="p">()</span></div>105 ········<span·class="k">return</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="n">request</span><span·class="p">)</span><span·class="o">.</span><span·class="n">strip</span><span·class="p">()</span></div>
105 </div>106 </div>
  
  
  
Offset 124, 27 lines modifiedOffset 125, 27 lines modified
124 ················<span·class="s2">&quot;NAME&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;djangoforms&quot;</span><span·class="p">,</span>125 ················<span·class="s2">&quot;NAME&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;djangoforms&quot;</span><span·class="p">,</span>
125 ················<span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">:</span>·<span·class="p">{},</span>126 ················<span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">:</span>·<span·class="p">{},</span>
126 ············<span·class="p">}</span>127 ············<span·class="p">}</span>
127 ········<span·class="p">)</span>128 ········<span·class="p">)</span>
  
  
128 <div·class="viewcode-block"·id="DjangoTemplates">129 <div·class="viewcode-block"·id="DjangoTemplates">
129 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.DjangoTemplates">[docs]</a>130 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.DjangoTemplates">[documenti]</a>
130 <span·class="k">class</span>·<span·class="nc">DjangoTemplates</span><span·class="p">(</span><span·class="n">EngineMixin</span><span·class="p">,</span>·<span·class="n">BaseRenderer</span><span·class="p">):</span>131 <span·class="k">class</span>·<span·class="nc">DjangoTemplates</span><span·class="p">(</span><span·class="n">EngineMixin</span><span·class="p">,</span>·<span·class="n">BaseRenderer</span><span·class="p">):</span>
131 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>132 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
132 <span·class="sd">····Load·Django·templates·from·the·built-in·widget·templates·in</span>133 <span·class="sd">····Load·Django·templates·from·the·built-in·widget·templates·in</span>
133 <span·class="sd">····django/forms/templates·and·from·apps&#39;·&#39;templates&#39;·directory.</span>134 <span·class="sd">····django/forms/templates·and·from·apps&#39;·&#39;templates&#39;·directory.</span>
134 <span·class="sd">····&quot;&quot;&quot;</span>135 <span·class="sd">····&quot;&quot;&quot;</span>
  
135 ····<span·class="n">backend</span>·<span·class="o">=</span>·<span·class="n">DjangoTemplates</span></div>136 ····<span·class="n">backend</span>·<span·class="o">=</span>·<span·class="n">DjangoTemplates</span></div>
  
  
  
136 <div·class="viewcode-block"·id="Jinja2">137 <div·class="viewcode-block"·id="Jinja2">
137 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.Jinja2">[docs]</a>138 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.Jinja2">[documenti]</a>
138 <span·class="k">class</span>·<span·class="nc">Jinja2</span><span·class="p">(</span><span·class="n">EngineMixin</span><span·class="p">,</span>·<span·class="n">BaseRenderer</span><span·class="p">):</span>139 <span·class="k">class</span>·<span·class="nc">Jinja2</span><span·class="p">(</span><span·class="n">EngineMixin</span><span·class="p">,</span>·<span·class="n">BaseRenderer</span><span·class="p">):</span>
139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>140 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
140 <span·class="sd">····Load·Jinja2·templates·from·the·built-in·widget·templates·in</span>141 <span·class="sd">····Load·Jinja2·templates·from·the·built-in·widget·templates·in</span>
141 <span·class="sd">····django/forms/jinja2·and·from·apps&#39;·&#39;jinja2&#39;·directory.</span>142 <span·class="sd">····django/forms/jinja2·and·from·apps&#39;·&#39;jinja2&#39;·directory.</span>
142 <span·class="sd">····&quot;&quot;&quot;</span>143 <span·class="sd">····&quot;&quot;&quot;</span>
  
143 ····<span·class="nd">@cached_property</span>144 ····<span·class="nd">@cached_property</span>
Offset 152, 15 lines modifiedOffset 153, 15 lines modified
152 ········<span·class="kn">from</span>·<span·class="nn">django.template.backends.jinja2</span>·<span·class="kn">import</span>·<span·class="n">Jinja2</span>153 ········<span·class="kn">from</span>·<span·class="nn">django.template.backends.jinja2</span>·<span·class="kn">import</span>·<span·class="n">Jinja2</span>
  
153 ········<span·class="k">return</span>·<span·class="n">Jinja2</span></div>154 ········<span·class="k">return</span>·<span·class="n">Jinja2</span></div>
  
  
  
154 <div·class="viewcode-block"·id="DjangoDivFormRenderer">155 <div·class="viewcode-block"·id="DjangoDivFormRenderer">
155 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.DjangoDivFormRenderer">[docs]</a>156 <a·class="viewcode-back"·href="../../../ref/forms/renderers.html#django.forms.renderers.DjangoDivFormRenderer">[documenti]</a>
156 <span·class="k">class</span>·<span·class="nc">DjangoDivFormRenderer</span><span·class="p">(</span><span·class="n">DjangoTemplates</span><span·class="p">):</span>157 <span·class="k">class</span>·<span·class="nc">DjangoDivFormRenderer</span><span·class="p">(</span><span·class="n">DjangoTemplates</span><span·class="p">):</span>
157 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>158 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
158 <span·class="sd">····Load·Django·templates·from·django/forms/templates·and·from·apps&#39;</span>159 <span·class="sd">····Load·Django·templates·from·django/forms/templates·and·from·apps&#39;</span>
159 <span·class="sd">····&#39;templates&#39;·directory·and·use·the·&#39;div.html&#39;·template·to·render·forms·and</span>160 <span·class="sd">····&#39;templates&#39;·directory·and·use·the·&#39;div.html&#39;·template·to·render·forms·and</span>
160 <span·class="sd">····formsets.</span>161 <span·class="sd">····formsets.</span>
Max diff block lines reached; 3731/13813 bytes (27.01%) of diff not shown.
4.17 KB
html2text {}
Max HTML report size reached
66.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/forms/widgets.html
Max HTML report size reached
55.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/http/request.html
Max HTML report size reached
32.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/http/response.html
Max HTML report size reached
9.56 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/cache.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.cache·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.cache·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-cache">69 ··········<div·class="yui-g"·id="_modules-django-middleware-cache">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.cache</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.cache</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Cache·middleware.·If·enabled,·each·Django-powered·page·will·be·cached·based·on</span>73 <span·class="sd">Cache·middleware.·If·enabled,·each·Django-powered·page·will·be·cached·based·on</span>
73 <span·class="sd">URL.·The·canonical·way·to·enable·cache·middleware·is·to·set</span>74 <span·class="sd">URL.·The·canonical·way·to·enable·cache·middleware·is·to·set</span>
74 <span·class="sd">``UpdateCacheMiddleware``·as·your·first·piece·of·middleware,·and</span>75 <span·class="sd">``UpdateCacheMiddleware``·as·your·first·piece·of·middleware,·and</span>
75 <span·class="sd">``FetchFromCacheMiddleware``·as·the·last::</span>76 <span·class="sd">``FetchFromCacheMiddleware``·as·the·last::</span>
  
76 <span·class="sd">····MIDDLEWARE·=·[</span>77 <span·class="sd">····MIDDLEWARE·=·[</span>
Offset 125, 15 lines modifiedOffset 126, 15 lines modified
125 ····<span·class="n">learn_cache_key</span><span·class="p">,</span>126 ····<span·class="n">learn_cache_key</span><span·class="p">,</span>
126 ····<span·class="n">patch_response_headers</span><span·class="p">,</span>127 ····<span·class="n">patch_response_headers</span><span·class="p">,</span>
127 <span·class="p">)</span>128 <span·class="p">)</span>
128 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>129 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
  
129 <div·class="viewcode-block"·id="UpdateCacheMiddleware">130 <div·class="viewcode-block"·id="UpdateCacheMiddleware">
130 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.cache.UpdateCacheMiddleware">[docs]</a>131 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.cache.UpdateCacheMiddleware">[documenti]</a>
131 <span·class="k">class</span>·<span·class="nc">UpdateCacheMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>132 <span·class="k">class</span>·<span·class="nc">UpdateCacheMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
132 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>133 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
133 <span·class="sd">····Response-phase·cache·middleware·that·updates·the·cache·if·the·response·is</span>134 <span·class="sd">····Response-phase·cache·middleware·that·updates·the·cache·if·the·response·is</span>
134 <span·class="sd">····cacheable.</span>135 <span·class="sd">····cacheable.</span>
  
135 <span·class="sd">····Must·be·used·as·part·of·the·two-part·update/fetch·cache·middleware.</span>136 <span·class="sd">····Must·be·used·as·part·of·the·two-part·update/fetch·cache·middleware.</span>
136 <span·class="sd">····UpdateCacheMiddleware·must·be·the·first·piece·of·middleware·in·MIDDLEWARE</span>137 <span·class="sd">····UpdateCacheMiddleware·must·be·the·first·piece·of·middleware·in·MIDDLEWARE</span>
Offset 200, 15 lines modifiedOffset 201, 15 lines modified
200 ············<span·class="k">else</span><span·class="p">:</span>201 ············<span·class="k">else</span><span·class="p">:</span>
201 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">cache</span><span·class="o">.</span><span·class="n">set</span><span·class="p">(</span><span·class="n">cache_key</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">,</span>·<span·class="n">timeout</span><span·class="p">)</span>202 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">cache</span><span·class="o">.</span><span·class="n">set</span><span·class="p">(</span><span·class="n">cache_key</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">,</span>·<span·class="n">timeout</span><span·class="p">)</span>
202 ········<span·class="k">return</span>·<span·class="n">response</span></div>203 ········<span·class="k">return</span>·<span·class="n">response</span></div>
  
  
  
203 <div·class="viewcode-block"·id="FetchFromCacheMiddleware">204 <div·class="viewcode-block"·id="FetchFromCacheMiddleware">
204 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.cache.FetchFromCacheMiddleware">[docs]</a>205 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.cache.FetchFromCacheMiddleware">[documenti]</a>
205 <span·class="k">class</span>·<span·class="nc">FetchFromCacheMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>206 <span·class="k">class</span>·<span·class="nc">FetchFromCacheMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
206 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>207 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
207 <span·class="sd">····Request-phase·cache·middleware·that·fetches·a·page·from·the·cache.</span>208 <span·class="sd">····Request-phase·cache·middleware·that·fetches·a·page·from·the·cache.</span>
  
208 <span·class="sd">····Must·be·used·as·part·of·the·two-part·update/fetch·cache·middleware.</span>209 <span·class="sd">····Must·be·used·as·part·of·the·two-part·update/fetch·cache·middleware.</span>
209 <span·class="sd">····FetchFromCacheMiddleware·must·be·the·last·piece·of·middleware·in·MIDDLEWARE</span>210 <span·class="sd">····FetchFromCacheMiddleware·must·be·the·last·piece·of·middleware·in·MIDDLEWARE</span>
210 <span·class="sd">····so·that·it&#39;ll·get·called·last·during·the·request·phase.</span>211 <span·class="sd">····so·that·it&#39;ll·get·called·last·during·the·request·phase.</span>
Offset 296, 35 lines modifiedOffset 297, 35 lines modified
296 ······297 ······
297 ········298 ········
298 ··········<div·class="yui-b"·id="sidebar">299 ··········<div·class="yui-b"·id="sidebar">
299 ············300 ············
300 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">301 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
301 ········<div·class="sphinxsidebarwrapper">302 ········<div·class="sphinxsidebarwrapper">
302 <search·id="searchbox"·style="display:·none"·role="search">303 <search·id="searchbox"·style="display:·none"·role="search">
303 ··<h3·id="searchlabel">Quick·search</h3>304 ··<h3·id="searchlabel">Ricerca·veloce</h3>
304 ····<div·class="searchformwrapper">305 ····<div·class="searchformwrapper">
305 ····<form·class="search"·action="../../../search.html"·method="get">306 ····<form·class="search"·action="../../../search.html"·method="get">
306 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>307 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
307 ······<input·type="submit"·value="Go"·/>308 ······<input·type="submit"·value="Vai"·/>
308 ····</form>309 ····</form>
309 ····</div>310 ····</div>
310 </search>311 </search>
311 <script>document.getElementById('searchbox').style.display·=·"block"</script>312 <script>document.getElementById('searchbox').style.display·=·"block"</script>
312 ········</div>313 ········</div>
313 ······</div>314 ······</div>
314 ··············<h3>Last·update:</h3>315 ··············<h3>Last·update:</h3>
315 ··············<p·class="topless">Sep·03,·2024</p>316 ··············<p·class="topless">set·03,·2024</p>
316 ··········</div>317 ··········</div>
317 ········318 ········
318 ······319 ······
319 ····</div>320 ····</div>
  
320 ····<div·id="ft">321 ····<div·id="ft">
321 ······<div·class="nav">322 ······<div·class="nav">
322 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>323 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
323 ····</div>324 ····</div>
324 ··</div>325 ··</div>
  
325 ······<div·class="clearer"></div>326 ······<div·class="clearer"></div>
326 ····</div>327 ····</div>
327 ··</body>328 ··</body>
328 </html>329 </html>
2.58 KB
html2text {}
Max HTML report size reached
7.37 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/clickjacking.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.clickjacking·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.clickjacking·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 44 lines modifiedOffset 51, 44 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-clickjacking">69 ··········<div·class="yui-g"·id="_modules-django-middleware-clickjacking">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.clickjacking</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.clickjacking</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Clickjacking·Protection·Middleware.</span>73 <span·class="sd">Clickjacking·Protection·Middleware.</span>
  
73 <span·class="sd">This·module·provides·a·middleware·that·implements·protection·against·a</span>74 <span·class="sd">This·module·provides·a·middleware·that·implements·protection·against·a</span>
74 <span·class="sd">malicious·site·loading·resources·from·your·site·in·a·hidden·frame.</span>75 <span·class="sd">malicious·site·loading·resources·from·your·site·in·a·hidden·frame.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>77 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
  
78 <div·class="viewcode-block"·id="XFrameOptionsMiddleware">79 <div·class="viewcode-block"·id="XFrameOptionsMiddleware">
79 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.clickjacking.XFrameOptionsMiddleware">[docs]</a>80 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.clickjacking.XFrameOptionsMiddleware">[documenti]</a>
80 <span·class="k">class</span>·<span·class="nc">XFrameOptionsMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>81 <span·class="k">class</span>·<span·class="nc">XFrameOptionsMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
82 <span·class="sd">····Set·the·X-Frame-Options·HTTP·header·in·HTTP·responses.</span>83 <span·class="sd">····Set·the·X-Frame-Options·HTTP·header·in·HTTP·responses.</span>
  
83 <span·class="sd">····Do·not·set·the·header·if·it&#39;s·already·set·or·if·the·response·contains</span>84 <span·class="sd">····Do·not·set·the·header·if·it&#39;s·already·set·or·if·the·response·contains</span>
84 <span·class="sd">····a·xframe_options_exempt·value·set·to·True.</span>85 <span·class="sd">····a·xframe_options_exempt·value·set·to·True.</span>
  
Offset 130, 35 lines modifiedOffset 131, 35 lines modified
130 ······131 ······
131 ········132 ········
132 ··········<div·class="yui-b"·id="sidebar">133 ··········<div·class="yui-b"·id="sidebar">
133 ············134 ············
134 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">135 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
135 ········<div·class="sphinxsidebarwrapper">136 ········<div·class="sphinxsidebarwrapper">
136 <search·id="searchbox"·style="display:·none"·role="search">137 <search·id="searchbox"·style="display:·none"·role="search">
137 ··<h3·id="searchlabel">Quick·search</h3>138 ··<h3·id="searchlabel">Ricerca·veloce</h3>
138 ····<div·class="searchformwrapper">139 ····<div·class="searchformwrapper">
139 ····<form·class="search"·action="../../../search.html"·method="get">140 ····<form·class="search"·action="../../../search.html"·method="get">
140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
141 ······<input·type="submit"·value="Go"·/>142 ······<input·type="submit"·value="Vai"·/>
142 ····</form>143 ····</form>
143 ····</div>144 ····</div>
144 </search>145 </search>
145 <script>document.getElementById('searchbox').style.display·=·"block"</script>146 <script>document.getElementById('searchbox').style.display·=·"block"</script>
146 ········</div>147 ········</div>
147 ······</div>148 ······</div>
148 ··············<h3>Last·update:</h3>149 ··············<h3>Last·update:</h3>
149 ··············<p·class="topless">Sep·03,·2024</p>150 ··············<p·class="topless">set·03,·2024</p>
150 ··········</div>151 ··········</div>
151 ········152 ········
152 ······153 ······
153 ····</div>154 ····</div>
  
154 ····<div·id="ft">155 ····<div·id="ft">
155 ······<div·class="nav">156 ······<div·class="nav">
156 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>157 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
157 ····</div>158 ····</div>
158 ··</div>159 ··</div>
  
159 ······<div·class="clearer"></div>160 ······<div·class="clearer"></div>
160 ····</div>161 ····</div>
161 ··</body>162 ··</body>
162 </html>163 </html>
1.96 KB
html2text {}
Max HTML report size reached
10.9 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/common.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.common·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.common·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 45 lines modifiedOffset 51, 45 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-common">69 ··········<div·class="yui-g"·id="_modules-django-middleware-common">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.common</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.common</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>
72 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlparse</span>73 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">urlparse</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">mail_managers</span>76 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">mail_managers</span>
76 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponsePermanentRedirect</span>77 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponsePermanentRedirect</span>
77 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">is_valid_path</span>78 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">is_valid_path</span>
78 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>79 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
79 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">escape_leading_slashes</span>80 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">escape_leading_slashes</span>
  
  
80 <div·class="viewcode-block"·id="CommonMiddleware">81 <div·class="viewcode-block"·id="CommonMiddleware">
81 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.common.CommonMiddleware">[docs]</a>82 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.common.CommonMiddleware">[documenti]</a>
82 <span·class="k">class</span>·<span·class="nc">CommonMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>83 <span·class="k">class</span>·<span·class="nc">CommonMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
83 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>84 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
84 <span·class="sd">····&quot;Common&quot;·middleware·for·taking·care·of·some·basic·operations:</span>85 <span·class="sd">····&quot;Common&quot;·middleware·for·taking·care·of·some·basic·operations:</span>
  
85 <span·class="sd">········-·Forbid·access·to·User-Agents·in·settings.DISALLOWED_USER_AGENTS</span>86 <span·class="sd">········-·Forbid·access·to·User-Agents·in·settings.DISALLOWED_USER_AGENTS</span>
  
86 <span·class="sd">········-·URL·rewriting:·Based·on·the·APPEND_SLASH·and·PREPEND_WWW·settings,</span>87 <span·class="sd">········-·URL·rewriting:·Based·on·the·APPEND_SLASH·and·PREPEND_WWW·settings,</span>
Offset 188, 15 lines modifiedOffset 189, 15 lines modified
188 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Content-Length&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="p">))</span>189 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Content-Length&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="nb">str</span><span·class="p">(</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="p">))</span>
  
189 ········<span·class="k">return</span>·<span·class="n">response</span></div>190 ········<span·class="k">return</span>·<span·class="n">response</span></div>
  
  
  
190 <div·class="viewcode-block"·id="BrokenLinkEmailsMiddleware">191 <div·class="viewcode-block"·id="BrokenLinkEmailsMiddleware">
191 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.common.BrokenLinkEmailsMiddleware">[docs]</a>192 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.common.BrokenLinkEmailsMiddleware">[documenti]</a>
192 <span·class="k">class</span>·<span·class="nc">BrokenLinkEmailsMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>193 <span·class="k">class</span>·<span·class="nc">BrokenLinkEmailsMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
193 ····<span·class="k">def</span>·<span·class="nf">process_response</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">):</span>194 ····<span·class="k">def</span>·<span·class="nf">process_response</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">):</span>
194 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Send·broken·link·emails·for·relevant·404·NOT·FOUND·responses.&quot;&quot;&quot;</span>195 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Send·broken·link·emails·for·relevant·404·NOT·FOUND·responses.&quot;&quot;&quot;</span>
195 ········<span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">status_code</span>·<span·class="o">==</span>·<span·class="mi">404</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span><span·class="p">:</span>196 ········<span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">status_code</span>·<span·class="o">==</span>·<span·class="mi">404</span>·<span·class="ow">and</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span><span·class="p">:</span>
196 ············<span·class="n">domain</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">get_host</span><span·class="p">()</span>197 ············<span·class="n">domain</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">get_host</span><span·class="p">()</span>
197 ············<span·class="n">path</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">get_full_path</span><span·class="p">()</span>198 ············<span·class="n">path</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">get_full_path</span><span·class="p">()</span>
198 ············<span·class="n">referer</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">META</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;HTTP_REFERER&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;&quot;</span><span·class="p">)</span>199 ············<span·class="n">referer</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">META</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;HTTP_REFERER&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;&quot;</span><span·class="p">)</span>
Offset 263, 35 lines modifiedOffset 264, 35 lines modified
263 ······264 ······
264 ········265 ········
265 ··········<div·class="yui-b"·id="sidebar">266 ··········<div·class="yui-b"·id="sidebar">
266 ············267 ············
267 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">268 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
268 ········<div·class="sphinxsidebarwrapper">269 ········<div·class="sphinxsidebarwrapper">
269 <search·id="searchbox"·style="display:·none"·role="search">270 <search·id="searchbox"·style="display:·none"·role="search">
270 ··<h3·id="searchlabel">Quick·search</h3>271 ··<h3·id="searchlabel">Ricerca·veloce</h3>
271 ····<div·class="searchformwrapper">272 ····<div·class="searchformwrapper">
272 ····<form·class="search"·action="../../../search.html"·method="get">273 ····<form·class="search"·action="../../../search.html"·method="get">
273 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>274 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
274 ······<input·type="submit"·value="Go"·/>275 ······<input·type="submit"·value="Vai"·/>
275 ····</form>276 ····</form>
276 ····</div>277 ····</div>
277 </search>278 </search>
278 <script>document.getElementById('searchbox').style.display·=·"block"</script>279 <script>document.getElementById('searchbox').style.display·=·"block"</script>
279 ········</div>280 ········</div>
280 ······</div>281 ······</div>
281 ··············<h3>Last·update:</h3>282 ··············<h3>Last·update:</h3>
282 ··············<p·class="topless">Sep·03,·2024</p>283 ··············<p·class="topless">set·03,·2024</p>
283 ··········</div>284 ··········</div>
284 ········285 ········
285 ······286 ······
286 ····</div>287 ····</div>
  
287 ····<div·id="ft">288 ····<div·id="ft">
288 ······<div·class="nav">289 ······<div·class="nav">
289 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>290 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
290 ····</div>291 ····</div>
291 ··</div>292 ··</div>
  
292 ······<div·class="clearer"></div>293 ······<div·class="clearer"></div>
293 ····</div>294 ····</div>
294 ··</body>295 ··</body>
295 </html>296 </html>
2.49 KB
html2text {}
Max HTML report size reached
7.68 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/csrf.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.csrf·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.csrf·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-csrf">69 ··········<div·class="yui-g"·id="_modules-django-middleware-csrf">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.csrf</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.csrf</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Cross·Site·Request·Forgery·Middleware.</span>73 <span·class="sd">Cross·Site·Request·Forgery·Middleware.</span>
  
73 <span·class="sd">This·module·provides·a·middleware·that·implements·protection</span>74 <span·class="sd">This·module·provides·a·middleware·that·implements·protection</span>
74 <span·class="sd">against·request·forgeries·from·other·sites.</span>75 <span·class="sd">against·request·forgeries·from·other·sites.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="kn">import</span>·<span·class="nn">logging</span>77 <span·class="kn">import</span>·<span·class="nn">logging</span>
Offset 237, 15 lines modifiedOffset 238, 15 lines modified
  
237 <span·class="k">class</span>·<span·class="nc">RejectRequest</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>238 <span·class="k">class</span>·<span·class="nc">RejectRequest</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
238 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">):</span>239 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">reason</span><span·class="p">):</span>
239 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">reason</span>240 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">reason</span>·<span·class="o">=</span>·<span·class="n">reason</span>
  
  
240 <div·class="viewcode-block"·id="CsrfViewMiddleware">241 <div·class="viewcode-block"·id="CsrfViewMiddleware">
241 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware">[docs]</a>242 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware">[documenti]</a>
242 <span·class="k">class</span>·<span·class="nc">CsrfViewMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>243 <span·class="k">class</span>·<span·class="nc">CsrfViewMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
243 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>244 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
244 <span·class="sd">····Require·a·present·and·correct·csrfmiddlewaretoken·for·POST·requests·that</span>245 <span·class="sd">····Require·a·present·and·correct·csrfmiddlewaretoken·for·POST·requests·that</span>
245 <span·class="sd">····have·a·CSRF·cookie,·and·set·an·outgoing·CSRF·cookie.</span>246 <span·class="sd">····have·a·CSRF·cookie,·and·set·an·outgoing·CSRF·cookie.</span>
  
246 <span·class="sd">····This·middleware·should·be·used·in·conjunction·with·the·{%·csrf_token·%}</span>247 <span·class="sd">····This·middleware·should·be·used·in·conjunction·with·the·{%·csrf_token·%}</span>
247 <span·class="sd">····template·tag.</span>248 <span·class="sd">····template·tag.</span>
Offset 570, 35 lines modifiedOffset 571, 35 lines modified
570 ······571 ······
571 ········572 ········
572 ··········<div·class="yui-b"·id="sidebar">573 ··········<div·class="yui-b"·id="sidebar">
573 ············574 ············
574 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">575 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
575 ········<div·class="sphinxsidebarwrapper">576 ········<div·class="sphinxsidebarwrapper">
576 <search·id="searchbox"·style="display:·none"·role="search">577 <search·id="searchbox"·style="display:·none"·role="search">
577 ··<h3·id="searchlabel">Quick·search</h3>578 ··<h3·id="searchlabel">Ricerca·veloce</h3>
578 ····<div·class="searchformwrapper">579 ····<div·class="searchformwrapper">
579 ····<form·class="search"·action="../../../search.html"·method="get">580 ····<form·class="search"·action="../../../search.html"·method="get">
580 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>581 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
581 ······<input·type="submit"·value="Go"·/>582 ······<input·type="submit"·value="Vai"·/>
582 ····</form>583 ····</form>
583 ····</div>584 ····</div>
584 </search>585 </search>
585 <script>document.getElementById('searchbox').style.display·=·"block"</script>586 <script>document.getElementById('searchbox').style.display·=·"block"</script>
586 ········</div>587 ········</div>
587 ······</div>588 ······</div>
588 ··············<h3>Last·update:</h3>589 ··············<h3>Last·update:</h3>
589 ··············<p·class="topless">Sep·03,·2024</p>590 ··············<p·class="topless">set·03,·2024</p>
590 ··········</div>591 ··········</div>
591 ········592 ········
592 ······593 ······
593 ····</div>594 ····</div>
  
594 ····<div·id="ft">595 ····<div·id="ft">
595 ······<div·class="nav">596 ······<div·class="nav">
596 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>597 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
597 ····</div>598 ····</div>
598 ··</div>599 ··</div>
  
599 ······<div·class="clearer"></div>600 ······<div·class="clearer"></div>
600 ····</div>601 ····</div>
601 ··</body>602 ··</body>
602 </html>603 </html>
2.04 KB
html2text {}
Max HTML report size reached
7.45 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/gzip.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.gzip·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.gzip·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-gzip">69 ··········<div·class="yui-g"·id="_modules-django-middleware-gzip">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.gzip</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.gzip</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>
72 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>73 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.regex_helper</span>·<span·class="kn">import</span>·<span·class="n">_lazy_re_compile</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.regex_helper</span>·<span·class="kn">import</span>·<span·class="n">_lazy_re_compile</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">compress_sequence</span><span·class="p">,</span>·<span·class="n">compress_string</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">compress_sequence</span><span·class="p">,</span>·<span·class="n">compress_string</span>
  
75 <span·class="n">re_accepts_gzip</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\bgzip\b&quot;</span><span·class="p">)</span>76 <span·class="n">re_accepts_gzip</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\bgzip\b&quot;</span><span·class="p">)</span>
  
  
76 <div·class="viewcode-block"·id="GZipMiddleware">77 <div·class="viewcode-block"·id="GZipMiddleware">
77 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.gzip.GZipMiddleware">[docs]</a>78 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.gzip.GZipMiddleware">[documenti]</a>
78 <span·class="k">class</span>·<span·class="nc">GZipMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>79 <span·class="k">class</span>·<span·class="nc">GZipMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
79 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
80 <span·class="sd">····Compress·content·if·the·browser·allows·gzip·compression.</span>81 <span·class="sd">····Compress·content·if·the·browser·allows·gzip·compression.</span>
81 <span·class="sd">····Set·the·Vary·header·accordingly,·so·that·caches·will·base·their·storage</span>82 <span·class="sd">····Set·the·Vary·header·accordingly,·so·that·caches·will·base·their·storage</span>
82 <span·class="sd">····on·the·Accept-Encoding·header.</span>83 <span·class="sd">····on·the·Accept-Encoding·header.</span>
83 <span·class="sd">····&quot;&quot;&quot;</span>84 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 156, 35 lines modifiedOffset 157, 35 lines modified
156 ······157 ······
157 ········158 ········
158 ··········<div·class="yui-b"·id="sidebar">159 ··········<div·class="yui-b"·id="sidebar">
159 ············160 ············
160 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">161 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
161 ········<div·class="sphinxsidebarwrapper">162 ········<div·class="sphinxsidebarwrapper">
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../../../search.html"·method="get">166 ····<form·class="search"·action="../../../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
182 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>183 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
183 ····</div>184 ····</div>
184 ··</div>185 ··</div>
  
185 ······<div·class="clearer"></div>186 ······<div·class="clearer"></div>
186 ····</div>187 ····</div>
187 ··</body>188 ··</body>
188 </html>189 </html>
1.87 KB
html2text {}
Max HTML report size reached
7.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/http.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.http·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.http·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-http">69 ··········<div·class="yui-g"·id="_modules-django-middleware-http">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.http</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.http</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">cc_delim_re</span><span·class="p">,</span>·<span·class="n">get_conditional_response</span><span·class="p">,</span>·<span·class="n">set_response_etag</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">cc_delim_re</span><span·class="p">,</span>·<span·class="n">get_conditional_response</span><span·class="p">,</span>·<span·class="n">set_response_etag</span>
72 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>73 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">parse_http_date_safe</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">parse_http_date_safe</span>
  
  
74 <div·class="viewcode-block"·id="ConditionalGetMiddleware">75 <div·class="viewcode-block"·id="ConditionalGetMiddleware">
75 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.http.ConditionalGetMiddleware">[docs]</a>76 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.http.ConditionalGetMiddleware">[documenti]</a>
76 <span·class="k">class</span>·<span·class="nc">ConditionalGetMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>77 <span·class="k">class</span>·<span·class="nc">ConditionalGetMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>78 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
78 <span·class="sd">····Handle·conditional·GET·operations.·If·the·response·has·an·ETag·or</span>79 <span·class="sd">····Handle·conditional·GET·operations.·If·the·response·has·an·ETag·or</span>
79 <span·class="sd">····Last-Modified·header·and·the·request·has·If-None-Match·or·If-Modified-Since,</span>80 <span·class="sd">····Last-Modified·header·and·the·request·has·If-None-Match·or·If-Modified-Since,</span>
80 <span·class="sd">····replace·the·response·with·HttpNotModified.·Add·an·ETag·header·if·needed.</span>81 <span·class="sd">····replace·the·response·with·HttpNotModified.·Add·an·ETag·header·if·needed.</span>
81 <span·class="sd">····&quot;&quot;&quot;</span>82 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 122, 35 lines modifiedOffset 123, 35 lines modified
122 ······123 ······
123 ········124 ········
124 ··········<div·class="yui-b"·id="sidebar">125 ··········<div·class="yui-b"·id="sidebar">
125 ············126 ············
126 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">127 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
127 ········<div·class="sphinxsidebarwrapper">128 ········<div·class="sphinxsidebarwrapper">
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../../../search.html"·method="get">132 ····<form·class="search"·action="../../../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
148 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>149 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
149 ····</div>150 ····</div>
150 ··</div>151 ··</div>
  
151 ······<div·class="clearer"></div>152 ······<div·class="clearer"></div>
152 ····</div>153 ····</div>
153 ··</body>154 ··</body>
154 </html>155 </html>
1.92 KB
html2text {}
Max HTML report size reached
7.86 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/locale.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.locale·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.locale·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 42 lines modifiedOffset 51, 42 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-locale">69 ··········<div·class="yui-g"·id="_modules-django-middleware-locale">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.locale</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.locale</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
72 <span·class="kn">from</span>·<span·class="nn">django.conf.urls.i18n</span>·<span·class="kn">import</span>·<span·class="n">is_language_prefix_patterns_used</span>73 <span·class="kn">from</span>·<span·class="nn">django.conf.urls.i18n</span>·<span·class="kn">import</span>·<span·class="n">is_language_prefix_patterns_used</span>
73 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponseRedirect</span>74 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponseRedirect</span>
74 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">get_script_prefix</span><span·class="p">,</span>·<span·class="n">is_valid_path</span>75 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">get_script_prefix</span><span·class="p">,</span>·<span·class="n">is_valid_path</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>
77 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>78 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
  
78 <div·class="viewcode-block"·id="LocaleMiddleware">79 <div·class="viewcode-block"·id="LocaleMiddleware">
79 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.locale.LocaleMiddleware">[docs]</a>80 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.locale.LocaleMiddleware">[documenti]</a>
80 <span·class="k">class</span>·<span·class="nc">LocaleMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>81 <span·class="k">class</span>·<span·class="nc">LocaleMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>82 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
82 <span·class="sd">····Parse·a·request·and·decide·what·translation·object·to·install·in·the</span>83 <span·class="sd">····Parse·a·request·and·decide·what·translation·object·to·install·in·the</span>
83 <span·class="sd">····current·thread·context.·This·allows·pages·to·be·dynamically·translated·to</span>84 <span·class="sd">····current·thread·context.·This·allows·pages·to·be·dynamically·translated·to</span>
84 <span·class="sd">····the·language·the·user·desires·(if·the·language·is·available).</span>85 <span·class="sd">····the·language·the·user·desires·(if·the·language·is·available).</span>
85 <span·class="sd">····&quot;&quot;&quot;</span>86 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 162, 35 lines modifiedOffset 163, 35 lines modified
162 ······163 ······
163 ········164 ········
164 ··········<div·class="yui-b"·id="sidebar">165 ··········<div·class="yui-b"·id="sidebar">
165 ············166 ············
166 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">167 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
167 ········<div·class="sphinxsidebarwrapper">168 ········<div·class="sphinxsidebarwrapper">
168 <search·id="searchbox"·style="display:·none"·role="search">169 <search·id="searchbox"·style="display:·none"·role="search">
169 ··<h3·id="searchlabel">Quick·search</h3>170 ··<h3·id="searchlabel">Ricerca·veloce</h3>
170 ····<div·class="searchformwrapper">171 ····<div·class="searchformwrapper">
171 ····<form·class="search"·action="../../../search.html"·method="get">172 ····<form·class="search"·action="../../../search.html"·method="get">
172 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>173 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
173 ······<input·type="submit"·value="Go"·/>174 ······<input·type="submit"·value="Vai"·/>
174 ····</form>175 ····</form>
175 ····</div>176 ····</div>
176 </search>177 </search>
177 <script>document.getElementById('searchbox').style.display·=·"block"</script>178 <script>document.getElementById('searchbox').style.display·=·"block"</script>
178 ········</div>179 ········</div>
179 ······</div>180 ······</div>
180 ··············<h3>Last·update:</h3>181 ··············<h3>Last·update:</h3>
181 ··············<p·class="topless">Sep·03,·2024</p>182 ··············<p·class="topless">set·03,·2024</p>
182 ··········</div>183 ··········</div>
183 ········184 ········
184 ······185 ······
185 ····</div>186 ····</div>
  
186 ····<div·id="ft">187 ····<div·id="ft">
187 ······<div·class="nav">188 ······<div·class="nav">
188 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>189 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
189 ····</div>190 ····</div>
190 ··</div>191 ··</div>
  
191 ······<div·class="clearer"></div>192 ······<div·class="clearer"></div>
192 ····</div>193 ····</div>
193 ··</body>194 ··</body>
194 </html>195 </html>
2.03 KB
html2text {}
Max HTML report size reached
8.11 KB
./usr/share/doc/python-django-doc/html/_modules/django/middleware/security.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.middleware.security·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.middleware.security·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-middleware-security">69 ··········<div·class="yui-g"·id="_modules-django-middleware-security">
69 ············70 ············
70 ··<h1>Source·code·for·django.middleware.security</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.middleware.security</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">re</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
73 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponsePermanentRedirect</span>74 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponsePermanentRedirect</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.deprecation</span>·<span·class="kn">import</span>·<span·class="n">MiddlewareMixin</span>
  
  
75 <div·class="viewcode-block"·id="SecurityMiddleware">76 <div·class="viewcode-block"·id="SecurityMiddleware">
76 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.security.SecurityMiddleware">[docs]</a>77 <a·class="viewcode-back"·href="../../../ref/middleware.html#django.middleware.security.SecurityMiddleware">[documenti]</a>
77 <span·class="k">class</span>·<span·class="nc">SecurityMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>78 <span·class="k">class</span>·<span·class="nc">SecurityMiddleware</span><span·class="p">(</span><span·class="n">MiddlewareMixin</span><span·class="p">):</span>
78 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">get_response</span><span·class="p">):</span>79 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">get_response</span><span·class="p">):</span>
79 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">get_response</span><span·class="p">)</span>80 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">get_response</span><span·class="p">)</span>
80 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_seconds</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_SECONDS</span>81 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_seconds</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_SECONDS</span>
81 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_include_subdomains</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_INCLUDE_SUBDOMAINS</span>82 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_include_subdomains</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_INCLUDE_SUBDOMAINS</span>
82 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_preload</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_PRELOAD</span>83 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">sts_preload</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_HSTS_PRELOAD</span>
83 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_nosniff</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_CONTENT_TYPE_NOSNIFF</span>84 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">content_type_nosniff</span>·<span·class="o">=</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">SECURE_CONTENT_TYPE_NOSNIFF</span>
Offset 148, 35 lines modifiedOffset 149, 35 lines modified
148 ······149 ······
149 ········150 ········
150 ··········<div·class="yui-b"·id="sidebar">151 ··········<div·class="yui-b"·id="sidebar">
151 ············152 ············
152 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">153 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
153 ········<div·class="sphinxsidebarwrapper">154 ········<div·class="sphinxsidebarwrapper">
154 <search·id="searchbox"·style="display:·none"·role="search">155 <search·id="searchbox"·style="display:·none"·role="search">
155 ··<h3·id="searchlabel">Quick·search</h3>156 ··<h3·id="searchlabel">Ricerca·veloce</h3>
156 ····<div·class="searchformwrapper">157 ····<div·class="searchformwrapper">
157 ····<form·class="search"·action="../../../search.html"·method="get">158 ····<form·class="search"·action="../../../search.html"·method="get">
158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
159 ······<input·type="submit"·value="Go"·/>160 ······<input·type="submit"·value="Vai"·/>
160 ····</form>161 ····</form>
161 ····</div>162 ····</div>
162 </search>163 </search>
163 <script>document.getElementById('searchbox').style.display·=·"block"</script>164 <script>document.getElementById('searchbox').style.display·=·"block"</script>
164 ········</div>165 ········</div>
165 ······</div>166 ······</div>
166 ··············<h3>Last·update:</h3>167 ··············<h3>Last·update:</h3>
167 ··············<p·class="topless">Sep·03,·2024</p>168 ··············<p·class="topless">set·03,·2024</p>
168 ··········</div>169 ··········</div>
169 ········170 ········
170 ······171 ······
171 ····</div>172 ····</div>
  
172 ····<div·id="ft">173 ····<div·id="ft">
173 ······<div·class="nav">174 ······<div·class="nav">
174 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>175 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
175 ····</div>176 ····</div>
176 ··</div>177 ··</div>
  
177 ······<div·class="clearer"></div>178 ······<div·class="clearer"></div>
178 ····</div>179 ····</div>
179 ··</body>180 ··</body>
180 </html>181 </html>
1.92 KB
html2text {}
Max HTML report size reached
14.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/shortcuts.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.shortcuts·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.shortcuts·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../templatebuiltins.js"></script>16 <script·src="../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-shortcuts">69 ··········<div·class="yui-g"·id="_modules-django-shortcuts">
69 ············70 ············
70 ··<h1>Source·code·for·django.shortcuts</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.shortcuts</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·module·collects·helper·functions·and·classes·that·&quot;span&quot;·multiple·levels</span>73 <span·class="sd">This·module·collects·helper·functions·and·classes·that·&quot;span&quot;·multiple·levels</span>
73 <span·class="sd">of·MVC.·In·other·words,·these·functions/classes·introduce·controlled·coupling</span>74 <span·class="sd">of·MVC.·In·other·words,·these·functions/classes·introduce·controlled·coupling</span>
74 <span·class="sd">for·convenience&#39;s·sake.</span>75 <span·class="sd">for·convenience&#39;s·sake.</span>
75 <span·class="sd">&quot;&quot;&quot;</span>76 <span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="p">(</span>77 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="p">(</span>
77 ····<span·class="n">Http404</span><span·class="p">,</span>78 ····<span·class="n">Http404</span><span·class="p">,</span>
Offset 84, 29 lines modifiedOffset 85, 29 lines modified
84 <span·class="p">)</span>85 <span·class="p">)</span>
85 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">loader</span>86 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">loader</span>
86 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">NoReverseMatch</span><span·class="p">,</span>·<span·class="n">reverse</span>87 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">NoReverseMatch</span><span·class="p">,</span>·<span·class="n">reverse</span>
87 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">Promise</span>88 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">Promise</span>
  
  
88 <div·class="viewcode-block"·id="render">89 <div·class="viewcode-block"·id="render">
89 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.render">[docs]</a>90 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.render">[documenti]</a>
90 <span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span>91 <span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span>
91 ····<span·class="n">request</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">status</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span>92 ····<span·class="n">request</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">status</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span>
92 <span·class="p">):</span>93 <span·class="p">):</span>
93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
94 <span·class="sd">····Return·an·HttpResponse·whose·content·is·filled·with·the·result·of·calling</span>95 <span·class="sd">····Return·an·HttpResponse·whose·content·is·filled·with·the·result·of·calling</span>
95 <span·class="sd">····django.template.loader.render_to_string()·with·the·passed·arguments.</span>96 <span·class="sd">····django.template.loader.render_to_string()·with·the·passed·arguments.</span>
96 <span·class="sd">····&quot;&quot;&quot;</span>97 <span·class="sd">····&quot;&quot;&quot;</span>
97 ····<span·class="n">content</span>·<span·class="o">=</span>·<span·class="n">loader</span><span·class="o">.</span><span·class="n">render_to_string</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="n">using</span><span·class="p">)</span>98 ····<span·class="n">content</span>·<span·class="o">=</span>·<span·class="n">loader</span><span·class="o">.</span><span·class="n">render_to_string</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="n">using</span><span·class="p">)</span>
98 ····<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="n">content</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">status</span><span·class="p">)</span></div>99 ····<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="n">content</span><span·class="p">,</span>·<span·class="n">content_type</span><span·class="p">,</span>·<span·class="n">status</span><span·class="p">)</span></div>
  
  
  
99 <div·class="viewcode-block"·id="redirect">100 <div·class="viewcode-block"·id="redirect">
100 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.redirect">[docs]</a>101 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.redirect">[documenti]</a>
101 <span·class="k">def</span>·<span·class="nf">redirect</span><span·class="p">(</span><span·class="n">to</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="n">permanent</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>102 <span·class="k">def</span>·<span·class="nf">redirect</span><span·class="p">(</span><span·class="n">to</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="n">permanent</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
102 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>103 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
103 <span·class="sd">····Return·an·HttpResponseRedirect·to·the·appropriate·URL·for·the·arguments</span>104 <span·class="sd">····Return·an·HttpResponseRedirect·to·the·appropriate·URL·for·the·arguments</span>
104 <span·class="sd">····passed.</span>105 <span·class="sd">····passed.</span>
  
105 <span·class="sd">····The·arguments·could·be:</span>106 <span·class="sd">····The·arguments·could·be:</span>
  
Offset 137, 15 lines modifiedOffset 138, 15 lines modified
137 ····<span·class="c1">#·If·it·is·a·model·class·or·anything·else·with·._default_manager</span>138 ····<span·class="c1">#·If·it·is·a·model·class·or·anything·else·with·._default_manager</span>
138 ····<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="s2">&quot;_default_manager&quot;</span><span·class="p">):</span>139 ····<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="s2">&quot;_default_manager&quot;</span><span·class="p">):</span>
139 ········<span·class="k">return</span>·<span·class="n">klass</span><span·class="o">.</span><span·class="n">_default_manager</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>140 ········<span·class="k">return</span>·<span·class="n">klass</span><span·class="o">.</span><span·class="n">_default_manager</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
140 ····<span·class="k">return</span>·<span·class="n">klass</span>141 ····<span·class="k">return</span>·<span·class="n">klass</span>
  
  
141 <div·class="viewcode-block"·id="get_object_or_404">142 <div·class="viewcode-block"·id="get_object_or_404">
142 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.get_object_or_404">[docs]</a>143 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.get_object_or_404">[documenti]</a>
143 <span·class="k">def</span>·<span·class="nf">get_object_or_404</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>144 <span·class="k">def</span>·<span·class="nf">get_object_or_404</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
144 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>145 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
145 <span·class="sd">····Use·get()·to·return·an·object,·or·raise·an·Http404·exception·if·the·object</span>146 <span·class="sd">····Use·get()·to·return·an·object,·or·raise·an·Http404·exception·if·the·object</span>
146 <span·class="sd">····does·not·exist.</span>147 <span·class="sd">····does·not·exist.</span>
  
147 <span·class="sd">····klass·may·be·a·Model,·Manager,·or·QuerySet·object.·All·other·passed</span>148 <span·class="sd">····klass·may·be·a·Model,·Manager,·or·QuerySet·object.·All·other·passed</span>
148 <span·class="sd">····arguments·and·keyword·arguments·are·used·in·the·get()·query.</span>149 <span·class="sd">····arguments·and·keyword·arguments·are·used·in·the·get()·query.</span>
Offset 168, 15 lines modifiedOffset 169, 15 lines modified
168 ········<span·class="k">raise</span>·<span·class="n">Http404</span><span·class="p">(</span>169 ········<span·class="k">raise</span>·<span·class="n">Http404</span><span·class="p">(</span>
169 ············<span·class="s2">&quot;No·</span><span·class="si">%s</span><span·class="s2">·matches·the·given·query.&quot;</span>·<span·class="o">%</span>·<span·class="n">queryset</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">object_name</span>170 ············<span·class="s2">&quot;No·</span><span·class="si">%s</span><span·class="s2">·matches·the·given·query.&quot;</span>·<span·class="o">%</span>·<span·class="n">queryset</span><span·class="o">.</span><span·class="n">model</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">object_name</span>
170 ········<span·class="p">)</span></div>171 ········<span·class="p">)</span></div>
  
  
  
171 <div·class="viewcode-block"·id="get_list_or_404">172 <div·class="viewcode-block"·id="get_list_or_404">
172 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.get_list_or_404">[docs]</a>173 <a·class="viewcode-back"·href="../../topics/http/shortcuts.html#django.shortcuts.get_list_or_404">[documenti]</a>
173 <span·class="k">def</span>·<span·class="nf">get_list_or_404</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>174 <span·class="k">def</span>·<span·class="nf">get_list_or_404</span><span·class="p">(</span><span·class="n">klass</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
174 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>175 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
175 <span·class="sd">····Use·filter()·to·return·a·list·of·objects,·or·raise·an·Http404·exception·if</span>176 <span·class="sd">····Use·filter()·to·return·a·list·of·objects,·or·raise·an·Http404·exception·if</span>
176 <span·class="sd">····the·list·is·empty.</span>177 <span·class="sd">····the·list·is·empty.</span>
  
177 <span·class="sd">····klass·may·be·a·Model,·Manager,·or·QuerySet·object.·All·other·passed</span>178 <span·class="sd">····klass·may·be·a·Model,·Manager,·or·QuerySet·object.·All·other·passed</span>
178 <span·class="sd">····arguments·and·keyword·arguments·are·used·in·the·filter()·query.</span>179 <span·class="sd">····arguments·and·keyword·arguments·are·used·in·the·filter()·query.</span>
Offset 246, 35 lines modifiedOffset 247, 35 lines modified
246 ······247 ······
247 ········248 ········
248 ··········<div·class="yui-b"·id="sidebar">249 ··········<div·class="yui-b"·id="sidebar">
249 ············250 ············
250 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">251 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
251 ········<div·class="sphinxsidebarwrapper">252 ········<div·class="sphinxsidebarwrapper">
252 <search·id="searchbox"·style="display:·none"·role="search">253 <search·id="searchbox"·style="display:·none"·role="search">
253 ··<h3·id="searchlabel">Quick·search</h3>254 ··<h3·id="searchlabel">Ricerca·veloce</h3>
254 ····<div·class="searchformwrapper">255 ····<div·class="searchformwrapper">
255 ····<form·class="search"·action="../../search.html"·method="get">256 ····<form·class="search"·action="../../search.html"·method="get">
Max diff block lines reached; 712/10782 bytes (6.60%) of diff not shown.
3.3 KB
html2text {}
Max HTML report size reached
8.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/backends/django.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.backends.django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.backends.django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 46 lines modifiedOffset 51, 46 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-backends-django">69 ··········<div·class="yui-g"·id="_modules-django-template-backends-django">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.backends.django</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.backends.django</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
72 <span·class="kn">from</span>·<span·class="nn">pkgutil</span>·<span·class="kn">import</span>·<span·class="n">walk_packages</span>73 <span·class="kn">from</span>·<span·class="nn">pkgutil</span>·<span·class="kn">import</span>·<span·class="n">walk_packages</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>74 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
75 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>76 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>
76 <span·class="kn">from</span>·<span·class="nn">django.template.context</span>·<span·class="kn">import</span>·<span·class="n">make_context</span>77 <span·class="kn">from</span>·<span·class="nn">django.template.context</span>·<span·class="kn">import</span>·<span·class="n">make_context</span>
77 <span·class="kn">from</span>·<span·class="nn">django.template.engine</span>·<span·class="kn">import</span>·<span·class="n">Engine</span>78 <span·class="kn">from</span>·<span·class="nn">django.template.engine</span>·<span·class="kn">import</span>·<span·class="n">Engine</span>
78 <span·class="kn">from</span>·<span·class="nn">django.template.library</span>·<span·class="kn">import</span>·<span·class="n">InvalidTemplateLibrary</span>79 <span·class="kn">from</span>·<span·class="nn">django.template.library</span>·<span·class="kn">import</span>·<span·class="n">InvalidTemplateLibrary</span>
  
79 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">BaseEngine</span>80 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">BaseEngine</span>
  
  
80 <div·class="viewcode-block"·id="DjangoTemplates">81 <div·class="viewcode-block"·id="DjangoTemplates">
81 <a·class="viewcode-back"·href="../../../../topics/templates.html#django.template.backends.django.DjangoTemplates">[docs]</a>82 <a·class="viewcode-back"·href="../../../../topics/templates.html#django.template.backends.django.DjangoTemplates">[documenti]</a>
82 <span·class="k">class</span>·<span·class="nc">DjangoTemplates</span><span·class="p">(</span><span·class="n">BaseEngine</span><span·class="p">):</span>83 <span·class="k">class</span>·<span·class="nc">DjangoTemplates</span><span·class="p">(</span><span·class="n">BaseEngine</span><span·class="p">):</span>
83 ····<span·class="n">app_dirname</span>·<span·class="o">=</span>·<span·class="s2">&quot;templates&quot;</span>84 ····<span·class="n">app_dirname</span>·<span·class="o">=</span>·<span·class="s2">&quot;templates&quot;</span>
  
84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">):</span>85 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">):</span>
85 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>86 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>
86 ········<span·class="n">options</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>87 ········<span·class="n">options</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>
87 ········<span·class="n">options</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;autoescape&quot;</span><span·class="p">,</span>·<span·class="kc">True</span><span·class="p">)</span>88 ········<span·class="n">options</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;autoescape&quot;</span><span·class="p">,</span>·<span·class="kc">True</span><span·class="p">)</span>
Offset 218, 35 lines modifiedOffset 219, 35 lines modified
218 ······219 ······
219 ········220 ········
220 ··········<div·class="yui-b"·id="sidebar">221 ··········<div·class="yui-b"·id="sidebar">
221 ············222 ············
222 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">223 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
223 ········<div·class="sphinxsidebarwrapper">224 ········<div·class="sphinxsidebarwrapper">
224 <search·id="searchbox"·style="display:·none"·role="search">225 <search·id="searchbox"·style="display:·none"·role="search">
225 ··<h3·id="searchlabel">Quick·search</h3>226 ··<h3·id="searchlabel">Ricerca·veloce</h3>
226 ····<div·class="searchformwrapper">227 ····<div·class="searchformwrapper">
227 ····<form·class="search"·action="../../../../search.html"·method="get">228 ····<form·class="search"·action="../../../../search.html"·method="get">
228 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>229 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
229 ······<input·type="submit"·value="Go"·/>230 ······<input·type="submit"·value="Vai"·/>
230 ····</form>231 ····</form>
231 ····</div>232 ····</div>
232 </search>233 </search>
233 <script>document.getElementById('searchbox').style.display·=·"block"</script>234 <script>document.getElementById('searchbox').style.display·=·"block"</script>
234 ········</div>235 ········</div>
235 ······</div>236 ······</div>
236 ··············<h3>Last·update:</h3>237 ··············<h3>Last·update:</h3>
237 ··············<p·class="topless">Sep·03,·2024</p>238 ··············<p·class="topless">set·03,·2024</p>
238 ··········</div>239 ··········</div>
239 ········240 ········
240 ······241 ······
241 ····</div>242 ····</div>
  
242 ····<div·id="ft">243 ····<div·id="ft">
243 ······<div·class="nav">244 ······<div·class="nav">
244 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>245 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
245 ····</div>246 ····</div>
246 ··</div>247 ··</div>
  
247 ······<div·class="clearer"></div>248 ······<div·class="clearer"></div>
248 ····</div>249 ····</div>
249 ··</body>250 ··</body>
250 </html>251 </html>
2.07 KB
html2text {}
Max HTML report size reached
8.46 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/backends/jinja2.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.backends.jinja2·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.backends.jinja2·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 46 lines modifiedOffset 51, 46 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-backends-jinja2">69 ··········<div·class="yui-g"·id="_modules-django-template-backends-jinja2">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.backends.jinja2</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.backends.jinja2</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>
  
72 <span·class="kn">import</span>·<span·class="nn">jinja2</span>73 <span·class="kn">import</span>·<span·class="nn">jinja2</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
74 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">,</span>·<span·class="n">TemplateSyntaxError</span>75 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">,</span>·<span·class="n">TemplateSyntaxError</span>
75 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
76 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>
  
77 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">BaseEngine</span>78 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">BaseEngine</span>
78 <span·class="kn">from</span>·<span·class="nn">.utils</span>·<span·class="kn">import</span>·<span·class="n">csrf_input_lazy</span><span·class="p">,</span>·<span·class="n">csrf_token_lazy</span>79 <span·class="kn">from</span>·<span·class="nn">.utils</span>·<span·class="kn">import</span>·<span·class="n">csrf_input_lazy</span><span·class="p">,</span>·<span·class="n">csrf_token_lazy</span>
  
  
79 <div·class="viewcode-block"·id="Jinja2">80 <div·class="viewcode-block"·id="Jinja2">
80 <a·class="viewcode-back"·href="../../../../topics/templates.html#django.template.backends.jinja2.Jinja2">[docs]</a>81 <a·class="viewcode-back"·href="../../../../topics/templates.html#django.template.backends.jinja2.Jinja2">[documenti]</a>
81 <span·class="k">class</span>·<span·class="nc">Jinja2</span><span·class="p">(</span><span·class="n">BaseEngine</span><span·class="p">):</span>82 <span·class="k">class</span>·<span·class="nc">Jinja2</span><span·class="p">(</span><span·class="n">BaseEngine</span><span·class="p">):</span>
82 ····<span·class="n">app_dirname</span>·<span·class="o">=</span>·<span·class="s2">&quot;jinja2&quot;</span>83 ····<span·class="n">app_dirname</span>·<span·class="o">=</span>·<span·class="s2">&quot;jinja2&quot;</span>
  
83 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">):</span>84 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">):</span>
84 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>85 ········<span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>
85 ········<span·class="n">options</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>86 ········<span·class="n">options</span>·<span·class="o">=</span>·<span·class="n">params</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">(</span><span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>
86 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">params</span><span·class="p">)</span>87 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">params</span><span·class="p">)</span>
Offset 207, 35 lines modifiedOffset 208, 35 lines modified
207 ······208 ······
208 ········209 ········
209 ··········<div·class="yui-b"·id="sidebar">210 ··········<div·class="yui-b"·id="sidebar">
210 ············211 ············
211 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">212 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
212 ········<div·class="sphinxsidebarwrapper">213 ········<div·class="sphinxsidebarwrapper">
213 <search·id="searchbox"·style="display:·none"·role="search">214 <search·id="searchbox"·style="display:·none"·role="search">
214 ··<h3·id="searchlabel">Quick·search</h3>215 ··<h3·id="searchlabel">Ricerca·veloce</h3>
215 ····<div·class="searchformwrapper">216 ····<div·class="searchformwrapper">
216 ····<form·class="search"·action="../../../../search.html"·method="get">217 ····<form·class="search"·action="../../../../search.html"·method="get">
217 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>218 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
218 ······<input·type="submit"·value="Go"·/>219 ······<input·type="submit"·value="Vai"·/>
219 ····</form>220 ····</form>
220 ····</div>221 ····</div>
221 </search>222 </search>
222 <script>document.getElementById('searchbox').style.display·=·"block"</script>223 <script>document.getElementById('searchbox').style.display·=·"block"</script>
223 ········</div>224 ········</div>
224 ······</div>225 ······</div>
225 ··············<h3>Last·update:</h3>226 ··············<h3>Last·update:</h3>
226 ··············<p·class="topless">Sep·03,·2024</p>227 ··············<p·class="topless">set·03,·2024</p>
227 ··········</div>228 ··········</div>
228 ········229 ········
229 ······230 ······
230 ····</div>231 ····</div>
  
231 ····<div·id="ft">232 ····<div·id="ft">
232 ······<div·class="nav">233 ······<div·class="nav">
233 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>234 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
234 ····</div>235 ····</div>
235 ··</div>236 ··</div>
  
236 ······<div·class="clearer"></div>237 ······<div·class="clearer"></div>
237 ····</div>238 ····</div>
238 ··</body>239 ··</body>
239 </html>240 </html>
1.89 KB
html2text {}
Max HTML report size reached
13.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-base">69 ··········<div·class="yui-g"·id="_modules-django-template-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·is·the·Django·template·system.</span>73 <span·class="sd">This·is·the·Django·template·system.</span>
  
73 <span·class="sd">How·it·works:</span>74 <span·class="sd">How·it·works:</span>
  
74 <span·class="sd">The·Lexer.tokenize()·method·converts·a·template·string·(i.e.,·a·string</span>75 <span·class="sd">The·Lexer.tokenize()·method·converts·a·template·string·(i.e.,·a·string</span>
75 <span·class="sd">containing·markup·with·custom·template·tags)·to·tokens,·which·can·be·either</span>76 <span·class="sd">containing·markup·with·custom·template·tags)·to·tokens,·which·can·be·either</span>
Offset 177, 15 lines modifiedOffset 178, 15 lines modified
177 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span>178 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">params</span>·<span·class="o">=</span>·<span·class="n">params</span>
  
178 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>179 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
179 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">msg</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">params</span>180 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">msg</span>·<span·class="o">%</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">params</span>
  
  
180 <div·class="viewcode-block"·id="Origin">181 <div·class="viewcode-block"·id="Origin">
181 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Origin">[docs]</a>182 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Origin">[documenti]</a>
182 <span·class="k">class</span>·<span·class="nc">Origin</span><span·class="p">:</span>183 <span·class="k">class</span>·<span·class="nc">Origin</span><span·class="p">:</span>
183 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">loader</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>184 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">name</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">loader</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
184 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>185 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">name</span>
185 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="n">template_name</span>186 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="n">template_name</span>
186 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span>·<span·class="o">=</span>·<span·class="n">loader</span>187 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span>·<span·class="o">=</span>·<span·class="n">loader</span>
  
187 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>188 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
Offset 208, 15 lines modifiedOffset 209, 15 lines modified
208 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span><span·class="o">.</span><span·class="vm">__module__</span><span·class="p">,</span>209 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span><span·class="o">.</span><span·class="vm">__module__</span><span·class="p">,</span>
209 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>210 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">loader</span><span·class="o">.</span><span·class="vm">__class__</span><span·class="o">.</span><span·class="vm">__name__</span><span·class="p">,</span>
210 ············<span·class="p">)</span></div>211 ············<span·class="p">)</span></div>
  
  
  
211 <div·class="viewcode-block"·id="Template">212 <div·class="viewcode-block"·id="Template">
212 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Template">[docs]</a>213 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Template">[documenti]</a>
213 <span·class="k">class</span>·<span·class="nc">Template</span><span·class="p">:</span>214 <span·class="k">class</span>·<span·class="nc">Template</span><span·class="p">:</span>
214 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_string</span><span·class="p">,</span>·<span·class="n">origin</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>215 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_string</span><span·class="p">,</span>·<span·class="n">origin</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
215 ········<span·class="c1">#·If·Template·is·instantiated·directly·rather·than·from·an·Engine·and</span>216 ········<span·class="c1">#·If·Template·is·instantiated·directly·rather·than·from·an·Engine·and</span>
216 ········<span·class="c1">#·exactly·one·Django·template·engine·is·configured,·use·that·engine.</span>217 ········<span·class="c1">#·exactly·one·Django·template·engine·is·configured,·use·that·engine.</span>
217 ········<span·class="c1">#·This·is·required·to·preserve·backwards-compatibility·for·direct·use</span>218 ········<span·class="c1">#·This·is·required·to·preserve·backwards-compatibility·for·direct·use</span>
218 ········<span·class="c1">#·e.g.·Template(&#39;...&#39;).render(Context({...}))</span>219 ········<span·class="c1">#·e.g.·Template(&#39;...&#39;).render(Context({...}))</span>
219 ········<span·class="k">if</span>·<span·class="n">engine</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>220 ········<span·class="k">if</span>·<span·class="n">engine</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
Offset 241, 15 lines modifiedOffset 242, 15 lines modified
241 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">source</span><span·class="p">[:</span><span·class="mi">20</span><span·class="p">]</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;&quot;</span><span·class="p">),</span>242 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">source</span><span·class="p">[:</span><span·class="mi">20</span><span·class="p">]</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;&quot;</span><span·class="p">),</span>
242 ········<span·class="p">)</span>243 ········<span·class="p">)</span>
  
243 ····<span·class="k">def</span>·<span·class="nf">_render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>244 ····<span·class="k">def</span>·<span·class="nf">_render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>
244 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">nodelist</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>245 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">nodelist</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>
  
245 <div·class="viewcode-block"·id="Template.render">246 <div·class="viewcode-block"·id="Template.render">
246 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Template.render">[docs]</a>247 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Template.render">[documenti]</a>
247 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>248 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>
248 ········<span·class="s2">&quot;Display·stage·--·can·be·called·many·times&quot;</span>249 ········<span·class="s2">&quot;Display·stage·--·can·be·called·many·times&quot;</span>
249 ········<span·class="k">with</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">render_context</span><span·class="o">.</span><span·class="n">push_state</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>250 ········<span·class="k">with</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">render_context</span><span·class="o">.</span><span·class="n">push_state</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
250 ············<span·class="k">if</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">template</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>251 ············<span·class="k">if</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">template</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
251 ················<span·class="k">with</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">bind_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>252 ················<span·class="k">with</span>·<span·class="n">context</span><span·class="o">.</span><span·class="n">bind_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
252 ····················<span·class="n">context</span><span·class="o">.</span><span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>253 ····················<span·class="n">context</span><span·class="o">.</span><span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span>
253 ····················<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>254 ····················<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>
Offset 1209, 35 lines modifiedOffset 1210, 35 lines modified
1209 ······1210 ······
1210 ········1211 ········
1211 ··········<div·class="yui-b"·id="sidebar">1212 ··········<div·class="yui-b"·id="sidebar">
1212 ············1213 ············
1213 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">1214 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
1214 ········<div·class="sphinxsidebarwrapper">1215 ········<div·class="sphinxsidebarwrapper">
1215 <search·id="searchbox"·style="display:·none"·role="search">1216 <search·id="searchbox"·style="display:·none"·role="search">
1216 ··<h3·id="searchlabel">Quick·search</h3>1217 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1217 ····<div·class="searchformwrapper">1218 ····<div·class="searchformwrapper">
1218 ····<form·class="search"·action="../../../search.html"·method="get">1219 ····<form·class="search"·action="../../../search.html"·method="get">
1219 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1220 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1220 ······<input·type="submit"·value="Go"·/>1221 ······<input·type="submit"·value="Vai"·/>
1221 ····</form>1222 ····</form>
1222 ····</div>1223 ····</div>
1223 </search>1224 </search>
1224 <script>document.getElementById('searchbox').style.display·=·"block"</script>1225 <script>document.getElementById('searchbox').style.display·=·"block"</script>
1225 ········</div>1226 ········</div>
1226 ······</div>1227 ······</div>
1227 ··············<h3>Last·update:</h3>1228 ··············<h3>Last·update:</h3>
1228 ··············<p·class="topless">Sep·03,·2024</p>1229 ··············<p·class="topless">set·03,·2024</p>
1229 ··········</div>1230 ··········</div>
1230 ········1231 ········
1231 ······1232 ······
1232 ····</div>1233 ····</div>
Max diff block lines reached; 299/10576 bytes (2.83%) of diff not shown.
2.99 KB
html2text {}
Max HTML report size reached
14.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/context.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.context·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.context·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-context">69 ··········<div·class="yui-g"·id="_modules-django-template-context">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.context</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.context</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">contextmanager</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">contextmanager</span>
72 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>73 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>
  
73 <span·class="c1">#·Hard-coded·processor·for·easier·use·of·CSRF·protection.</span>74 <span·class="c1">#·Hard-coded·processor·for·easier·use·of·CSRF·protection.</span>
74 <span·class="n">_builtin_context_processors</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;django.template.context_processors.csrf&quot;</span><span·class="p">,)</span>75 <span·class="n">_builtin_context_processors</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="s2">&quot;django.template.context_processors.csrf&quot;</span><span·class="p">,)</span>
  
  
75 <div·class="viewcode-block"·id="ContextPopException">76 <div·class="viewcode-block"·id="ContextPopException">
76 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.ContextPopException">[docs]</a>77 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.ContextPopException">[documenti]</a>
77 <span·class="k">class</span>·<span·class="nc">ContextPopException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>78 <span·class="k">class</span>·<span·class="nc">ContextPopException</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
78 ····<span·class="s2">&quot;pop()·has·been·called·more·times·than·push()&quot;</span>79 ····<span·class="s2">&quot;pop()·has·been·called·more·times·than·push()&quot;</span>
79 ····<span·class="k">pass</span></div>80 ····<span·class="k">pass</span></div>
  
  
  
80 <span·class="k">class</span>·<span·class="nc">ContextDict</span><span·class="p">(</span><span·class="nb">dict</span><span·class="p">):</span>81 <span·class="k">class</span>·<span·class="nc">ContextDict</span><span·class="p">(</span><span·class="nb">dict</span><span·class="p">):</span>
Offset 203, 15 lines modifiedOffset 204, 15 lines modified
203 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="n">BaseContext</span><span·class="p">):</span>204 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">other</span><span·class="p">,</span>·<span·class="n">BaseContext</span><span·class="p">):</span>
204 ············<span·class="k">return</span>·<span·class="bp">NotImplemented</span>205 ············<span·class="k">return</span>·<span·class="bp">NotImplemented</span>
205 ········<span·class="c1">#·flatten·dictionaries·because·they·can·be·put·in·a·different·order.</span>206 ········<span·class="c1">#·flatten·dictionaries·because·they·can·be·put·in·a·different·order.</span>
206 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">flatten</span><span·class="p">()</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">flatten</span><span·class="p">()</span>207 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">flatten</span><span·class="p">()</span>·<span·class="o">==</span>·<span·class="n">other</span><span·class="o">.</span><span·class="n">flatten</span><span·class="p">()</span>
  
  
207 <div·class="viewcode-block"·id="Context">208 <div·class="viewcode-block"·id="Context">
208 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Context">[docs]</a>209 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Context">[documenti]</a>
209 <span·class="k">class</span>·<span·class="nc">Context</span><span·class="p">(</span><span·class="n">BaseContext</span><span·class="p">):</span>210 <span·class="k">class</span>·<span·class="nc">Context</span><span·class="p">(</span><span·class="n">BaseContext</span><span·class="p">):</span>
210 ····<span·class="s2">&quot;A·stack·container·for·variable·context&quot;</span>211 ····<span·class="s2">&quot;A·stack·container·for·variable·context&quot;</span>
  
211 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">dict_</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">autoescape</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">use_l10n</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">use_tz</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>212 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">dict_</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">autoescape</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">use_l10n</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">use_tz</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
212 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span>·<span·class="o">=</span>·<span·class="n">autoescape</span>213 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span>·<span·class="o">=</span>·<span·class="n">autoescape</span>
213 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">use_l10n</span>·<span·class="o">=</span>·<span·class="n">use_l10n</span>214 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">use_l10n</span>·<span·class="o">=</span>·<span·class="n">use_l10n</span>
214 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">use_tz</span>·<span·class="o">=</span>·<span·class="n">use_tz</span>215 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">use_tz</span>·<span·class="o">=</span>·<span·class="n">use_tz</span>
Offset 234, 15 lines modifiedOffset 235, 15 lines modified
  
234 ····<span·class="k">def</span>·<span·class="nf">__copy__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>235 ····<span·class="k">def</span>·<span·class="nf">__copy__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
235 ········<span·class="n">duplicate</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">__copy__</span><span·class="p">()</span>236 ········<span·class="n">duplicate</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">__copy__</span><span·class="p">()</span>
236 ········<span·class="n">duplicate</span><span·class="o">.</span><span·class="n">render_context</span>·<span·class="o">=</span>·<span·class="n">copy</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">render_context</span><span·class="p">)</span>237 ········<span·class="n">duplicate</span><span·class="o">.</span><span·class="n">render_context</span>·<span·class="o">=</span>·<span·class="n">copy</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">render_context</span><span·class="p">)</span>
237 ········<span·class="k">return</span>·<span·class="n">duplicate</span>238 ········<span·class="k">return</span>·<span·class="n">duplicate</span>
  
238 <div·class="viewcode-block"·id="Context.update">239 <div·class="viewcode-block"·id="Context.update">
239 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Context.update">[docs]</a>240 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Context.update">[documenti]</a>
240 ····<span·class="k">def</span>·<span·class="nf">update</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other_dict</span><span·class="p">):</span>241 ····<span·class="k">def</span>·<span·class="nf">update</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other_dict</span><span·class="p">):</span>
241 ········<span·class="s2">&quot;Push·other_dict·to·the·stack·of·dictionaries·in·the·Context&quot;</span>242 ········<span·class="s2">&quot;Push·other_dict·to·the·stack·of·dictionaries·in·the·Context&quot;</span>
242 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">other_dict</span><span·class="p">,</span>·<span·class="s2">&quot;__getitem__&quot;</span><span·class="p">):</span>243 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">other_dict</span><span·class="p">,</span>·<span·class="s2">&quot;__getitem__&quot;</span><span·class="p">):</span>
243 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;other_dict·must·be·a·mapping·(dictionary-like)·object.&quot;</span><span·class="p">)</span>244 ············<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;other_dict·must·be·a·mapping·(dictionary-like)·object.&quot;</span><span·class="p">)</span>
244 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">other_dict</span><span·class="p">,</span>·<span·class="n">BaseContext</span><span·class="p">):</span>245 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">other_dict</span><span·class="p">,</span>·<span·class="n">BaseContext</span><span·class="p">):</span>
245 ············<span·class="n">other_dict</span>·<span·class="o">=</span>·<span·class="n">other_dict</span><span·class="o">.</span><span·class="n">dicts</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">:]</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">()</span>246 ············<span·class="n">other_dict</span>·<span·class="o">=</span>·<span·class="n">other_dict</span><span·class="o">.</span><span·class="n">dicts</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">:]</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">()</span>
246 ········<span·class="k">return</span>·<span·class="n">ContextDict</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other_dict</span><span·class="p">)</span></div>247 ········<span·class="k">return</span>·<span·class="n">ContextDict</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">other_dict</span><span·class="p">)</span></div>
Offset 291, 15 lines modifiedOffset 292, 15 lines modified
291 ········<span·class="k">finally</span><span·class="p">:</span>292 ········<span·class="k">finally</span><span·class="p">:</span>
292 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">template</span>·<span·class="o">=</span>·<span·class="n">initial</span>293 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">template</span>·<span·class="o">=</span>·<span·class="n">initial</span>
293 ············<span·class="k">if</span>·<span·class="n">isolated_context</span><span·class="p">:</span>294 ············<span·class="k">if</span>·<span·class="n">isolated_context</span><span·class="p">:</span>
294 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">()</span>295 ················<span·class="bp">self</span><span·class="o">.</span><span·class="n">pop</span><span·class="p">()</span>
  
  
295 <div·class="viewcode-block"·id="RequestContext">296 <div·class="viewcode-block"·id="RequestContext">
296 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.RequestContext">[docs]</a>297 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.RequestContext">[documenti]</a>
297 <span·class="k">class</span>·<span·class="nc">RequestContext</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">):</span>298 <span·class="k">class</span>·<span·class="nc">RequestContext</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">):</span>
298 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>299 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
299 <span·class="sd">····This·subclass·of·template.Context·automatically·populates·itself·using</span>300 <span·class="sd">····This·subclass·of·template.Context·automatically·populates·itself·using</span>
300 <span·class="sd">····the·processors·defined·in·the·engine&#39;s·configuration.</span>301 <span·class="sd">····the·processors·defined·in·the·engine&#39;s·configuration.</span>
301 <span·class="sd">····Additional·processors·can·be·specified·as·a·list·of·callables</span>302 <span·class="sd">····Additional·processors·can·be·specified·as·a·list·of·callables</span>
302 <span·class="sd">····using·the·&quot;processors&quot;·keyword·argument.</span>303 <span·class="sd">····using·the·&quot;processors&quot;·keyword·argument.</span>
303 <span·class="sd">····&quot;&quot;&quot;</span>304 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 381, 35 lines modifiedOffset 382, 35 lines modified
381 ······382 ······
382 ········383 ········
383 ··········<div·class="yui-b"·id="sidebar">384 ··········<div·class="yui-b"·id="sidebar">
384 ············385 ············
385 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">386 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
386 ········<div·class="sphinxsidebarwrapper">387 ········<div·class="sphinxsidebarwrapper">
387 <search·id="searchbox"·style="display:·none"·role="search">388 <search·id="searchbox"·style="display:·none"·role="search">
388 ··<h3·id="searchlabel">Quick·search</h3>389 ··<h3·id="searchlabel">Ricerca·veloce</h3>
389 ····<div·class="searchformwrapper">390 ····<div·class="searchformwrapper">
390 ····<form·class="search"·action="../../../search.html"·method="get">391 ····<form·class="search"·action="../../../search.html"·method="get">
391 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>392 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
392 ······<input·type="submit"·value="Go"·/>393 ······<input·type="submit"·value="Vai"·/>
393 ····</form>394 ····</form>
394 ····</div>395 ····</div>
395 </search>396 </search>
Max diff block lines reached; 518/11229 bytes (4.61%) of diff not shown.
3.34 KB
html2text {}
Max HTML report size reached
12.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/context_processors.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.context_processors·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.context_processors·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-context_processors">69 ··········<div·class="yui-g"·id="_modules-django-template-context_processors">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.context_processors</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.context_processors</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">A·set·of·request·processors·that·return·dictionaries·to·be·merged·into·a</span>73 <span·class="sd">A·set·of·request·processors·that·return·dictionaries·to·be·merged·into·a</span>
73 <span·class="sd">template·context.·Each·function·takes·the·request·object·as·its·only·parameter</span>74 <span·class="sd">template·context.·Each·function·takes·the·request·object·as·its·only·parameter</span>
74 <span·class="sd">and·returns·a·dictionary·to·add·to·the·context.</span>75 <span·class="sd">and·returns·a·dictionary·to·add·to·the·context.</span>
  
75 <span·class="sd">These·are·referenced·from·the·&#39;context_processors&#39;·option·of·the·configuration</span>76 <span·class="sd">These·are·referenced·from·the·&#39;context_processors&#39;·option·of·the·configuration</span>
76 <span·class="sd">of·a·DjangoTemplates·backend·and·used·by·RequestContext.</span>77 <span·class="sd">of·a·DjangoTemplates·backend·and·used·by·RequestContext.</span>
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 ········<span·class="k">else</span><span·class="p">:</span>104 ········<span·class="k">else</span><span·class="p">:</span>
104 ············<span·class="k">return</span>·<span·class="n">token</span>105 ············<span·class="k">return</span>·<span·class="n">token</span>
  
105 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;csrf_token&quot;</span><span·class="p">:</span>·<span·class="n">SimpleLazyObject</span><span·class="p">(</span><span·class="n">_get_val</span><span·class="p">)}</span>106 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;csrf_token&quot;</span><span·class="p">:</span>·<span·class="n">SimpleLazyObject</span><span·class="p">(</span><span·class="n">_get_val</span><span·class="p">)}</span>
  
  
106 <div·class="viewcode-block"·id="debug">107 <div·class="viewcode-block"·id="debug">
107 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.debug">[docs]</a>108 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.debug">[documenti]</a>
108 <span·class="k">def</span>·<span·class="nf">debug</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>109 <span·class="k">def</span>·<span·class="nf">debug</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
109 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>110 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
110 <span·class="sd">····Return·context·variables·helpful·for·debugging.</span>111 <span·class="sd">····Return·context·variables·helpful·for·debugging.</span>
111 <span·class="sd">····&quot;&quot;&quot;</span>112 <span·class="sd">····&quot;&quot;&quot;</span>
112 ····<span·class="n">context_extras</span>·<span·class="o">=</span>·<span·class="p">{}</span>113 ····<span·class="n">context_extras</span>·<span·class="o">=</span>·<span·class="p">{}</span>
113 ····<span·class="k">if</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span>·<span·class="ow">and</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">META</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;REMOTE_ADDR&quot;</span><span·class="p">)</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">INTERNAL_IPS</span><span·class="p">:</span>114 ····<span·class="k">if</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span>·<span·class="ow">and</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">META</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;REMOTE_ADDR&quot;</span><span·class="p">)</span>·<span·class="ow">in</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">INTERNAL_IPS</span><span·class="p">:</span>
114 ········<span·class="n">context_extras</span><span·class="p">[</span><span·class="s2">&quot;debug&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">True</span>115 ········<span·class="n">context_extras</span><span·class="p">[</span><span·class="s2">&quot;debug&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="kc">True</span>
Offset 128, 37 lines modifiedOffset 129, 37 lines modified
128 ············<span·class="nb">list</span><span·class="p">,</span>129 ············<span·class="nb">list</span><span·class="p">,</span>
129 ········<span·class="p">)</span>130 ········<span·class="p">)</span>
130 ····<span·class="k">return</span>·<span·class="n">context_extras</span></div>131 ····<span·class="k">return</span>·<span·class="n">context_extras</span></div>
  
  
  
131 <div·class="viewcode-block"·id="i18n">132 <div·class="viewcode-block"·id="i18n">
132 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.i18n">[docs]</a>133 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.i18n">[documenti]</a>
133 <span·class="k">def</span>·<span·class="nf">i18n</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>134 <span·class="k">def</span>·<span·class="nf">i18n</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
134 ····<span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>135 ····<span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">translation</span>
  
135 ····<span·class="k">return</span>·<span·class="p">{</span>136 ····<span·class="k">return</span>·<span·class="p">{</span>
136 ········<span·class="s2">&quot;LANGUAGES&quot;</span><span·class="p">:</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">LANGUAGES</span><span·class="p">,</span>137 ········<span·class="s2">&quot;LANGUAGES&quot;</span><span·class="p">:</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">LANGUAGES</span><span·class="p">,</span>
137 ········<span·class="s2">&quot;LANGUAGE_CODE&quot;</span><span·class="p">:</span>·<span·class="n">translation</span><span·class="o">.</span><span·class="n">get_language</span><span·class="p">(),</span>138 ········<span·class="s2">&quot;LANGUAGE_CODE&quot;</span><span·class="p">:</span>·<span·class="n">translation</span><span·class="o">.</span><span·class="n">get_language</span><span·class="p">(),</span>
138 ········<span·class="s2">&quot;LANGUAGE_BIDI&quot;</span><span·class="p">:</span>·<span·class="n">translation</span><span·class="o">.</span><span·class="n">get_language_bidi</span><span·class="p">(),</span>139 ········<span·class="s2">&quot;LANGUAGE_BIDI&quot;</span><span·class="p">:</span>·<span·class="n">translation</span><span·class="o">.</span><span·class="n">get_language_bidi</span><span·class="p">(),</span>
139 ····<span·class="p">}</span></div>140 ····<span·class="p">}</span></div>
  
  
  
140 <div·class="viewcode-block"·id="tz">141 <div·class="viewcode-block"·id="tz">
141 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.tz">[docs]</a>142 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.tz">[documenti]</a>
142 <span·class="k">def</span>·<span·class="nf">tz</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>143 <span·class="k">def</span>·<span·class="nf">tz</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
143 ····<span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">timezone</span>144 ····<span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">timezone</span>
  
144 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;TIME_ZONE&quot;</span><span·class="p">:</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">get_current_timezone_name</span><span·class="p">()}</span></div>145 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;TIME_ZONE&quot;</span><span·class="p">:</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">get_current_timezone_name</span><span·class="p">()}</span></div>
  
  
  
145 <div·class="viewcode-block"·id="static">146 <div·class="viewcode-block"·id="static">
146 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.static">[docs]</a>147 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.context_processors.static">[documenti]</a>
147 <span·class="k">def</span>·<span·class="nf">static</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>148 <span·class="k">def</span>·<span·class="nf">static</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
148 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>149 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
149 <span·class="sd">····Add·static-related·context·variables·to·the·context.</span>150 <span·class="sd">····Add·static-related·context·variables·to·the·context.</span>
150 <span·class="sd">····&quot;&quot;&quot;</span>151 <span·class="sd">····&quot;&quot;&quot;</span>
151 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;STATIC_URL&quot;</span><span·class="p">:</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_URL</span><span·class="p">}</span></div>152 ····<span·class="k">return</span>·<span·class="p">{</span><span·class="s2">&quot;STATIC_URL&quot;</span><span·class="p">:</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_URL</span><span·class="p">}</span></div>
  
  
Offset 180, 35 lines modifiedOffset 181, 35 lines modified
180 ······181 ······
181 ········182 ········
182 ··········<div·class="yui-b"·id="sidebar">183 ··········<div·class="yui-b"·id="sidebar">
183 ············184 ············
184 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">185 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
185 ········<div·class="sphinxsidebarwrapper">186 ········<div·class="sphinxsidebarwrapper">
186 <search·id="searchbox"·style="display:·none"·role="search">187 <search·id="searchbox"·style="display:·none"·role="search">
187 ··<h3·id="searchlabel">Quick·search</h3>188 ··<h3·id="searchlabel">Ricerca·veloce</h3>
188 ····<div·class="searchformwrapper">189 ····<div·class="searchformwrapper">
189 ····<form·class="search"·action="../../../search.html"·method="get">190 ····<form·class="search"·action="../../../search.html"·method="get">
190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>191 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
191 ······<input·type="submit"·value="Go"·/>192 ······<input·type="submit"·value="Vai"·/>
192 ····</form>193 ····</form>
193 ····</div>194 ····</div>
194 </search>195 </search>
195 <script>document.getElementById('searchbox').style.display·=·"block"</script>196 <script>document.getElementById('searchbox').style.display·=·"block"</script>
196 ········</div>197 ········</div>
197 ······</div>198 ······</div>
Max diff block lines reached; 451/9428 bytes (4.78%) of diff not shown.
2.79 KB
html2text {}
Max HTML report size reached
17.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/engine.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.engine·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.engine·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 45 lines modifiedOffset 51, 45 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-engine">69 ··········<div·class="yui-g"·id="_modules-django-template-engine">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.engine</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.engine</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>73 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">cached_property</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.module_loading</span>·<span·class="kn">import</span>·<span·class="n">import_string</span>
  
75 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Template</span>76 <span·class="kn">from</span>·<span·class="nn">.base</span>·<span·class="kn">import</span>·<span·class="n">Template</span>
76 <span·class="kn">from</span>·<span·class="nn">.context</span>·<span·class="kn">import</span>·<span·class="n">Context</span><span·class="p">,</span>·<span·class="n">_builtin_context_processors</span>77 <span·class="kn">from</span>·<span·class="nn">.context</span>·<span·class="kn">import</span>·<span·class="n">Context</span><span·class="p">,</span>·<span·class="n">_builtin_context_processors</span>
77 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>78 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>
78 <span·class="kn">from</span>·<span·class="nn">.library</span>·<span·class="kn">import</span>·<span·class="n">import_library</span>79 <span·class="kn">from</span>·<span·class="nn">.library</span>·<span·class="kn">import</span>·<span·class="n">import_library</span>
  
  
79 <div·class="viewcode-block"·id="Engine">80 <div·class="viewcode-block"·id="Engine">
80 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine">[docs]</a>81 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine">[documenti]</a>
81 <span·class="k">class</span>·<span·class="nc">Engine</span><span·class="p">:</span>82 <span·class="k">class</span>·<span·class="nc">Engine</span><span·class="p">:</span>
82 ····<span·class="n">default_builtins</span>·<span·class="o">=</span>·<span·class="p">[</span>83 ····<span·class="n">default_builtins</span>·<span·class="o">=</span>·<span·class="p">[</span>
83 ········<span·class="s2">&quot;django.template.defaulttags&quot;</span><span·class="p">,</span>84 ········<span·class="s2">&quot;django.template.defaulttags&quot;</span><span·class="p">,</span>
84 ········<span·class="s2">&quot;django.template.defaultfilters&quot;</span><span·class="p">,</span>85 ········<span·class="s2">&quot;django.template.defaultfilters&quot;</span><span·class="p">,</span>
85 ········<span·class="s2">&quot;django.template.loader_tags&quot;</span><span·class="p">,</span>86 ········<span·class="s2">&quot;django.template.loader_tags&quot;</span><span·class="p">,</span>
86 ····<span·class="p">]</span>87 ····<span·class="p">]</span>
  
Offset 154, 15 lines modifiedOffset 155, 15 lines modified
154 ············<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">file_charset</span><span·class="p">),</span>155 ············<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">file_charset</span><span·class="p">),</span>
155 ············<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">libraries</span>·<span·class="k">else</span>·<span·class="s2">&quot;·libraries=</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">libraries</span><span·class="p">),</span>156 ············<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">libraries</span>·<span·class="k">else</span>·<span·class="s2">&quot;·libraries=</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">libraries</span><span·class="p">),</span>
156 ············<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">builtins</span>·<span·class="k">else</span>·<span·class="s2">&quot;·builtins=</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">builtins</span><span·class="p">),</span>157 ············<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">builtins</span>·<span·class="k">else</span>·<span·class="s2">&quot;·builtins=</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">builtins</span><span·class="p">),</span>
157 ············<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span><span·class="p">),</span>158 ············<span·class="nb">repr</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span><span·class="p">),</span>
158 ········<span·class="p">)</span>159 ········<span·class="p">)</span>
  
159 <div·class="viewcode-block"·id="Engine.get_default">160 <div·class="viewcode-block"·id="Engine.get_default">
160 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.get_default">[docs]</a>161 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.get_default">[documenti]</a>
161 ····<span·class="nd">@staticmethod</span>162 ····<span·class="nd">@staticmethod</span>
162 ····<span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>163 ····<span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>
163 ····<span·class="k">def</span>·<span·class="nf">get_default</span><span·class="p">():</span>164 ····<span·class="k">def</span>·<span·class="nf">get_default</span><span·class="p">():</span>
164 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>165 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
165 <span·class="sd">········Return·the·first·DjangoTemplates·backend·that&#39;s·configured,·or·raise</span>166 <span·class="sd">········Return·the·first·DjangoTemplates·backend·that&#39;s·configured,·or·raise</span>
166 <span·class="sd">········ImproperlyConfigured·if·none·are·configured.</span>167 <span·class="sd">········ImproperlyConfigured·if·none·are·configured.</span>
  
Offset 235, 25 lines modifiedOffset 236, 25 lines modified
235 ················<span·class="n">template</span>·<span·class="o">=</span>·<span·class="n">loader</span><span·class="o">.</span><span·class="n">get_template</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">skip</span><span·class="o">=</span><span·class="n">skip</span><span·class="p">)</span>236 ················<span·class="n">template</span>·<span·class="o">=</span>·<span·class="n">loader</span><span·class="o">.</span><span·class="n">get_template</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">skip</span><span·class="o">=</span><span·class="n">skip</span><span·class="p">)</span>
236 ················<span·class="k">return</span>·<span·class="n">template</span><span·class="p">,</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">origin</span>237 ················<span·class="k">return</span>·<span·class="n">template</span><span·class="p">,</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">origin</span>
237 ············<span·class="k">except</span>·<span·class="n">TemplateDoesNotExist</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span>238 ············<span·class="k">except</span>·<span·class="n">TemplateDoesNotExist</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span>
238 ················<span·class="n">tried</span><span·class="o">.</span><span·class="n">extend</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">tried</span><span·class="p">)</span>239 ················<span·class="n">tried</span><span·class="o">.</span><span·class="n">extend</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">tried</span><span·class="p">)</span>
239 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">tried</span><span·class="o">=</span><span·class="n">tried</span><span·class="p">)</span>240 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">name</span><span·class="p">,</span>·<span·class="n">tried</span><span·class="o">=</span><span·class="n">tried</span><span·class="p">)</span>
  
240 <div·class="viewcode-block"·id="Engine.from_string">241 <div·class="viewcode-block"·id="Engine.from_string">
241 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.from_string">[docs]</a>242 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.from_string">[documenti]</a>
242 ····<span·class="k">def</span>·<span·class="nf">from_string</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_code</span><span·class="p">):</span>243 ····<span·class="k">def</span>·<span·class="nf">from_string</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_code</span><span·class="p">):</span>
243 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>244 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
244 <span·class="sd">········Return·a·compiled·Template·object·for·the·given·template·code,</span>245 <span·class="sd">········Return·a·compiled·Template·object·for·the·given·template·code,</span>
245 <span·class="sd">········handling·template·inheritance·recursively.</span>246 <span·class="sd">········handling·template·inheritance·recursively.</span>
246 <span·class="sd">········&quot;&quot;&quot;</span>247 <span·class="sd">········&quot;&quot;&quot;</span>
247 ········<span·class="k">return</span>·<span·class="n">Template</span><span·class="p">(</span><span·class="n">template_code</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="o">=</span><span·class="bp">self</span><span·class="p">)</span></div>248 ········<span·class="k">return</span>·<span·class="n">Template</span><span·class="p">(</span><span·class="n">template_code</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="o">=</span><span·class="bp">self</span><span·class="p">)</span></div>
  
  
248 <div·class="viewcode-block"·id="Engine.get_template">249 <div·class="viewcode-block"·id="Engine.get_template">
249 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.get_template">[docs]</a>250 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.get_template">[documenti]</a>
250 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>251 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>
251 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>252 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
252 <span·class="sd">········Return·a·compiled·Template·object·for·the·given·template·name,</span>253 <span·class="sd">········Return·a·compiled·Template·object·for·the·given·template·name,</span>
253 <span·class="sd">········handling·template·inheritance·recursively.</span>254 <span·class="sd">········handling·template·inheritance·recursively.</span>
254 <span·class="sd">········&quot;&quot;&quot;</span>255 <span·class="sd">········&quot;&quot;&quot;</span>
255 ········<span·class="n">template</span><span·class="p">,</span>·<span·class="n">origin</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">find_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">)</span>256 ········<span·class="n">template</span><span·class="p">,</span>·<span·class="n">origin</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">find_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">)</span>
256 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="s2">&quot;render&quot;</span><span·class="p">):</span>257 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="s2">&quot;render&quot;</span><span·class="p">):</span>
Offset 275, 15 lines modifiedOffset 276, 15 lines modified
275 ········<span·class="c1">#·unintended.·Preserve·this·ability·but·don&#39;t·rewrap·`context`.</span>276 ········<span·class="c1">#·unintended.·Preserve·this·ability·but·don&#39;t·rewrap·`context`.</span>
276 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">Context</span><span·class="p">):</span>277 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">Context</span><span·class="p">):</span>
277 ············<span·class="k">return</span>·<span·class="n">t</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>278 ············<span·class="k">return</span>·<span·class="n">t</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)</span>
278 ········<span·class="k">else</span><span·class="p">:</span>279 ········<span·class="k">else</span><span·class="p">:</span>
279 ············<span·class="k">return</span>·<span·class="n">t</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">autoescape</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span><span·class="p">))</span>280 ············<span·class="k">return</span>·<span·class="n">t</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">autoescape</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">autoescape</span><span·class="p">))</span>
  
280 <div·class="viewcode-block"·id="Engine.select_template">281 <div·class="viewcode-block"·id="Engine.select_template">
281 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.select_template">[docs]</a>282 <a·class="viewcode-back"·href="../../../ref/templates/api.html#django.template.Engine.select_template">[documenti]</a>
282 ····<span·class="k">def</span>·<span·class="nf">select_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name_list</span><span·class="p">):</span>283 ····<span·class="k">def</span>·<span·class="nf">select_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name_list</span><span·class="p">):</span>
283 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>284 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
284 <span·class="sd">········Given·a·list·of·template·names,·return·the·first·that·can·be·loaded.</span>285 <span·class="sd">········Given·a·list·of·template·names,·return·the·first·that·can·be·loaded.</span>
285 <span·class="sd">········&quot;&quot;&quot;</span>286 <span·class="sd">········&quot;&quot;&quot;</span>
286 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">template_name_list</span><span·class="p">:</span>287 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">template_name_list</span><span·class="p">:</span>
287 ············<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;No·template·names·provided&quot;</span><span·class="p">)</span>288 ············<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;No·template·names·provided&quot;</span><span·class="p">)</span>
288 ········<span·class="n">not_found</span>·<span·class="o">=</span>·<span·class="p">[]</span>289 ········<span·class="n">not_found</span>·<span·class="o">=</span>·<span·class="p">[]</span>
Offset 306, 35 lines modifiedOffset 307, 35 lines modified
Max diff block lines reached; 1307/13689 bytes (9.55%) of diff not shown.
3.94 KB
html2text {}
Max HTML report size reached
8.13 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/exceptions.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.exceptions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.exceptions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 41 lines modifiedOffset 51, 41 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-exceptions">69 ··········<div·class="yui-g"·id="_modules-django-template-exceptions">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.exceptions</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.exceptions</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·module·contains·generic·exceptions·used·by·template·backends.·Although,</span>73 <span·class="sd">This·module·contains·generic·exceptions·used·by·template·backends.·Although,</span>
73 <span·class="sd">due·to·historical·reasons,·the·Django·template·language·also·internally·uses</span>74 <span·class="sd">due·to·historical·reasons,·the·Django·template·language·also·internally·uses</span>
74 <span·class="sd">these·exceptions,·other·exceptions·specific·to·the·DTL·should·not·be·added</span>75 <span·class="sd">these·exceptions,·other·exceptions·specific·to·the·DTL·should·not·be·added</span>
75 <span·class="sd">here.</span>76 <span·class="sd">here.</span>
76 <span·class="sd">&quot;&quot;&quot;</span>77 <span·class="sd">&quot;&quot;&quot;</span>
  
  
77 <div·class="viewcode-block"·id="TemplateDoesNotExist">78 <div·class="viewcode-block"·id="TemplateDoesNotExist">
78 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.TemplateDoesNotExist">[docs]</a>79 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.TemplateDoesNotExist">[documenti]</a>
79 <span·class="k">class</span>·<span·class="nc">TemplateDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>80 <span·class="k">class</span>·<span·class="nc">TemplateDoesNotExist</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>81 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
81 <span·class="sd">····The·exception·used·when·a·template·does·not·exist.·Optional·arguments:</span>82 <span·class="sd">····The·exception·used·when·a·template·does·not·exist.·Optional·arguments:</span>
  
82 <span·class="sd">····backend</span>83 <span·class="sd">····backend</span>
83 <span·class="sd">········The·template·backend·class·used·when·raising·this·exception.</span>84 <span·class="sd">········The·template·backend·class·used·when·raising·this·exception.</span>
  
Offset 109, 15 lines modifiedOffset 110, 15 lines modified
109 ············<span·class="n">chain</span>·<span·class="o">=</span>·<span·class="p">[]</span>110 ············<span·class="n">chain</span>·<span·class="o">=</span>·<span·class="p">[]</span>
110 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">chain</span>·<span·class="o">=</span>·<span·class="n">chain</span>111 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">chain</span>·<span·class="o">=</span>·<span·class="n">chain</span>
111 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">)</span></div>112 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">msg</span><span·class="p">)</span></div>
  
  
  
112 <div·class="viewcode-block"·id="TemplateSyntaxError">113 <div·class="viewcode-block"·id="TemplateSyntaxError">
113 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.TemplateSyntaxError">[docs]</a>114 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.TemplateSyntaxError">[documenti]</a>
114 <span·class="k">class</span>·<span·class="nc">TemplateSyntaxError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>115 <span·class="k">class</span>·<span·class="nc">TemplateSyntaxError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
115 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>116 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
116 <span·class="sd">····The·exception·used·for·syntax·errors·during·parsing·or·rendering.</span>117 <span·class="sd">····The·exception·used·for·syntax·errors·during·parsing·or·rendering.</span>
117 <span·class="sd">····&quot;&quot;&quot;</span>118 <span·class="sd">····&quot;&quot;&quot;</span>
  
118 ····<span·class="k">pass</span></div>119 ····<span·class="k">pass</span></div>
  
Offset 129, 35 lines modifiedOffset 130, 35 lines modified
129 ······130 ······
130 ········131 ········
131 ··········<div·class="yui-b"·id="sidebar">132 ··········<div·class="yui-b"·id="sidebar">
132 ············133 ············
133 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">134 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
134 ········<div·class="sphinxsidebarwrapper">135 ········<div·class="sphinxsidebarwrapper">
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../../../search.html"·method="get">139 ····<form·class="search"·action="../../../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
155 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>156 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
156 ····</div>157 ····</div>
157 ··</div>158 ··</div>
  
158 ······<div·class="clearer"></div>159 ······<div·class="clearer"></div>
159 ····</div>160 ····</div>
160 ··</body>161 ··</body>
161 </html>162 </html>
1.89 KB
html2text {}
Max HTML report size reached
10.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/loader.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.loader·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.loader·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 37 lines modifiedOffset 51, 37 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-loader">69 ··········<div·class="yui-g"·id="_modules-django-template-loader">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.loader</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.loader</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">engines</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">engines</span>
72 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>73 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">TemplateDoesNotExist</span>
  
  
73 <div·class="viewcode-block"·id="get_template">74 <div·class="viewcode-block"·id="get_template">
74 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.get_template">[docs]</a>75 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.get_template">[documenti]</a>
75 <span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>76 <span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
77 <span·class="sd">····Load·and·return·a·template·for·the·given·name.</span>78 <span·class="sd">····Load·and·return·a·template·for·the·given·name.</span>
  
78 <span·class="sd">····Raise·TemplateDoesNotExist·if·no·such·template·exists.</span>79 <span·class="sd">····Raise·TemplateDoesNotExist·if·no·such·template·exists.</span>
79 <span·class="sd">····&quot;&quot;&quot;</span>80 <span·class="sd">····&quot;&quot;&quot;</span>
80 ····<span·class="n">chain</span>·<span·class="o">=</span>·<span·class="p">[]</span>81 ····<span·class="n">chain</span>·<span·class="o">=</span>·<span·class="p">[]</span>
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
92 ············<span·class="n">chain</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">e</span><span·class="p">)</span>93 ············<span·class="n">chain</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">e</span><span·class="p">)</span>
  
93 ····<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">chain</span><span·class="o">=</span><span·class="n">chain</span><span·class="p">)</span></div>94 ····<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">chain</span><span·class="o">=</span><span·class="n">chain</span><span·class="p">)</span></div>
  
  
  
94 <div·class="viewcode-block"·id="select_template">95 <div·class="viewcode-block"·id="select_template">
95 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.select_template">[docs]</a>96 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.select_template">[documenti]</a>
96 <span·class="k">def</span>·<span·class="nf">select_template</span><span·class="p">(</span><span·class="n">template_name_list</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>97 <span·class="k">def</span>·<span·class="nf">select_template</span><span·class="p">(</span><span·class="n">template_name_list</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
97 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>98 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
98 <span·class="sd">····Load·and·return·a·template·for·one·of·the·given·names.</span>99 <span·class="sd">····Load·and·return·a·template·for·one·of·the·given·names.</span>
  
99 <span·class="sd">····Try·names·in·order·and·return·the·first·template·found.</span>100 <span·class="sd">····Try·names·in·order·and·return·the·first·template·found.</span>
  
100 <span·class="sd">····Raise·TemplateDoesNotExist·if·no·such·template·exists.</span>101 <span·class="sd">····Raise·TemplateDoesNotExist·if·no·such·template·exists.</span>
Offset 125, 15 lines modifiedOffset 126, 15 lines modified
125 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;,·&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">template_name_list</span><span·class="p">),</span>·<span·class="n">chain</span><span·class="o">=</span><span·class="n">chain</span><span·class="p">)</span>126 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;,·&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">template_name_list</span><span·class="p">),</span>·<span·class="n">chain</span><span·class="o">=</span><span·class="n">chain</span><span·class="p">)</span>
126 ····<span·class="k">else</span><span·class="p">:</span>127 ····<span·class="k">else</span><span·class="p">:</span>
127 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;No·template·names·provided&quot;</span><span·class="p">)</span></div>128 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="s2">&quot;No·template·names·provided&quot;</span><span·class="p">)</span></div>
  
  
  
128 <div·class="viewcode-block"·id="render_to_string">129 <div·class="viewcode-block"·id="render_to_string">
129 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.render_to_string">[docs]</a>130 <a·class="viewcode-back"·href="../../../topics/templates.html#django.template.loader.render_to_string">[documenti]</a>
130 <span·class="k">def</span>·<span·class="nf">render_to_string</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>131 <span·class="k">def</span>·<span·class="nf">render_to_string</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">request</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
131 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>132 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
132 <span·class="sd">····Load·a·template·and·render·it·with·a·context.·Return·a·string.</span>133 <span·class="sd">····Load·a·template·and·render·it·with·a·context.·Return·a·string.</span>
  
133 <span·class="sd">····template_name·may·be·a·string·or·a·list·of·strings.</span>134 <span·class="sd">····template_name·may·be·a·string·or·a·list·of·strings.</span>
134 <span·class="sd">····&quot;&quot;&quot;</span>135 <span·class="sd">····&quot;&quot;&quot;</span>
135 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">)):</span>136 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">)):</span>
Offset 154, 35 lines modifiedOffset 155, 35 lines modified
154 ······155 ······
155 ········156 ········
156 ··········<div·class="yui-b"·id="sidebar">157 ··········<div·class="yui-b"·id="sidebar">
157 ············158 ············
158 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">159 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
159 ········<div·class="sphinxsidebarwrapper">160 ········<div·class="sphinxsidebarwrapper">
160 <search·id="searchbox"·style="display:·none"·role="search">161 <search·id="searchbox"·style="display:·none"·role="search">
161 ··<h3·id="searchlabel">Quick·search</h3>162 ··<h3·id="searchlabel">Ricerca·veloce</h3>
162 ····<div·class="searchformwrapper">163 ····<div·class="searchformwrapper">
163 ····<form·class="search"·action="../../../search.html"·method="get">164 ····<form·class="search"·action="../../../search.html"·method="get">
164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>165 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
165 ······<input·type="submit"·value="Go"·/>166 ······<input·type="submit"·value="Vai"·/>
166 ····</form>167 ····</form>
167 ····</div>168 ····</div>
168 </search>169 </search>
169 <script>document.getElementById('searchbox').style.display·=·"block"</script>170 <script>document.getElementById('searchbox').style.display·=·"block"</script>
170 ········</div>171 ········</div>
171 ······</div>172 ······</div>
172 ··············<h3>Last·update:</h3>173 ··············<h3>Last·update:</h3>
173 ··············<p·class="topless">Sep·03,·2024</p>174 ··············<p·class="topless">set·03,·2024</p>
174 ··········</div>175 ··········</div>
175 ········176 ········
176 ······177 ······
177 ····</div>178 ····</div>
  
178 ····<div·id="ft">179 ····<div·id="ft">
179 ······<div·class="nav">180 ······<div·class="nav">
180 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>181 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
181 ····</div>182 ····</div>
182 ··</div>183 ··</div>
  
183 ······<div·class="clearer"></div>184 ······<div·class="clearer"></div>
184 ····</div>185 ····</div>
185 ··</body>186 ··</body>
Max diff block lines reached; 0/8395 bytes (0.00%) of diff not shown.
2.37 KB
html2text {}
Max HTML report size reached
9.85 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/loaders/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.loaders.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.loaders.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 42 lines modifiedOffset 51, 42 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-loaders-base">69 ··········<div·class="yui-g"·id="_modules-django-template-loaders-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.loaders.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.loaders.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">Template</span><span·class="p">,</span>·<span·class="n">TemplateDoesNotExist</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">Template</span><span·class="p">,</span>·<span·class="n">TemplateDoesNotExist</span>
  
  
72 <div·class="viewcode-block"·id="Loader">73 <div·class="viewcode-block"·id="Loader">
73 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader">[docs]</a>74 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader">[documenti]</a>
74 <span·class="k">class</span>·<span·class="nc">Loader</span><span·class="p">:</span>75 <span·class="k">class</span>·<span·class="nc">Loader</span><span·class="p">:</span>
75 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="p">):</span>76 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">engine</span><span·class="p">):</span>
76 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">engine</span>·<span·class="o">=</span>·<span·class="n">engine</span>77 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">engine</span>·<span·class="o">=</span>·<span·class="n">engine</span>
  
77 <div·class="viewcode-block"·id="Loader.get_template">78 <div·class="viewcode-block"·id="Loader.get_template">
78 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader.get_template">[docs]</a>79 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader.get_template">[documenti]</a>
79 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">skip</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>80 ····<span·class="k">def</span>·<span·class="nf">get_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">skip</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
80 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>81 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
81 <span·class="sd">········Call·self.get_template_sources()·and·return·a·Template·object·for</span>82 <span·class="sd">········Call·self.get_template_sources()·and·return·a·Template·object·for</span>
82 <span·class="sd">········the·first·template·matching·template_name.·If·skip·is·provided,·ignore</span>83 <span·class="sd">········the·first·template·matching·template_name.·If·skip·is·provided,·ignore</span>
83 <span·class="sd">········template·origins·in·skip.·This·is·used·to·avoid·recursion·during</span>84 <span·class="sd">········template·origins·in·skip.·This·is·used·to·avoid·recursion·during</span>
84 <span·class="sd">········template·extending.</span>85 <span·class="sd">········template·extending.</span>
85 <span·class="sd">········&quot;&quot;&quot;</span>86 <span·class="sd">········&quot;&quot;&quot;</span>
Offset 109, 15 lines modifiedOffset 110, 15 lines modified
109 ····················<span·class="bp">self</span><span·class="o">.</span><span·class="n">engine</span><span·class="p">,</span>110 ····················<span·class="bp">self</span><span·class="o">.</span><span·class="n">engine</span><span·class="p">,</span>
110 ················<span·class="p">)</span>111 ················<span·class="p">)</span>
  
111 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">tried</span><span·class="o">=</span><span·class="n">tried</span><span·class="p">)</span></div>112 ········<span·class="k">raise</span>·<span·class="n">TemplateDoesNotExist</span><span·class="p">(</span><span·class="n">template_name</span><span·class="p">,</span>·<span·class="n">tried</span><span·class="o">=</span><span·class="n">tried</span><span·class="p">)</span></div>
  
  
112 <div·class="viewcode-block"·id="Loader.get_template_sources">113 <div·class="viewcode-block"·id="Loader.get_template_sources">
113 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader.get_template_sources">[docs]</a>114 <a·class="viewcode-back"·href="../../../../ref/templates/api.html#django.template.loaders.base.Loader.get_template_sources">[documenti]</a>
114 ····<span·class="k">def</span>·<span·class="nf">get_template_sources</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>115 ····<span·class="k">def</span>·<span·class="nf">get_template_sources</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template_name</span><span·class="p">):</span>
115 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>116 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
116 <span·class="sd">········An·iterator·that·yields·possible·matching·template·paths·for·a</span>117 <span·class="sd">········An·iterator·that·yields·possible·matching·template·paths·for·a</span>
117 <span·class="sd">········template·name.</span>118 <span·class="sd">········template·name.</span>
118 <span·class="sd">········&quot;&quot;&quot;</span>119 <span·class="sd">········&quot;&quot;&quot;</span>
119 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span>120 ········<span·class="k">raise</span>·<span·class="ne">NotImplementedError</span><span·class="p">(</span>
120 ············<span·class="s2">&quot;subclasses·of·Loader·must·provide·a·get_template_sources()·method&quot;</span>121 ············<span·class="s2">&quot;subclasses·of·Loader·must·provide·a·get_template_sources()·method&quot;</span>
Offset 139, 35 lines modifiedOffset 140, 35 lines modified
139 ······140 ······
140 ········141 ········
141 ··········<div·class="yui-b"·id="sidebar">142 ··········<div·class="yui-b"·id="sidebar">
142 ············143 ············
143 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">144 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
144 ········<div·class="sphinxsidebarwrapper">145 ········<div·class="sphinxsidebarwrapper">
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../../../../search.html"·method="get">149 ····<form·class="search"·action="../../../../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
165 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>166 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
166 ····</div>167 ····</div>
167 ··</div>168 ··</div>
  
168 ······<div·class="clearer"></div>169 ······<div·class="clearer"></div>
169 ····</div>170 ····</div>
170 ··</body>171 ··</body>
171 </html>172 </html>
2.34 KB
html2text {}
Max HTML report size reached
19.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/template/response.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.template.response·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.template.response·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 47 lines modifiedOffset 51, 47 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-template-response">69 ··········<div·class="yui-g"·id="_modules-django-template-response">
69 ············70 ············
70 ··<h1>Source·code·for·django.template.response</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.template.response</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>
  
72 <span·class="kn">from</span>·<span·class="nn">.loader</span>·<span·class="kn">import</span>·<span·class="n">get_template</span><span·class="p">,</span>·<span·class="n">select_template</span>73 <span·class="kn">from</span>·<span·class="nn">.loader</span>·<span·class="kn">import</span>·<span·class="n">get_template</span><span·class="p">,</span>·<span·class="n">select_template</span>
  
  
73 <span·class="k">class</span>·<span·class="nc">ContentNotRenderedError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>74 <span·class="k">class</span>·<span·class="nc">ContentNotRenderedError</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
74 ····<span·class="k">pass</span>75 ····<span·class="k">pass</span>
  
  
75 <div·class="viewcode-block"·id="SimpleTemplateResponse">76 <div·class="viewcode-block"·id="SimpleTemplateResponse">
76 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse">[docs]</a>77 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse">[documenti]</a>
77 <span·class="k">class</span>·<span·class="nc">SimpleTemplateResponse</span><span·class="p">(</span><span·class="n">HttpResponse</span><span·class="p">):</span>78 <span·class="k">class</span>·<span·class="nc">SimpleTemplateResponse</span><span·class="p">(</span><span·class="n">HttpResponse</span><span·class="p">):</span>
78 ····<span·class="n">rendering_attrs</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;template_name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;context_data&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;_post_render_callbacks&quot;</span><span·class="p">]</span>79 ····<span·class="n">rendering_attrs</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;template_name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;context_data&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;_post_render_callbacks&quot;</span><span·class="p">]</span>
  
79 <div·class="viewcode-block"·id="SimpleTemplateResponse.__init__">80 <div·class="viewcode-block"·id="SimpleTemplateResponse.__init__">
80 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.__init__">[docs]</a>81 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.__init__">[documenti]</a>
81 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>82 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
82 ········<span·class="bp">self</span><span·class="p">,</span>83 ········<span·class="bp">self</span><span·class="p">,</span>
83 ········<span·class="n">template</span><span·class="p">,</span>84 ········<span·class="n">template</span><span·class="p">,</span>
84 ········<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>85 ········<span·class="n">context</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
85 ········<span·class="n">content_type</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>86 ········<span·class="n">content_type</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
86 ········<span·class="n">status</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>87 ········<span·class="n">status</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
87 ········<span·class="n">charset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>88 ········<span·class="n">charset</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 141, 27 lines modifiedOffset 142, 27 lines modified
141 ········<span·class="k">for</span>·<span·class="n">attr</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rendering_attrs</span><span·class="p">:</span>142 ········<span·class="k">for</span>·<span·class="n">attr</span>·<span·class="ow">in</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">rendering_attrs</span><span·class="p">:</span>
142 ············<span·class="k">if</span>·<span·class="n">attr</span>·<span·class="ow">in</span>·<span·class="n">obj_dict</span><span·class="p">:</span>143 ············<span·class="k">if</span>·<span·class="n">attr</span>·<span·class="ow">in</span>·<span·class="n">obj_dict</span><span·class="p">:</span>
143 ················<span·class="k">del</span>·<span·class="n">obj_dict</span><span·class="p">[</span><span·class="n">attr</span><span·class="p">]</span>144 ················<span·class="k">del</span>·<span·class="n">obj_dict</span><span·class="p">[</span><span·class="n">attr</span><span·class="p">]</span>
  
144 ········<span·class="k">return</span>·<span·class="n">obj_dict</span>145 ········<span·class="k">return</span>·<span·class="n">obj_dict</span>
  
145 <div·class="viewcode-block"·id="SimpleTemplateResponse.resolve_template">146 <div·class="viewcode-block"·id="SimpleTemplateResponse.resolve_template">
146 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.resolve_template">[docs]</a>147 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.resolve_template">[documenti]</a>
147 ····<span·class="k">def</span>·<span·class="nf">resolve_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template</span><span·class="p">):</span>148 ····<span·class="k">def</span>·<span·class="nf">resolve_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">template</span><span·class="p">):</span>
148 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Accept·a·template·object,·path-to-template,·or·list·of·paths.&quot;&quot;&quot;</span>149 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Accept·a·template·object,·path-to-template,·or·list·of·paths.&quot;&quot;&quot;</span>
149 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">)):</span>150 ········<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="p">(</span><span·class="nb">list</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">)):</span>
150 ············<span·class="k">return</span>·<span·class="n">select_template</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">using</span><span·class="p">)</span>151 ············<span·class="k">return</span>·<span·class="n">select_template</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">using</span><span·class="p">)</span>
151 ········<span·class="k">elif</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">):</span>152 ········<span·class="k">elif</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">):</span>
152 ············<span·class="k">return</span>·<span·class="n">get_template</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">using</span><span·class="p">)</span>153 ············<span·class="k">return</span>·<span·class="n">get_template</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="n">using</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">using</span><span·class="p">)</span>
153 ········<span·class="k">else</span><span·class="p">:</span>154 ········<span·class="k">else</span><span·class="p">:</span>
154 ············<span·class="k">return</span>·<span·class="n">template</span></div>155 ············<span·class="k">return</span>·<span·class="n">template</span></div>
  
  
155 <div·class="viewcode-block"·id="SimpleTemplateResponse.resolve_context">156 <div·class="viewcode-block"·id="SimpleTemplateResponse.resolve_context">
156 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.resolve_context">[docs]</a>157 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.resolve_context">[documenti]</a>
157 ····<span·class="k">def</span>·<span·class="nf">resolve_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>158 ····<span·class="k">def</span>·<span·class="nf">resolve_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">context</span><span·class="p">):</span>
158 ········<span·class="k">return</span>·<span·class="n">context</span></div>159 ········<span·class="k">return</span>·<span·class="n">context</span></div>
  
  
159 ····<span·class="nd">@property</span>160 ····<span·class="nd">@property</span>
160 ····<span·class="k">def</span>·<span·class="nf">rendered_content</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>161 ····<span·class="k">def</span>·<span·class="nf">rendered_content</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
161 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·freshly·rendered·content·for·the·template·and·context</span>162 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Return·the·freshly·rendered·content·for·the·template·and·context</span>
Offset 172, 29 lines modifiedOffset 173, 29 lines modified
172 <span·class="sd">········content·explicitly·using·the·value·of·this·property.</span>173 <span·class="sd">········content·explicitly·using·the·value·of·this·property.</span>
173 <span·class="sd">········&quot;&quot;&quot;</span>174 <span·class="sd">········&quot;&quot;&quot;</span>
174 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">resolve_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">template_name</span><span·class="p">)</span>175 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">resolve_template</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">template_name</span><span·class="p">)</span>
175 ········<span·class="n">context</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">resolve_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">context_data</span><span·class="p">)</span>176 ········<span·class="n">context</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">resolve_context</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">context_data</span><span·class="p">)</span>
176 ········<span·class="k">return</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_request</span><span·class="p">)</span>177 ········<span·class="k">return</span>·<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_request</span><span·class="p">)</span>
  
177 <div·class="viewcode-block"·id="SimpleTemplateResponse.add_post_render_callback">178 <div·class="viewcode-block"·id="SimpleTemplateResponse.add_post_render_callback">
178 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.add_post_render_callback">[docs]</a>179 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.add_post_render_callback">[documenti]</a>
179 ····<span·class="k">def</span>·<span·class="nf">add_post_render_callback</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">callback</span><span·class="p">):</span>180 ····<span·class="k">def</span>·<span·class="nf">add_post_render_callback</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">callback</span><span·class="p">):</span>
180 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Add·a·new·post-rendering·callback.</span>181 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Add·a·new·post-rendering·callback.</span>
  
181 <span·class="sd">········If·the·response·has·already·been·rendered,</span>182 <span·class="sd">········If·the·response·has·already·been·rendered,</span>
182 <span·class="sd">········invoke·the·callback·immediately.</span>183 <span·class="sd">········invoke·the·callback·immediately.</span>
183 <span·class="sd">········&quot;&quot;&quot;</span>184 <span·class="sd">········&quot;&quot;&quot;</span>
184 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_is_rendered</span><span·class="p">:</span>185 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_is_rendered</span><span·class="p">:</span>
185 ············<span·class="n">callback</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>186 ············<span·class="n">callback</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">)</span>
186 ········<span·class="k">else</span><span·class="p">:</span>187 ········<span·class="k">else</span><span·class="p">:</span>
187 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_post_render_callbacks</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">callback</span><span·class="p">)</span></div>188 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">_post_render_callbacks</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">callback</span><span·class="p">)</span></div>
  
  
188 <div·class="viewcode-block"·id="SimpleTemplateResponse.render">189 <div·class="viewcode-block"·id="SimpleTemplateResponse.render">
189 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.render">[docs]</a>190 <a·class="viewcode-back"·href="../../../ref/template-response.html#django.template.response.SimpleTemplateResponse.render">[documenti]</a>
190 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>191 ····<span·class="k">def</span>·<span·class="nf">render</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
191 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Render·(thereby·finalizing)·the·content·of·the·response.</span>192 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;Render·(thereby·finalizing)·the·content·of·the·response.</span>
  
192 <span·class="sd">········If·the·content·has·already·been·rendered,·this·is·a·no-op.</span>193 <span·class="sd">········If·the·content·has·already·been·rendered,·this·is·a·no-op.</span>
  
193 <span·class="sd">········Return·the·baked·response·instance.</span>194 <span·class="sd">········Return·the·baked·response·instance.</span>
Max diff block lines reached; 3642/15527 bytes (23.46%) of diff not shown.
3.98 KB
html2text {}
Max HTML report size reached
29.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/test/client.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.test.client·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.test.client·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-test-client">69 ··········<div·class="yui-g"·id="_modules-django-test-client">
69 ············70 ············
70 ··<h1>Source·code·for·django.test.client</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.test.client</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>
72 <span·class="kn">import</span>·<span·class="nn">mimetypes</span>73 <span·class="kn">import</span>·<span·class="nn">mimetypes</span>
73 <span·class="kn">import</span>·<span·class="nn">os</span>74 <span·class="kn">import</span>·<span·class="nn">os</span>
74 <span·class="kn">import</span>·<span·class="nn">sys</span>75 <span·class="kn">import</span>·<span·class="nn">sys</span>
75 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>76 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>
76 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>77 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>
77 <span·class="kn">from</span>·<span·class="nn">http</span>·<span·class="kn">import</span>·<span·class="n">HTTPStatus</span>78 <span·class="kn">from</span>·<span·class="nn">http</span>·<span·class="kn">import</span>·<span·class="n">HTTPStatus</span>
Offset 429, 15 lines modifiedOffset 430, 15 lines modified
429 ········<span·class="n">to_bytes</span><span·class="p">(</span><span·class="s2">&quot;Content-Type:·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">content_type</span><span·class="p">),</span>430 ········<span·class="n">to_bytes</span><span·class="p">(</span><span·class="s2">&quot;Content-Type:·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">content_type</span><span·class="p">),</span>
430 ········<span·class="sa">b</span><span·class="s2">&quot;&quot;</span><span·class="p">,</span>431 ········<span·class="sa">b</span><span·class="s2">&quot;&quot;</span><span·class="p">,</span>
431 ········<span·class="n">to_bytes</span><span·class="p">(</span><span·class="n">file</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()),</span>432 ········<span·class="n">to_bytes</span><span·class="p">(</span><span·class="n">file</span><span·class="o">.</span><span·class="n">read</span><span·class="p">()),</span>
432 ····<span·class="p">]</span>433 ····<span·class="p">]</span>
  
  
433 <div·class="viewcode-block"·id="RequestFactory">434 <div·class="viewcode-block"·id="RequestFactory">
434 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.RequestFactory">[docs]</a>435 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.RequestFactory">[documenti]</a>
435 <span·class="k">class</span>·<span·class="nc">RequestFactory</span><span·class="p">:</span>436 <span·class="k">class</span>·<span·class="nc">RequestFactory</span><span·class="p">:</span>
436 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>437 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
437 <span·class="sd">····Class·that·lets·you·create·mock·Request·objects·for·use·in·testing.</span>438 <span·class="sd">····Class·that·lets·you·create·mock·Request·objects·for·use·in·testing.</span>
  
438 <span·class="sd">····Usage:</span>439 <span·class="sd">····Usage:</span>
  
439 <span·class="sd">····rf·=·RequestFactory()</span>440 <span·class="sd">····rf·=·RequestFactory()</span>
Offset 682, 15 lines modifiedOffset 683, 15 lines modified
682 ············<span·class="n">query_string</span>·<span·class="o">=</span>·<span·class="n">parsed</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">]</span><span·class="o">.</span><span·class="n">encode</span><span·class="p">()</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="s2">&quot;iso-8859-1&quot;</span><span·class="p">)</span>683 ············<span·class="n">query_string</span>·<span·class="o">=</span>·<span·class="n">parsed</span><span·class="p">[</span><span·class="mi">4</span><span·class="p">]</span><span·class="o">.</span><span·class="n">encode</span><span·class="p">()</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="s2">&quot;iso-8859-1&quot;</span><span·class="p">)</span>
683 ············<span·class="n">r</span><span·class="p">[</span><span·class="s2">&quot;QUERY_STRING&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">query_string</span>684 ············<span·class="n">r</span><span·class="p">[</span><span·class="s2">&quot;QUERY_STRING&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">query_string</span>
684 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">request</span><span·class="p">(</span><span·class="o">**</span><span·class="n">r</span><span·class="p">)</span></div>685 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">request</span><span·class="p">(</span><span·class="o">**</span><span·class="n">r</span><span·class="p">)</span></div>
  
  
  
685 <div·class="viewcode-block"·id="AsyncRequestFactory">686 <div·class="viewcode-block"·id="AsyncRequestFactory">
686 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.AsyncRequestFactory">[docs]</a>687 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.AsyncRequestFactory">[documenti]</a>
687 <span·class="k">class</span>·<span·class="nc">AsyncRequestFactory</span><span·class="p">(</span><span·class="n">RequestFactory</span><span·class="p">):</span>688 <span·class="k">class</span>·<span·class="nc">AsyncRequestFactory</span><span·class="p">(</span><span·class="n">RequestFactory</span><span·class="p">):</span>
688 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>689 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
689 <span·class="sd">····Class·that·lets·you·create·mock·ASGI-like·Request·objects·for·use·in</span>690 <span·class="sd">····Class·that·lets·you·create·mock·ASGI-like·Request·objects·for·use·in</span>
690 <span·class="sd">····testing.·Usage:</span>691 <span·class="sd">····testing.·Usage:</span>
  
691 <span·class="sd">····rf·=·AsyncRequestFactory()</span>692 <span·class="sd">····rf·=·AsyncRequestFactory()</span>
692 <span·class="sd">····get_request·=·await·rf.get(&#39;/hello/&#39;)</span>693 <span·class="sd">····get_request·=·await·rf.get(&#39;/hello/&#39;)</span>
Offset 906, 15 lines modifiedOffset 907, 15 lines modified
906 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">_json</span>·<span·class="o">=</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span>907 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">_json</span>·<span·class="o">=</span>·<span·class="n">json</span><span·class="o">.</span><span·class="n">loads</span><span·class="p">(</span>
907 ················<span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">charset</span><span·class="p">),</span>·<span·class="o">**</span><span·class="n">extra</span>908 ················<span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="o">.</span><span·class="n">decode</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">charset</span><span·class="p">),</span>·<span·class="o">**</span><span·class="n">extra</span>
908 ············<span·class="p">)</span>909 ············<span·class="p">)</span>
909 ········<span·class="k">return</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">_json</span>910 ········<span·class="k">return</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">_json</span>
  
  
910 <div·class="viewcode-block"·id="Client">911 <div·class="viewcode-block"·id="Client">
911 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client">[docs]</a>912 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client">[documenti]</a>
912 <span·class="k">class</span>·<span·class="nc">Client</span><span·class="p">(</span><span·class="n">ClientMixin</span><span·class="p">,</span>·<span·class="n">RequestFactory</span><span·class="p">):</span>913 <span·class="k">class</span>·<span·class="nc">Client</span><span·class="p">(</span><span·class="n">ClientMixin</span><span·class="p">,</span>·<span·class="n">RequestFactory</span><span·class="p">):</span>
913 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>914 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
914 <span·class="sd">····A·class·that·can·act·as·a·client·for·testing·purposes.</span>915 <span·class="sd">····A·class·that·can·act·as·a·client·for·testing·purposes.</span>
  
915 <span·class="sd">····It·allows·the·user·to·compose·GET·and·POST·requests,·and</span>916 <span·class="sd">····It·allows·the·user·to·compose·GET·and·POST·requests,·and</span>
916 <span·class="sd">····obtain·the·response·that·the·server·gave·to·those·requests.</span>917 <span·class="sd">····obtain·the·response·that·the·server·gave·to·those·requests.</span>
917 <span·class="sd">····The·server·Response·objects·are·annotated·with·the·details</span>918 <span·class="sd">····The·server·Response·objects·are·annotated·with·the·details</span>
Offset 989, 15 lines modifiedOffset 990, 15 lines modified
989 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">context</span>·<span·class="o">=</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">context</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>990 ············<span·class="n">response</span><span·class="o">.</span><span·class="n">context</span>·<span·class="o">=</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">context</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>
990 ········<span·class="c1">#·Update·persistent·cookie·data.</span>991 ········<span·class="c1">#·Update·persistent·cookie·data.</span>
991 ········<span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">cookies</span><span·class="p">:</span>992 ········<span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">cookies</span><span·class="p">:</span>
992 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">cookies</span><span·class="o">.</span><span·class="n">update</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">cookies</span><span·class="p">)</span>993 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">cookies</span><span·class="o">.</span><span·class="n">update</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">cookies</span><span·class="p">)</span>
993 ········<span·class="k">return</span>·<span·class="n">response</span>994 ········<span·class="k">return</span>·<span·class="n">response</span>
  
994 <div·class="viewcode-block"·id="Client.get">995 <div·class="viewcode-block"·id="Client.get">
995 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client.get">[docs]</a>996 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client.get">[documenti]</a>
996 ····<span·class="k">def</span>·<span·class="nf">get</span><span·class="p">(</span>997 ····<span·class="k">def</span>·<span·class="nf">get</span><span·class="p">(</span>
997 ········<span·class="bp">self</span><span·class="p">,</span>998 ········<span·class="bp">self</span><span·class="p">,</span>
998 ········<span·class="n">path</span><span·class="p">,</span>999 ········<span·class="n">path</span><span·class="p">,</span>
999 ········<span·class="n">data</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>1000 ········<span·class="n">data</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
1000 ········<span·class="n">follow</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>1001 ········<span·class="n">follow</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
1001 ········<span·class="n">secure</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>1002 ········<span·class="n">secure</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
1002 ········<span·class="o">*</span><span·class="p">,</span>1003 ········<span·class="o">*</span><span·class="p">,</span>
Offset 1012, 15 lines modifiedOffset 1013, 15 lines modified
1012 ············<span·class="n">response</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_handle_redirects</span><span·class="p">(</span>1013 ············<span·class="n">response</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">_handle_redirects</span><span·class="p">(</span>
1013 ················<span·class="n">response</span><span·class="p">,</span>·<span·class="n">data</span><span·class="o">=</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">headers</span><span·class="o">=</span><span·class="n">headers</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span>1014 ················<span·class="n">response</span><span·class="p">,</span>·<span·class="n">data</span><span·class="o">=</span><span·class="n">data</span><span·class="p">,</span>·<span·class="n">headers</span><span·class="o">=</span><span·class="n">headers</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">extra</span>
1014 ············<span·class="p">)</span>1015 ············<span·class="p">)</span>
1015 ········<span·class="k">return</span>·<span·class="n">response</span></div>1016 ········<span·class="k">return</span>·<span·class="n">response</span></div>
  
  
1016 <div·class="viewcode-block"·id="Client.post">1017 <div·class="viewcode-block"·id="Client.post">
1017 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client.post">[docs]</a>1018 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.Client.post">[documenti]</a>
Max diff block lines reached; 13453/23817 bytes (56.48%) of diff not shown.
5.57 KB
html2text {}
Max HTML report size reached
32.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/test/runner.html
Max HTML report size reached
75.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/test/testcases.html
Max HTML report size reached
17.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/test/utils.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.test.utils·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.test.utils·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-test-utils">69 ··········<div·class="yui-g"·id="_modules-django-test-utils">
69 ············70 ············
70 ··<h1>Source·code·for·django.test.utils</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.test.utils</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">collections</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">collections</span>
72 <span·class="kn">import</span>·<span·class="nn">logging</span>73 <span·class="kn">import</span>·<span·class="nn">logging</span>
73 <span·class="kn">import</span>·<span·class="nn">os</span>74 <span·class="kn">import</span>·<span·class="nn">os</span>
74 <span·class="kn">import</span>·<span·class="nn">re</span>75 <span·class="kn">import</span>·<span·class="nn">re</span>
75 <span·class="kn">import</span>·<span·class="nn">sys</span>76 <span·class="kn">import</span>·<span·class="nn">sys</span>
76 <span·class="kn">import</span>·<span·class="nn">time</span>77 <span·class="kn">import</span>·<span·class="nn">time</span>
77 <span·class="kn">import</span>·<span·class="nn">warnings</span>78 <span·class="kn">import</span>·<span·class="nn">warnings</span>
Offset 186, 15 lines modifiedOffset 187, 15 lines modified
  
  
186 <span·class="k">class</span>·<span·class="nc">_TestState</span><span·class="p">:</span>187 <span·class="k">class</span>·<span·class="nc">_TestState</span><span·class="p">:</span>
187 ····<span·class="k">pass</span>188 ····<span·class="k">pass</span>
  
  
188 <div·class="viewcode-block"·id="setup_test_environment">189 <div·class="viewcode-block"·id="setup_test_environment">
189 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.setup_test_environment">[docs]</a>190 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.setup_test_environment">[documenti]</a>
190 <span·class="k">def</span>·<span·class="nf">setup_test_environment</span><span·class="p">(</span><span·class="n">debug</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>191 <span·class="k">def</span>·<span·class="nf">setup_test_environment</span><span·class="p">(</span><span·class="n">debug</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
191 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>192 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
192 <span·class="sd">····Perform·global·pre-test·setup,·such·as·installing·the·instrumented·template</span>193 <span·class="sd">····Perform·global·pre-test·setup,·such·as·installing·the·instrumented·template</span>
193 <span·class="sd">····renderer·and·setting·the·email·backend·to·the·locmem·email·backend.</span>194 <span·class="sd">····renderer·and·setting·the·email·backend·to·the·locmem·email·backend.</span>
194 <span·class="sd">····&quot;&quot;&quot;</span>195 <span·class="sd">····&quot;&quot;&quot;</span>
195 ····<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">_TestState</span><span·class="p">,</span>·<span·class="s2">&quot;saved_data&quot;</span><span·class="p">):</span>196 ····<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">_TestState</span><span·class="p">,</span>·<span·class="s2">&quot;saved_data&quot;</span><span·class="p">):</span>
196 ········<span·class="c1">#·Executing·this·function·twice·would·overwrite·the·saved·values.</span>197 ········<span·class="c1">#·Executing·this·function·twice·would·overwrite·the·saved·values.</span>
Offset 225, 15 lines modifiedOffset 226, 15 lines modified
225 ····<span·class="n">mail</span><span·class="o">.</span><span·class="n">outbox</span>·<span·class="o">=</span>·<span·class="p">[]</span>226 ····<span·class="n">mail</span><span·class="o">.</span><span·class="n">outbox</span>·<span·class="o">=</span>·<span·class="p">[]</span>
  
226 ····<span·class="n">deactivate</span><span·class="p">()</span></div>227 ····<span·class="n">deactivate</span><span·class="p">()</span></div>
  
  
  
227 <div·class="viewcode-block"·id="teardown_test_environment">228 <div·class="viewcode-block"·id="teardown_test_environment">
228 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.teardown_test_environment">[docs]</a>229 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.teardown_test_environment">[documenti]</a>
229 <span·class="k">def</span>·<span·class="nf">teardown_test_environment</span><span·class="p">():</span>230 <span·class="k">def</span>·<span·class="nf">teardown_test_environment</span><span·class="p">():</span>
230 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>231 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
231 <span·class="sd">····Perform·any·global·post-test·teardown,·such·as·restoring·the·original</span>232 <span·class="sd">····Perform·any·global·post-test·teardown,·such·as·restoring·the·original</span>
232 <span·class="sd">····template·renderer·and·restoring·the·email·sending·functions.</span>233 <span·class="sd">····template·renderer·and·restoring·the·email·sending·functions.</span>
233 <span·class="sd">····&quot;&quot;&quot;</span>234 <span·class="sd">····&quot;&quot;&quot;</span>
234 ····<span·class="n">saved_data</span>·<span·class="o">=</span>·<span·class="n">_TestState</span><span·class="o">.</span><span·class="n">saved_data</span>235 ····<span·class="n">saved_data</span>·<span·class="o">=</span>·<span·class="n">_TestState</span><span·class="o">.</span><span·class="n">saved_data</span>
  
Offset 244, 15 lines modifiedOffset 245, 15 lines modified
  
244 ····<span·class="k">del</span>·<span·class="n">_TestState</span><span·class="o">.</span><span·class="n">saved_data</span>245 ····<span·class="k">del</span>·<span·class="n">_TestState</span><span·class="o">.</span><span·class="n">saved_data</span>
245 ····<span·class="k">del</span>·<span·class="n">mail</span><span·class="o">.</span><span·class="n">outbox</span></div>246 ····<span·class="k">del</span>·<span·class="n">mail</span><span·class="o">.</span><span·class="n">outbox</span></div>
  
  
  
246 <div·class="viewcode-block"·id="setup_databases">247 <div·class="viewcode-block"·id="setup_databases">
247 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.setup_databases">[docs]</a>248 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.setup_databases">[documenti]</a>
248 <span·class="k">def</span>·<span·class="nf">setup_databases</span><span·class="p">(</span>249 <span·class="k">def</span>·<span·class="nf">setup_databases</span><span·class="p">(</span>
249 ····<span·class="n">verbosity</span><span·class="p">,</span>250 ····<span·class="n">verbosity</span><span·class="p">,</span>
250 ····<span·class="n">interactive</span><span·class="p">,</span>251 ····<span·class="n">interactive</span><span·class="p">,</span>
251 ····<span·class="o">*</span><span·class="p">,</span>252 ····<span·class="o">*</span><span·class="p">,</span>
252 ····<span·class="n">time_keeper</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>253 ····<span·class="n">time_keeper</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
253 ····<span·class="n">keepdb</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>254 ····<span·class="n">keepdb</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
254 ····<span·class="n">debug_sql</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>255 ····<span·class="n">debug_sql</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>
Offset 449, 15 lines modifiedOffset 450, 15 lines modified
449 ····················<span·class="p">)</span>450 ····················<span·class="p">)</span>
  
450 ····<span·class="n">test_databases</span>·<span·class="o">=</span>·<span·class="nb">dict</span><span·class="p">(</span><span·class="n">dependency_ordered</span><span·class="p">(</span><span·class="n">test_databases</span><span·class="o">.</span><span·class="n">items</span><span·class="p">(),</span>·<span·class="n">dependencies</span><span·class="p">))</span>451 ····<span·class="n">test_databases</span>·<span·class="o">=</span>·<span·class="nb">dict</span><span·class="p">(</span><span·class="n">dependency_ordered</span><span·class="p">(</span><span·class="n">test_databases</span><span·class="o">.</span><span·class="n">items</span><span·class="p">(),</span>·<span·class="n">dependencies</span><span·class="p">))</span>
451 ····<span·class="k">return</span>·<span·class="n">test_databases</span><span·class="p">,</span>·<span·class="n">mirrored_aliases</span>452 ····<span·class="k">return</span>·<span·class="n">test_databases</span><span·class="p">,</span>·<span·class="n">mirrored_aliases</span>
  
  
452 <div·class="viewcode-block"·id="teardown_databases">453 <div·class="viewcode-block"·id="teardown_databases">
453 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.teardown_databases">[docs]</a>454 <a·class="viewcode-back"·href="../../../topics/testing/advanced.html#django.test.utils.teardown_databases">[documenti]</a>
454 <span·class="k">def</span>·<span·class="nf">teardown_databases</span><span·class="p">(</span><span·class="n">old_config</span><span·class="p">,</span>·<span·class="n">verbosity</span><span·class="p">,</span>·<span·class="n">parallel</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">keepdb</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>455 <span·class="k">def</span>·<span·class="nf">teardown_databases</span><span·class="p">(</span><span·class="n">old_config</span><span·class="p">,</span>·<span·class="n">verbosity</span><span·class="p">,</span>·<span·class="n">parallel</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">keepdb</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
455 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Destroy·all·the·non-mirror·databases.&quot;&quot;&quot;</span>456 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Destroy·all·the·non-mirror·databases.&quot;&quot;&quot;</span>
456 ····<span·class="k">for</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">,</span>·<span·class="n">destroy</span>·<span·class="ow">in</span>·<span·class="n">old_config</span><span·class="p">:</span>457 ····<span·class="k">for</span>·<span·class="n">connection</span><span·class="p">,</span>·<span·class="n">old_name</span><span·class="p">,</span>·<span·class="n">destroy</span>·<span·class="ow">in</span>·<span·class="n">old_config</span><span·class="p">:</span>
457 ········<span·class="k">if</span>·<span·class="n">destroy</span><span·class="p">:</span>458 ········<span·class="k">if</span>·<span·class="n">destroy</span><span·class="p">:</span>
458 ············<span·class="k">if</span>·<span·class="n">parallel</span>·<span·class="o">&gt;</span>·<span·class="mi">1</span><span·class="p">:</span>459 ············<span·class="k">if</span>·<span·class="n">parallel</span>·<span·class="o">&gt;</span>·<span·class="mi">1</span><span·class="p">:</span>
459 ················<span·class="k">for</span>·<span·class="n">index</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="n">parallel</span><span·class="p">):</span>460 ················<span·class="k">for</span>·<span·class="n">index</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="n">parallel</span><span·class="p">):</span>
460 ····················<span·class="n">connection</span><span·class="o">.</span><span·class="n">creation</span><span·class="o">.</span><span·class="n">destroy_test_db</span><span·class="p">(</span>461 ····················<span·class="n">connection</span><span·class="o">.</span><span·class="n">creation</span><span·class="o">.</span><span·class="n">destroy_test_db</span><span·class="p">(</span>
Offset 552, 15 lines modifiedOffset 553, 15 lines modified
552 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">decorate_class</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">)</span>553 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">decorate_class</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">)</span>
553 ········<span·class="k">elif</span>·<span·class="nb">callable</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">):</span>554 ········<span·class="k">elif</span>·<span·class="nb">callable</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">):</span>
554 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">decorate_callable</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">)</span>555 ············<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">decorate_callable</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">)</span>
555 ········<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;Cannot·decorate·object·of·type·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">type</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">))</span>556 ········<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span><span·class="s2">&quot;Cannot·decorate·object·of·type·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">type</span><span·class="p">(</span><span·class="n">decorated</span><span·class="p">))</span>
  
  
556 <div·class="viewcode-block"·id="override_settings">557 <div·class="viewcode-block"·id="override_settings">
557 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.utils.override_settings">[docs]</a>558 <a·class="viewcode-back"·href="../../../topics/testing/tools.html#django.test.utils.override_settings">[documenti]</a>
Max diff block lines reached; 3210/13506 bytes (23.77%) of diff not shown.
3.97 KB
html2text {}
Max HTML report size reached
11.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/urls/base.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.urls.base·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls.base·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-urls-base">69 ··········<div·class="yui-g"·id="_modules-django-urls-base">
69 ············70 ············
70 ··<h1>Source·code·for·django.urls.base</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.urls.base</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">unquote</span><span·class="p">,</span>·<span·class="n">urlsplit</span><span·class="p">,</span>·<span·class="n">urlunsplit</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">unquote</span><span·class="p">,</span>·<span·class="n">urlsplit</span><span·class="p">,</span>·<span·class="n">urlunsplit</span>
  
72 <span·class="kn">from</span>·<span·class="nn">asgiref.local</span>·<span·class="kn">import</span>·<span·class="n">Local</span>73 <span·class="kn">from</span>·<span·class="nn">asgiref.local</span>·<span·class="kn">import</span>·<span·class="n">Local</span>
  
73 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">lazy</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">lazy</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">override</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">override</span>
  
Offset 88, 24 lines modifiedOffset 89, 24 lines modified
88 <span·class="n">_prefixes</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>89 <span·class="n">_prefixes</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>
  
89 <span·class="c1">#·Overridden·URLconfs·for·each·thread·are·stored·here.</span>90 <span·class="c1">#·Overridden·URLconfs·for·each·thread·are·stored·here.</span>
90 <span·class="n">_urlconfs</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>91 <span·class="n">_urlconfs</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>
  
  
91 <div·class="viewcode-block"·id="resolve">92 <div·class="viewcode-block"·id="resolve">
92 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.resolve">[docs]</a>93 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.resolve">[documenti]</a>
93 <span·class="k">def</span>·<span·class="nf">resolve</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">urlconf</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>94 <span·class="k">def</span>·<span·class="nf">resolve</span><span·class="p">(</span><span·class="n">path</span><span·class="p">,</span>·<span·class="n">urlconf</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
94 ····<span·class="k">if</span>·<span·class="n">urlconf</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>95 ····<span·class="k">if</span>·<span·class="n">urlconf</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
95 ········<span·class="n">urlconf</span>·<span·class="o">=</span>·<span·class="n">get_urlconf</span><span·class="p">()</span>96 ········<span·class="n">urlconf</span>·<span·class="o">=</span>·<span·class="n">get_urlconf</span><span·class="p">()</span>
96 ····<span·class="k">return</span>·<span·class="n">get_resolver</span><span·class="p">(</span><span·class="n">urlconf</span><span·class="p">)</span><span·class="o">.</span><span·class="n">resolve</span><span·class="p">(</span><span·class="n">path</span><span·class="p">)</span></div>97 ····<span·class="k">return</span>·<span·class="n">get_resolver</span><span·class="p">(</span><span·class="n">urlconf</span><span·class="p">)</span><span·class="o">.</span><span·class="n">resolve</span><span·class="p">(</span><span·class="n">path</span><span·class="p">)</span></div>
  
  
  
97 <div·class="viewcode-block"·id="reverse">98 <div·class="viewcode-block"·id="reverse">
98 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.reverse">[docs]</a>99 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.reverse">[documenti]</a>
99 <span·class="k">def</span>·<span·class="nf">reverse</span><span·class="p">(</span><span·class="n">viewname</span><span·class="p">,</span>·<span·class="n">urlconf</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">current_app</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>100 <span·class="k">def</span>·<span·class="nf">reverse</span><span·class="p">(</span><span·class="n">viewname</span><span·class="p">,</span>·<span·class="n">urlconf</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">kwargs</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">current_app</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
100 ····<span·class="k">if</span>·<span·class="n">urlconf</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>101 ····<span·class="k">if</span>·<span·class="n">urlconf</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
101 ········<span·class="n">urlconf</span>·<span·class="o">=</span>·<span·class="n">get_urlconf</span><span·class="p">()</span>102 ········<span·class="n">urlconf</span>·<span·class="o">=</span>·<span·class="n">get_urlconf</span><span·class="p">()</span>
102 ····<span·class="n">resolver</span>·<span·class="o">=</span>·<span·class="n">get_resolver</span><span·class="p">(</span><span·class="n">urlconf</span><span·class="p">)</span>103 ····<span·class="n">resolver</span>·<span·class="o">=</span>·<span·class="n">get_resolver</span><span·class="p">(</span><span·class="n">urlconf</span><span·class="p">)</span>
103 ····<span·class="n">args</span>·<span·class="o">=</span>·<span·class="n">args</span>·<span·class="ow">or</span>·<span·class="p">[]</span>104 ····<span·class="n">args</span>·<span·class="o">=</span>·<span·class="n">args</span>·<span·class="ow">or</span>·<span·class="p">[]</span>
104 ····<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="n">kwargs</span>·<span·class="ow">or</span>·<span·class="p">{}</span>105 ····<span·class="n">kwargs</span>·<span·class="o">=</span>·<span·class="n">kwargs</span>·<span·class="ow">or</span>·<span·class="p">{}</span>
  
Offset 182, 15 lines modifiedOffset 183, 15 lines modified
182 <span·class="sd">····&quot;&quot;&quot;</span>183 <span·class="sd">····&quot;&quot;&quot;</span>
183 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">prefix</span><span·class="o">.</span><span·class="n">endswith</span><span·class="p">(</span><span·class="s2">&quot;/&quot;</span><span·class="p">):</span>184 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">prefix</span><span·class="o">.</span><span·class="n">endswith</span><span·class="p">(</span><span·class="s2">&quot;/&quot;</span><span·class="p">):</span>
184 ········<span·class="n">prefix</span>·<span·class="o">+=</span>·<span·class="s2">&quot;/&quot;</span>185 ········<span·class="n">prefix</span>·<span·class="o">+=</span>·<span·class="s2">&quot;/&quot;</span>
185 ····<span·class="n">_prefixes</span><span·class="o">.</span><span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">prefix</span>186 ····<span·class="n">_prefixes</span><span·class="o">.</span><span·class="n">value</span>·<span·class="o">=</span>·<span·class="n">prefix</span>
  
  
186 <div·class="viewcode-block"·id="get_script_prefix">187 <div·class="viewcode-block"·id="get_script_prefix">
187 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.get_script_prefix">[docs]</a>188 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.get_script_prefix">[documenti]</a>
188 <span·class="k">def</span>·<span·class="nf">get_script_prefix</span><span·class="p">():</span>189 <span·class="k">def</span>·<span·class="nf">get_script_prefix</span><span·class="p">():</span>
189 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>190 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
190 <span·class="sd">····Return·the·currently·active·script·prefix.·Useful·for·client·code·that</span>191 <span·class="sd">····Return·the·currently·active·script·prefix.·Useful·for·client·code·that</span>
191 <span·class="sd">····wishes·to·construct·their·own·URLs·manually·(although·accessing·the·request</span>192 <span·class="sd">····wishes·to·construct·their·own·URLs·manually·(although·accessing·the·request</span>
192 <span·class="sd">····instance·is·normally·going·to·be·a·lot·cleaner).</span>193 <span·class="sd">····instance·is·normally·going·to·be·a·lot·cleaner).</span>
193 <span·class="sd">····&quot;&quot;&quot;</span>194 <span·class="sd">····&quot;&quot;&quot;</span>
194 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">_prefixes</span><span·class="p">,</span>·<span·class="s2">&quot;value&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/&quot;</span><span·class="p">)</span></div>195 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">_prefixes</span><span·class="p">,</span>·<span·class="s2">&quot;value&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;/&quot;</span><span·class="p">)</span></div>
Offset 275, 35 lines modifiedOffset 276, 35 lines modified
275 ······276 ······
276 ········277 ········
277 ··········<div·class="yui-b"·id="sidebar">278 ··········<div·class="yui-b"·id="sidebar">
278 ············279 ············
279 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">280 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
280 ········<div·class="sphinxsidebarwrapper">281 ········<div·class="sphinxsidebarwrapper">
281 <search·id="searchbox"·style="display:·none"·role="search">282 <search·id="searchbox"·style="display:·none"·role="search">
282 ··<h3·id="searchlabel">Quick·search</h3>283 ··<h3·id="searchlabel">Ricerca·veloce</h3>
283 ····<div·class="searchformwrapper">284 ····<div·class="searchformwrapper">
284 ····<form·class="search"·action="../../../search.html"·method="get">285 ····<form·class="search"·action="../../../search.html"·method="get">
285 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>286 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
286 ······<input·type="submit"·value="Go"·/>287 ······<input·type="submit"·value="Vai"·/>
287 ····</form>288 ····</form>
288 ····</div>289 ····</div>
289 </search>290 </search>
290 <script>document.getElementById('searchbox').style.display·=·"block"</script>291 <script>document.getElementById('searchbox').style.display·=·"block"</script>
291 ········</div>292 ········</div>
292 ······</div>293 ······</div>
293 ··············<h3>Last·update:</h3>294 ··············<h3>Last·update:</h3>
294 ··············<p·class="topless">Sep·03,·2024</p>295 ··············<p·class="topless">set·03,·2024</p>
295 ··········</div>296 ··········</div>
296 ········297 ········
297 ······298 ······
298 ····</div>299 ····</div>
  
299 ····<div·id="ft">300 ····<div·id="ft">
300 ······<div·class="nav">301 ······<div·class="nav">
301 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>302 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
302 ····</div>303 ····</div>
303 ··</div>304 ··</div>
  
Max diff block lines reached; 32/9011 bytes (0.36%) of diff not shown.
2.5 KB
html2text {}
Max HTML report size reached
7.67 KB
./usr/share/doc/python-django-doc/html/_modules/django/urls/conf.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.urls.conf·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls.conf·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-urls-conf">69 ··········<div·class="yui-g"·id="_modules-django-urls-conf">
69 ············70 ············
70 ··<h1>Source·code·for·django.urls.conf</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.urls.conf</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;Functions·for·use·in·URLsconfs.&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;Functions·for·use·in·URLsconfs.&quot;&quot;&quot;</span>
72 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span>
73 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>74 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>75 <span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">ImproperlyConfigured</span>
  
75 <span·class="kn">from</span>·<span·class="nn">.resolvers</span>·<span·class="kn">import</span>·<span·class="p">(</span>76 <span·class="kn">from</span>·<span·class="nn">.resolvers</span>·<span·class="kn">import</span>·<span·class="p">(</span>
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 ····<span·class="n">RoutePattern</span><span·class="p">,</span>84 ····<span·class="n">RoutePattern</span><span·class="p">,</span>
84 ····<span·class="n">URLPattern</span><span·class="p">,</span>85 ····<span·class="n">URLPattern</span><span·class="p">,</span>
85 ····<span·class="n">URLResolver</span><span·class="p">,</span>86 ····<span·class="n">URLResolver</span><span·class="p">,</span>
86 <span·class="p">)</span>87 <span·class="p">)</span>
  
  
87 <div·class="viewcode-block"·id="include">88 <div·class="viewcode-block"·id="include">
88 <a·class="viewcode-back"·href="../../../ref/urls.html#django.urls.include">[docs]</a>89 <a·class="viewcode-back"·href="../../../ref/urls.html#django.urls.include">[documenti]</a>
89 <span·class="k">def</span>·<span·class="nf">include</span><span·class="p">(</span><span·class="n">arg</span><span·class="p">,</span>·<span·class="n">namespace</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>90 <span·class="k">def</span>·<span·class="nf">include</span><span·class="p">(</span><span·class="n">arg</span><span·class="p">,</span>·<span·class="n">namespace</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
90 ····<span·class="n">app_name</span>·<span·class="o">=</span>·<span·class="kc">None</span>91 ····<span·class="n">app_name</span>·<span·class="o">=</span>·<span·class="kc">None</span>
91 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">arg</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">):</span>92 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">arg</span><span·class="p">,</span>·<span·class="nb">tuple</span><span·class="p">):</span>
92 ········<span·class="c1">#·Callable·returning·a·namespace·hint.</span>93 ········<span·class="c1">#·Callable·returning·a·namespace·hint.</span>
93 ········<span·class="k">try</span><span·class="p">:</span>94 ········<span·class="k">try</span><span·class="p">:</span>
94 ············<span·class="n">urlconf_module</span><span·class="p">,</span>·<span·class="n">app_name</span>·<span·class="o">=</span>·<span·class="n">arg</span>95 ············<span·class="n">urlconf_module</span><span·class="p">,</span>·<span·class="n">app_name</span>·<span·class="o">=</span>·<span·class="n">arg</span>
95 ········<span·class="k">except</span>·<span·class="ne">ValueError</span><span·class="p">:</span>96 ········<span·class="k">except</span>·<span·class="ne">ValueError</span><span·class="p">:</span>
Offset 177, 35 lines modifiedOffset 178, 35 lines modified
177 ······178 ······
178 ········179 ········
179 ··········<div·class="yui-b"·id="sidebar">180 ··········<div·class="yui-b"·id="sidebar">
180 ············181 ············
181 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">182 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
182 ········<div·class="sphinxsidebarwrapper">183 ········<div·class="sphinxsidebarwrapper">
183 <search·id="searchbox"·style="display:·none"·role="search">184 <search·id="searchbox"·style="display:·none"·role="search">
184 ··<h3·id="searchlabel">Quick·search</h3>185 ··<h3·id="searchlabel">Ricerca·veloce</h3>
185 ····<div·class="searchformwrapper">186 ····<div·class="searchformwrapper">
186 ····<form·class="search"·action="../../../search.html"·method="get">187 ····<form·class="search"·action="../../../search.html"·method="get">
187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
188 ······<input·type="submit"·value="Go"·/>189 ······<input·type="submit"·value="Vai"·/>
189 ····</form>190 ····</form>
190 ····</div>191 ····</div>
191 </search>192 </search>
192 <script>document.getElementById('searchbox').style.display·=·"block"</script>193 <script>document.getElementById('searchbox').style.display·=·"block"</script>
193 ········</div>194 ········</div>
194 ······</div>195 ······</div>
195 ··············<h3>Last·update:</h3>196 ··············<h3>Last·update:</h3>
196 ··············<p·class="topless">Sep·03,·2024</p>197 ··············<p·class="topless">set·03,·2024</p>
197 ··········</div>198 ··········</div>
198 ········199 ········
199 ······200 ······
200 ····</div>201 ····</div>
  
201 ····<div·id="ft">202 ····<div·id="ft">
202 ······<div·class="nav">203 ······<div·class="nav">
203 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>204 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
204 ····</div>205 ····</div>
205 ··</div>206 ··</div>
  
206 ······<div·class="clearer"></div>207 ······<div·class="clearer"></div>
207 ····</div>208 ····</div>
208 ··</body>209 ··</body>
209 </html>210 </html>
1.81 KB
html2text {}
Max HTML report size reached
7.03 KB
./usr/share/doc/python-django-doc/html/_modules/django/urls/converters.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.urls.converters·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls.converters·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-urls-converters">69 ··········<div·class="yui-g"·id="_modules-django-urls-converters">
69 ············70 ············
70 ··<h1>Source·code·for·django.urls.converters</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.urls.converters</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">uuid</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">uuid</span>
72 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">lru_cache</span>73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">lru_cache</span>
  
  
73 <span·class="k">class</span>·<span·class="nc">IntConverter</span><span·class="p">:</span>74 <span·class="k">class</span>·<span·class="nc">IntConverter</span><span·class="p">:</span>
74 ····<span·class="n">regex</span>·<span·class="o">=</span>·<span·class="s2">&quot;[0-9]+&quot;</span>75 ····<span·class="n">regex</span>·<span·class="o">=</span>·<span·class="s2">&quot;[0-9]+&quot;</span>
  
Offset 122, 15 lines modifiedOffset 123, 15 lines modified
122 <span·class="p">}</span>123 <span·class="p">}</span>
  
  
123 <span·class="n">REGISTERED_CONVERTERS</span>·<span·class="o">=</span>·<span·class="p">{}</span>124 <span·class="n">REGISTERED_CONVERTERS</span>·<span·class="o">=</span>·<span·class="p">{}</span>
  
  
124 <div·class="viewcode-block"·id="register_converter">125 <div·class="viewcode-block"·id="register_converter">
125 <a·class="viewcode-back"·href="../../../ref/urls.html#django.urls.register_converter">[docs]</a>126 <a·class="viewcode-back"·href="../../../ref/urls.html#django.urls.register_converter">[documenti]</a>
126 <span·class="k">def</span>·<span·class="nf">register_converter</span><span·class="p">(</span><span·class="n">converter</span><span·class="p">,</span>·<span·class="n">type_name</span><span·class="p">):</span>127 <span·class="k">def</span>·<span·class="nf">register_converter</span><span·class="p">(</span><span·class="n">converter</span><span·class="p">,</span>·<span·class="n">type_name</span><span·class="p">):</span>
127 ····<span·class="n">REGISTERED_CONVERTERS</span><span·class="p">[</span><span·class="n">type_name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">converter</span><span·class="p">()</span>128 ····<span·class="n">REGISTERED_CONVERTERS</span><span·class="p">[</span><span·class="n">type_name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">converter</span><span·class="p">()</span>
128 ····<span·class="n">get_converters</span><span·class="o">.</span><span·class="n">cache_clear</span><span·class="p">()</span></div>129 ····<span·class="n">get_converters</span><span·class="o">.</span><span·class="n">cache_clear</span><span·class="p">()</span></div>
  
  
  
129 <span·class="nd">@lru_cache</span><span·class="p">(</span><span·class="n">maxsize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span>130 <span·class="nd">@lru_cache</span><span·class="p">(</span><span·class="n">maxsize</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">)</span>
Offset 148, 35 lines modifiedOffset 149, 35 lines modified
148 ······149 ······
149 ········150 ········
150 ··········<div·class="yui-b"·id="sidebar">151 ··········<div·class="yui-b"·id="sidebar">
151 ············152 ············
152 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">153 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
153 ········<div·class="sphinxsidebarwrapper">154 ········<div·class="sphinxsidebarwrapper">
154 <search·id="searchbox"·style="display:·none"·role="search">155 <search·id="searchbox"·style="display:·none"·role="search">
155 ··<h3·id="searchlabel">Quick·search</h3>156 ··<h3·id="searchlabel">Ricerca·veloce</h3>
156 ····<div·class="searchformwrapper">157 ····<div·class="searchformwrapper">
157 ····<form·class="search"·action="../../../search.html"·method="get">158 ····<form·class="search"·action="../../../search.html"·method="get">
158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
159 ······<input·type="submit"·value="Go"·/>160 ······<input·type="submit"·value="Vai"·/>
160 ····</form>161 ····</form>
161 ····</div>162 ····</div>
162 </search>163 </search>
163 <script>document.getElementById('searchbox').style.display·=·"block"</script>164 <script>document.getElementById('searchbox').style.display·=·"block"</script>
164 ········</div>165 ········</div>
165 ······</div>166 ······</div>
166 ··············<h3>Last·update:</h3>167 ··············<h3>Last·update:</h3>
167 ··············<p·class="topless">Sep·03,·2024</p>168 ··············<p·class="topless">set·03,·2024</p>
168 ··········</div>169 ··········</div>
169 ········170 ········
170 ······171 ······
171 ····</div>172 ····</div>
  
172 ····<div·id="ft">173 ····<div·id="ft">
173 ······<div·class="nav">174 ······<div·class="nav">
174 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>175 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
175 ····</div>176 ····</div>
176 ··</div>177 ··</div>
  
177 ······<div·class="clearer"></div>178 ······<div·class="clearer"></div>
178 ····</div>179 ····</div>
179 ··</body>180 ··</body>
180 </html>181 </html>
1.61 KB
html2text {}
Max HTML report size reached
6.29 KB
./usr/share/doc/python-django-doc/html/_modules/django/urls/exceptions.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.urls.exceptions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls.exceptions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 43 lines modifiedOffset 51, 43 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-urls-exceptions">69 ··········<div·class="yui-g"·id="_modules-django-urls-exceptions">
69 ············70 ············
70 ··<h1>Source·code·for·django.urls.exceptions</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.urls.exceptions</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">Http404</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">Http404</span>
  
  
72 <div·class="viewcode-block"·id="Resolver404">73 <div·class="viewcode-block"·id="Resolver404">
73 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.urls.Resolver404">[docs]</a>74 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.urls.Resolver404">[documenti]</a>
74 <span·class="k">class</span>·<span·class="nc">Resolver404</span><span·class="p">(</span><span·class="n">Http404</span><span·class="p">):</span>75 <span·class="k">class</span>·<span·class="nc">Resolver404</span><span·class="p">(</span><span·class="n">Http404</span><span·class="p">):</span>
75 ····<span·class="k">pass</span></div>76 ····<span·class="k">pass</span></div>
  
  
  
76 <div·class="viewcode-block"·id="NoReverseMatch">77 <div·class="viewcode-block"·id="NoReverseMatch">
77 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.urls.NoReverseMatch">[docs]</a>78 <a·class="viewcode-back"·href="../../../ref/exceptions.html#django.urls.NoReverseMatch">[documenti]</a>
78 <span·class="k">class</span>·<span·class="nc">NoReverseMatch</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>79 <span·class="k">class</span>·<span·class="nc">NoReverseMatch</span><span·class="p">(</span><span·class="ne">Exception</span><span·class="p">):</span>
79 ····<span·class="k">pass</span></div>80 ····<span·class="k">pass</span></div>
  
80 </pre></div>81 </pre></div>
  
81 ··········</div>82 ··········</div>
82 ········</div>83 ········</div>
Offset 94, 35 lines modifiedOffset 95, 35 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 <search·id="searchbox"·style="display:·none"·role="search">101 <search·id="searchbox"·style="display:·none"·role="search">
101 ··<h3·id="searchlabel">Quick·search</h3>102 ··<h3·id="searchlabel">Ricerca·veloce</h3>
102 ····<div·class="searchformwrapper">103 ····<div·class="searchformwrapper">
103 ····<form·class="search"·action="../../../search.html"·method="get">104 ····<form·class="search"·action="../../../search.html"·method="get">
104 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>105 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
105 ······<input·type="submit"·value="Go"·/>106 ······<input·type="submit"·value="Vai"·/>
106 ····</form>107 ····</form>
107 ····</div>108 ····</div>
108 </search>109 </search>
109 <script>document.getElementById('searchbox').style.display·=·"block"</script>110 <script>document.getElementById('searchbox').style.display·=·"block"</script>
110 ········</div>111 ········</div>
111 ······</div>112 ······</div>
112 ··············<h3>Last·update:</h3>113 ··············<h3>Last·update:</h3>
113 ··············<p·class="topless">Sep·03,·2024</p>114 ··············<p·class="topless">set·03,·2024</p>
114 ··········</div>115 ··········</div>
115 ········116 ········
116 ······117 ······
117 ····</div>118 ····</div>
  
118 ····<div·id="ft">119 ····<div·id="ft">
119 ······<div·class="nav">120 ······<div·class="nav">
120 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>121 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
121 ····</div>122 ····</div>
122 ··</div>123 ··</div>
  
123 ······<div·class="clearer"></div>124 ······<div·class="clearer"></div>
124 ····</div>125 ····</div>
125 ··</body>126 ··</body>
126 </html>127 </html>
1.31 KB
html2text {}
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6_.·_.d.d_.o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.t.t_.i.i_.o.o_.n.n·*\x8**\x8**\x8**\x8**\x8**\x8*1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.z.z_.i.i_.o.o_.n.n_.e.e_.·_.D.D_.j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6·*\x8**\x8**\x8**\x8**\x8**\x8*
2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s
3 _\x8u_\x8p3 _\x8u_\x8p
4 *\x8**\x8**\x8**\x8**\x8**\x8*·S.So.ou.ur.rc.ce.e·c.co.od.de.e·f.fo.or\x8r·d\x8dj\x8ja\x8an\x8ng\x8go\x8o.\x8.u\x8ur\x8rl\x8ls\x8s.\x8.e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*4 *\x8**\x8**\x8**\x8**\x8**\x8*·C.Co.od.di.ic.ce.e·s.so.or.rg.ge.en.nt.te.e·p.pe.er\x8r·d\x8dj\x8ja\x8an\x8ng\x8go\x8o.\x8.u\x8ur\x8rl\x8ls\x8s.\x8.e\x8ex\x8xc\x8ce\x8ep\x8pt\x8ti\x8io\x8on\x8ns\x8s·*\x8**\x8**\x8**\x8**\x8**\x8*
5 from·django.http·import·Http4045 from·django.http·import·Http404
  
  
  
6 _\x8[_\x8d_\x8o_\x8c_\x8s_\x8]6 _\x8[_\x8d_\x8o_\x8c_\x8u_.m_.e_.n_.t_.i_\x8]
7 class·Resolver404(Http404):7 class·Resolver404(Http404):
8 ····pass8 ····pass
  
  
  
  
  
9 _\x8[_\x8d_\x8o_\x8c_\x8s_\x8]9 _\x8[_\x8d_\x8o_\x8c_\x8u_.m_.e_.n_.t_.i_\x8]
10 class·NoReverseMatch(Exception):10 class·NoReverseMatch(Exception):
11 ····pass11 ····pass
  
12 *\x8**\x8**\x8**\x8*·Q.Qu.ui.ic.ck.k·s.se.ea.ar.rc.ch.h·*\x8**\x8**\x8**\x8*12 *\x8**\x8**\x8**\x8*·R.Ri.ic.ce.er.rc.ca.a·v.ve.el.lo.oc.ce.e·*\x8**\x8**\x8**\x8*
13 [q···················][Go]13 [q···················][Vai]
14 *\x8**\x8**\x8**\x8*·L\x8La\x8as\x8st\x8t·u\x8up\x8pd\x8da\x8at\x8te\x8e:\x8:·*\x8**\x8**\x8**\x8*14 *\x8**\x8**\x8**\x8*·L\x8La\x8as\x8st\x8t·u\x8up\x8pd\x8da\x8at\x8te\x8e:\x8:·*\x8**\x8**\x8**\x8*
15 Sep·03,·202415 set·03,·2024
16 _\x8u_\x8p16 _\x8u_\x8p
7.53 KB
./usr/share/doc/python-django-doc/html/_modules/django/urls/resolvers.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.urls.resolvers·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls.resolvers·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-urls-resolvers">69 ··········<div·class="yui-g"·id="_modules-django-urls-resolvers">
69 ············70 ············
70 ··<h1>Source·code·for·django.urls.resolvers</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.urls.resolvers</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·module·converts·requested·URLs·to·callback·view·functions.</span>73 <span·class="sd">This·module·converts·requested·URLs·to·callback·view·functions.</span>
  
73 <span·class="sd">URLResolver·is·the·main·class·here.·Its·resolve()·method·takes·a·URL·(as</span>74 <span·class="sd">URLResolver·is·the·main·class·here.·Its·resolve()·method·takes·a·URL·(as</span>
74 <span·class="sd">a·string)·and·returns·a·ResolverMatch·object·which·provides·access·to·all</span>75 <span·class="sd">a·string)·and·returns·a·ResolverMatch·object·which·provides·access·to·all</span>
75 <span·class="sd">attributes·of·the·resolved·URL·match.</span>76 <span·class="sd">attributes·of·the·resolved·URL·match.</span>
76 <span·class="sd">&quot;&quot;&quot;</span>77 <span·class="sd">&quot;&quot;&quot;</span>
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
  
100 <span·class="kn">from</span>·<span·class="nn">.converters</span>·<span·class="kn">import</span>·<span·class="n">get_converter</span>101 <span·class="kn">from</span>·<span·class="nn">.converters</span>·<span·class="kn">import</span>·<span·class="n">get_converter</span>
101 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">NoReverseMatch</span><span·class="p">,</span>·<span·class="n">Resolver404</span>102 <span·class="kn">from</span>·<span·class="nn">.exceptions</span>·<span·class="kn">import</span>·<span·class="n">NoReverseMatch</span><span·class="p">,</span>·<span·class="n">Resolver404</span>
102 <span·class="kn">from</span>·<span·class="nn">.utils</span>·<span·class="kn">import</span>·<span·class="n">get_callable</span>103 <span·class="kn">from</span>·<span·class="nn">.utils</span>·<span·class="kn">import</span>·<span·class="n">get_callable</span>
  
  
103 <div·class="viewcode-block"·id="ResolverMatch">104 <div·class="viewcode-block"·id="ResolverMatch">
104 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.ResolverMatch">[docs]</a>105 <a·class="viewcode-back"·href="../../../ref/urlresolvers.html#django.urls.ResolverMatch">[documenti]</a>
105 <span·class="k">class</span>·<span·class="nc">ResolverMatch</span><span·class="p">:</span>106 <span·class="k">class</span>·<span·class="nc">ResolverMatch</span><span·class="p">:</span>
106 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>107 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span>
107 ········<span·class="bp">self</span><span·class="p">,</span>108 ········<span·class="bp">self</span><span·class="p">,</span>
108 ········<span·class="n">func</span><span·class="p">,</span>109 ········<span·class="n">func</span><span·class="p">,</span>
109 ········<span·class="n">args</span><span·class="p">,</span>110 ········<span·class="n">args</span><span·class="p">,</span>
110 ········<span·class="n">kwargs</span><span·class="p">,</span>111 ········<span·class="n">kwargs</span><span·class="p">,</span>
111 ········<span·class="n">url_name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>112 ········<span·class="n">url_name</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>
Offset 910, 35 lines modifiedOffset 911, 35 lines modified
910 ······911 ······
911 ········912 ········
912 ··········<div·class="yui-b"·id="sidebar">913 ··········<div·class="yui-b"·id="sidebar">
913 ············914 ············
914 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">915 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
915 ········<div·class="sphinxsidebarwrapper">916 ········<div·class="sphinxsidebarwrapper">
916 <search·id="searchbox"·style="display:·none"·role="search">917 <search·id="searchbox"·style="display:·none"·role="search">
917 ··<h3·id="searchlabel">Quick·search</h3>918 ··<h3·id="searchlabel">Ricerca·veloce</h3>
918 ····<div·class="searchformwrapper">919 ····<div·class="searchformwrapper">
919 ····<form·class="search"·action="../../../search.html"·method="get">920 ····<form·class="search"·action="../../../search.html"·method="get">
920 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>921 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
921 ······<input·type="submit"·value="Go"·/>922 ······<input·type="submit"·value="Vai"·/>
922 ····</form>923 ····</form>
923 ····</div>924 ····</div>
924 </search>925 </search>
925 <script>document.getElementById('searchbox').style.display·=·"block"</script>926 <script>document.getElementById('searchbox').style.display·=·"block"</script>
926 ········</div>927 ········</div>
927 ······</div>928 ······</div>
928 ··············<h3>Last·update:</h3>929 ··············<h3>Last·update:</h3>
929 ··············<p·class="topless">Sep·03,·2024</p>930 ··············<p·class="topless">set·03,·2024</p>
930 ··········</div>931 ··········</div>
931 ········932 ········
932 ······933 ······
933 ····</div>934 ····</div>
  
934 ····<div·id="ft">935 ····<div·id="ft">
935 ······<div·class="nav">936 ······<div·class="nav">
936 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>937 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
937 ····</div>938 ····</div>
938 ··</div>939 ··</div>
  
939 ······<div·class="clearer"></div>940 ······<div·class="clearer"></div>
940 ····</div>941 ····</div>
941 ··</body>942 ··</body>
942 </html>943 </html>
1.91 KB
html2text {}
Max HTML report size reached
20.5 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/cache.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.cache·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.cache·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-cache">69 ··········<div·class="yui-g"·id="_modules-django-utils-cache">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.cache</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.cache</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">This·module·contains·helper·functions·for·controlling·caching.·It·does·so·by</span>73 <span·class="sd">This·module·contains·helper·functions·for·controlling·caching.·It·does·so·by</span>
73 <span·class="sd">managing·the·&quot;Vary&quot;·header·of·responses.·It·includes·functions·to·patch·the</span>74 <span·class="sd">managing·the·&quot;Vary&quot;·header·of·responses.·It·includes·functions·to·patch·the</span>
74 <span·class="sd">header·of·response·objects·directly·and·decorators·that·change·functions·to·do</span>75 <span·class="sd">header·of·response·objects·directly·and·decorators·that·change·functions·to·do</span>
75 <span·class="sd">that·header-patching·themselves.</span>76 <span·class="sd">that·header-patching·themselves.</span>
  
76 <span·class="sd">For·information·on·the·Vary·header,·see·RFC·9110·Section·12.5.5.</span>77 <span·class="sd">For·information·on·the·Vary·header,·see·RFC·9110·Section·12.5.5.</span>
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 <span·class="kn">from</span>·<span·class="nn">django.utils.timezone</span>·<span·class="kn">import</span>·<span·class="n">get_current_timezone_name</span>101 <span·class="kn">from</span>·<span·class="nn">django.utils.timezone</span>·<span·class="kn">import</span>·<span·class="n">get_current_timezone_name</span>
101 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">get_language</span>102 <span·class="kn">from</span>·<span·class="nn">django.utils.translation</span>·<span·class="kn">import</span>·<span·class="n">get_language</span>
  
102 <span·class="n">cc_delim_re</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\s*,\s*&quot;</span><span·class="p">)</span>103 <span·class="n">cc_delim_re</span>·<span·class="o">=</span>·<span·class="n">_lazy_re_compile</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\s*,\s*&quot;</span><span·class="p">)</span>
  
  
103 <div·class="viewcode-block"·id="patch_cache_control">104 <div·class="viewcode-block"·id="patch_cache_control">
104 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_cache_control">[docs]</a>105 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_cache_control">[documenti]</a>
105 <span·class="k">def</span>·<span·class="nf">patch_cache_control</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>106 <span·class="k">def</span>·<span·class="nf">patch_cache_control</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
106 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>107 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
107 <span·class="sd">····Patch·the·Cache-Control·header·by·adding·all·keyword·arguments·to·it.</span>108 <span·class="sd">····Patch·the·Cache-Control·header·by·adding·all·keyword·arguments·to·it.</span>
108 <span·class="sd">····The·transformation·is·as·follows:</span>109 <span·class="sd">····The·transformation·is·as·follows:</span>
  
109 <span·class="sd">····*·All·keyword·parameter·names·are·turned·to·lowercase,·and·underscores</span>110 <span·class="sd">····*·All·keyword·parameter·names·are·turned·to·lowercase,·and·underscores</span>
110 <span·class="sd">······are·converted·to·hyphens.</span>111 <span·class="sd">······are·converted·to·hyphens.</span>
Offset 172, 15 lines modifiedOffset 173, 15 lines modified
172 ············<span·class="n">directives</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">dictvalue</span><span·class="p">(</span><span·class="n">directive</span><span·class="p">,</span>·<span·class="n">values</span><span·class="p">))</span>173 ············<span·class="n">directives</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">dictvalue</span><span·class="p">(</span><span·class="n">directive</span><span·class="p">,</span>·<span·class="n">values</span><span·class="p">))</span>
173 ····<span·class="n">cc</span>·<span·class="o">=</span>·<span·class="s2">&quot;,·&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">directives</span><span·class="p">)</span>174 ····<span·class="n">cc</span>·<span·class="o">=</span>·<span·class="s2">&quot;,·&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">directives</span><span·class="p">)</span>
174 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Cache-Control&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">cc</span></div>175 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Cache-Control&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">cc</span></div>
  
  
  
175 <div·class="viewcode-block"·id="get_max_age">176 <div·class="viewcode-block"·id="get_max_age">
176 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.get_max_age">[docs]</a>177 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.get_max_age">[documenti]</a>
177 <span·class="k">def</span>·<span·class="nf">get_max_age</span><span·class="p">(</span><span·class="n">response</span><span·class="p">):</span>178 <span·class="k">def</span>·<span·class="nf">get_max_age</span><span·class="p">(</span><span·class="n">response</span><span·class="p">):</span>
178 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>179 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
179 <span·class="sd">····Return·the·max-age·from·the·response·Cache-Control·header·as·an·integer,</span>180 <span·class="sd">····Return·the·max-age·from·the·response·Cache-Control·header·as·an·integer,</span>
180 <span·class="sd">····or·None·if·it·wasn&#39;t·found·or·wasn&#39;t·an·integer.</span>181 <span·class="sd">····or·None·if·it·wasn&#39;t·found·or·wasn&#39;t·an·integer.</span>
181 <span·class="sd">····&quot;&quot;&quot;</span>182 <span·class="sd">····&quot;&quot;&quot;</span>
182 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">has_header</span><span·class="p">(</span><span·class="s2">&quot;Cache-Control&quot;</span><span·class="p">):</span>183 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">has_header</span><span·class="p">(</span><span·class="s2">&quot;Cache-Control&quot;</span><span·class="p">):</span>
183 ········<span·class="k">return</span>184 ········<span·class="k">return</span>
Offset 342, 15 lines modifiedOffset 343, 15 lines modified
342 <span·class="sd">····Test·the·If-Modified-Since·comparison·as·defined·in·RFC·9110·Section</span>343 <span·class="sd">····Test·the·If-Modified-Since·comparison·as·defined·in·RFC·9110·Section</span>
343 <span·class="sd">····13.1.3.</span>344 <span·class="sd">····13.1.3.</span>
344 <span·class="sd">····&quot;&quot;&quot;</span>345 <span·class="sd">····&quot;&quot;&quot;</span>
345 ····<span·class="k">return</span>·<span·class="ow">not</span>·<span·class="n">last_modified</span>·<span·class="ow">or</span>·<span·class="n">last_modified</span>·<span·class="o">&gt;</span>·<span·class="n">if_modified_since</span>346 ····<span·class="k">return</span>·<span·class="ow">not</span>·<span·class="n">last_modified</span>·<span·class="ow">or</span>·<span·class="n">last_modified</span>·<span·class="o">&gt;</span>·<span·class="n">if_modified_since</span>
  
  
346 <div·class="viewcode-block"·id="patch_response_headers">347 <div·class="viewcode-block"·id="patch_response_headers">
347 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_response_headers">[docs]</a>348 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_response_headers">[documenti]</a>
348 <span·class="k">def</span>·<span·class="nf">patch_response_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">cache_timeout</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>349 <span·class="k">def</span>·<span·class="nf">patch_response_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">cache_timeout</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
349 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>350 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
350 <span·class="sd">····Add·HTTP·caching·headers·to·the·given·HttpResponse:·Expires·and</span>351 <span·class="sd">····Add·HTTP·caching·headers·to·the·given·HttpResponse:·Expires·and</span>
351 <span·class="sd">····Cache-Control.</span>352 <span·class="sd">····Cache-Control.</span>
  
352 <span·class="sd">····Each·header·is·only·added·if·it·isn&#39;t·already·set.</span>353 <span·class="sd">····Each·header·is·only·added·if·it·isn&#39;t·already·set.</span>
  
Offset 364, 28 lines modifiedOffset 365, 28 lines modified
364 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">has_header</span><span·class="p">(</span><span·class="s2">&quot;Expires&quot;</span><span·class="p">):</span>365 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">has_header</span><span·class="p">(</span><span·class="s2">&quot;Expires&quot;</span><span·class="p">):</span>
365 ········<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Expires&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">http_date</span><span·class="p">(</span><span·class="n">time</span><span·class="o">.</span><span·class="n">time</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">cache_timeout</span><span·class="p">)</span>366 ········<span·class="n">response</span><span·class="o">.</span><span·class="n">headers</span><span·class="p">[</span><span·class="s2">&quot;Expires&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">http_date</span><span·class="p">(</span><span·class="n">time</span><span·class="o">.</span><span·class="n">time</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">cache_timeout</span><span·class="p">)</span>
366 ····<span·class="n">patch_cache_control</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">max_age</span><span·class="o">=</span><span·class="n">cache_timeout</span><span·class="p">)</span></div>367 ····<span·class="n">patch_cache_control</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">max_age</span><span·class="o">=</span><span·class="n">cache_timeout</span><span·class="p">)</span></div>
  
  
  
367 <div·class="viewcode-block"·id="add_never_cache_headers">368 <div·class="viewcode-block"·id="add_never_cache_headers">
368 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.add_never_cache_headers">[docs]</a>369 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.add_never_cache_headers">[documenti]</a>
369 <span·class="k">def</span>·<span·class="nf">add_never_cache_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">):</span>370 <span·class="k">def</span>·<span·class="nf">add_never_cache_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">):</span>
370 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>371 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
371 <span·class="sd">····Add·headers·to·a·response·to·indicate·that·a·page·should·never·be·cached.</span>372 <span·class="sd">····Add·headers·to·a·response·to·indicate·that·a·page·should·never·be·cached.</span>
372 <span·class="sd">····&quot;&quot;&quot;</span>373 <span·class="sd">····&quot;&quot;&quot;</span>
373 ····<span·class="n">patch_response_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">cache_timeout</span><span·class="o">=-</span><span·class="mi">1</span><span·class="p">)</span>374 ····<span·class="n">patch_response_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">cache_timeout</span><span·class="o">=-</span><span·class="mi">1</span><span·class="p">)</span>
374 ····<span·class="n">patch_cache_control</span><span·class="p">(</span>375 ····<span·class="n">patch_cache_control</span><span·class="p">(</span>
375 ········<span·class="n">response</span><span·class="p">,</span>·<span·class="n">no_cache</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">no_store</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">must_revalidate</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">private</span><span·class="o">=</span><span·class="kc">True</span>376 ········<span·class="n">response</span><span·class="p">,</span>·<span·class="n">no_cache</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">no_store</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">must_revalidate</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">private</span><span·class="o">=</span><span·class="kc">True</span>
376 ····<span·class="p">)</span></div>377 ····<span·class="p">)</span></div>
  
  
  
377 <div·class="viewcode-block"·id="patch_vary_headers">378 <div·class="viewcode-block"·id="patch_vary_headers">
378 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_vary_headers">[docs]</a>379 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.cache.patch_vary_headers">[documenti]</a>
379 <span·class="k">def</span>·<span·class="nf">patch_vary_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">newheaders</span><span·class="p">):</span>380 <span·class="k">def</span>·<span·class="nf">patch_vary_headers</span><span·class="p">(</span><span·class="n">response</span><span·class="p">,</span>·<span·class="n">newheaders</span><span·class="p">):</span>
380 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>381 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
381 <span·class="sd">····Add·(or·update)·the·&quot;Vary&quot;·header·in·the·given·HttpResponse·object.</span>382 <span·class="sd">····Add·(or·update)·the·&quot;Vary&quot;·header·in·the·given·HttpResponse·object.</span>
Max diff block lines reached; 5066/15863 bytes (31.94%) of diff not shown.
4.86 KB
html2text {}
Max HTML report size reached
14.9 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/dateparse.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.dateparse·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.dateparse·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-dateparse">69 ··········<div·class="yui-g"·id="_modules-django-utils-dateparse">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.dateparse</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.dateparse</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;Functions·to·parse·datetime·objects.&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;Functions·to·parse·datetime·objects.&quot;&quot;&quot;</span>
  
72 <span·class="c1">#·We&#39;re·using·regular·expressions·rather·than·time.strptime·because:</span>73 <span·class="c1">#·We&#39;re·using·regular·expressions·rather·than·time.strptime·because:</span>
73 <span·class="c1">#·-·They·provide·both·validation·and·parsing.</span>74 <span·class="c1">#·-·They·provide·both·validation·and·parsing.</span>
74 <span·class="c1">#·-·They&#39;re·more·flexible·for·datetimes.</span>75 <span·class="c1">#·-·They&#39;re·more·flexible·for·datetimes.</span>
75 <span·class="c1">#·-·The·date/datetime/time·constructors·produce·friendlier·error·messages.</span>76 <span·class="c1">#·-·The·date/datetime/time·constructors·produce·friendlier·error·messages.</span>
  
Offset 134, 15 lines modifiedOffset 135, 15 lines modified
134 ····<span·class="sa">r</span><span·class="s2">&quot;(?P&lt;seconds&gt;\d\d)&quot;</span>135 ····<span·class="sa">r</span><span·class="s2">&quot;(?P&lt;seconds&gt;\d\d)&quot;</span>
135 ····<span·class="sa">r</span><span·class="s2">&quot;(?:\.(?P&lt;microseconds&gt;\d{1,6}))?&quot;</span>136 ····<span·class="sa">r</span><span·class="s2">&quot;(?:\.(?P&lt;microseconds&gt;\d{1,6}))?&quot;</span>
136 ····<span·class="sa">r</span><span·class="s2">&quot;)?$&quot;</span>137 ····<span·class="sa">r</span><span·class="s2">&quot;)?$&quot;</span>
137 <span·class="p">)</span>138 <span·class="p">)</span>
  
  
138 <div·class="viewcode-block"·id="parse_date">139 <div·class="viewcode-block"·id="parse_date">
139 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_date">[docs]</a>140 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_date">[documenti]</a>
140 <span·class="k">def</span>·<span·class="nf">parse_date</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>141 <span·class="k">def</span>·<span·class="nf">parse_date</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
141 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.date.</span>142 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.date.</span>
  
142 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·date.</span>143 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·date.</span>
143 <span·class="sd">····Return·None·if·the·input·isn&#39;t·well·formatted.</span>144 <span·class="sd">····Return·None·if·the·input·isn&#39;t·well·formatted.</span>
144 <span·class="sd">····&quot;&quot;&quot;</span>145 <span·class="sd">····&quot;&quot;&quot;</span>
145 ····<span·class="k">try</span><span·class="p">:</span>146 ····<span·class="k">try</span><span·class="p">:</span>
Offset 151, 15 lines modifiedOffset 152, 15 lines modified
151 ········<span·class="k">if</span>·<span·class="n">match</span>·<span·class="o">:=</span>·<span·class="n">date_re</span><span·class="o">.</span><span·class="n">match</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>152 ········<span·class="k">if</span>·<span·class="n">match</span>·<span·class="o">:=</span>·<span·class="n">date_re</span><span·class="o">.</span><span·class="n">match</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
152 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">match</span><span·class="o">.</span><span·class="n">groupdict</span><span·class="p">()</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>153 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">match</span><span·class="o">.</span><span·class="n">groupdict</span><span·class="p">()</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
153 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">date</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">)</span></div>154 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">date</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">)</span></div>
  
  
  
154 <div·class="viewcode-block"·id="parse_time">155 <div·class="viewcode-block"·id="parse_time">
155 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_time">[docs]</a>156 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_time">[documenti]</a>
156 <span·class="k">def</span>·<span·class="nf">parse_time</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>157 <span·class="k">def</span>·<span·class="nf">parse_time</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
157 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.time.</span>158 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.time.</span>
  
158 <span·class="sd">····This·function·doesn&#39;t·support·time·zone·offsets.</span>159 <span·class="sd">····This·function·doesn&#39;t·support·time·zone·offsets.</span>
  
159 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·time.</span>160 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·time.</span>
160 <span·class="sd">····Return·None·if·the·input·isn&#39;t·well·formatted,·in·particular·if·it</span>161 <span·class="sd">····Return·None·if·the·input·isn&#39;t·well·formatted,·in·particular·if·it</span>
Offset 177, 15 lines modifiedOffset 178, 15 lines modified
177 ············<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span>·<span·class="ow">and</span>·<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span><span·class="o">.</span><span·class="n">ljust</span><span·class="p">(</span><span·class="mi">6</span><span·class="p">,</span>·<span·class="s2">&quot;0&quot;</span><span·class="p">)</span>178 ············<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span>·<span·class="ow">and</span>·<span·class="n">kw</span><span·class="p">[</span><span·class="s2">&quot;microsecond&quot;</span><span·class="p">]</span><span·class="o">.</span><span·class="n">ljust</span><span·class="p">(</span><span·class="mi">6</span><span·class="p">,</span>·<span·class="s2">&quot;0&quot;</span><span·class="p">)</span>
178 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">kw</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">}</span>179 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">kw</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">}</span>
179 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">time</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">)</span></div>180 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">time</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">)</span></div>
  
  
  
180 <div·class="viewcode-block"·id="parse_datetime">181 <div·class="viewcode-block"·id="parse_datetime">
181 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_datetime">[docs]</a>182 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_datetime">[documenti]</a>
182 <span·class="k">def</span>·<span·class="nf">parse_datetime</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>183 <span·class="k">def</span>·<span·class="nf">parse_datetime</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
183 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.datetime.</span>184 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·string·and·return·a·datetime.datetime.</span>
  
184 <span·class="sd">····This·function·supports·time·zone·offsets.·When·the·input·contains·one,</span>185 <span·class="sd">····This·function·supports·time·zone·offsets.·When·the·input·contains·one,</span>
185 <span·class="sd">····the·output·uses·a·timezone·with·a·fixed·offset·from·UTC.</span>186 <span·class="sd">····the·output·uses·a·timezone·with·a·fixed·offset·from·UTC.</span>
  
186 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·datetime.</span>187 <span·class="sd">····Raise·ValueError·if·the·input·is·well·formatted·but·not·a·valid·datetime.</span>
Offset 208, 15 lines modifiedOffset 209, 15 lines modified
208 ················<span·class="n">tzinfo</span>·<span·class="o">=</span>·<span·class="n">get_fixed_timezone</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">)</span>209 ················<span·class="n">tzinfo</span>·<span·class="o">=</span>·<span·class="n">get_fixed_timezone</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">)</span>
209 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">kw</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">}</span>210 ············<span·class="n">kw</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">kw</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">is</span>·<span·class="ow">not</span>·<span·class="kc">None</span><span·class="p">}</span>
210 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">datetime</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">,</span>·<span·class="n">tzinfo</span><span·class="o">=</span><span·class="n">tzinfo</span><span·class="p">)</span></div>211 ············<span·class="k">return</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">datetime</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kw</span><span·class="p">,</span>·<span·class="n">tzinfo</span><span·class="o">=</span><span·class="n">tzinfo</span><span·class="p">)</span></div>
  
  
  
211 <div·class="viewcode-block"·id="parse_duration">212 <div·class="viewcode-block"·id="parse_duration">
212 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_duration">[docs]</a>213 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.dateparse.parse_duration">[documenti]</a>
213 <span·class="k">def</span>·<span·class="nf">parse_duration</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>214 <span·class="k">def</span>·<span·class="nf">parse_duration</span><span·class="p">(</span><span·class="n">value</span><span·class="p">):</span>
214 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·duration·string·and·return·a·datetime.timedelta.</span>215 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Parse·a·duration·string·and·return·a·datetime.timedelta.</span>
  
215 <span·class="sd">····The·preferred·format·for·durations·in·Django·is·&#39;%d·%H:%M:%S.%f&#39;.</span>216 <span·class="sd">····The·preferred·format·for·durations·in·Django·is·&#39;%d·%H:%M:%S.%f&#39;.</span>
  
216 <span·class="sd">····Also·supports·ISO·8601·representation·and·PostgreSQL&#39;s·day-time·interval</span>217 <span·class="sd">····Also·supports·ISO·8601·representation·and·PostgreSQL&#39;s·day-time·interval</span>
217 <span·class="sd">····format.</span>218 <span·class="sd">····format.</span>
Offset 245, 35 lines modifiedOffset 246, 35 lines modified
245 ······246 ······
246 ········247 ········
247 ··········<div·class="yui-b"·id="sidebar">248 ··········<div·class="yui-b"·id="sidebar">
248 ············249 ············
249 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">250 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
250 ········<div·class="sphinxsidebarwrapper">251 ········<div·class="sphinxsidebarwrapper">
251 <search·id="searchbox"·style="display:·none"·role="search">252 <search·id="searchbox"·style="display:·none"·role="search">
252 ··<h3·id="searchlabel">Quick·search</h3>253 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 932/11585 bytes (8.04%) of diff not shown.
3.44 KB
html2text {}
Max HTML report size reached
16.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/decorators.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.decorators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.decorators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-decorators">69 ··········<div·class="yui-g"·id="_modules-django-utils-decorators">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.decorators</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.decorators</h1><div·class="highlight"><pre>
71 <span></span><span·class="s2">&quot;Functions·that·help·with·dynamically·creating·decorators·for·views.&quot;</span>72 <span></span><span·class="s2">&quot;Functions·that·help·with·dynamically·creating·decorators·for·views.&quot;</span>
  
72 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span><span·class="p">,</span>·<span·class="n">update_wrapper</span><span·class="p">,</span>·<span·class="n">wraps</span>73 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">partial</span><span·class="p">,</span>·<span·class="n">update_wrapper</span><span·class="p">,</span>·<span·class="n">wraps</span>
  
  
73 <span·class="k">class</span>·<span·class="nc">classonlymethod</span><span·class="p">(</span><span·class="nb">classmethod</span><span·class="p">):</span>74 <span·class="k">class</span>·<span·class="nc">classonlymethod</span><span·class="p">(</span><span·class="nb">classmethod</span><span·class="p">):</span>
74 ····<span·class="k">def</span>·<span·class="fm">__get__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="bp">cls</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>75 ····<span·class="k">def</span>·<span·class="fm">__get__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">instance</span><span·class="p">,</span>·<span·class="bp">cls</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
Offset 123, 15 lines modifiedOffset 124, 15 lines modified
123 ········<span·class="n">_update_method_wrapper</span><span·class="p">(</span><span·class="n">_wrapper</span><span·class="p">,</span>·<span·class="n">dec</span><span·class="p">)</span>124 ········<span·class="n">_update_method_wrapper</span><span·class="p">(</span><span·class="n">_wrapper</span><span·class="p">,</span>·<span·class="n">dec</span><span·class="p">)</span>
124 ····<span·class="c1">#·Preserve·any·existing·attributes·of·&#39;method&#39;,·including·the·name.</span>125 ····<span·class="c1">#·Preserve·any·existing·attributes·of·&#39;method&#39;,·including·the·name.</span>
125 ····<span·class="n">update_wrapper</span><span·class="p">(</span><span·class="n">_wrapper</span><span·class="p">,</span>·<span·class="n">method</span><span·class="p">)</span>126 ····<span·class="n">update_wrapper</span><span·class="p">(</span><span·class="n">_wrapper</span><span·class="p">,</span>·<span·class="n">method</span><span·class="p">)</span>
126 ····<span·class="k">return</span>·<span·class="n">_wrapper</span>127 ····<span·class="k">return</span>·<span·class="n">_wrapper</span>
  
  
127 <div·class="viewcode-block"·id="method_decorator">128 <div·class="viewcode-block"·id="method_decorator">
128 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.method_decorator">[docs]</a>129 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.method_decorator">[documenti]</a>
129 <span·class="k">def</span>·<span·class="nf">method_decorator</span><span·class="p">(</span><span·class="n">decorator</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;&quot;</span><span·class="p">):</span>130 <span·class="k">def</span>·<span·class="nf">method_decorator</span><span·class="p">(</span><span·class="n">decorator</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;&quot;</span><span·class="p">):</span>
130 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>131 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
131 <span·class="sd">····Convert·a·function·decorator·into·a·method·decorator</span>132 <span·class="sd">····Convert·a·function·decorator·into·a·method·decorator</span>
132 <span·class="sd">····&quot;&quot;&quot;</span>133 <span·class="sd">····&quot;&quot;&quot;</span>
  
133 ····<span·class="c1">#·&#39;obj&#39;·can·be·a·class·or·a·function.·If·&#39;obj&#39;·is·a·function·at·the·time·it</span>134 ····<span·class="c1">#·&#39;obj&#39;·can·be·a·class·or·a·function.·If·&#39;obj&#39;·is·a·function·at·the·time·it</span>
134 ····<span·class="c1">#·is·passed·to·_dec,··it·will·eventually·be·a·method·of·the·class·it·is</span>135 ····<span·class="c1">#·is·passed·to·_dec,··it·will·eventually·be·a·method·of·the·class·it·is</span>
Offset 163, 15 lines modifiedOffset 164, 15 lines modified
163 ····<span·class="n">obj</span>·<span·class="o">=</span>·<span·class="n">decorator</span>·<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">decorator</span><span·class="p">,</span>·<span·class="s2">&quot;__name__&quot;</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="n">decorator</span><span·class="o">.</span><span·class="vm">__class__</span>164 ····<span·class="n">obj</span>·<span·class="o">=</span>·<span·class="n">decorator</span>·<span·class="k">if</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">decorator</span><span·class="p">,</span>·<span·class="s2">&quot;__name__&quot;</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="n">decorator</span><span·class="o">.</span><span·class="vm">__class__</span>
164 ····<span·class="n">_dec</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">=</span>·<span·class="s2">&quot;method_decorator(</span><span·class="si">%s</span><span·class="s2">)&quot;</span>·<span·class="o">%</span>·<span·class="n">obj</span><span·class="o">.</span><span·class="vm">__name__</span>165 ····<span·class="n">_dec</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">=</span>·<span·class="s2">&quot;method_decorator(</span><span·class="si">%s</span><span·class="s2">)&quot;</span>·<span·class="o">%</span>·<span·class="n">obj</span><span·class="o">.</span><span·class="vm">__name__</span>
165 ····<span·class="k">return</span>·<span·class="n">_dec</span></div>166 ····<span·class="k">return</span>·<span·class="n">_dec</span></div>
  
  
  
166 <div·class="viewcode-block"·id="decorator_from_middleware_with_args">167 <div·class="viewcode-block"·id="decorator_from_middleware_with_args">
167 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.decorator_from_middleware_with_args">[docs]</a>168 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.decorator_from_middleware_with_args">[documenti]</a>
168 <span·class="k">def</span>·<span·class="nf">decorator_from_middleware_with_args</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">):</span>169 <span·class="k">def</span>·<span·class="nf">decorator_from_middleware_with_args</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">):</span>
169 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>170 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
170 <span·class="sd">····Like·decorator_from_middleware,·but·return·a·function</span>171 <span·class="sd">····Like·decorator_from_middleware,·but·return·a·function</span>
171 <span·class="sd">····that·accepts·the·arguments·to·be·passed·to·the·middleware_class.</span>172 <span·class="sd">····that·accepts·the·arguments·to·be·passed·to·the·middleware_class.</span>
172 <span·class="sd">····Use·like::</span>173 <span·class="sd">····Use·like::</span>
  
173 <span·class="sd">·········cache_page·=·decorator_from_middleware_with_args(CacheMiddleware)</span>174 <span·class="sd">·········cache_page·=·decorator_from_middleware_with_args(CacheMiddleware)</span>
Offset 182, 15 lines modifiedOffset 183, 15 lines modified
182 <span·class="sd">·············#·...</span>183 <span·class="sd">·············#·...</span>
183 <span·class="sd">····&quot;&quot;&quot;</span>184 <span·class="sd">····&quot;&quot;&quot;</span>
184 ····<span·class="k">return</span>·<span·class="n">make_middleware_decorator</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">)</span></div>185 ····<span·class="k">return</span>·<span·class="n">make_middleware_decorator</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">)</span></div>
  
  
  
185 <div·class="viewcode-block"·id="decorator_from_middleware">186 <div·class="viewcode-block"·id="decorator_from_middleware">
186 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.decorator_from_middleware">[docs]</a>187 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.decorator_from_middleware">[documenti]</a>
187 <span·class="k">def</span>·<span·class="nf">decorator_from_middleware</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">):</span>188 <span·class="k">def</span>·<span·class="nf">decorator_from_middleware</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">):</span>
188 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>189 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
189 <span·class="sd">····Given·a·middleware·class·(not·an·instance),·return·a·view·decorator.·This</span>190 <span·class="sd">····Given·a·middleware·class·(not·an·instance),·return·a·view·decorator.·This</span>
190 <span·class="sd">····lets·you·use·middleware·functionality·on·a·per-view·basis.·The·middleware</span>191 <span·class="sd">····lets·you·use·middleware·functionality·on·a·per-view·basis.·The·middleware</span>
191 <span·class="sd">····is·created·with·no·params·passed.</span>192 <span·class="sd">····is·created·with·no·params·passed.</span>
192 <span·class="sd">····&quot;&quot;&quot;</span>193 <span·class="sd">····&quot;&quot;&quot;</span>
193 ····<span·class="k">return</span>·<span·class="n">make_middleware_decorator</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">)()</span></div>194 ····<span·class="k">return</span>·<span·class="n">make_middleware_decorator</span><span·class="p">(</span><span·class="n">middleware_class</span><span·class="p">)()</span></div>
Offset 242, 41 lines modifiedOffset 243, 41 lines modified
  
242 ········<span·class="k">return</span>·<span·class="n">_decorator</span>243 ········<span·class="k">return</span>·<span·class="n">_decorator</span>
  
243 ····<span·class="k">return</span>·<span·class="n">_make_decorator</span>244 ····<span·class="k">return</span>·<span·class="n">_make_decorator</span>
  
  
244 <div·class="viewcode-block"·id="sync_and_async_middleware">245 <div·class="viewcode-block"·id="sync_and_async_middleware">
245 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.sync_and_async_middleware">[docs]</a>246 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.sync_and_async_middleware">[documenti]</a>
246 <span·class="k">def</span>·<span·class="nf">sync_and_async_middleware</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>247 <span·class="k">def</span>·<span·class="nf">sync_and_async_middleware</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>
247 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>248 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
248 <span·class="sd">····Mark·a·middleware·factory·as·returning·a·hybrid·middleware·supporting·both</span>249 <span·class="sd">····Mark·a·middleware·factory·as·returning·a·hybrid·middleware·supporting·both</span>
249 <span·class="sd">····types·of·request.</span>250 <span·class="sd">····types·of·request.</span>
250 <span·class="sd">····&quot;&quot;&quot;</span>251 <span·class="sd">····&quot;&quot;&quot;</span>
251 ····<span·class="n">func</span><span·class="o">.</span><span·class="n">sync_capable</span>·<span·class="o">=</span>·<span·class="kc">True</span>252 ····<span·class="n">func</span><span·class="o">.</span><span·class="n">sync_capable</span>·<span·class="o">=</span>·<span·class="kc">True</span>
252 ····<span·class="n">func</span><span·class="o">.</span><span·class="n">async_capable</span>·<span·class="o">=</span>·<span·class="kc">True</span>253 ····<span·class="n">func</span><span·class="o">.</span><span·class="n">async_capable</span>·<span·class="o">=</span>·<span·class="kc">True</span>
253 ····<span·class="k">return</span>·<span·class="n">func</span></div>254 ····<span·class="k">return</span>·<span·class="n">func</span></div>
  
  
  
254 <div·class="viewcode-block"·id="sync_only_middleware">255 <div·class="viewcode-block"·id="sync_only_middleware">
255 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.sync_only_middleware">[docs]</a>256 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.decorators.sync_only_middleware">[documenti]</a>
256 <span·class="k">def</span>·<span·class="nf">sync_only_middleware</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>257 <span·class="k">def</span>·<span·class="nf">sync_only_middleware</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>
257 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>258 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
258 <span·class="sd">····Mark·a·middleware·factory·as·returning·a·sync·middleware.</span>259 <span·class="sd">····Mark·a·middleware·factory·as·returning·a·sync·middleware.</span>
Max diff block lines reached; 2713/12584 bytes (21.56%) of diff not shown.
3.61 KB
html2text {}
Max HTML report size reached
23.7 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/encoding.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.encoding·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.encoding·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-encoding">69 ··········<div·class="yui-g"·id="_modules-django-utils-encoding">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.encoding</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.encoding</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">codecs</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">codecs</span>
72 <span·class="kn">import</span>·<span·class="nn">datetime</span>73 <span·class="kn">import</span>·<span·class="nn">datetime</span>
73 <span·class="kn">import</span>·<span·class="nn">locale</span>74 <span·class="kn">import</span>·<span·class="nn">locale</span>
74 <span·class="kn">from</span>·<span·class="nn">decimal</span>·<span·class="kn">import</span>·<span·class="n">Decimal</span>75 <span·class="kn">from</span>·<span·class="nn">decimal</span>·<span·class="kn">import</span>·<span·class="n">Decimal</span>
75 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">quote</span>76 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">quote</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">Promise</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.functional</span>·<span·class="kn">import</span>·<span·class="n">Promise</span>
Offset 90, 15 lines modifiedOffset 91, 15 lines modified
90 ············<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__str__</span><span·class="p">(),</span>91 ············<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__str__</span><span·class="p">(),</span>
91 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">obj</span><span·class="p">,</span>92 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">obj</span><span·class="p">,</span>
92 ············<span·class="nb">type</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">obj</span><span·class="p">),</span>93 ············<span·class="nb">type</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">obj</span><span·class="p">),</span>
93 ········<span·class="p">)</span>94 ········<span·class="p">)</span>
  
  
94 <div·class="viewcode-block"·id="smart_str">95 <div·class="viewcode-block"·id="smart_str">
95 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.smart_str">[docs]</a>96 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.smart_str">[documenti]</a>
96 <span·class="k">def</span>·<span·class="nf">smart_str</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>97 <span·class="k">def</span>·<span·class="nf">smart_str</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>
97 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>98 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
98 <span·class="sd">····Return·a·string·representing·&#39;s&#39;.·Treat·bytestrings·using·the·&#39;encoding&#39;</span>99 <span·class="sd">····Return·a·string·representing·&#39;s&#39;.·Treat·bytestrings·using·the·&#39;encoding&#39;</span>
99 <span·class="sd">····codec.</span>100 <span·class="sd">····codec.</span>
  
100 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>101 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>
101 <span·class="sd">····&quot;&quot;&quot;</span>102 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 117, 27 lines modifiedOffset 118, 27 lines modified
117 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">datetime</span><span·class="p">,</span>118 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">datetime</span><span·class="p">,</span>
118 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">date</span><span·class="p">,</span>119 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">date</span><span·class="p">,</span>
119 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">time</span><span·class="p">,</span>120 ····<span·class="n">datetime</span><span·class="o">.</span><span·class="n">time</span><span·class="p">,</span>
120 <span·class="p">)</span>121 <span·class="p">)</span>
  
  
121 <div·class="viewcode-block"·id="is_protected_type">122 <div·class="viewcode-block"·id="is_protected_type">
122 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.is_protected_type">[docs]</a>123 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.is_protected_type">[documenti]</a>
123 <span·class="k">def</span>·<span·class="nf">is_protected_type</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">):</span>124 <span·class="k">def</span>·<span·class="nf">is_protected_type</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">):</span>
124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Determine·if·the·object·instance·is·of·a·protected·type.</span>125 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Determine·if·the·object·instance·is·of·a·protected·type.</span>
  
125 <span·class="sd">····Objects·of·protected·types·are·preserved·as-is·when·passed·to</span>126 <span·class="sd">····Objects·of·protected·types·are·preserved·as-is·when·passed·to</span>
126 <span·class="sd">····force_str(strings_only=True).</span>127 <span·class="sd">····force_str(strings_only=True).</span>
127 <span·class="sd">····&quot;&quot;&quot;</span>128 <span·class="sd">····&quot;&quot;&quot;</span>
128 ····<span·class="k">return</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">,</span>·<span·class="n">_PROTECTED_TYPES</span><span·class="p">)</span></div>129 ····<span·class="k">return</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">obj</span><span·class="p">,</span>·<span·class="n">_PROTECTED_TYPES</span><span·class="p">)</span></div>
  
  
  
129 <div·class="viewcode-block"·id="force_str">130 <div·class="viewcode-block"·id="force_str">
130 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.force_str">[docs]</a>131 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.force_str">[documenti]</a>
131 <span·class="k">def</span>·<span·class="nf">force_str</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>132 <span·class="k">def</span>·<span·class="nf">force_str</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>
132 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>133 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
133 <span·class="sd">····Similar·to·smart_str(),·except·that·lazy·instances·are·resolved·to</span>134 <span·class="sd">····Similar·to·smart_str(),·except·that·lazy·instances·are·resolved·to</span>
134 <span·class="sd">····strings,·rather·than·kept·as·lazy·objects.</span>135 <span·class="sd">····strings,·rather·than·kept·as·lazy·objects.</span>
  
135 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>136 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>
136 <span·class="sd">····&quot;&quot;&quot;</span>137 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 154, 30 lines modifiedOffset 155, 30 lines modified
154 ····<span·class="k">except</span>·<span·class="ne">UnicodeDecodeError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span>155 ····<span·class="k">except</span>·<span·class="ne">UnicodeDecodeError</span>·<span·class="k">as</span>·<span·class="n">e</span><span·class="p">:</span>
155 ········<span·class="k">raise</span>·<span·class="n">DjangoUnicodeDecodeError</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">e</span><span·class="o">.</span><span·class="n">args</span><span·class="p">)</span>156 ········<span·class="k">raise</span>·<span·class="n">DjangoUnicodeDecodeError</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">e</span><span·class="o">.</span><span·class="n">args</span><span·class="p">)</span>
156 ····<span·class="k">return</span>·<span·class="n">s</span></div>157 ····<span·class="k">return</span>·<span·class="n">s</span></div>
  
  
  
157 <div·class="viewcode-block"·id="smart_bytes">158 <div·class="viewcode-block"·id="smart_bytes">
158 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.smart_bytes">[docs]</a>159 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.smart_bytes">[documenti]</a>
159 <span·class="k">def</span>·<span·class="nf">smart_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>160 <span·class="k">def</span>·<span·class="nf">smart_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>
160 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>161 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
161 <span·class="sd">····Return·a·bytestring·version·of·&#39;s&#39;,·encoded·as·specified·in·&#39;encoding&#39;.</span>162 <span·class="sd">····Return·a·bytestring·version·of·&#39;s&#39;,·encoded·as·specified·in·&#39;encoding&#39;.</span>
  
162 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>163 <span·class="sd">····If·strings_only·is·True,·don&#39;t·convert·(some)·non-string-like·objects.</span>
163 <span·class="sd">····&quot;&quot;&quot;</span>164 <span·class="sd">····&quot;&quot;&quot;</span>
164 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">Promise</span><span·class="p">):</span>165 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">Promise</span><span·class="p">):</span>
165 ········<span·class="c1">#·The·input·is·the·result·of·a·gettext_lazy()·call.</span>166 ········<span·class="c1">#·The·input·is·the·result·of·a·gettext_lazy()·call.</span>
166 ········<span·class="k">return</span>·<span·class="n">s</span>167 ········<span·class="k">return</span>·<span·class="n">s</span>
167 ····<span·class="k">return</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="p">)</span></div>168 ····<span·class="k">return</span>·<span·class="n">force_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="p">)</span></div>
  
  
  
168 <div·class="viewcode-block"·id="force_bytes">169 <div·class="viewcode-block"·id="force_bytes">
169 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.force_bytes">[docs]</a>170 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.encoding.force_bytes">[documenti]</a>
170 <span·class="k">def</span>·<span·class="nf">force_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>171 <span·class="k">def</span>·<span·class="nf">force_bytes</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="n">encoding</span><span·class="o">=</span><span·class="s2">&quot;utf-8&quot;</span><span·class="p">,</span>·<span·class="n">strings_only</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">,</span>·<span·class="n">errors</span><span·class="o">=</span><span·class="s2">&quot;strict&quot;</span><span·class="p">):</span>
171 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>172 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
172 <span·class="sd">····Similar·to·smart_bytes,·except·that·lazy·instances·are·resolved·to</span>173 <span·class="sd">····Similar·to·smart_bytes,·except·that·lazy·instances·are·resolved·to</span>
173 <span·class="sd">····strings,·rather·than·kept·as·lazy·objects.</span>174 <span·class="sd">····strings,·rather·than·kept·as·lazy·objects.</span>
  
Max diff block lines reached; 8067/18677 bytes (43.19%) of diff not shown.
5.3 KB
html2text {}
Max HTML report size reached
33.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/feedgenerator.html
Max HTML report size reached
11.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/functional.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.functional·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.functional·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-functional">69 ··········<div·class="yui-g"·id="_modules-django-utils-functional">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.functional</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.functional</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>
72 <span·class="kn">import</span>·<span·class="nn">itertools</span>73 <span·class="kn">import</span>·<span·class="nn">itertools</span>
73 <span·class="kn">import</span>·<span·class="nn">operator</span>74 <span·class="kn">import</span>·<span·class="nn">operator</span>
74 <span·class="kn">import</span>·<span·class="nn">warnings</span>75 <span·class="kn">import</span>·<span·class="nn">warnings</span>
75 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">total_ordering</span><span·class="p">,</span>·<span·class="n">wraps</span>76 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">total_ordering</span><span·class="p">,</span>·<span·class="n">wraps</span>
  
  
76 <div·class="viewcode-block"·id="cached_property">77 <div·class="viewcode-block"·id="cached_property">
77 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.cached_property">[docs]</a>78 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.cached_property">[documenti]</a>
78 <span·class="k">class</span>·<span·class="nc">cached_property</span><span·class="p">:</span>79 <span·class="k">class</span>·<span·class="nc">cached_property</span><span·class="p">:</span>
79 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>80 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
80 <span·class="sd">····Decorator·that·converts·a·method·with·a·single·self·argument·into·a</span>81 <span·class="sd">····Decorator·that·converts·a·method·with·a·single·self·argument·into·a</span>
81 <span·class="sd">····property·cached·on·the·instance.</span>82 <span·class="sd">····property·cached·on·the·instance.</span>
  
82 <span·class="sd">····A·cached·property·can·be·made·out·of·an·existing·method:</span>83 <span·class="sd">····A·cached·property·can·be·made·out·of·an·existing·method:</span>
83 <span·class="sd">····(e.g.·``url·=·cached_property(get_absolute_url)``).</span>84 <span·class="sd">····(e.g.·``url·=·cached_property(get_absolute_url)``).</span>
Offset 131, 15 lines modifiedOffset 132, 15 lines modified
131 ············<span·class="k">return</span>·<span·class="bp">self</span>132 ············<span·class="k">return</span>·<span·class="bp">self</span>
132 ········<span·class="n">res</span>·<span·class="o">=</span>·<span·class="n">instance</span><span·class="o">.</span><span·class="vm">__dict__</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">func</span><span·class="p">(</span><span·class="n">instance</span><span·class="p">)</span>133 ········<span·class="n">res</span>·<span·class="o">=</span>·<span·class="n">instance</span><span·class="o">.</span><span·class="vm">__dict__</span><span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">name</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">func</span><span·class="p">(</span><span·class="n">instance</span><span·class="p">)</span>
133 ········<span·class="k">return</span>·<span·class="n">res</span></div>134 ········<span·class="k">return</span>·<span·class="n">res</span></div>
  
  
  
134 <div·class="viewcode-block"·id="classproperty">135 <div·class="viewcode-block"·id="classproperty">
135 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.classproperty">[docs]</a>136 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.classproperty">[documenti]</a>
136 <span·class="k">class</span>·<span·class="nc">classproperty</span><span·class="p">:</span>137 <span·class="k">class</span>·<span·class="nc">classproperty</span><span·class="p">:</span>
137 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>138 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
138 <span·class="sd">····Decorator·that·converts·a·method·with·a·single·cls·argument·into·a·property</span>139 <span·class="sd">····Decorator·that·converts·a·method·with·a·single·cls·argument·into·a·property</span>
139 <span·class="sd">····that·can·be·accessed·directly·from·the·class.</span>140 <span·class="sd">····that·can·be·accessed·directly·from·the·class.</span>
140 <span·class="sd">····&quot;&quot;&quot;</span>141 <span·class="sd">····&quot;&quot;&quot;</span>
  
141 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">method</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>142 ····<span·class="k">def</span>·<span·class="fm">__init__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">method</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
Offset 299, 15 lines modifiedOffset 300, 15 lines modified
299 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>300 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
300 <span·class="sd">····Shortcut·for·the·common·case·of·a·lazy·callable·that·returns·str.</span>301 <span·class="sd">····Shortcut·for·the·common·case·of·a·lazy·callable·that·returns·str.</span>
301 <span·class="sd">····&quot;&quot;&quot;</span>302 <span·class="sd">····&quot;&quot;&quot;</span>
302 ····<span·class="k">return</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)(</span><span·class="n">text</span><span·class="p">)</span>303 ····<span·class="k">return</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)(</span><span·class="n">text</span><span·class="p">)</span>
  
  
303 <div·class="viewcode-block"·id="keep_lazy">304 <div·class="viewcode-block"·id="keep_lazy">
304 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.keep_lazy">[docs]</a>305 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.keep_lazy">[documenti]</a>
305 <span·class="k">def</span>·<span·class="nf">keep_lazy</span><span·class="p">(</span><span·class="o">*</span><span·class="n">resultclasses</span><span·class="p">):</span>306 <span·class="k">def</span>·<span·class="nf">keep_lazy</span><span·class="p">(</span><span·class="o">*</span><span·class="n">resultclasses</span><span·class="p">):</span>
306 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>307 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
307 <span·class="sd">····A·decorator·that·allows·a·function·to·be·called·with·one·or·more·lazy</span>308 <span·class="sd">····A·decorator·that·allows·a·function·to·be·called·with·one·or·more·lazy</span>
308 <span·class="sd">····arguments.·If·none·of·the·args·are·lazy,·the·function·is·evaluated</span>309 <span·class="sd">····arguments.·If·none·of·the·args·are·lazy,·the·function·is·evaluated</span>
309 <span·class="sd">····immediately,·otherwise·a·__proxy__·is·returned·that·will·evaluate·the</span>310 <span·class="sd">····immediately,·otherwise·a·__proxy__·is·returned·that·will·evaluate·the</span>
310 <span·class="sd">····function·when·needed.</span>311 <span·class="sd">····function·when·needed.</span>
311 <span·class="sd">····&quot;&quot;&quot;</span>312 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 329, 15 lines modifiedOffset 330, 15 lines modified
329 ········<span·class="k">return</span>·<span·class="n">wrapper</span>330 ········<span·class="k">return</span>·<span·class="n">wrapper</span>
  
330 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>331 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>
  
  
  
331 <div·class="viewcode-block"·id="keep_lazy_text">332 <div·class="viewcode-block"·id="keep_lazy_text">
332 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.keep_lazy_text">[docs]</a>333 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.functional.keep_lazy_text">[documenti]</a>
333 <span·class="k">def</span>·<span·class="nf">keep_lazy_text</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>334 <span·class="k">def</span>·<span·class="nf">keep_lazy_text</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>
334 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>335 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
335 <span·class="sd">····A·decorator·for·functions·that·accept·lazy·arguments·and·return·text.</span>336 <span·class="sd">····A·decorator·for·functions·that·accept·lazy·arguments·and·return·text.</span>
336 <span·class="sd">····&quot;&quot;&quot;</span>337 <span·class="sd">····&quot;&quot;&quot;</span>
337 ····<span·class="k">return</span>·<span·class="n">keep_lazy</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">)(</span><span·class="n">func</span><span·class="p">)</span></div>338 ····<span·class="k">return</span>·<span·class="n">keep_lazy</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">)(</span><span·class="n">func</span><span·class="p">)</span></div>
  
  
Offset 557, 35 lines modifiedOffset 558, 35 lines modified
557 ······558 ······
558 ········559 ········
559 ··········<div·class="yui-b"·id="sidebar">560 ··········<div·class="yui-b"·id="sidebar">
560 ············561 ············
561 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">562 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
562 ········<div·class="sphinxsidebarwrapper">563 ········<div·class="sphinxsidebarwrapper">
563 <search·id="searchbox"·style="display:·none"·role="search">564 <search·id="searchbox"·style="display:·none"·role="search">
564 ··<h3·id="searchlabel">Quick·search</h3>565 ··<h3·id="searchlabel">Ricerca·veloce</h3>
565 ····<div·class="searchformwrapper">566 ····<div·class="searchformwrapper">
566 ····<form·class="search"·action="../../../search.html"·method="get">567 ····<form·class="search"·action="../../../search.html"·method="get">
567 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>568 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
568 ······<input·type="submit"·value="Go"·/>569 ······<input·type="submit"·value="Vai"·/>
569 ····</form>570 ····</form>
570 ····</div>571 ····</div>
571 </search>572 </search>
Max diff block lines reached; 518/9019 bytes (5.74%) of diff not shown.
2.85 KB
html2text {}
Max HTML report size reached
20.9 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/html.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.html·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.html·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-html">69 ··········<div·class="yui-g"·id="_modules-django-utils-html">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.html</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.html</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;HTML·utilities·suitable·for·global·use.&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;HTML·utilities·suitable·for·global·use.&quot;&quot;&quot;</span>
  
72 <span·class="kn">import</span>·<span·class="nn">html</span>73 <span·class="kn">import</span>·<span·class="nn">html</span>
73 <span·class="kn">import</span>·<span·class="nn">json</span>74 <span·class="kn">import</span>·<span·class="nn">json</span>
74 <span·class="kn">import</span>·<span·class="nn">re</span>75 <span·class="kn">import</span>·<span·class="nn">re</span>
75 <span·class="kn">from</span>·<span·class="nn">html.parser</span>·<span·class="kn">import</span>·<span·class="n">HTMLParser</span>76 <span·class="kn">from</span>·<span·class="nn">html.parser</span>·<span·class="kn">import</span>·<span·class="n">HTMLParser</span>
76 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">parse_qsl</span><span·class="p">,</span>·<span·class="n">quote</span><span·class="p">,</span>·<span·class="n">unquote</span><span·class="p">,</span>·<span·class="n">urlencode</span><span·class="p">,</span>·<span·class="n">urlsplit</span><span·class="p">,</span>·<span·class="n">urlunsplit</span>77 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">parse_qsl</span><span·class="p">,</span>·<span·class="n">quote</span><span·class="p">,</span>·<span·class="n">unquote</span><span·class="p">,</span>·<span·class="n">urlencode</span><span·class="p">,</span>·<span·class="n">urlsplit</span><span·class="p">,</span>·<span·class="n">urlunsplit</span>
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 <span·class="kn">from</span>·<span·class="nn">django.utils.safestring</span>·<span·class="kn">import</span>·<span·class="n">SafeData</span><span·class="p">,</span>·<span·class="n">SafeString</span><span·class="p">,</span>·<span·class="n">mark_safe</span>87 <span·class="kn">from</span>·<span·class="nn">django.utils.safestring</span>·<span·class="kn">import</span>·<span·class="n">SafeData</span><span·class="p">,</span>·<span·class="n">SafeString</span><span·class="p">,</span>·<span·class="n">mark_safe</span>
87 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">normalize_newlines</span>88 <span·class="kn">from</span>·<span·class="nn">django.utils.text</span>·<span·class="kn">import</span>·<span·class="n">normalize_newlines</span>
  
88 <span·class="n">MAX_URL_LENGTH</span>·<span·class="o">=</span>·<span·class="mi">2048</span>89 <span·class="n">MAX_URL_LENGTH</span>·<span·class="o">=</span>·<span·class="mi">2048</span>
  
  
89 <div·class="viewcode-block"·id="escape">90 <div·class="viewcode-block"·id="escape">
90 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.escape">[docs]</a>91 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.escape">[documenti]</a>
91 <span·class="nd">@keep_lazy</span><span·class="p">(</span><span·class="n">SafeString</span><span·class="p">)</span>92 <span·class="nd">@keep_lazy</span><span·class="p">(</span><span·class="n">SafeString</span><span·class="p">)</span>
92 <span·class="k">def</span>·<span·class="nf">escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">):</span>93 <span·class="k">def</span>·<span·class="nf">escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">):</span>
93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
94 <span·class="sd">····Return·the·given·text·with·ampersands,·quotes·and·angle·brackets·encoded</span>95 <span·class="sd">····Return·the·given·text·with·ampersands,·quotes·and·angle·brackets·encoded</span>
95 <span·class="sd">····for·use·in·HTML.</span>96 <span·class="sd">····for·use·in·HTML.</span>
  
96 <span·class="sd">····Always·escape·input,·even·if·it&#39;s·already·escaped·and·marked·as·such.</span>97 <span·class="sd">····Always·escape·input,·even·if·it&#39;s·already·escaped·and·marked·as·such.</span>
Offset 134, 15 lines modifiedOffset 135, 15 lines modified
134 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&gt;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u003E&quot;</span><span·class="p">,</span>135 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&gt;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u003E&quot;</span><span·class="p">,</span>
135 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&lt;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u003C&quot;</span><span·class="p">,</span>136 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&lt;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u003C&quot;</span><span·class="p">,</span>
136 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&amp;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u0026&quot;</span><span·class="p">,</span>137 ····<span·class="nb">ord</span><span·class="p">(</span><span·class="s2">&quot;&amp;&quot;</span><span·class="p">):</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">u0026&quot;</span><span·class="p">,</span>
137 <span·class="p">}</span>138 <span·class="p">}</span>
  
  
138 <div·class="viewcode-block"·id="json_script">139 <div·class="viewcode-block"·id="json_script">
139 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.json_script">[docs]</a>140 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.json_script">[documenti]</a>
140 <span·class="k">def</span>·<span·class="nf">json_script</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">element_id</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">encoder</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>141 <span·class="k">def</span>·<span·class="nf">json_script</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">element_id</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">encoder</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
141 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>142 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
142 <span·class="sd">····Escape·all·the·HTML/XML·special·characters·with·their·unicode·escapes,·so</span>143 <span·class="sd">····Escape·all·the·HTML/XML·special·characters·with·their·unicode·escapes,·so</span>
143 <span·class="sd">····value·is·safe·to·be·output·anywhere·except·for·inside·a·tag·attribute.·Wrap</span>144 <span·class="sd">····value·is·safe·to·be·output·anywhere·except·for·inside·a·tag·attribute.·Wrap</span>
144 <span·class="sd">····the·escaped·JSON·in·a·script·tag.</span>145 <span·class="sd">····the·escaped·JSON·in·a·script·tag.</span>
145 <span·class="sd">····&quot;&quot;&quot;</span>146 <span·class="sd">····&quot;&quot;&quot;</span>
146 ····<span·class="kn">from</span>·<span·class="nn">django.core.serializers.json</span>·<span·class="kn">import</span>·<span·class="n">DjangoJSONEncoder</span>147 ····<span·class="kn">from</span>·<span·class="nn">django.core.serializers.json</span>·<span·class="kn">import</span>·<span·class="n">DjangoJSONEncoder</span>
Offset 157, 15 lines modifiedOffset 158, 15 lines modified
157 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s1">&#39;&lt;script·type=&quot;application/json&quot;&gt;</span><span·class="si">{}</span><span·class="s1">&lt;/script&gt;&#39;</span>158 ········<span·class="n">template</span>·<span·class="o">=</span>·<span·class="s1">&#39;&lt;script·type=&quot;application/json&quot;&gt;</span><span·class="si">{}</span><span·class="s1">&lt;/script&gt;&#39;</span>
158 ········<span·class="n">args</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">mark_safe</span><span·class="p">(</span><span·class="n">json_str</span><span·class="p">),)</span>159 ········<span·class="n">args</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="n">mark_safe</span><span·class="p">(</span><span·class="n">json_str</span><span·class="p">),)</span>
159 ····<span·class="k">return</span>·<span·class="n">format_html</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">)</span></div>160 ····<span·class="k">return</span>·<span·class="n">format_html</span><span·class="p">(</span><span·class="n">template</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">)</span></div>
  
  
  
160 <div·class="viewcode-block"·id="conditional_escape">161 <div·class="viewcode-block"·id="conditional_escape">
161 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.conditional_escape">[docs]</a>162 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.conditional_escape">[documenti]</a>
162 <span·class="k">def</span>·<span·class="nf">conditional_escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">):</span>163 <span·class="k">def</span>·<span·class="nf">conditional_escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">):</span>
163 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>164 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
164 <span·class="sd">····Similar·to·escape(),·except·that·it·doesn&#39;t·operate·on·pre-escaped·strings.</span>165 <span·class="sd">····Similar·to·escape(),·except·that·it·doesn&#39;t·operate·on·pre-escaped·strings.</span>
  
165 <span·class="sd">····This·function·relies·on·the·__html__·convention·used·both·by·Django&#39;s</span>166 <span·class="sd">····This·function·relies·on·the·__html__·convention·used·both·by·Django&#39;s</span>
166 <span·class="sd">····SafeData·class·and·by·third-party·libraries·like·markupsafe.</span>167 <span·class="sd">····SafeData·class·and·by·third-party·libraries·like·markupsafe.</span>
167 <span·class="sd">····&quot;&quot;&quot;</span>168 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 175, 29 lines modifiedOffset 176, 29 lines modified
175 ········<span·class="k">return</span>·<span·class="n">text</span><span·class="o">.</span><span·class="n">__html__</span><span·class="p">()</span>176 ········<span·class="k">return</span>·<span·class="n">text</span><span·class="o">.</span><span·class="n">__html__</span><span·class="p">()</span>
176 ····<span·class="k">else</span><span·class="p">:</span>177 ····<span·class="k">else</span><span·class="p">:</span>
177 ········<span·class="k">return</span>·<span·class="n">escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">)</span></div>178 ········<span·class="k">return</span>·<span·class="n">escape</span><span·class="p">(</span><span·class="n">text</span><span·class="p">)</span></div>
  
  
  
178 <div·class="viewcode-block"·id="format_html">179 <div·class="viewcode-block"·id="format_html">
179 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.format_html">[docs]</a>180 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.format_html">[documenti]</a>
180 <span·class="k">def</span>·<span·class="nf">format_html</span><span·class="p">(</span><span·class="n">format_string</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>181 <span·class="k">def</span>·<span·class="nf">format_html</span><span·class="p">(</span><span·class="n">format_string</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
181 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>182 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
182 <span·class="sd">····Similar·to·str.format,·but·pass·all·arguments·through·conditional_escape(),</span>183 <span·class="sd">····Similar·to·str.format,·but·pass·all·arguments·through·conditional_escape(),</span>
183 <span·class="sd">····and·call·mark_safe()·on·the·result.·This·function·should·be·used·instead</span>184 <span·class="sd">····and·call·mark_safe()·on·the·result.·This·function·should·be·used·instead</span>
184 <span·class="sd">····of·str.format·or·%·interpolation·to·build·up·small·HTML·fragments.</span>185 <span·class="sd">····of·str.format·or·%·interpolation·to·build·up·small·HTML·fragments.</span>
185 <span·class="sd">····&quot;&quot;&quot;</span>186 <span·class="sd">····&quot;&quot;&quot;</span>
186 ····<span·class="n">args_safe</span>·<span·class="o">=</span>·<span·class="nb">map</span><span·class="p">(</span><span·class="n">conditional_escape</span><span·class="p">,</span>·<span·class="n">args</span><span·class="p">)</span>187 ····<span·class="n">args_safe</span>·<span·class="o">=</span>·<span·class="nb">map</span><span·class="p">(</span><span·class="n">conditional_escape</span><span·class="p">,</span>·<span·class="n">args</span><span·class="p">)</span>
187 ····<span·class="n">kwargs_safe</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="n">conditional_escape</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="p">(</span><span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="ow">in</span>·<span·class="n">kwargs</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>188 ····<span·class="n">kwargs_safe</span>·<span·class="o">=</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="n">conditional_escape</span><span·class="p">(</span><span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="p">(</span><span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="ow">in</span>·<span·class="n">kwargs</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
188 ····<span·class="k">return</span>·<span·class="n">mark_safe</span><span·class="p">(</span><span·class="n">format_string</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args_safe</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs_safe</span><span·class="p">))</span></div>189 ····<span·class="k">return</span>·<span·class="n">mark_safe</span><span·class="p">(</span><span·class="n">format_string</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args_safe</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs_safe</span><span·class="p">))</span></div>
  
  
  
189 <div·class="viewcode-block"·id="format_html_join">190 <div·class="viewcode-block"·id="format_html_join">
190 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.format_html_join">[docs]</a>191 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.html.format_html_join">[documenti]</a>
191 <span·class="k">def</span>·<span·class="nf">format_html_join</span><span·class="p">(</span><span·class="n">sep</span><span·class="p">,</span>·<span·class="n">format_string</span><span·class="p">,</span>·<span·class="n">args_generator</span><span·class="p">):</span>192 <span·class="k">def</span>·<span·class="nf">format_html_join</span><span·class="p">(</span><span·class="n">sep</span><span·class="p">,</span>·<span·class="n">format_string</span><span·class="p">,</span>·<span·class="n">args_generator</span><span·class="p">):</span>
192 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>193 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
Max diff block lines reached; 4979/16307 bytes (30.53%) of diff not shown.
4.83 KB
html2text {}
Max HTML report size reached
19.6 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/http.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.http·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.http·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-http">69 ··········<div·class="yui-g"·id="_modules-django-utils-http">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.http</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.http</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">base64</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">base64</span>
72 <span·class="kn">import</span>·<span·class="nn">datetime</span>73 <span·class="kn">import</span>·<span·class="nn">datetime</span>
73 <span·class="kn">import</span>·<span·class="nn">re</span>74 <span·class="kn">import</span>·<span·class="nn">re</span>
74 <span·class="kn">import</span>·<span·class="nn">unicodedata</span>75 <span·class="kn">import</span>·<span·class="nn">unicodedata</span>
75 <span·class="kn">from</span>·<span·class="nn">binascii</span>·<span·class="kn">import</span>·<span·class="n">Error</span>·<span·class="k">as</span>·<span·class="n">BinasciiError</span>76 <span·class="kn">from</span>·<span·class="nn">binascii</span>·<span·class="kn">import</span>·<span·class="n">Error</span>·<span·class="k">as</span>·<span·class="n">BinasciiError</span>
76 <span·class="kn">from</span>·<span·class="nn">email.utils</span>·<span·class="kn">import</span>·<span·class="n">formatdate</span>77 <span·class="kn">from</span>·<span·class="nn">email.utils</span>·<span·class="kn">import</span>·<span·class="n">formatdate</span>
77 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="p">(</span>78 <span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="p">(</span>
Offset 122, 15 lines modifiedOffset 123, 15 lines modified
  
122 <span·class="c1">#·TODO:·Remove·when·dropping·support·for·PY38.</span>123 <span·class="c1">#·TODO:·Remove·when·dropping·support·for·PY38.</span>
123 <span·class="c1">#·Unsafe·bytes·to·be·removed·per·WHATWG·spec.</span>124 <span·class="c1">#·Unsafe·bytes·to·be·removed·per·WHATWG·spec.</span>
124 <span·class="n">_UNSAFE_URL_BYTES_TO_REMOVE</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;</span><span·class="se">\t</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\r</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">]</span>125 <span·class="n">_UNSAFE_URL_BYTES_TO_REMOVE</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;</span><span·class="se">\t</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\r</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">]</span>
  
  
125 <div·class="viewcode-block"·id="urlencode">126 <div·class="viewcode-block"·id="urlencode">
126 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.urlencode">[docs]</a>127 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.urlencode">[documenti]</a>
127 <span·class="k">def</span>·<span·class="nf">urlencode</span><span·class="p">(</span><span·class="n">query</span><span·class="p">,</span>·<span·class="n">doseq</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>128 <span·class="k">def</span>·<span·class="nf">urlencode</span><span·class="p">(</span><span·class="n">query</span><span·class="p">,</span>·<span·class="n">doseq</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
128 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>129 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
129 <span·class="sd">····A·version·of·Python&#39;s·urllib.parse.urlencode()·function·that·can·operate·on</span>130 <span·class="sd">····A·version·of·Python&#39;s·urllib.parse.urlencode()·function·that·can·operate·on</span>
130 <span·class="sd">····MultiValueDict·and·non-string·values.</span>131 <span·class="sd">····MultiValueDict·and·non-string·values.</span>
131 <span·class="sd">····&quot;&quot;&quot;</span>132 <span·class="sd">····&quot;&quot;&quot;</span>
132 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">query</span><span·class="p">,</span>·<span·class="n">MultiValueDict</span><span·class="p">):</span>133 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">query</span><span·class="p">,</span>·<span·class="n">MultiValueDict</span><span·class="p">):</span>
133 ········<span·class="n">query</span>·<span·class="o">=</span>·<span·class="n">query</span><span·class="o">.</span><span·class="n">lists</span><span·class="p">()</span>134 ········<span·class="n">query</span>·<span·class="o">=</span>·<span·class="n">query</span><span·class="o">.</span><span·class="n">lists</span><span·class="p">()</span>
Offset 166, 15 lines modifiedOffset 167, 15 lines modified
166 ····················<span·class="n">query_val</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">item</span><span·class="p">)</span>167 ····················<span·class="n">query_val</span><span·class="o">.</span><span·class="n">append</span><span·class="p">(</span><span·class="n">item</span><span·class="p">)</span>
167 ········<span·class="n">query_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">((</span><span·class="n">key</span><span·class="p">,</span>·<span·class="n">query_val</span><span·class="p">))</span>168 ········<span·class="n">query_params</span><span·class="o">.</span><span·class="n">append</span><span·class="p">((</span><span·class="n">key</span><span·class="p">,</span>·<span·class="n">query_val</span><span·class="p">))</span>
168 ····<span·class="k">return</span>·<span·class="n">original_urlencode</span><span·class="p">(</span><span·class="n">query_params</span><span·class="p">,</span>·<span·class="n">doseq</span><span·class="p">)</span></div>169 ····<span·class="k">return</span>·<span·class="n">original_urlencode</span><span·class="p">(</span><span·class="n">query_params</span><span·class="p">,</span>·<span·class="n">doseq</span><span·class="p">)</span></div>
  
  
  
169 <div·class="viewcode-block"·id="http_date">170 <div·class="viewcode-block"·id="http_date">
170 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.http_date">[docs]</a>171 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.http_date">[documenti]</a>
171 <span·class="k">def</span>·<span·class="nf">http_date</span><span·class="p">(</span><span·class="n">epoch_seconds</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>172 <span·class="k">def</span>·<span·class="nf">http_date</span><span·class="p">(</span><span·class="n">epoch_seconds</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
172 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>173 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
173 <span·class="sd">····Format·the·time·to·match·the·RFC·5322·date·format·as·specified·by·RFC·9110</span>174 <span·class="sd">····Format·the·time·to·match·the·RFC·5322·date·format·as·specified·by·RFC·9110</span>
174 <span·class="sd">····Section·5.6.7.</span>175 <span·class="sd">····Section·5.6.7.</span>
  
175 <span·class="sd">····`epoch_seconds`·is·a·floating·point·number·expressed·in·seconds·since·the</span>176 <span·class="sd">····`epoch_seconds`·is·a·floating·point·number·expressed·in·seconds·since·the</span>
176 <span·class="sd">····epoch,·in·UTC·-·such·as·that·outputted·by·time.time().·If·set·to·None,·it</span>177 <span·class="sd">····epoch,·in·UTC·-·such·as·that·outputted·by·time.time().·If·set·to·None,·it</span>
Offset 237, 15 lines modifiedOffset 238, 15 lines modified
237 ········<span·class="k">pass</span>238 ········<span·class="k">pass</span>
  
  
238 <span·class="c1">#·Base·36·functions:·useful·for·generating·compact·URLs</span>239 <span·class="c1">#·Base·36·functions:·useful·for·generating·compact·URLs</span>
  
  
239 <div·class="viewcode-block"·id="base36_to_int">240 <div·class="viewcode-block"·id="base36_to_int">
240 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.base36_to_int">[docs]</a>241 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.base36_to_int">[documenti]</a>
241 <span·class="k">def</span>·<span·class="nf">base36_to_int</span><span·class="p">(</span><span·class="n">s</span><span·class="p">):</span>242 <span·class="k">def</span>·<span·class="nf">base36_to_int</span><span·class="p">(</span><span·class="n">s</span><span·class="p">):</span>
242 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>243 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
243 <span·class="sd">····Convert·a·base·36·string·to·an·int.·Raise·ValueError·if·the·input·won&#39;t·fit</span>244 <span·class="sd">····Convert·a·base·36·string·to·an·int.·Raise·ValueError·if·the·input·won&#39;t·fit</span>
244 <span·class="sd">····into·an·int.</span>245 <span·class="sd">····into·an·int.</span>
245 <span·class="sd">····&quot;&quot;&quot;</span>246 <span·class="sd">····&quot;&quot;&quot;</span>
246 ····<span·class="c1">#·To·prevent·overconsumption·of·server·resources,·reject·any</span>247 ····<span·class="c1">#·To·prevent·overconsumption·of·server·resources,·reject·any</span>
247 ····<span·class="c1">#·base36·string·that·is·longer·than·13·base36·digits·(13·digits</span>248 ····<span·class="c1">#·base36·string·that·is·longer·than·13·base36·digits·(13·digits</span>
Offset 253, 15 lines modifiedOffset 254, 15 lines modified
253 ····<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">s</span><span·class="p">)</span>·<span·class="o">&gt;</span>·<span·class="mi">13</span><span·class="p">:</span>254 ····<span·class="k">if</span>·<span·class="nb">len</span><span·class="p">(</span><span·class="n">s</span><span·class="p">)</span>·<span·class="o">&gt;</span>·<span·class="mi">13</span><span·class="p">:</span>
254 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Base36·input·too·large&quot;</span><span·class="p">)</span>255 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Base36·input·too·large&quot;</span><span·class="p">)</span>
255 ····<span·class="k">return</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="mi">36</span><span·class="p">)</span></div>256 ····<span·class="k">return</span>·<span·class="nb">int</span><span·class="p">(</span><span·class="n">s</span><span·class="p">,</span>·<span·class="mi">36</span><span·class="p">)</span></div>
  
  
  
256 <div·class="viewcode-block"·id="int_to_base36">257 <div·class="viewcode-block"·id="int_to_base36">
257 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.int_to_base36">[docs]</a>258 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.int_to_base36">[documenti]</a>
258 <span·class="k">def</span>·<span·class="nf">int_to_base36</span><span·class="p">(</span><span·class="n">i</span><span·class="p">):</span>259 <span·class="k">def</span>·<span·class="nf">int_to_base36</span><span·class="p">(</span><span·class="n">i</span><span·class="p">):</span>
259 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Convert·an·integer·to·a·base36·string.&quot;&quot;&quot;</span>260 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Convert·an·integer·to·a·base36·string.&quot;&quot;&quot;</span>
260 ····<span·class="n">char_set</span>·<span·class="o">=</span>·<span·class="s2">&quot;0123456789abcdefghijklmnopqrstuvwxyz&quot;</span>261 ····<span·class="n">char_set</span>·<span·class="o">=</span>·<span·class="s2">&quot;0123456789abcdefghijklmnopqrstuvwxyz&quot;</span>
261 ····<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o">&lt;</span>·<span·class="mi">0</span><span·class="p">:</span>262 ····<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o">&lt;</span>·<span·class="mi">0</span><span·class="p">:</span>
262 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Negative·base36·conversion·input.&quot;</span><span·class="p">)</span>263 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Negative·base36·conversion·input.&quot;</span><span·class="p">)</span>
263 ····<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o">&lt;</span>·<span·class="mi">36</span><span·class="p">:</span>264 ····<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o">&lt;</span>·<span·class="mi">36</span><span·class="p">:</span>
264 ········<span·class="k">return</span>·<span·class="n">char_set</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>265 ········<span·class="k">return</span>·<span·class="n">char_set</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>
Offset 270, 26 lines modifiedOffset 271, 26 lines modified
270 ········<span·class="n">i</span><span·class="p">,</span>·<span·class="n">n</span>·<span·class="o">=</span>·<span·class="nb">divmod</span><span·class="p">(</span><span·class="n">i</span><span·class="p">,</span>·<span·class="mi">36</span><span·class="p">)</span>271 ········<span·class="n">i</span><span·class="p">,</span>·<span·class="n">n</span>·<span·class="o">=</span>·<span·class="nb">divmod</span><span·class="p">(</span><span·class="n">i</span><span·class="p">,</span>·<span·class="mi">36</span><span·class="p">)</span>
271 ········<span·class="n">b36</span>·<span·class="o">=</span>·<span·class="n">char_set</span><span·class="p">[</span><span·class="n">n</span><span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">b36</span>272 ········<span·class="n">b36</span>·<span·class="o">=</span>·<span·class="n">char_set</span><span·class="p">[</span><span·class="n">n</span><span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">b36</span>
272 ····<span·class="k">return</span>·<span·class="n">b36</span></div>273 ····<span·class="k">return</span>·<span·class="n">b36</span></div>
  
  
  
273 <div·class="viewcode-block"·id="urlsafe_base64_encode">274 <div·class="viewcode-block"·id="urlsafe_base64_encode">
274 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.urlsafe_base64_encode">[docs]</a>275 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.http.urlsafe_base64_encode">[documenti]</a>
Max diff block lines reached; 5152/15525 bytes (33.19%) of diff not shown.
4.31 KB
html2text {}
Max HTML report size reached
15.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/log.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.log·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.log·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-log">69 ··········<div·class="yui-g"·id="_modules-django-utils-log">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.log</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.log</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">logging</span>
72 <span·class="kn">import</span>·<span·class="nn">logging.config</span>··<span·class="c1">#·needed·when·logging_config·doesn&#39;t·start·with·logging.config</span>73 <span·class="kn">import</span>·<span·class="nn">logging.config</span>··<span·class="c1">#·needed·when·logging_config·doesn&#39;t·start·with·logging.config</span>
73 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>74 <span·class="kn">from</span>·<span·class="nn">copy</span>·<span·class="kn">import</span>·<span·class="n">copy</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
75 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">mail</span>76 <span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">mail</span>
76 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">get_connection</span>77 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">get_connection</span>
Offset 146, 15 lines modifiedOffset 147, 15 lines modified
  
146 ········<span·class="c1">#·...·then·invoke·it·with·the·logging·settings</span>147 ········<span·class="c1">#·...·then·invoke·it·with·the·logging·settings</span>
147 ········<span·class="k">if</span>·<span·class="n">logging_settings</span><span·class="p">:</span>148 ········<span·class="k">if</span>·<span·class="n">logging_settings</span><span·class="p">:</span>
148 ············<span·class="n">logging_config_func</span><span·class="p">(</span><span·class="n">logging_settings</span><span·class="p">)</span>149 ············<span·class="n">logging_config_func</span><span·class="p">(</span><span·class="n">logging_settings</span><span·class="p">)</span>
  
  
149 <div·class="viewcode-block"·id="AdminEmailHandler">150 <div·class="viewcode-block"·id="AdminEmailHandler">
150 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.AdminEmailHandler">[docs]</a>151 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.AdminEmailHandler">[documenti]</a>
151 <span·class="k">class</span>·<span·class="nc">AdminEmailHandler</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Handler</span><span·class="p">):</span>152 <span·class="k">class</span>·<span·class="nc">AdminEmailHandler</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Handler</span><span·class="p">):</span>
152 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;An·exception·log·handler·that·emails·log·entries·to·site·admins.</span>153 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;An·exception·log·handler·that·emails·log·entries·to·site·admins.</span>
  
153 <span·class="sd">····If·the·request·is·passed·as·the·first·argument·to·the·log·record,</span>154 <span·class="sd">····If·the·request·is·passed·as·the·first·argument·to·the·log·record,</span>
154 <span·class="sd">····request·data·will·be·provided·in·the·email·report.</span>155 <span·class="sd">····request·data·will·be·provided·in·the·email·report.</span>
155 <span·class="sd">····&quot;&quot;&quot;</span>156 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">no_exc_record</span><span·class="p">),</span>200 ············<span·class="bp">self</span><span·class="o">.</span><span·class="n">format</span><span·class="p">(</span><span·class="n">no_exc_record</span><span·class="p">),</span>
200 ············<span·class="n">reporter</span><span·class="o">.</span><span·class="n">get_traceback_text</span><span·class="p">(),</span>201 ············<span·class="n">reporter</span><span·class="o">.</span><span·class="n">get_traceback_text</span><span·class="p">(),</span>
201 ········<span·class="p">)</span>202 ········<span·class="p">)</span>
202 ········<span·class="n">html_message</span>·<span·class="o">=</span>·<span·class="n">reporter</span><span·class="o">.</span><span·class="n">get_traceback_html</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">include_html</span>·<span·class="k">else</span>·<span·class="kc">None</span>203 ········<span·class="n">html_message</span>·<span·class="o">=</span>·<span·class="n">reporter</span><span·class="o">.</span><span·class="n">get_traceback_html</span><span·class="p">()</span>·<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">include_html</span>·<span·class="k">else</span>·<span·class="kc">None</span>
203 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">send_mail</span><span·class="p">(</span><span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">html_message</span><span·class="o">=</span><span·class="n">html_message</span><span·class="p">)</span>204 ········<span·class="bp">self</span><span·class="o">.</span><span·class="n">send_mail</span><span·class="p">(</span><span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">html_message</span><span·class="o">=</span><span·class="n">html_message</span><span·class="p">)</span>
  
204 <div·class="viewcode-block"·id="AdminEmailHandler.send_mail">205 <div·class="viewcode-block"·id="AdminEmailHandler.send_mail">
205 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.AdminEmailHandler.send_mail">[docs]</a>206 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.AdminEmailHandler.send_mail">[documenti]</a>
206 ····<span·class="k">def</span>·<span·class="nf">send_mail</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>207 ····<span·class="k">def</span>·<span·class="nf">send_mail</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
207 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">mail_admins</span><span·class="p">(</span>208 ········<span·class="n">mail</span><span·class="o">.</span><span·class="n">mail_admins</span><span·class="p">(</span>
208 ············<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">connection</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">kwargs</span>209 ············<span·class="n">subject</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="n">connection</span><span·class="o">=</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">connection</span><span·class="p">(),</span>·<span·class="o">**</span><span·class="n">kwargs</span>
209 ········<span·class="p">)</span></div>210 ········<span·class="p">)</span></div>
  
  
210 ····<span·class="k">def</span>·<span·class="nf">connection</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>211 ····<span·class="k">def</span>·<span·class="nf">connection</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
Offset 218, 15 lines modifiedOffset 219, 15 lines modified
218 <span·class="sd">········Escape·CR·and·LF·characters.</span>219 <span·class="sd">········Escape·CR·and·LF·characters.</span>
219 <span·class="sd">········&quot;&quot;&quot;</span>220 <span·class="sd">········&quot;&quot;&quot;</span>
220 ········<span·class="k">return</span>·<span·class="n">subject</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">n&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\r</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">r&quot;</span><span·class="p">)</span></div>221 ········<span·class="k">return</span>·<span·class="n">subject</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\n</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">n&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="s2">&quot;</span><span·class="se">\r</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">r&quot;</span><span·class="p">)</span></div>
  
  
  
221 <div·class="viewcode-block"·id="CallbackFilter">222 <div·class="viewcode-block"·id="CallbackFilter">
222 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.CallbackFilter">[docs]</a>223 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.CallbackFilter">[documenti]</a>
223 <span·class="k">class</span>·<span·class="nc">CallbackFilter</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>224 <span·class="k">class</span>·<span·class="nc">CallbackFilter</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>
224 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>225 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
225 <span·class="sd">····A·logging·filter·that·checks·the·return·value·of·a·given·callable·(which</span>226 <span·class="sd">····A·logging·filter·that·checks·the·return·value·of·a·given·callable·(which</span>
226 <span·class="sd">····takes·the·record-to-be-logged·as·its·only·parameter)·to·decide·whether·to</span>227 <span·class="sd">····takes·the·record-to-be-logged·as·its·only·parameter)·to·decide·whether·to</span>
227 <span·class="sd">····log·a·record.</span>228 <span·class="sd">····log·a·record.</span>
228 <span·class="sd">····&quot;&quot;&quot;</span>229 <span·class="sd">····&quot;&quot;&quot;</span>
  
Offset 237, 23 lines modifiedOffset 238, 23 lines modified
237 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">callback</span><span·class="p">(</span><span·class="n">record</span><span·class="p">):</span>238 ········<span·class="k">if</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">callback</span><span·class="p">(</span><span·class="n">record</span><span·class="p">):</span>
238 ············<span·class="k">return</span>·<span·class="mi">1</span>239 ············<span·class="k">return</span>·<span·class="mi">1</span>
239 ········<span·class="k">return</span>·<span·class="mi">0</span></div>240 ········<span·class="k">return</span>·<span·class="mi">0</span></div>
  
  
  
240 <div·class="viewcode-block"·id="RequireDebugFalse">241 <div·class="viewcode-block"·id="RequireDebugFalse">
241 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.RequireDebugFalse">[docs]</a>242 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.RequireDebugFalse">[documenti]</a>
242 <span·class="k">class</span>·<span·class="nc">RequireDebugFalse</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>243 <span·class="k">class</span>·<span·class="nc">RequireDebugFalse</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>
243 ····<span·class="k">def</span>·<span·class="nf">filter</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">record</span><span·class="p">):</span>244 ····<span·class="k">def</span>·<span·class="nf">filter</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">record</span><span·class="p">):</span>
244 ········<span·class="k">return</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span></div>245 ········<span·class="k">return</span>·<span·class="ow">not</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span></div>
  
  
  
245 <div·class="viewcode-block"·id="RequireDebugTrue">246 <div·class="viewcode-block"·id="RequireDebugTrue">
246 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.RequireDebugTrue">[docs]</a>247 <a·class="viewcode-back"·href="../../../ref/logging.html#django.utils.log.RequireDebugTrue">[documenti]</a>
247 <span·class="k">class</span>·<span·class="nc">RequireDebugTrue</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>248 <span·class="k">class</span>·<span·class="nc">RequireDebugTrue</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Filter</span><span·class="p">):</span>
248 ····<span·class="k">def</span>·<span·class="nf">filter</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">record</span><span·class="p">):</span>249 ····<span·class="k">def</span>·<span·class="nf">filter</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">record</span><span·class="p">):</span>
249 ········<span·class="k">return</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span></div>250 ········<span·class="k">return</span>·<span·class="n">settings</span><span·class="o">.</span><span·class="n">DEBUG</span></div>
  
  
  
250 <span·class="k">class</span>·<span·class="nc">ServerFormatter</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Formatter</span><span·class="p">):</span>251 <span·class="k">class</span>·<span·class="nc">ServerFormatter</span><span·class="p">(</span><span·class="n">logging</span><span·class="o">.</span><span·class="n">Formatter</span><span·class="p">):</span>
Offset 344, 35 lines modifiedOffset 345, 35 lines modified
Max diff block lines reached; 1307/12254 bytes (10.67%) of diff not shown.
3.13 KB
html2text {}
Max HTML report size reached
8.3 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/module_loading.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.module_loading·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.module_loading·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-module_loading">69 ··········<div·class="yui-g"·id="_modules-django-utils-module_loading">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.module_loading</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.module_loading</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">copy</span>
72 <span·class="kn">import</span>·<span·class="nn">os</span>73 <span·class="kn">import</span>·<span·class="nn">os</span>
73 <span·class="kn">import</span>·<span·class="nn">sys</span>74 <span·class="kn">import</span>·<span·class="nn">sys</span>
74 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>75 <span·class="kn">from</span>·<span·class="nn">importlib</span>·<span·class="kn">import</span>·<span·class="n">import_module</span>
75 <span·class="kn">from</span>·<span·class="nn">importlib.util</span>·<span·class="kn">import</span>·<span·class="n">find_spec</span>·<span·class="k">as</span>·<span·class="n">importlib_find</span>76 <span·class="kn">from</span>·<span·class="nn">importlib.util</span>·<span·class="kn">import</span>·<span·class="n">find_spec</span>·<span·class="k">as</span>·<span·class="n">importlib_find</span>
  
  
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 ········<span·class="ow">and</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">spec</span><span·class="p">,</span>·<span·class="s2">&quot;_initializing&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>·<span·class="ow">is</span>·<span·class="kc">False</span>87 ········<span·class="ow">and</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">spec</span><span·class="p">,</span>·<span·class="s2">&quot;_initializing&quot;</span><span·class="p">,</span>·<span·class="kc">False</span><span·class="p">)</span>·<span·class="ow">is</span>·<span·class="kc">False</span>
87 ····<span·class="p">):</span>88 ····<span·class="p">):</span>
88 ········<span·class="n">module</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">module_path</span><span·class="p">)</span>89 ········<span·class="n">module</span>·<span·class="o">=</span>·<span·class="n">import_module</span><span·class="p">(</span><span·class="n">module_path</span><span·class="p">)</span>
89 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">module</span><span·class="p">,</span>·<span·class="n">class_name</span><span·class="p">)</span>90 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">module</span><span·class="p">,</span>·<span·class="n">class_name</span><span·class="p">)</span>
  
  
90 <div·class="viewcode-block"·id="import_string">91 <div·class="viewcode-block"·id="import_string">
91 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.module_loading.import_string">[docs]</a>92 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.module_loading.import_string">[documenti]</a>
92 <span·class="k">def</span>·<span·class="nf">import_string</span><span·class="p">(</span><span·class="n">dotted_path</span><span·class="p">):</span>93 <span·class="k">def</span>·<span·class="nf">import_string</span><span·class="p">(</span><span·class="n">dotted_path</span><span·class="p">):</span>
93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>94 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
94 <span·class="sd">····Import·a·dotted·module·path·and·return·the·attribute/class·designated·by·the</span>95 <span·class="sd">····Import·a·dotted·module·path·and·return·the·attribute/class·designated·by·the</span>
95 <span·class="sd">····last·name·in·the·path.·Raise·ImportError·if·the·import·failed.</span>96 <span·class="sd">····last·name·in·the·path.·Raise·ImportError·if·the·import·failed.</span>
96 <span·class="sd">····&quot;&quot;&quot;</span>97 <span·class="sd">····&quot;&quot;&quot;</span>
97 ····<span·class="k">try</span><span·class="p">:</span>98 ····<span·class="k">try</span><span·class="p">:</span>
98 ········<span·class="n">module_path</span><span·class="p">,</span>·<span·class="n">class_name</span>·<span·class="o">=</span>·<span·class="n">dotted_path</span><span·class="o">.</span><span·class="n">rsplit</span><span·class="p">(</span><span·class="s2">&quot;.&quot;</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>99 ········<span·class="n">module_path</span><span·class="p">,</span>·<span·class="n">class_name</span>·<span·class="o">=</span>·<span·class="n">dotted_path</span><span·class="o">.</span><span·class="n">rsplit</span><span·class="p">(</span><span·class="s2">&quot;.&quot;</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)</span>
Offset 189, 35 lines modifiedOffset 190, 35 lines modified
189 ······190 ······
190 ········191 ········
191 ··········<div·class="yui-b"·id="sidebar">192 ··········<div·class="yui-b"·id="sidebar">
192 ············193 ············
193 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">194 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
194 ········<div·class="sphinxsidebarwrapper">195 ········<div·class="sphinxsidebarwrapper">
195 <search·id="searchbox"·style="display:·none"·role="search">196 <search·id="searchbox"·style="display:·none"·role="search">
196 ··<h3·id="searchlabel">Quick·search</h3>197 ··<h3·id="searchlabel">Ricerca·veloce</h3>
197 ····<div·class="searchformwrapper">198 ····<div·class="searchformwrapper">
198 ····<form·class="search"·action="../../../search.html"·method="get">199 ····<form·class="search"·action="../../../search.html"·method="get">
199 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>200 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
200 ······<input·type="submit"·value="Go"·/>201 ······<input·type="submit"·value="Vai"·/>
201 ····</form>202 ····</form>
202 ····</div>203 ····</div>
203 </search>204 </search>
204 <script>document.getElementById('searchbox').style.display·=·"block"</script>205 <script>document.getElementById('searchbox').style.display·=·"block"</script>
205 ········</div>206 ········</div>
206 ······</div>207 ······</div>
207 ··············<h3>Last·update:</h3>208 ··············<h3>Last·update:</h3>
208 ··············<p·class="topless">Sep·03,·2024</p>209 ··············<p·class="topless">set·03,·2024</p>
209 ··········</div>210 ··········</div>
210 ········211 ········
211 ······212 ······
212 ····</div>213 ····</div>
  
213 ····<div·id="ft">214 ····<div·id="ft">
214 ······<div·class="nav">215 ······<div·class="nav">
215 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>216 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
216 ····</div>217 ····</div>
217 ··</div>218 ··</div>
  
218 ······<div·class="clearer"></div>219 ······<div·class="clearer"></div>
219 ····</div>220 ····</div>
220 ··</body>221 ··</body>
221 </html>222 </html>
1.95 KB
html2text {}
Max HTML report size reached
9.35 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/safestring.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.safestring·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.safestring·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-safestring">69 ··········<div·class="yui-g"·id="_modules-django-utils-safestring">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.safestring</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.safestring</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Functions·for·working·with·&quot;safe·strings&quot;:·strings·that·can·be·displayed·safely</span>73 <span·class="sd">Functions·for·working·with·&quot;safe·strings&quot;:·strings·that·can·be·displayed·safely</span>
73 <span·class="sd">without·further·escaping·in·HTML.·Marking·something·as·a·&quot;safe·string&quot;·means</span>74 <span·class="sd">without·further·escaping·in·HTML.·Marking·something·as·a·&quot;safe·string&quot;·means</span>
74 <span·class="sd">that·the·producer·of·the·string·has·already·turned·characters·that·should·not</span>75 <span·class="sd">that·the·producer·of·the·string·has·already·turned·characters·that·should·not</span>
75 <span·class="sd">be·interpreted·by·the·HTML·engine·(e.g.·&#39;&lt;&#39;)·into·the·appropriate·entities.</span>76 <span·class="sd">be·interpreted·by·the·HTML·engine·(e.g.·&#39;&lt;&#39;)·into·the·appropriate·entities.</span>
76 <span·class="sd">&quot;&quot;&quot;</span>77 <span·class="sd">&quot;&quot;&quot;</span>
  
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
  
92 <span·class="sd">········This·allows·other·template·engines·to·understand·Django&#39;s·SafeData.</span>93 <span·class="sd">········This·allows·other·template·engines·to·understand·Django&#39;s·SafeData.</span>
93 <span·class="sd">········&quot;&quot;&quot;</span>94 <span·class="sd">········&quot;&quot;&quot;</span>
94 ········<span·class="k">return</span>·<span·class="bp">self</span>95 ········<span·class="k">return</span>·<span·class="bp">self</span>
  
  
95 <div·class="viewcode-block"·id="SafeString">96 <div·class="viewcode-block"·id="SafeString">
96 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.safestring.SafeString">[docs]</a>97 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.safestring.SafeString">[documenti]</a>
97 <span·class="k">class</span>·<span·class="nc">SafeString</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">,</span>·<span·class="n">SafeData</span><span·class="p">):</span>98 <span·class="k">class</span>·<span·class="nc">SafeString</span><span·class="p">(</span><span·class="nb">str</span><span·class="p">,</span>·<span·class="n">SafeData</span><span·class="p">):</span>
98 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>99 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
99 <span·class="sd">····A·str·subclass·that·has·been·specifically·marked·as·&quot;safe&quot;·for·HTML·output</span>100 <span·class="sd">····A·str·subclass·that·has·been·specifically·marked·as·&quot;safe&quot;·for·HTML·output</span>
100 <span·class="sd">····purposes.</span>101 <span·class="sd">····purposes.</span>
101 <span·class="sd">····&quot;&quot;&quot;</span>102 <span·class="sd">····&quot;&quot;&quot;</span>
  
102 ····<span·class="vm">__slots__</span>·<span·class="o">=</span>·<span·class="p">()</span>103 ····<span·class="vm">__slots__</span>·<span·class="o">=</span>·<span·class="p">()</span>
Offset 128, 15 lines modifiedOffset 129, 15 lines modified
128 ····<span·class="k">def</span>·<span·class="nf">wrapper</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>129 ····<span·class="k">def</span>·<span·class="nf">wrapper</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
129 ········<span·class="k">return</span>·<span·class="n">safety_marker</span><span·class="p">(</span><span·class="n">func</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">))</span>130 ········<span·class="k">return</span>·<span·class="n">safety_marker</span><span·class="p">(</span><span·class="n">func</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">))</span>
  
130 ····<span·class="k">return</span>·<span·class="n">wrapper</span>131 ····<span·class="k">return</span>·<span·class="n">wrapper</span>
  
  
131 <div·class="viewcode-block"·id="mark_safe">132 <div·class="viewcode-block"·id="mark_safe">
132 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.safestring.mark_safe">[docs]</a>133 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.safestring.mark_safe">[documenti]</a>
133 <span·class="nd">@keep_lazy</span><span·class="p">(</span><span·class="n">SafeString</span><span·class="p">)</span>134 <span·class="nd">@keep_lazy</span><span·class="p">(</span><span·class="n">SafeString</span><span·class="p">)</span>
134 <span·class="k">def</span>·<span·class="nf">mark_safe</span><span·class="p">(</span><span·class="n">s</span><span·class="p">):</span>135 <span·class="k">def</span>·<span·class="nf">mark_safe</span><span·class="p">(</span><span·class="n">s</span><span·class="p">):</span>
135 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>136 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
136 <span·class="sd">····Explicitly·mark·a·string·as·safe·for·(HTML)·output·purposes.·The·returned</span>137 <span·class="sd">····Explicitly·mark·a·string·as·safe·for·(HTML)·output·purposes.·The·returned</span>
137 <span·class="sd">····object·can·be·used·everywhere·a·string·is·appropriate.</span>138 <span·class="sd">····object·can·be·used·everywhere·a·string·is·appropriate.</span>
  
138 <span·class="sd">····If·used·on·a·method·as·a·decorator,·mark·the·returned·data·as·safe.</span>139 <span·class="sd">····If·used·on·a·method·as·a·decorator,·mark·the·returned·data·as·safe.</span>
Offset 157, 35 lines modifiedOffset 158, 35 lines modified
157 ······158 ······
158 ········159 ········
159 ··········<div·class="yui-b"·id="sidebar">160 ··········<div·class="yui-b"·id="sidebar">
160 ············161 ············
161 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">162 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
162 ········<div·class="sphinxsidebarwrapper">163 ········<div·class="sphinxsidebarwrapper">
163 <search·id="searchbox"·style="display:·none"·role="search">164 <search·id="searchbox"·style="display:·none"·role="search">
164 ··<h3·id="searchlabel">Quick·search</h3>165 ··<h3·id="searchlabel">Ricerca·veloce</h3>
165 ····<div·class="searchformwrapper">166 ····<div·class="searchformwrapper">
166 ····<form·class="search"·action="../../../search.html"·method="get">167 ····<form·class="search"·action="../../../search.html"·method="get">
167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>168 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
168 ······<input·type="submit"·value="Go"·/>169 ······<input·type="submit"·value="Vai"·/>
169 ····</form>170 ····</form>
170 ····</div>171 ····</div>
171 </search>172 </search>
172 <script>document.getElementById('searchbox').style.display·=·"block"</script>173 <script>document.getElementById('searchbox').style.display·=·"block"</script>
173 ········</div>174 ········</div>
174 ······</div>175 ······</div>
175 ··············<h3>Last·update:</h3>176 ··············<h3>Last·update:</h3>
176 ··············<p·class="topless">Sep·03,·2024</p>177 ··············<p·class="topless">set·03,·2024</p>
177 ··········</div>178 ··········</div>
178 ········179 ········
179 ······180 ······
180 ····</div>181 ····</div>
  
181 ····<div·id="ft">182 ····<div·id="ft">
182 ······<div·class="nav">183 ······<div·class="nav">
183 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>184 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
184 ····</div>185 ····</div>
185 ··</div>186 ··</div>
  
186 ······<div·class="clearer"></div>187 ······<div·class="clearer"></div>
187 ····</div>188 ····</div>
188 ··</body>189 ··</body>
189 </html>190 </html>
2.37 KB
html2text {}
Max HTML report size reached
9.47 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/text.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.text·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.text·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-text">69 ··········<div·class="yui-g"·id="_modules-django-utils-text">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.text</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.text</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">gzip</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">gzip</span>
72 <span·class="kn">import</span>·<span·class="nn">re</span>73 <span·class="kn">import</span>·<span·class="nn">re</span>
73 <span·class="kn">import</span>·<span·class="nn">secrets</span>74 <span·class="kn">import</span>·<span·class="nn">secrets</span>
74 <span·class="kn">import</span>·<span·class="nn">unicodedata</span>75 <span·class="kn">import</span>·<span·class="nn">unicodedata</span>
75 <span·class="kn">from</span>·<span·class="nn">gzip</span>·<span·class="kn">import</span>·<span·class="n">GzipFile</span>76 <span·class="kn">from</span>·<span·class="nn">gzip</span>·<span·class="kn">import</span>·<span·class="n">GzipFile</span>
76 <span·class="kn">from</span>·<span·class="nn">gzip</span>·<span·class="kn">import</span>·<span·class="n">compress</span>·<span·class="k">as</span>·<span·class="n">gzip_compress</span>77 <span·class="kn">from</span>·<span·class="nn">gzip</span>·<span·class="kn">import</span>·<span·class="n">compress</span>·<span·class="k">as</span>·<span·class="n">gzip_compress</span>
77 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>78 <span·class="kn">from</span>·<span·class="nn">io</span>·<span·class="kn">import</span>·<span·class="n">BytesIO</span>
Offset 554, 15 lines modifiedOffset 555, 15 lines modified
554 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">s</span>·<span·class="ow">or</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="ow">not</span>·<span·class="ow">in</span>·<span·class="s2">&quot;</span><span·class="se">\&quot;</span><span·class="s2">&#39;&quot;</span>·<span·class="ow">or</span>·<span·class="n">s</span><span·class="p">[</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]:</span>555 ····<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="n">s</span>·<span·class="ow">or</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>·<span·class="ow">not</span>·<span·class="ow">in</span>·<span·class="s2">&quot;</span><span·class="se">\&quot;</span><span·class="s2">&#39;&quot;</span>·<span·class="ow">or</span>·<span·class="n">s</span><span·class="p">[</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span>·<span·class="o">!=</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]:</span>
555 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Not·a·string·literal:·</span><span·class="si">%r</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">s</span><span·class="p">)</span>556 ········<span·class="k">raise</span>·<span·class="ne">ValueError</span><span·class="p">(</span><span·class="s2">&quot;Not·a·string·literal:·</span><span·class="si">%r</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">s</span><span·class="p">)</span>
556 ····<span·class="n">quote</span>·<span·class="o">=</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>557 ····<span·class="n">quote</span>·<span·class="o">=</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">0</span><span·class="p">]</span>
557 ····<span·class="k">return</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">:</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">quote</span><span·class="p">,</span>·<span·class="n">quote</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">)</span>558 ····<span·class="k">return</span>·<span·class="n">s</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">:</span><span·class="o">-</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;\</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">quote</span><span·class="p">,</span>·<span·class="n">quote</span><span·class="p">)</span><span·class="o">.</span><span·class="n">replace</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;</span><span·class="se">\\</span><span·class="s2">&quot;</span><span·class="p">)</span>
  
  
558 <div·class="viewcode-block"·id="slugify">559 <div·class="viewcode-block"·id="slugify">
559 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.text.slugify">[docs]</a>560 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.text.slugify">[documenti]</a>
560 <span·class="nd">@keep_lazy_text</span>561 <span·class="nd">@keep_lazy_text</span>
561 <span·class="k">def</span>·<span·class="nf">slugify</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">allow_unicode</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>562 <span·class="k">def</span>·<span·class="nf">slugify</span><span·class="p">(</span><span·class="n">value</span><span·class="p">,</span>·<span·class="n">allow_unicode</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">):</span>
562 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>563 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
563 <span·class="sd">····Convert·to·ASCII·if·&#39;allow_unicode&#39;·is·False.·Convert·spaces·or·repeated</span>564 <span·class="sd">····Convert·to·ASCII·if·&#39;allow_unicode&#39;·is·False.·Convert·spaces·or·repeated</span>
564 <span·class="sd">····dashes·to·single·dashes.·Remove·characters·that·aren&#39;t·alphanumerics,</span>565 <span·class="sd">····dashes·to·single·dashes.·Remove·characters·that·aren&#39;t·alphanumerics,</span>
565 <span·class="sd">····underscores,·or·hyphens.·Convert·to·lowercase.·Also·strip·leading·and</span>566 <span·class="sd">····underscores,·or·hyphens.·Convert·to·lowercase.·Also·strip·leading·and</span>
566 <span·class="sd">····trailing·whitespace,·dashes,·and·underscores.</span>567 <span·class="sd">····trailing·whitespace,·dashes,·and·underscores.</span>
Offset 605, 35 lines modifiedOffset 606, 35 lines modified
605 ······606 ······
606 ········607 ········
607 ··········<div·class="yui-b"·id="sidebar">608 ··········<div·class="yui-b"·id="sidebar">
608 ············609 ············
609 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">610 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
610 ········<div·class="sphinxsidebarwrapper">611 ········<div·class="sphinxsidebarwrapper">
611 <search·id="searchbox"·style="display:·none"·role="search">612 <search·id="searchbox"·style="display:·none"·role="search">
612 ··<h3·id="searchlabel">Quick·search</h3>613 ··<h3·id="searchlabel">Ricerca·veloce</h3>
613 ····<div·class="searchformwrapper">614 ····<div·class="searchformwrapper">
614 ····<form·class="search"·action="../../../search.html"·method="get">615 ····<form·class="search"·action="../../../search.html"·method="get">
615 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>616 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
616 ······<input·type="submit"·value="Go"·/>617 ······<input·type="submit"·value="Vai"·/>
617 ····</form>618 ····</form>
618 ····</div>619 ····</div>
619 </search>620 </search>
620 <script>document.getElementById('searchbox').style.display·=·"block"</script>621 <script>document.getElementById('searchbox').style.display·=·"block"</script>
621 ········</div>622 ········</div>
622 ······</div>623 ······</div>
623 ··············<h3>Last·update:</h3>624 ··············<h3>Last·update:</h3>
624 ··············<p·class="topless">Sep·03,·2024</p>625 ··············<p·class="topless">set·03,·2024</p>
625 ··········</div>626 ··········</div>
626 ········627 ········
627 ······628 ······
628 ····</div>629 ····</div>
  
629 ····<div·id="ft">630 ····<div·id="ft">
630 ······<div·class="nav">631 ······<div·class="nav">
631 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>632 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
632 ····</div>633 ····</div>
633 ··</div>634 ··</div>
  
634 ······<div·class="clearer"></div>635 ······<div·class="clearer"></div>
635 ····</div>636 ····</div>
636 ··</body>637 ··</body>
637 </html>638 </html>
2.04 KB
html2text {}
Max HTML report size reached
30.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/timezone.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.timezone·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.timezone·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-timezone">69 ··········<div·class="yui-g"·id="_modules-django-utils-timezone">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.timezone</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.timezone</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Timezone-related·classes·and·functions.</span>73 <span·class="sd">Timezone-related·classes·and·functions.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
  
74 <span·class="kn">import</span>·<span·class="nn">functools</span>75 <span·class="kn">import</span>·<span·class="nn">functools</span>
75 <span·class="kn">import</span>·<span·class="nn">sys</span>76 <span·class="kn">import</span>·<span·class="nn">sys</span>
76 <span·class="kn">import</span>·<span·class="nn">warnings</span>77 <span·class="kn">import</span>·<span·class="nn">warnings</span>
Offset 126, 30 lines modifiedOffset 127, 30 lines modified
126 ········<span·class="n">stacklevel</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>127 ········<span·class="n">stacklevel</span><span·class="o">=</span><span·class="mi">2</span><span·class="p">,</span>
127 ····<span·class="p">)</span>128 ····<span·class="p">)</span>
  
128 ····<span·class="k">return</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">utc</span>129 ····<span·class="k">return</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">utc</span>
  
  
129 <div·class="viewcode-block"·id="get_fixed_timezone">130 <div·class="viewcode-block"·id="get_fixed_timezone">
130 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_fixed_timezone">[docs]</a>131 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_fixed_timezone">[documenti]</a>
131 <span·class="k">def</span>·<span·class="nf">get_fixed_timezone</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">):</span>132 <span·class="k">def</span>·<span·class="nf">get_fixed_timezone</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">):</span>
132 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·a·tzinfo·instance·with·a·fixed·offset·from·UTC.&quot;&quot;&quot;</span>133 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·a·tzinfo·instance·with·a·fixed·offset·from·UTC.&quot;&quot;&quot;</span>
133 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">,</span>·<span·class="n">timedelta</span><span·class="p">):</span>134 ····<span·class="k">if</span>·<span·class="nb">isinstance</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">,</span>·<span·class="n">timedelta</span><span·class="p">):</span>
134 ········<span·class="n">offset</span>·<span·class="o">=</span>·<span·class="n">offset</span><span·class="o">.</span><span·class="n">total_seconds</span><span·class="p">()</span>·<span·class="o">//</span>·<span·class="mi">60</span>135 ········<span·class="n">offset</span>·<span·class="o">=</span>·<span·class="n">offset</span><span·class="o">.</span><span·class="n">total_seconds</span><span·class="p">()</span>·<span·class="o">//</span>·<span·class="mi">60</span>
135 ····<span·class="n">sign</span>·<span·class="o">=</span>·<span·class="s2">&quot;-&quot;</span>·<span·class="k">if</span>·<span·class="n">offset</span>·<span·class="o">&lt;</span>·<span·class="mi">0</span>·<span·class="k">else</span>·<span·class="s2">&quot;+&quot;</span>136 ····<span·class="n">sign</span>·<span·class="o">=</span>·<span·class="s2">&quot;-&quot;</span>·<span·class="k">if</span>·<span·class="n">offset</span>·<span·class="o">&lt;</span>·<span·class="mi">0</span>·<span·class="k">else</span>·<span·class="s2">&quot;+&quot;</span>
136 ····<span·class="n">hhmm</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%02d%02d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">divmod</span><span·class="p">(</span><span·class="nb">abs</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">),</span>·<span·class="mi">60</span><span·class="p">)</span>137 ····<span·class="n">hhmm</span>·<span·class="o">=</span>·<span·class="s2">&quot;</span><span·class="si">%02d%02d</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="nb">divmod</span><span·class="p">(</span><span·class="nb">abs</span><span·class="p">(</span><span·class="n">offset</span><span·class="p">),</span>·<span·class="mi">60</span><span·class="p">)</span>
137 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">sign</span>·<span·class="o">+</span>·<span·class="n">hhmm</span>138 ····<span·class="n">name</span>·<span·class="o">=</span>·<span·class="n">sign</span>·<span·class="o">+</span>·<span·class="n">hhmm</span>
138 ····<span·class="k">return</span>·<span·class="n">timezone</span><span·class="p">(</span><span·class="n">timedelta</span><span·class="p">(</span><span·class="n">minutes</span><span·class="o">=</span><span·class="n">offset</span><span·class="p">),</span>·<span·class="n">name</span><span·class="p">)</span></div>139 ····<span·class="k">return</span>·<span·class="n">timezone</span><span·class="p">(</span><span·class="n">timedelta</span><span·class="p">(</span><span·class="n">minutes</span><span·class="o">=</span><span·class="n">offset</span><span·class="p">),</span>·<span·class="n">name</span><span·class="p">)</span></div>
  
  
  
139 <span·class="c1">#·In·order·to·avoid·accessing·settings·at·compile·time,</span>140 <span·class="c1">#·In·order·to·avoid·accessing·settings·at·compile·time,</span>
140 <span·class="c1">#·wrap·the·logic·in·a·function·and·cache·the·result.</span>141 <span·class="c1">#·wrap·the·logic·in·a·function·and·cache·the·result.</span>
141 <div·class="viewcode-block"·id="get_default_timezone">142 <div·class="viewcode-block"·id="get_default_timezone">
142 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_default_timezone">[docs]</a>143 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_default_timezone">[documenti]</a>
143 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>144 <span·class="nd">@functools</span><span·class="o">.</span><span·class="n">lru_cache</span>
144 <span·class="k">def</span>·<span·class="nf">get_default_timezone</span><span·class="p">():</span>145 <span·class="k">def</span>·<span·class="nf">get_default_timezone</span><span·class="p">():</span>
145 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>146 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
146 <span·class="sd">····Return·the·default·time·zone·as·a·tzinfo·instance.</span>147 <span·class="sd">····Return·the·default·time·zone·as·a·tzinfo·instance.</span>
  
147 <span·class="sd">····This·is·the·time·zone·defined·by·settings.TIME_ZONE.</span>148 <span·class="sd">····This·is·the·time·zone·defined·by·settings.TIME_ZONE.</span>
148 <span·class="sd">····&quot;&quot;&quot;</span>149 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 159, 34 lines modifiedOffset 160, 34 lines modified
159 ········<span·class="k">return</span>·<span·class="n">pytz</span><span·class="o">.</span><span·class="n">timezone</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">TIME_ZONE</span><span·class="p">)</span>160 ········<span·class="k">return</span>·<span·class="n">pytz</span><span·class="o">.</span><span·class="n">timezone</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">TIME_ZONE</span><span·class="p">)</span>
160 ····<span·class="k">return</span>·<span·class="n">zoneinfo</span><span·class="o">.</span><span·class="n">ZoneInfo</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">TIME_ZONE</span><span·class="p">)</span></div>161 ····<span·class="k">return</span>·<span·class="n">zoneinfo</span><span·class="o">.</span><span·class="n">ZoneInfo</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">TIME_ZONE</span><span·class="p">)</span></div>
  
  
  
161 <span·class="c1">#·This·function·exists·for·consistency·with·get_current_timezone_name</span>162 <span·class="c1">#·This·function·exists·for·consistency·with·get_current_timezone_name</span>
162 <div·class="viewcode-block"·id="get_default_timezone_name">163 <div·class="viewcode-block"·id="get_default_timezone_name">
163 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_default_timezone_name">[docs]</a>164 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_default_timezone_name">[documenti]</a>
164 <span·class="k">def</span>·<span·class="nf">get_default_timezone_name</span><span·class="p">():</span>165 <span·class="k">def</span>·<span·class="nf">get_default_timezone_name</span><span·class="p">():</span>
165 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·name·of·the·default·time·zone.&quot;&quot;&quot;</span>166 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·name·of·the·default·time·zone.&quot;&quot;&quot;</span>
166 ····<span·class="k">return</span>·<span·class="n">_get_timezone_name</span><span·class="p">(</span><span·class="n">get_default_timezone</span><span·class="p">())</span></div>167 ····<span·class="k">return</span>·<span·class="n">_get_timezone_name</span><span·class="p">(</span><span·class="n">get_default_timezone</span><span·class="p">())</span></div>
  
  
  
167 <span·class="n">_active</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>168 <span·class="n">_active</span>·<span·class="o">=</span>·<span·class="n">Local</span><span·class="p">()</span>
  
  
168 <div·class="viewcode-block"·id="get_current_timezone">169 <div·class="viewcode-block"·id="get_current_timezone">
169 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_current_timezone">[docs]</a>170 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_current_timezone">[documenti]</a>
170 <span·class="k">def</span>·<span·class="nf">get_current_timezone</span><span·class="p">():</span>171 <span·class="k">def</span>·<span·class="nf">get_current_timezone</span><span·class="p">():</span>
171 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·currently·active·time·zone·as·a·tzinfo·instance.&quot;&quot;&quot;</span>172 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·currently·active·time·zone·as·a·tzinfo·instance.&quot;&quot;&quot;</span>
172 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">_active</span><span·class="p">,</span>·<span·class="s2">&quot;value&quot;</span><span·class="p">,</span>·<span·class="n">get_default_timezone</span><span·class="p">())</span></div>173 ····<span·class="k">return</span>·<span·class="nb">getattr</span><span·class="p">(</span><span·class="n">_active</span><span·class="p">,</span>·<span·class="s2">&quot;value&quot;</span><span·class="p">,</span>·<span·class="n">get_default_timezone</span><span·class="p">())</span></div>
  
  
  
173 <div·class="viewcode-block"·id="get_current_timezone_name">174 <div·class="viewcode-block"·id="get_current_timezone_name">
174 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_current_timezone_name">[docs]</a>175 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.timezone.get_current_timezone_name">[documenti]</a>
175 <span·class="k">def</span>·<span·class="nf">get_current_timezone_name</span><span·class="p">():</span>176 <span·class="k">def</span>·<span·class="nf">get_current_timezone_name</span><span·class="p">():</span>
176 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·name·of·the·currently·active·time·zone.&quot;&quot;&quot;</span>177 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Return·the·name·of·the·currently·active·time·zone.&quot;&quot;&quot;</span>
177 ····<span·class="k">return</span>·<span·class="n">_get_timezone_name</span><span·class="p">(</span><span·class="n">get_current_timezone</span><span·class="p">())</span></div>178 ····<span·class="k">return</span>·<span·class="n">_get_timezone_name</span><span·class="p">(</span><span·class="n">get_current_timezone</span><span·class="p">())</span></div>
  
  
  
178 <span·class="k">def</span>·<span·class="nf">_get_timezone_name</span><span·class="p">(</span><span·class="n">timezone</span><span·class="p">):</span>179 <span·class="k">def</span>·<span·class="nf">_get_timezone_name</span><span·class="p">(</span><span·class="n">timezone</span><span·class="p">):</span>
Offset 200, 15 lines modifiedOffset 201, 15 lines modified
200 <span·class="c1">#·Timezone·selection·functions.</span>201 <span·class="c1">#·Timezone·selection·functions.</span>
  
201 <span·class="c1">#·These·functions·don&#39;t·change·os.environ[&#39;TZ&#39;]·and·call·time.tzset()</span>202 <span·class="c1">#·These·functions·don&#39;t·change·os.environ[&#39;TZ&#39;]·and·call·time.tzset()</span>
202 <span·class="c1">#·because·it·isn&#39;t·thread·safe.</span>203 <span·class="c1">#·because·it·isn&#39;t·thread·safe.</span>
  
  
Max diff block lines reached; 14146/23833 bytes (59.35%) of diff not shown.
6.75 KB
html2text {}
Max HTML report size reached
30.2 KB
./usr/share/doc/python-django-doc/html/_modules/django/utils/translation.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.utils.translation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.utils.translation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-utils-translation">69 ··········<div·class="yui-g"·id="_modules-django-utils-translation">
69 ············70 ············
70 ··<h1>Source·code·for·django.utils.translation</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.utils.translation</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Internationalization·support.</span>73 <span·class="sd">Internationalization·support.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">ContextDecorator</span>75 <span·class="kn">from</span>·<span·class="nn">contextlib</span>·<span·class="kn">import</span>·<span·class="n">ContextDecorator</span>
75 <span·class="kn">from</span>·<span·class="nn">decimal</span>·<span·class="kn">import</span>·<span·class="n">ROUND_UP</span><span·class="p">,</span>·<span·class="n">Decimal</span>76 <span·class="kn">from</span>·<span·class="nn">decimal</span>·<span·class="kn">import</span>·<span·class="n">ROUND_UP</span><span·class="p">,</span>·<span·class="n">Decimal</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.utils.autoreload</span>·<span·class="kn">import</span>·<span·class="n">autoreload_started</span><span·class="p">,</span>·<span·class="n">file_changed</span>77 <span·class="kn">from</span>·<span·class="nn">django.utils.autoreload</span>·<span·class="kn">import</span>·<span·class="n">autoreload_started</span><span·class="p">,</span>·<span·class="n">file_changed</span>
Offset 157, 43 lines modifiedOffset 158, 43 lines modified
157 <span·class="n">_trans</span>·<span·class="o">=</span>·<span·class="n">Trans</span><span·class="p">()</span>158 <span·class="n">_trans</span>·<span·class="o">=</span>·<span·class="n">Trans</span><span·class="p">()</span>
  
158 <span·class="c1">#·The·Trans·class·is·no·more·needed,·so·remove·it·from·the·namespace.</span>159 <span·class="c1">#·The·Trans·class·is·no·more·needed,·so·remove·it·from·the·namespace.</span>
159 <span·class="k">del</span>·<span·class="n">Trans</span>160 <span·class="k">del</span>·<span·class="n">Trans</span>
  
  
160 <div·class="viewcode-block"·id="gettext_noop">161 <div·class="viewcode-block"·id="gettext_noop">
161 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.gettext_noop">[docs]</a>162 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.gettext_noop">[documenti]</a>
162 <span·class="k">def</span>·<span·class="nf">gettext_noop</span><span·class="p">(</span><span·class="n">message</span><span·class="p">):</span>163 <span·class="k">def</span>·<span·class="nf">gettext_noop</span><span·class="p">(</span><span·class="n">message</span><span·class="p">):</span>
163 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">gettext_noop</span><span·class="p">(</span><span·class="n">message</span><span·class="p">)</span></div>164 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">gettext_noop</span><span·class="p">(</span><span·class="n">message</span><span·class="p">)</span></div>
  
  
  
164 <div·class="viewcode-block"·id="gettext">165 <div·class="viewcode-block"·id="gettext">
165 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.gettext">[docs]</a>166 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.gettext">[documenti]</a>
166 <span·class="k">def</span>·<span·class="nf">gettext</span><span·class="p">(</span><span·class="n">message</span><span·class="p">):</span>167 <span·class="k">def</span>·<span·class="nf">gettext</span><span·class="p">(</span><span·class="n">message</span><span·class="p">):</span>
167 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">gettext</span><span·class="p">(</span><span·class="n">message</span><span·class="p">)</span></div>168 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">gettext</span><span·class="p">(</span><span·class="n">message</span><span·class="p">)</span></div>
  
  
  
168 <div·class="viewcode-block"·id="ngettext">169 <div·class="viewcode-block"·id="ngettext">
169 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.ngettext">[docs]</a>170 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.ngettext">[documenti]</a>
170 <span·class="k">def</span>·<span·class="nf">ngettext</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>171 <span·class="k">def</span>·<span·class="nf">ngettext</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>
171 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">ngettext</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">)</span></div>172 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">ngettext</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">)</span></div>
  
  
  
172 <div·class="viewcode-block"·id="pgettext">173 <div·class="viewcode-block"·id="pgettext">
173 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.pgettext">[docs]</a>174 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.pgettext">[documenti]</a>
174 <span·class="k">def</span>·<span·class="nf">pgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">):</span>175 <span·class="k">def</span>·<span·class="nf">pgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">):</span>
175 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">pgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">)</span></div>176 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">pgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">message</span><span·class="p">)</span></div>
  
  
  
176 <div·class="viewcode-block"·id="npgettext">177 <div·class="viewcode-block"·id="npgettext">
177 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.npgettext">[docs]</a>178 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.npgettext">[documenti]</a>
178 <span·class="k">def</span>·<span·class="nf">npgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>179 <span·class="k">def</span>·<span·class="nf">npgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">):</span>
179 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">npgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">)</span></div>180 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">npgettext</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">)</span></div>
  
  
  
180 <span·class="n">gettext_lazy</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">gettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>181 <span·class="n">gettext_lazy</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">gettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>
181 <span·class="n">pgettext_lazy</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">pgettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>182 <span·class="n">pgettext_lazy</span>·<span·class="o">=</span>·<span·class="n">lazy</span><span·class="p">(</span><span·class="n">pgettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">)</span>
Offset 252, 45 lines modifiedOffset 253, 45 lines modified
  
  
252 <span·class="k">def</span>·<span·class="nf">_lazy_number_unpickle</span><span·class="p">(</span><span·class="n">func</span><span·class="p">,</span>·<span·class="n">resultclass</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">,</span>·<span·class="n">kwargs</span><span·class="p">):</span>253 <span·class="k">def</span>·<span·class="nf">_lazy_number_unpickle</span><span·class="p">(</span><span·class="n">func</span><span·class="p">,</span>·<span·class="n">resultclass</span><span·class="p">,</span>·<span·class="n">number</span><span·class="p">,</span>·<span·class="n">kwargs</span><span·class="p">):</span>
253 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span><span·class="n">func</span><span·class="p">,</span>·<span·class="n">resultclass</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>254 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span><span·class="n">func</span><span·class="p">,</span>·<span·class="n">resultclass</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
  
  
254 <div·class="viewcode-block"·id="ngettext_lazy">255 <div·class="viewcode-block"·id="ngettext_lazy">
255 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.ngettext_lazy">[docs]</a>256 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.ngettext_lazy">[documenti]</a>
256 <span·class="k">def</span>·<span·class="nf">ngettext_lazy</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>257 <span·class="k">def</span>·<span·class="nf">ngettext_lazy</span><span·class="p">(</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
257 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span><span·class="n">ngettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="o">=</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="o">=</span><span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span><span·class="p">)</span></div>258 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span><span·class="n">ngettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="o">=</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="o">=</span><span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span><span·class="p">)</span></div>
  
  
  
258 <div·class="viewcode-block"·id="npgettext_lazy">259 <div·class="viewcode-block"·id="npgettext_lazy">
259 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.npgettext_lazy">[docs]</a>260 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.npgettext_lazy">[documenti]</a>
260 <span·class="k">def</span>·<span·class="nf">npgettext_lazy</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>261 <span·class="k">def</span>·<span·class="nf">npgettext_lazy</span><span·class="p">(</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
261 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span>262 ····<span·class="k">return</span>·<span·class="n">lazy_number</span><span·class="p">(</span>
262 ········<span·class="n">npgettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="o">=</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="o">=</span><span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span>263 ········<span·class="n">npgettext</span><span·class="p">,</span>·<span·class="nb">str</span><span·class="p">,</span>·<span·class="n">context</span><span·class="o">=</span><span·class="n">context</span><span·class="p">,</span>·<span·class="n">singular</span><span·class="o">=</span><span·class="n">singular</span><span·class="p">,</span>·<span·class="n">plural</span><span·class="o">=</span><span·class="n">plural</span><span·class="p">,</span>·<span·class="n">number</span><span·class="o">=</span><span·class="n">number</span>
263 ····<span·class="p">)</span></div>264 ····<span·class="p">)</span></div>
  
  
  
264 <div·class="viewcode-block"·id="activate">265 <div·class="viewcode-block"·id="activate">
265 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.activate">[docs]</a>266 <a·class="viewcode-back"·href="../../../ref/utils.html#django.utils.translation.activate">[documenti]</a>
266 <span·class="k">def</span>·<span·class="nf">activate</span><span·class="p">(</span><span·class="n">language</span><span·class="p">):</span>267 <span·class="k">def</span>·<span·class="nf">activate</span><span·class="p">(</span><span·class="n">language</span><span·class="p">):</span>
267 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">activate</span><span·class="p">(</span><span·class="n">language</span><span·class="p">)</span></div>268 ····<span·class="k">return</span>·<span·class="n">_trans</span><span·class="o">.</span><span·class="n">activate</span><span·class="p">(</span><span·class="n">language</span><span·class="p">)</span></div>
  
  
Max diff block lines reached; 13495/24905 bytes (54.19%) of diff not shown.
5.72 KB
html2text {}
Max HTML report size reached
25.4 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/debug.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.debug·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.debug·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-debug">69 ··········<div·class="yui-g"·id="_modules-django-views-debug">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.debug</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.debug</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">functools</span>
72 <span·class="kn">import</span>·<span·class="nn">itertools</span>73 <span·class="kn">import</span>·<span·class="nn">itertools</span>
73 <span·class="kn">import</span>·<span·class="nn">re</span>74 <span·class="kn">import</span>·<span·class="nn">re</span>
74 <span·class="kn">import</span>·<span·class="nn">sys</span>75 <span·class="kn">import</span>·<span·class="nn">sys</span>
75 <span·class="kn">import</span>·<span·class="nn">types</span>76 <span·class="kn">import</span>·<span·class="nn">types</span>
76 <span·class="kn">import</span>·<span·class="nn">warnings</span>77 <span·class="kn">import</span>·<span·class="nn">warnings</span>
77 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>78 <span·class="kn">from</span>·<span·class="nn">pathlib</span>·<span·class="kn">import</span>·<span·class="n">Path</span>
Offset 173, 15 lines modifiedOffset 174, 15 lines modified
173 ············<span·class="n">resolver_match</span>·<span·class="o">=</span>·<span·class="n">resolve</span><span·class="p">(</span><span·class="n">request</span><span·class="o">.</span><span·class="n">path</span><span·class="p">)</span>174 ············<span·class="n">resolver_match</span>·<span·class="o">=</span>·<span·class="n">resolve</span><span·class="p">(</span><span·class="n">request</span><span·class="o">.</span><span·class="n">path</span><span·class="p">)</span>
174 ········<span·class="k">except</span>·<span·class="n">Http404</span><span·class="p">:</span>175 ········<span·class="k">except</span>·<span·class="n">Http404</span><span·class="p">:</span>
175 ············<span·class="k">pass</span>176 ············<span·class="k">pass</span>
176 ····<span·class="k">return</span>·<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="n">resolver_match</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">resolver_match</span><span·class="o">.</span><span·class="n">_func_path</span>177 ····<span·class="k">return</span>·<span·class="s2">&quot;&quot;</span>·<span·class="k">if</span>·<span·class="n">resolver_match</span>·<span·class="ow">is</span>·<span·class="kc">None</span>·<span·class="k">else</span>·<span·class="n">resolver_match</span><span·class="o">.</span><span·class="n">_func_path</span>
  
  
177 <div·class="viewcode-block"·id="SafeExceptionReporterFilter">178 <div·class="viewcode-block"·id="SafeExceptionReporterFilter">
178 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter">[docs]</a>179 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter">[documenti]</a>
179 <span·class="k">class</span>·<span·class="nc">SafeExceptionReporterFilter</span><span·class="p">:</span>180 <span·class="k">class</span>·<span·class="nc">SafeExceptionReporterFilter</span><span·class="p">:</span>
180 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>181 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
181 <span·class="sd">····Use·annotations·made·by·the·sensitive_post_parameters·and</span>182 <span·class="sd">····Use·annotations·made·by·the·sensitive_post_parameters·and</span>
182 <span·class="sd">····sensitive_variables·decorators·to·filter·out·sensitive·information.</span>183 <span·class="sd">····sensitive_variables·decorators·to·filter·out·sensitive·information.</span>
183 <span·class="sd">····&quot;&quot;&quot;</span>184 <span·class="sd">····&quot;&quot;&quot;</span>
  
184 ····<span·class="n">cleansed_substitute</span>·<span·class="o">=</span>·<span·class="s2">&quot;********************&quot;</span>185 ····<span·class="n">cleansed_substitute</span>·<span·class="o">=</span>·<span·class="s2">&quot;********************&quot;</span>
Offset 242, 15 lines modifiedOffset 243, 15 lines modified
242 <span·class="sd">········Return·a·dictionary·of·request.COOKIES·with·sensitive·values·redacted.</span>243 <span·class="sd">········Return·a·dictionary·of·request.COOKIES·with·sensitive·values·redacted.</span>
243 <span·class="sd">········&quot;&quot;&quot;</span>244 <span·class="sd">········&quot;&quot;&quot;</span>
244 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;COOKIES&quot;</span><span·class="p">):</span>245 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;COOKIES&quot;</span><span·class="p">):</span>
245 ············<span·class="k">return</span>·<span·class="p">{}</span>246 ············<span·class="k">return</span>·<span·class="p">{}</span>
246 ········<span·class="k">return</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleanse_setting</span><span·class="p">(</span><span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">COOKIES</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>247 ········<span·class="k">return</span>·<span·class="p">{</span><span·class="n">k</span><span·class="p">:</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleanse_setting</span><span·class="p">(</span><span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">k</span><span·class="p">,</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">COOKIES</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()}</span>
  
247 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.is_active">248 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.is_active">
248 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.is_active">[docs]</a>249 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.is_active">[documenti]</a>
249 ····<span·class="k">def</span>·<span·class="nf">is_active</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>250 ····<span·class="k">def</span>·<span·class="nf">is_active</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
250 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>251 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
251 <span·class="sd">········This·filter·is·to·add·safety·in·production·environments·(i.e.·DEBUG</span>252 <span·class="sd">········This·filter·is·to·add·safety·in·production·environments·(i.e.·DEBUG</span>
252 <span·class="sd">········is·False).·If·DEBUG·is·True·then·your·site·is·not·safe·anyway.</span>253 <span·class="sd">········is·False).·If·DEBUG·is·True·then·your·site·is·not·safe·anyway.</span>
253 <span·class="sd">········This·hook·is·provided·as·a·convenience·to·easily·activate·or</span>254 <span·class="sd">········This·hook·is·provided·as·a·convenience·to·easily·activate·or</span>
254 <span·class="sd">········deactivate·the·filter·on·a·per·request·basis.</span>255 <span·class="sd">········deactivate·the·filter·on·a·per·request·basis.</span>
255 <span·class="sd">········&quot;&quot;&quot;</span>256 <span·class="sd">········&quot;&quot;&quot;</span>
Offset 268, 15 lines modifiedOffset 269, 15 lines modified
268 ············<span·class="n">multivaluedict</span>·<span·class="o">=</span>·<span·class="n">multivaluedict</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>269 ············<span·class="n">multivaluedict</span>·<span·class="o">=</span>·<span·class="n">multivaluedict</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span>
269 ············<span·class="k">for</span>·<span·class="n">param</span>·<span·class="ow">in</span>·<span·class="n">sensitive_post_parameters</span><span·class="p">:</span>270 ············<span·class="k">for</span>·<span·class="n">param</span>·<span·class="ow">in</span>·<span·class="n">sensitive_post_parameters</span><span·class="p">:</span>
270 ················<span·class="k">if</span>·<span·class="n">param</span>·<span·class="ow">in</span>·<span·class="n">multivaluedict</span><span·class="p">:</span>271 ················<span·class="k">if</span>·<span·class="n">param</span>·<span·class="ow">in</span>·<span·class="n">multivaluedict</span><span·class="p">:</span>
271 ····················<span·class="n">multivaluedict</span><span·class="p">[</span><span·class="n">param</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleansed_substitute</span>272 ····················<span·class="n">multivaluedict</span><span·class="p">[</span><span·class="n">param</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleansed_substitute</span>
272 ········<span·class="k">return</span>·<span·class="n">multivaluedict</span>273 ········<span·class="k">return</span>·<span·class="n">multivaluedict</span>
  
273 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.get_post_parameters">274 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.get_post_parameters">
274 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.get_post_parameters">[docs]</a>275 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.get_post_parameters">[documenti]</a>
275 ····<span·class="k">def</span>·<span·class="nf">get_post_parameters</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>276 ····<span·class="k">def</span>·<span·class="nf">get_post_parameters</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
276 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>277 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
277 <span·class="sd">········Replace·the·values·of·POST·parameters·marked·as·sensitive·with</span>278 <span·class="sd">········Replace·the·values·of·POST·parameters·marked·as·sensitive·with</span>
278 <span·class="sd">········stars·(*********).</span>279 <span·class="sd">········stars·(*********).</span>
279 <span·class="sd">········&quot;&quot;&quot;</span>280 <span·class="sd">········&quot;&quot;&quot;</span>
280 ········<span·class="k">if</span>·<span·class="n">request</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>281 ········<span·class="k">if</span>·<span·class="n">request</span>·<span·class="ow">is</span>·<span·class="kc">None</span><span·class="p">:</span>
281 ············<span·class="k">return</span>·<span·class="p">{}</span>282 ············<span·class="k">return</span>·<span·class="p">{}</span>
Offset 312, 15 lines modifiedOffset 313, 15 lines modified
  
312 ········<span·class="k">if</span>·<span·class="n">is_multivalue_dict</span><span·class="p">:</span>313 ········<span·class="k">if</span>·<span·class="n">is_multivalue_dict</span><span·class="p">:</span>
313 ············<span·class="c1">#·Cleanse·MultiValueDicts·(request.POST·is·the·one·we·usually·care·about)</span>314 ············<span·class="c1">#·Cleanse·MultiValueDicts·(request.POST·is·the·one·we·usually·care·about)</span>
314 ············<span·class="n">value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_cleansed_multivaluedict</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">)</span>315 ············<span·class="n">value</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">get_cleansed_multivaluedict</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">)</span>
315 ········<span·class="k">return</span>·<span·class="n">value</span>316 ········<span·class="k">return</span>·<span·class="n">value</span>
  
316 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.get_traceback_frame_variables">317 <div·class="viewcode-block"·id="SafeExceptionReporterFilter.get_traceback_frame_variables">
317 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.get_traceback_frame_variables">[docs]</a>318 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.SafeExceptionReporterFilter.get_traceback_frame_variables">[documenti]</a>
318 ····<span·class="k">def</span>·<span·class="nf">get_traceback_frame_variables</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">tb_frame</span><span·class="p">):</span>319 ····<span·class="k">def</span>·<span·class="nf">get_traceback_frame_variables</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">tb_frame</span><span·class="p">):</span>
319 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>320 <span·class="w">········</span><span·class="sd">&quot;&quot;&quot;</span>
320 <span·class="sd">········Replace·the·values·of·variables·marked·as·sensitive·with</span>321 <span·class="sd">········Replace·the·values·of·variables·marked·as·sensitive·with</span>
321 <span·class="sd">········stars·(*********).</span>322 <span·class="sd">········stars·(*********).</span>
322 <span·class="sd">········&quot;&quot;&quot;</span>323 <span·class="sd">········&quot;&quot;&quot;</span>
323 ········<span·class="c1">#·Loop·through·the·frame&#39;s·callers·to·see·if·the·sensitive_variables</span>324 ········<span·class="c1">#·Loop·through·the·frame&#39;s·callers·to·see·if·the·sensitive_variables</span>
324 ········<span·class="c1">#·decorator·was·used.</span>325 ········<span·class="c1">#·decorator·was·used.</span>
Offset 371, 15 lines modifiedOffset 372, 15 lines modified
  
371 ········<span·class="k">return</span>·<span·class="n">cleansed</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span></div>372 ········<span·class="k">return</span>·<span·class="n">cleansed</span><span·class="o">.</span><span·class="n">items</span><span·class="p">()</span></div>
372 </div>373 </div>
  
  
  
373 <div·class="viewcode-block"·id="ExceptionReporter">374 <div·class="viewcode-block"·id="ExceptionReporter">
374 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.ExceptionReporter">[docs]</a>375 <a·class="viewcode-back"·href="../../../howto/error-reporting.html#django.views.debug.ExceptionReporter">[documenti]</a>
Max diff block lines reached; 9489/20509 bytes (46.27%) of diff not shown.
5.27 KB
html2text {}
Max HTML report size reached
10.1 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/cache.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.cache·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.cache·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-cache">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-cache">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.cache</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.cache</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.middleware.cache</span>·<span·class="kn">import</span>·<span·class="n">CacheMiddleware</span>73 <span·class="kn">from</span>·<span·class="nn">django.middleware.cache</span>·<span·class="kn">import</span>·<span·class="n">CacheMiddleware</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">add_never_cache_headers</span><span·class="p">,</span>·<span·class="n">patch_cache_control</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">add_never_cache_headers</span><span·class="p">,</span>·<span·class="n">patch_cache_control</span>
74 <span·class="kn">from</span>·<span·class="nn">django.utils.decorators</span>·<span·class="kn">import</span>·<span·class="n">decorator_from_middleware_with_args</span>75 <span·class="kn">from</span>·<span·class="nn">django.utils.decorators</span>·<span·class="kn">import</span>·<span·class="n">decorator_from_middleware_with_args</span>
  
  
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 ········<span·class="n">page_timeout</span><span·class="o">=</span><span·class="n">timeout</span><span·class="p">,</span>97 ········<span·class="n">page_timeout</span><span·class="o">=</span><span·class="n">timeout</span><span·class="p">,</span>
97 ········<span·class="n">cache_alias</span><span·class="o">=</span><span·class="n">cache</span><span·class="p">,</span>98 ········<span·class="n">cache_alias</span><span·class="o">=</span><span·class="n">cache</span><span·class="p">,</span>
98 ········<span·class="n">key_prefix</span><span·class="o">=</span><span·class="n">key_prefix</span><span·class="p">,</span>99 ········<span·class="n">key_prefix</span><span·class="o">=</span><span·class="n">key_prefix</span><span·class="p">,</span>
99 ····<span·class="p">)</span>100 ····<span·class="p">)</span>
  
  
100 <div·class="viewcode-block"·id="cache_control">101 <div·class="viewcode-block"·id="cache_control">
101 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.cache.cache_control">[docs]</a>102 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.cache.cache_control">[documenti]</a>
102 <span·class="k">def</span>·<span·class="nf">cache_control</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>103 <span·class="k">def</span>·<span·class="nf">cache_control</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
103 ····<span·class="k">def</span>·<span·class="nf">_cache_controller</span><span·class="p">(</span><span·class="n">viewfunc</span><span·class="p">):</span>104 ····<span·class="k">def</span>·<span·class="nf">_cache_controller</span><span·class="p">(</span><span·class="n">viewfunc</span><span·class="p">):</span>
104 ········<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">viewfunc</span><span·class="p">)</span>105 ········<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">viewfunc</span><span·class="p">)</span>
105 ········<span·class="k">def</span>·<span·class="nf">_cache_controlled</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kw</span><span·class="p">):</span>106 ········<span·class="k">def</span>·<span·class="nf">_cache_controlled</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kw</span><span·class="p">):</span>
106 ············<span·class="c1">#·Ensure·argument·looks·like·a·request.</span>107 ············<span·class="c1">#·Ensure·argument·looks·like·a·request.</span>
107 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;META&quot;</span><span·class="p">):</span>108 ············<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="nb">hasattr</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;META&quot;</span><span·class="p">):</span>
108 ················<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span>109 ················<span·class="k">raise</span>·<span·class="ne">TypeError</span><span·class="p">(</span>
Offset 119, 15 lines modifiedOffset 120, 15 lines modified
119 ········<span·class="k">return</span>·<span·class="n">_cache_controlled</span>120 ········<span·class="k">return</span>·<span·class="n">_cache_controlled</span>
  
120 ····<span·class="k">return</span>·<span·class="n">_cache_controller</span></div>121 ····<span·class="k">return</span>·<span·class="n">_cache_controller</span></div>
  
  
  
121 <div·class="viewcode-block"·id="never_cache">122 <div·class="viewcode-block"·id="never_cache">
122 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.cache.never_cache">[docs]</a>123 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.cache.never_cache">[documenti]</a>
123 <span·class="k">def</span>·<span·class="nf">never_cache</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>124 <span·class="k">def</span>·<span·class="nf">never_cache</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>
124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>125 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
125 <span·class="sd">····Decorator·that·adds·headers·to·a·response·so·that·it·will·never·be·cached.</span>126 <span·class="sd">····Decorator·that·adds·headers·to·a·response·so·that·it·will·never·be·cached.</span>
126 <span·class="sd">····&quot;&quot;&quot;</span>127 <span·class="sd">····&quot;&quot;&quot;</span>
  
127 ····<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">)</span>128 ····<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">)</span>
128 ····<span·class="k">def</span>·<span·class="nf">_wrapper_view_func</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>129 ····<span·class="k">def</span>·<span·class="nf">_wrapper_view_func</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
Offset 151, 35 lines modifiedOffset 152, 35 lines modified
151 ······152 ······
152 ········153 ········
153 ··········<div·class="yui-b"·id="sidebar">154 ··········<div·class="yui-b"·id="sidebar">
154 ············155 ············
155 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">156 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
156 ········<div·class="sphinxsidebarwrapper">157 ········<div·class="sphinxsidebarwrapper">
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../../../../search.html"·method="get">161 ····<form·class="search"·action="../../../../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
177 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>178 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
178 ····</div>179 ····</div>
179 ··</div>180 ··</div>
  
180 ······<div·class="clearer"></div>181 ······<div·class="clearer"></div>
181 ····</div>182 ····</div>
182 ··</body>183 ··</body>
183 </html>184 </html>
2.3 KB
html2text {}
Max HTML report size reached
6.64 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/common.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.common·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.common·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 36 lines modifiedOffset 51, 36 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-common">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-common">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.common</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.common</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
  
72 <div·class="viewcode-block"·id="no_append_slash">73 <div·class="viewcode-block"·id="no_append_slash">
73 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.common.no_append_slash">[docs]</a>74 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.common.no_append_slash">[documenti]</a>
74 <span·class="k">def</span>·<span·class="nf">no_append_slash</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>75 <span·class="k">def</span>·<span·class="nf">no_append_slash</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>
75 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
76 <span·class="sd">····Mark·a·view·function·as·excluded·from·CommonMiddleware&#39;s·APPEND_SLASH</span>77 <span·class="sd">····Mark·a·view·function·as·excluded·from·CommonMiddleware&#39;s·APPEND_SLASH</span>
77 <span·class="sd">····redirection.</span>78 <span·class="sd">····redirection.</span>
78 <span·class="sd">····&quot;&quot;&quot;</span>79 <span·class="sd">····&quot;&quot;&quot;</span>
  
79 ····<span·class="c1">#·view_func.should_append_slash·=·False·would·also·work,·but·decorators·are</span>80 ····<span·class="c1">#·view_func.should_append_slash·=·False·would·also·work,·but·decorators·are</span>
Offset 99, 35 lines modifiedOffset 100, 35 lines modified
99 ······100 ······
100 ········101 ········
101 ··········<div·class="yui-b"·id="sidebar">102 ··········<div·class="yui-b"·id="sidebar">
102 ············103 ············
103 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">104 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
104 ········<div·class="sphinxsidebarwrapper">105 ········<div·class="sphinxsidebarwrapper">
105 <search·id="searchbox"·style="display:·none"·role="search">106 <search·id="searchbox"·style="display:·none"·role="search">
106 ··<h3·id="searchlabel">Quick·search</h3>107 ··<h3·id="searchlabel">Ricerca·veloce</h3>
107 ····<div·class="searchformwrapper">108 ····<div·class="searchformwrapper">
108 ····<form·class="search"·action="../../../../search.html"·method="get">109 ····<form·class="search"·action="../../../../search.html"·method="get">
109 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>110 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
110 ······<input·type="submit"·value="Go"·/>111 ······<input·type="submit"·value="Vai"·/>
111 ····</form>112 ····</form>
112 ····</div>113 ····</div>
113 </search>114 </search>
114 <script>document.getElementById('searchbox').style.display·=·"block"</script>115 <script>document.getElementById('searchbox').style.display·=·"block"</script>
115 ········</div>116 ········</div>
116 ······</div>117 ······</div>
117 ··············<h3>Last·update:</h3>118 ··············<h3>Last·update:</h3>
118 ··············<p·class="topless">Sep·03,·2024</p>119 ··············<p·class="topless">set·03,·2024</p>
119 ··········</div>120 ··········</div>
120 ········121 ········
121 ······122 ······
122 ····</div>123 ····</div>
  
123 ····<div·id="ft">124 ····<div·id="ft">
124 ······<div·class="nav">125 ······<div·class="nav">
125 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>126 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
126 ····</div>127 ····</div>
127 ··</div>128 ··</div>
  
128 ······<div·class="clearer"></div>129 ······<div·class="clearer"></div>
129 ····</div>130 ····</div>
130 ··</body>131 ··</body>
131 </html>132 </html>
1.63 KB
html2text {}
Max HTML report size reached
8.47 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/csrf.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.csrf·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.csrf·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-csrf">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-csrf">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.csrf</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.csrf</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.middleware.csrf</span>·<span·class="kn">import</span>·<span·class="n">CsrfViewMiddleware</span><span·class="p">,</span>·<span·class="n">get_token</span>73 <span·class="kn">from</span>·<span·class="nn">django.middleware.csrf</span>·<span·class="kn">import</span>·<span·class="n">CsrfViewMiddleware</span><span·class="p">,</span>·<span·class="n">get_token</span>
73 <span·class="kn">from</span>·<span·class="nn">django.utils.decorators</span>·<span·class="kn">import</span>·<span·class="n">decorator_from_middleware</span>74 <span·class="kn">from</span>·<span·class="nn">django.utils.decorators</span>·<span·class="kn">import</span>·<span·class="n">decorator_from_middleware</span>
  
74 <span·class="n">csrf_protect</span>·<span·class="o">=</span>·<span·class="n">decorator_from_middleware</span><span·class="p">(</span><span·class="n">CsrfViewMiddleware</span><span·class="p">)</span>75 <span·class="n">csrf_protect</span>·<span·class="o">=</span>·<span·class="n">decorator_from_middleware</span><span·class="p">(</span><span·class="n">CsrfViewMiddleware</span><span·class="p">)</span>
75 <span·class="n">csrf_protect</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">=</span>·<span·class="s2">&quot;csrf_protect&quot;</span>76 <span·class="n">csrf_protect</span><span·class="o">.</span><span·class="vm">__name__</span>·<span·class="o">=</span>·<span·class="s2">&quot;csrf_protect&quot;</span>
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 <span·class="n">ensure_csrf_cookie</span><span·class="o">.</span><span·class="vm">__doc__</span>·<span·class="o">=</span>·<span·class="s2">&quot;&quot;&quot;</span>117 <span·class="n">ensure_csrf_cookie</span><span·class="o">.</span><span·class="vm">__doc__</span>·<span·class="o">=</span>·<span·class="s2">&quot;&quot;&quot;</span>
117 <span·class="s2">Use·this·decorator·to·ensure·that·a·view·sets·a·CSRF·cookie,·whether·or·not·it</span>118 <span·class="s2">Use·this·decorator·to·ensure·that·a·view·sets·a·CSRF·cookie,·whether·or·not·it</span>
118 <span·class="s2">uses·the·csrf_token·template·tag,·or·the·CsrfViewMiddleware·is·used.</span>119 <span·class="s2">uses·the·csrf_token·template·tag,·or·the·CsrfViewMiddleware·is·used.</span>
119 <span·class="s2">&quot;&quot;&quot;</span>120 <span·class="s2">&quot;&quot;&quot;</span>
  
  
120 <div·class="viewcode-block"·id="csrf_exempt">121 <div·class="viewcode-block"·id="csrf_exempt">
121 <a·class="viewcode-back"·href="../../../../ref/csrf.html#django.views.decorators.csrf.csrf_exempt">[docs]</a>122 <a·class="viewcode-back"·href="../../../../ref/csrf.html#django.views.decorators.csrf.csrf_exempt">[documenti]</a>
122 <span·class="k">def</span>·<span·class="nf">csrf_exempt</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>123 <span·class="k">def</span>·<span·class="nf">csrf_exempt</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">):</span>
123 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Mark·a·view·function·as·being·exempt·from·the·CSRF·view·protection.&quot;&quot;&quot;</span>124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;Mark·a·view·function·as·being·exempt·from·the·CSRF·view·protection.&quot;&quot;&quot;</span>
  
124 ····<span·class="c1">#·view_func.csrf_exempt·=·True·would·also·work,·but·decorators·are·nicer</span>125 ····<span·class="c1">#·view_func.csrf_exempt·=·True·would·also·work,·but·decorators·are·nicer</span>
125 ····<span·class="c1">#·if·they·don&#39;t·have·side·effects,·so·return·a·new·function.</span>126 ····<span·class="c1">#·if·they·don&#39;t·have·side·effects,·so·return·a·new·function.</span>
126 ····<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">)</span>127 ····<span·class="nd">@wraps</span><span·class="p">(</span><span·class="n">view_func</span><span·class="p">)</span>
127 ····<span·class="k">def</span>·<span·class="nf">wrapper_view</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>128 ····<span·class="k">def</span>·<span·class="nf">wrapper_view</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
Offset 141, 35 lines modifiedOffset 142, 35 lines modified
141 ······142 ······
142 ········143 ········
143 ··········<div·class="yui-b"·id="sidebar">144 ··········<div·class="yui-b"·id="sidebar">
144 ············145 ············
145 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">146 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
146 ········<div·class="sphinxsidebarwrapper">147 ········<div·class="sphinxsidebarwrapper">
147 <search·id="searchbox"·style="display:·none"·role="search">148 <search·id="searchbox"·style="display:·none"·role="search">
148 ··<h3·id="searchlabel">Quick·search</h3>149 ··<h3·id="searchlabel">Ricerca·veloce</h3>
149 ····<div·class="searchformwrapper">150 ····<div·class="searchformwrapper">
150 ····<form·class="search"·action="../../../../search.html"·method="get">151 ····<form·class="search"·action="../../../../search.html"·method="get">
151 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>152 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
152 ······<input·type="submit"·value="Go"·/>153 ······<input·type="submit"·value="Vai"·/>
153 ····</form>154 ····</form>
154 ····</div>155 ····</div>
155 </search>156 </search>
156 <script>document.getElementById('searchbox').style.display·=·"block"</script>157 <script>document.getElementById('searchbox').style.display·=·"block"</script>
157 ········</div>158 ········</div>
158 ······</div>159 ······</div>
159 ··············<h3>Last·update:</h3>160 ··············<h3>Last·update:</h3>
160 ··············<p·class="topless">Sep·03,·2024</p>161 ··············<p·class="topless">set·03,·2024</p>
161 ··········</div>162 ··········</div>
162 ········163 ········
163 ······164 ······
164 ····</div>165 ····</div>
  
165 ····<div·id="ft">166 ····<div·id="ft">
166 ······<div·class="nav">167 ······<div·class="nav">
167 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>168 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
168 ····</div>169 ····</div>
169 ··</div>170 ··</div>
  
170 ······<div·class="clearer"></div>171 ······<div·class="clearer"></div>
171 ····</div>172 ····</div>
172 ··</body>173 ··</body>
173 </html>174 </html>
2.05 KB
html2text {}
Max HTML report size reached
8.42 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/debug.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.debug·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.debug·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-debug">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-debug">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.debug</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.debug</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpRequest</span>73 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpRequest</span>
  
  
73 <div·class="viewcode-block"·id="sensitive_variables">74 <div·class="viewcode-block"·id="sensitive_variables">
74 <a·class="viewcode-back"·href="../../../../howto/error-reporting.html#django.views.decorators.debug.sensitive_variables">[docs]</a>75 <a·class="viewcode-back"·href="../../../../howto/error-reporting.html#django.views.decorators.debug.sensitive_variables">[documenti]</a>
75 <span·class="k">def</span>·<span·class="nf">sensitive_variables</span><span·class="p">(</span><span·class="o">*</span><span·class="n">variables</span><span·class="p">):</span>76 <span·class="k">def</span>·<span·class="nf">sensitive_variables</span><span·class="p">(</span><span·class="o">*</span><span·class="n">variables</span><span·class="p">):</span>
76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
77 <span·class="sd">····Indicate·which·variables·used·in·the·decorated·function·are·sensitive·so</span>78 <span·class="sd">····Indicate·which·variables·used·in·the·decorated·function·are·sensitive·so</span>
78 <span·class="sd">····that·those·variables·can·later·be·treated·in·a·special·way,·for·example</span>79 <span·class="sd">····that·those·variables·can·later·be·treated·in·a·special·way,·for·example</span>
79 <span·class="sd">····by·hiding·them·when·logging·unhandled·exceptions.</span>80 <span·class="sd">····by·hiding·them·when·logging·unhandled·exceptions.</span>
  
80 <span·class="sd">····Accept·two·forms:</span>81 <span·class="sd">····Accept·two·forms:</span>
Offset 119, 15 lines modifiedOffset 120, 15 lines modified
119 ········<span·class="k">return</span>·<span·class="n">sensitive_variables_wrapper</span>120 ········<span·class="k">return</span>·<span·class="n">sensitive_variables_wrapper</span>
  
120 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>121 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>
  
  
  
121 <div·class="viewcode-block"·id="sensitive_post_parameters">122 <div·class="viewcode-block"·id="sensitive_post_parameters">
122 <a·class="viewcode-back"·href="../../../../howto/error-reporting.html#django.views.decorators.debug.sensitive_post_parameters">[docs]</a>123 <a·class="viewcode-back"·href="../../../../howto/error-reporting.html#django.views.decorators.debug.sensitive_post_parameters">[documenti]</a>
123 <span·class="k">def</span>·<span·class="nf">sensitive_post_parameters</span><span·class="p">(</span><span·class="o">*</span><span·class="n">parameters</span><span·class="p">):</span>124 <span·class="k">def</span>·<span·class="nf">sensitive_post_parameters</span><span·class="p">(</span><span·class="o">*</span><span·class="n">parameters</span><span·class="p">):</span>
124 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>125 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
125 <span·class="sd">····Indicate·which·POST·parameters·used·in·the·decorated·view·are·sensitive,</span>126 <span·class="sd">····Indicate·which·POST·parameters·used·in·the·decorated·view·are·sensitive,</span>
126 <span·class="sd">····so·that·those·parameters·can·later·be·treated·in·a·special·way,·for·example</span>127 <span·class="sd">····so·that·those·parameters·can·later·be·treated·in·a·special·way,·for·example</span>
127 <span·class="sd">····by·hiding·them·when·logging·unhandled·exceptions.</span>128 <span·class="sd">····by·hiding·them·when·logging·unhandled·exceptions.</span>
  
128 <span·class="sd">····Accept·two·forms:</span>129 <span·class="sd">····Accept·two·forms:</span>
Offset 181, 35 lines modifiedOffset 182, 35 lines modified
181 ······182 ······
182 ········183 ········
183 ··········<div·class="yui-b"·id="sidebar">184 ··········<div·class="yui-b"·id="sidebar">
184 ············185 ············
185 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">186 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
186 ········<div·class="sphinxsidebarwrapper">187 ········<div·class="sphinxsidebarwrapper">
187 <search·id="searchbox"·style="display:·none"·role="search">188 <search·id="searchbox"·style="display:·none"·role="search">
188 ··<h3·id="searchlabel">Quick·search</h3>189 ··<h3·id="searchlabel">Ricerca·veloce</h3>
189 ····<div·class="searchformwrapper">190 ····<div·class="searchformwrapper">
190 ····<form·class="search"·action="../../../../search.html"·method="get">191 ····<form·class="search"·action="../../../../search.html"·method="get">
191 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>192 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
192 ······<input·type="submit"·value="Go"·/>193 ······<input·type="submit"·value="Vai"·/>
193 ····</form>194 ····</form>
194 ····</div>195 ····</div>
195 </search>196 </search>
196 <script>document.getElementById('searchbox').style.display·=·"block"</script>197 <script>document.getElementById('searchbox').style.display·=·"block"</script>
197 ········</div>198 ········</div>
198 ······</div>199 ······</div>
199 ··············<h3>Last·update:</h3>200 ··············<h3>Last·update:</h3>
200 ··············<p·class="topless">Sep·03,·2024</p>201 ··············<p·class="topless">set·03,·2024</p>
201 ··········</div>202 ··········</div>
202 ········203 ········
203 ······204 ······
204 ····</div>205 ····</div>
  
205 ····<div·id="ft">206 ····<div·id="ft">
206 ······<div·class="nav">207 ······<div·class="nav">
207 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>208 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
208 ····</div>209 ····</div>
209 ··</div>210 ··</div>
  
210 ······<div·class="clearer"></div>211 ······<div·class="clearer"></div>
211 ····</div>212 ····</div>
212 ··</body>213 ··</body>
213 </html>214 </html>
2.12 KB
html2text {}
Max HTML report size reached
11.8 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/http.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.http·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.http·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-http">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-http">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.http</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.http</h1><div·class="highlight"><pre>
71 <span></span><span·class="sd">&quot;&quot;&quot;</span>72 <span></span><span·class="sd">&quot;&quot;&quot;</span>
72 <span·class="sd">Decorators·for·views·based·on·HTTP·headers.</span>73 <span·class="sd">Decorators·for·views·based·on·HTTP·headers.</span>
73 <span·class="sd">&quot;&quot;&quot;</span>74 <span·class="sd">&quot;&quot;&quot;</span>
74 <span·class="kn">import</span>·<span·class="nn">datetime</span>75 <span·class="kn">import</span>·<span·class="nn">datetime</span>
75 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>76 <span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
76 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponseNotAllowed</span>77 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponseNotAllowed</span>
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">http_date</span><span·class="p">,</span>·<span·class="n">quote_etag</span>86 <span·class="kn">from</span>·<span·class="nn">django.utils.http</span>·<span·class="kn">import</span>·<span·class="n">http_date</span><span·class="p">,</span>·<span·class="n">quote_etag</span>
86 <span·class="kn">from</span>·<span·class="nn">django.utils.log</span>·<span·class="kn">import</span>·<span·class="n">log_response</span>87 <span·class="kn">from</span>·<span·class="nn">django.utils.log</span>·<span·class="kn">import</span>·<span·class="n">log_response</span>
  
87 <span·class="n">conditional_page</span>·<span·class="o">=</span>·<span·class="n">decorator_from_middleware</span><span·class="p">(</span><span·class="n">ConditionalGetMiddleware</span><span·class="p">)</span>88 <span·class="n">conditional_page</span>·<span·class="o">=</span>·<span·class="n">decorator_from_middleware</span><span·class="p">(</span><span·class="n">ConditionalGetMiddleware</span><span·class="p">)</span>
  
  
88 <div·class="viewcode-block"·id="require_http_methods">89 <div·class="viewcode-block"·id="require_http_methods">
89 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.require_http_methods">[docs]</a>90 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.require_http_methods">[documenti]</a>
90 <span·class="k">def</span>·<span·class="nf">require_http_methods</span><span·class="p">(</span><span·class="n">request_method_list</span><span·class="p">):</span>91 <span·class="k">def</span>·<span·class="nf">require_http_methods</span><span·class="p">(</span><span·class="n">request_method_list</span><span·class="p">):</span>
91 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>92 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
92 <span·class="sd">····Decorator·to·make·a·view·only·accept·particular·request·methods.··Usage::</span>93 <span·class="sd">····Decorator·to·make·a·view·only·accept·particular·request·methods.··Usage::</span>
  
93 <span·class="sd">········@require_http_methods([&quot;GET&quot;,·&quot;POST&quot;])</span>94 <span·class="sd">········@require_http_methods([&quot;GET&quot;,·&quot;POST&quot;])</span>
94 <span·class="sd">········def·my_view(request):</span>95 <span·class="sd">········def·my_view(request):</span>
95 <span·class="sd">············#·I·can·assume·now·that·only·GET·or·POST·requests·make·it·this·far</span>96 <span·class="sd">············#·I·can·assume·now·that·only·GET·or·POST·requests·make·it·this·far</span>
Offset 132, 15 lines modifiedOffset 133, 15 lines modified
132 <span·class="n">require_safe</span>·<span·class="o">=</span>·<span·class="n">require_http_methods</span><span·class="p">([</span><span·class="s2">&quot;GET&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;HEAD&quot;</span><span·class="p">])</span>133 <span·class="n">require_safe</span>·<span·class="o">=</span>·<span·class="n">require_http_methods</span><span·class="p">([</span><span·class="s2">&quot;GET&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;HEAD&quot;</span><span·class="p">])</span>
133 <span·class="n">require_safe</span><span·class="o">.</span><span·class="vm">__doc__</span>·<span·class="o">=</span>·<span·class="p">(</span>134 <span·class="n">require_safe</span><span·class="o">.</span><span·class="vm">__doc__</span>·<span·class="o">=</span>·<span·class="p">(</span>
134 ····<span·class="s2">&quot;Decorator·to·require·that·a·view·only·accepts·safe·methods:·GET·and·HEAD.&quot;</span>135 ····<span·class="s2">&quot;Decorator·to·require·that·a·view·only·accepts·safe·methods:·GET·and·HEAD.&quot;</span>
135 <span·class="p">)</span>136 <span·class="p">)</span>
  
  
136 <div·class="viewcode-block"·id="condition">137 <div·class="viewcode-block"·id="condition">
137 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.condition">[docs]</a>138 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.condition">[documenti]</a>
138 <span·class="k">def</span>·<span·class="nf">condition</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">last_modified_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>139 <span·class="k">def</span>·<span·class="nf">condition</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="n">last_modified_func</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">):</span>
139 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>140 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
140 <span·class="sd">····Decorator·to·support·conditional·retrieval·(or·change)·for·a·view</span>141 <span·class="sd">····Decorator·to·support·conditional·retrieval·(or·change)·for·a·view</span>
141 <span·class="sd">····function.</span>142 <span·class="sd">····function.</span>
  
142 <span·class="sd">····The·parameters·are·callables·to·compute·the·ETag·and·last·modified·time·for</span>143 <span·class="sd">····The·parameters·are·callables·to·compute·the·ETag·and·last·modified·time·for</span>
143 <span·class="sd">····the·requested·resource,·respectively.·The·callables·are·passed·the·same</span>144 <span·class="sd">····the·requested·resource,·respectively.·The·callables·are·passed·the·same</span>
Offset 200, 22 lines modifiedOffset 201, 22 lines modified
  
200 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>201 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>
  
  
  
201 <span·class="c1">#·Shortcut·decorators·for·common·cases·based·on·ETag·or·Last-Modified·only</span>202 <span·class="c1">#·Shortcut·decorators·for·common·cases·based·on·ETag·or·Last-Modified·only</span>
202 <div·class="viewcode-block"·id="etag">203 <div·class="viewcode-block"·id="etag">
203 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.etag">[docs]</a>204 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.etag">[documenti]</a>
204 <span·class="k">def</span>·<span·class="nf">etag</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="p">):</span>205 <span·class="k">def</span>·<span·class="nf">etag</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="p">):</span>
205 ····<span·class="k">return</span>·<span·class="n">condition</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="o">=</span><span·class="n">etag_func</span><span·class="p">)</span></div>206 ····<span·class="k">return</span>·<span·class="n">condition</span><span·class="p">(</span><span·class="n">etag_func</span><span·class="o">=</span><span·class="n">etag_func</span><span·class="p">)</span></div>
  
  
  
206 <div·class="viewcode-block"·id="last_modified">207 <div·class="viewcode-block"·id="last_modified">
207 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.last_modified">[docs]</a>208 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.http.last_modified">[documenti]</a>
208 <span·class="k">def</span>·<span·class="nf">last_modified</span><span·class="p">(</span><span·class="n">last_modified_func</span><span·class="p">):</span>209 <span·class="k">def</span>·<span·class="nf">last_modified</span><span·class="p">(</span><span·class="n">last_modified_func</span><span·class="p">):</span>
209 ····<span·class="k">return</span>·<span·class="n">condition</span><span·class="p">(</span><span·class="n">last_modified_func</span><span·class="o">=</span><span·class="n">last_modified_func</span><span·class="p">)</span></div>210 ····<span·class="k">return</span>·<span·class="n">condition</span><span·class="p">(</span><span·class="n">last_modified_func</span><span·class="o">=</span><span·class="n">last_modified_func</span><span·class="p">)</span></div>
  
210 </pre></div>211 </pre></div>
  
211 ··········</div>212 ··········</div>
212 ········</div>213 ········</div>
Offset 223, 35 lines modifiedOffset 224, 35 lines modified
223 ······224 ······
224 ········225 ········
225 ··········<div·class="yui-b"·id="sidebar">226 ··········<div·class="yui-b"·id="sidebar">
226 ············227 ············
227 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">228 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
228 ········<div·class="sphinxsidebarwrapper">229 ········<div·class="sphinxsidebarwrapper">
229 <search·id="searchbox"·style="display:·none"·role="search">230 <search·id="searchbox"·style="display:·none"·role="search">
230 ··<h3·id="searchlabel">Quick·search</h3>231 ··<h3·id="searchlabel">Ricerca·veloce</h3>
231 ····<div·class="searchformwrapper">232 ····<div·class="searchformwrapper">
232 ····<form·class="search"·action="../../../../search.html"·method="get">233 ····<form·class="search"·action="../../../../search.html"·method="get">
233 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>234 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
234 ······<input·type="submit"·value="Go"·/>235 ······<input·type="submit"·value="Vai"·/>
235 ····</form>236 ····</form>
236 ····</div>237 ····</div>
237 </search>238 </search>
238 <script>document.getElementById('searchbox').style.display·=·"block"</script>239 <script>document.getElementById('searchbox').style.display·=·"block"</script>
239 ········</div>240 ········</div>
Max diff block lines reached; 494/9141 bytes (5.40%) of diff not shown.
2.74 KB
html2text {}
Max HTML report size reached
8.15 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/decorators/vary.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.decorators.vary·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.decorators.vary·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../../templatebuiltins.js"></script>16 <script·src="../../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 38 lines modifiedOffset 51, 38 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-decorators-vary">69 ··········<div·class="yui-g"·id="_modules-django-views-decorators-vary">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.decorators.vary</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.decorators.vary</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">functools</span>·<span·class="kn">import</span>·<span·class="n">wraps</span>
  
72 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>73 <span·class="kn">from</span>·<span·class="nn">django.utils.cache</span>·<span·class="kn">import</span>·<span·class="n">patch_vary_headers</span>
  
  
73 <div·class="viewcode-block"·id="vary_on_headers">74 <div·class="viewcode-block"·id="vary_on_headers">
74 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.vary.vary_on_headers">[docs]</a>75 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.vary.vary_on_headers">[documenti]</a>
75 <span·class="k">def</span>·<span·class="nf">vary_on_headers</span><span·class="p">(</span><span·class="o">*</span><span·class="n">headers</span><span·class="p">):</span>76 <span·class="k">def</span>·<span·class="nf">vary_on_headers</span><span·class="p">(</span><span·class="o">*</span><span·class="n">headers</span><span·class="p">):</span>
76 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
77 <span·class="sd">····A·view·decorator·that·adds·the·specified·headers·to·the·Vary·header·of·the</span>78 <span·class="sd">····A·view·decorator·that·adds·the·specified·headers·to·the·Vary·header·of·the</span>
78 <span·class="sd">····response.·Usage:</span>79 <span·class="sd">····response.·Usage:</span>
  
79 <span·class="sd">·······@vary_on_headers(&#39;Cookie&#39;,·&#39;Accept-language&#39;)</span>80 <span·class="sd">·······@vary_on_headers(&#39;Cookie&#39;,·&#39;Accept-language&#39;)</span>
80 <span·class="sd">·······def·index(request):</span>81 <span·class="sd">·······def·index(request):</span>
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 ········<span·class="k">return</span>·<span·class="n">inner_func</span>101 ········<span·class="k">return</span>·<span·class="n">inner_func</span>
  
101 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>102 ····<span·class="k">return</span>·<span·class="n">decorator</span></div>
  
  
  
102 <div·class="viewcode-block"·id="vary_on_cookie">103 <div·class="viewcode-block"·id="vary_on_cookie">
103 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.vary.vary_on_cookie">[docs]</a>104 <a·class="viewcode-back"·href="../../../../topics/http/decorators.html#django.views.decorators.vary.vary_on_cookie">[documenti]</a>
104 <span·class="k">def</span>·<span·class="nf">vary_on_cookie</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>105 <span·class="k">def</span>·<span·class="nf">vary_on_cookie</span><span·class="p">(</span><span·class="n">func</span><span·class="p">):</span>
105 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>106 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
106 <span·class="sd">····A·view·decorator·that·adds·&quot;Cookie&quot;·to·the·Vary·header·of·a·response.·This</span>107 <span·class="sd">····A·view·decorator·that·adds·&quot;Cookie&quot;·to·the·Vary·header·of·a·response.·This</span>
107 <span·class="sd">····indicates·that·a·page&#39;s·contents·depends·on·cookies.·Usage:</span>108 <span·class="sd">····indicates·that·a·page&#39;s·contents·depends·on·cookies.·Usage:</span>
  
108 <span·class="sd">········@vary_on_cookie</span>109 <span·class="sd">········@vary_on_cookie</span>
109 <span·class="sd">········def·index(request):</span>110 <span·class="sd">········def·index(request):</span>
Offset 131, 35 lines modifiedOffset 132, 35 lines modified
131 ······132 ······
132 ········133 ········
133 ··········<div·class="yui-b"·id="sidebar">134 ··········<div·class="yui-b"·id="sidebar">
134 ············135 ············
135 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">136 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
136 ········<div·class="sphinxsidebarwrapper">137 ········<div·class="sphinxsidebarwrapper">
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../../../../search.html"·method="get">141 ····<form·class="search"·action="../../../../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
157 ····<a·href="../../../index.html"·title="Module·code"·accesskey="U">up</a></div>158 ····<a·href="../../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
158 ····</div>159 ····</div>
159 ··</div>160 ··</div>
  
160 ······<div·class="clearer"></div>161 ······<div·class="clearer"></div>
161 ····</div>162 ····</div>
162 ··</body>163 ··</body>
163 </html>164 </html>
2.01 KB
html2text {}
Max HTML report size reached
934 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/generic/dates.html
Max HTML report size reached
11.0 KB
./usr/share/doc/python-django-doc/html/_modules/django/views/i18n.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django.views.i18n·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.views.i18n·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../../../templatebuiltins.js"></script>16 <script·src="../../../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="../../index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="../../index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django-views-i18n">69 ··········<div·class="yui-g"·id="_modules-django-views-i18n">
69 ············70 ············
70 ··<h1>Source·code·for·django.views.i18n</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django.views.i18n</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>72 <span></span><span·class="kn">import</span>·<span·class="nn">json</span>
72 <span·class="kn">import</span>·<span·class="nn">os</span>73 <span·class="kn">import</span>·<span·class="nn">os</span>
73 <span·class="kn">import</span>·<span·class="nn">re</span>74 <span·class="kn">import</span>·<span·class="nn">re</span>
  
74 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>75 <span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
75 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>76 <span·class="kn">from</span>·<span·class="nn">django.conf</span>·<span·class="kn">import</span>·<span·class="n">settings</span>
76 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span><span·class="p">,</span>·<span·class="n">HttpResponseRedirect</span><span·class="p">,</span>·<span·class="n">JsonResponse</span>77 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span><span·class="p">,</span>·<span·class="n">HttpResponseRedirect</span><span·class="p">,</span>·<span·class="n">JsonResponse</span>
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 <span·class="kn">from</span>·<span·class="nn">django.utils.translation.trans_real</span>·<span·class="kn">import</span>·<span·class="n">DjangoTranslation</span>87 <span·class="kn">from</span>·<span·class="nn">django.utils.translation.trans_real</span>·<span·class="kn">import</span>·<span·class="n">DjangoTranslation</span>
87 <span·class="kn">from</span>·<span·class="nn">django.views.generic</span>·<span·class="kn">import</span>·<span·class="n">View</span>88 <span·class="kn">from</span>·<span·class="nn">django.views.generic</span>·<span·class="kn">import</span>·<span·class="n">View</span>
  
88 <span·class="n">LANGUAGE_QUERY_PARAMETER</span>·<span·class="o">=</span>·<span·class="s2">&quot;language&quot;</span>89 <span·class="n">LANGUAGE_QUERY_PARAMETER</span>·<span·class="o">=</span>·<span·class="s2">&quot;language&quot;</span>
  
  
89 <div·class="viewcode-block"·id="set_language">90 <div·class="viewcode-block"·id="set_language">
90 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.set_language">[docs]</a>91 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.set_language">[documenti]</a>
91 <span·class="k">def</span>·<span·class="nf">set_language</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>92 <span·class="k">def</span>·<span·class="nf">set_language</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
92 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>93 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
93 <span·class="sd">····Redirect·to·a·given·URL·while·setting·the·chosen·language·in·the·session</span>94 <span·class="sd">····Redirect·to·a·given·URL·while·setting·the·chosen·language·in·the·session</span>
94 <span·class="sd">····(if·enabled)·and·in·a·cookie.·The·URL·and·the·language·code·need·to·be</span>95 <span·class="sd">····(if·enabled)·and·in·a·cookie.·The·URL·and·the·language·code·need·to·be</span>
95 <span·class="sd">····specified·in·the·request·parameters.</span>96 <span·class="sd">····specified·in·the·request·parameters.</span>
  
96 <span·class="sd">····Since·this·view·changes·how·the·user·will·see·the·rest·of·the·site,·it·must</span>97 <span·class="sd">····Since·this·view·changes·how·the·user·will·see·the·rest·of·the·site,·it·must</span>
Offset 263, 15 lines modifiedOffset 264, 15 lines modified
263 <span·class="s2">··}</span>264 <span·class="s2">··}</span>
264 <span·class="s2">};</span>265 <span·class="s2">};</span>
265 <span·class="s2">{</span><span·class="si">%·e</span><span·class="s2">ndautoescape·%}</span>266 <span·class="s2">{</span><span·class="si">%·e</span><span·class="s2">ndautoescape·%}</span>
266 <span·class="s2">&quot;&quot;&quot;</span>··<span·class="c1">#·NOQA</span>267 <span·class="s2">&quot;&quot;&quot;</span>··<span·class="c1">#·NOQA</span>
  
  
267 <div·class="viewcode-block"·id="JavaScriptCatalog">268 <div·class="viewcode-block"·id="JavaScriptCatalog">
268 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.JavaScriptCatalog">[docs]</a>269 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.JavaScriptCatalog">[documenti]</a>
269 <span·class="k">class</span>·<span·class="nc">JavaScriptCatalog</span><span·class="p">(</span><span·class="n">View</span><span·class="p">):</span>270 <span·class="k">class</span>·<span·class="nc">JavaScriptCatalog</span><span·class="p">(</span><span·class="n">View</span><span·class="p">):</span>
270 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>271 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
271 <span·class="sd">····Return·the·selected·language·catalog·as·a·JavaScript·library.</span>272 <span·class="sd">····Return·the·selected·language·catalog·as·a·JavaScript·library.</span>
  
272 <span·class="sd">····Receive·the·list·of·packages·to·check·for·translations·in·the·`packages`</span>273 <span·class="sd">····Receive·the·list·of·packages·to·check·for·translations·in·the·`packages`</span>
273 <span·class="sd">····kwarg·either·from·the·extra·dictionary·passed·to·the·path()·function·or·as</span>274 <span·class="sd">····kwarg·either·from·the·extra·dictionary·passed·to·the·path()·function·or·as</span>
274 <span·class="sd">····a·plus-sign·delimited·string·from·the·request.·Default·is·&#39;django.conf&#39;.</span>275 <span·class="sd">····a·plus-sign·delimited·string·from·the·request.·Default·is·&#39;django.conf&#39;.</span>
Offset 399, 15 lines modifiedOffset 400, 15 lines modified
399 ········<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span>400 ········<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span>
400 ············<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)),</span>·<span·class="s1">&#39;text/javascript;·charset=&quot;utf-8&quot;&#39;</span>401 ············<span·class="n">template</span><span·class="o">.</span><span·class="n">render</span><span·class="p">(</span><span·class="n">Context</span><span·class="p">(</span><span·class="n">context</span><span·class="p">)),</span>·<span·class="s1">&#39;text/javascript;·charset=&quot;utf-8&quot;&#39;</span>
401 ········<span·class="p">)</span></div>402 ········<span·class="p">)</span></div>
  
  
  
402 <div·class="viewcode-block"·id="JSONCatalog">403 <div·class="viewcode-block"·id="JSONCatalog">
403 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.JSONCatalog">[docs]</a>404 <a·class="viewcode-back"·href="../../../topics/i18n/translation.html#django.views.i18n.JSONCatalog">[documenti]</a>
404 <span·class="k">class</span>·<span·class="nc">JSONCatalog</span><span·class="p">(</span><span·class="n">JavaScriptCatalog</span><span·class="p">):</span>405 <span·class="k">class</span>·<span·class="nc">JSONCatalog</span><span·class="p">(</span><span·class="n">JavaScriptCatalog</span><span·class="p">):</span>
405 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>406 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
406 <span·class="sd">····Return·the·selected·language·catalog·as·a·JSON·object.</span>407 <span·class="sd">····Return·the·selected·language·catalog·as·a·JSON·object.</span>
  
407 <span·class="sd">····Receive·the·same·parameters·as·JavaScriptCatalog·and·return·a·response</span>408 <span·class="sd">····Receive·the·same·parameters·as·JavaScriptCatalog·and·return·a·response</span>
408 <span·class="sd">····with·a·JSON·object·of·the·following·format:</span>409 <span·class="sd">····with·a·JSON·object·of·the·following·format:</span>
  
Offset 433, 35 lines modifiedOffset 434, 35 lines modified
433 ······434 ······
434 ········435 ········
435 ··········<div·class="yui-b"·id="sidebar">436 ··········<div·class="yui-b"·id="sidebar">
436 ············437 ············
437 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">438 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
438 ········<div·class="sphinxsidebarwrapper">439 ········<div·class="sphinxsidebarwrapper">
439 <search·id="searchbox"·style="display:·none"·role="search">440 <search·id="searchbox"·style="display:·none"·role="search">
440 ··<h3·id="searchlabel">Quick·search</h3>441 ··<h3·id="searchlabel">Ricerca·veloce</h3>
441 ····<div·class="searchformwrapper">442 ····<div·class="searchformwrapper">
442 ····<form·class="search"·action="../../../search.html"·method="get">443 ····<form·class="search"·action="../../../search.html"·method="get">
443 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>444 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
444 ······<input·type="submit"·value="Go"·/>445 ······<input·type="submit"·value="Vai"·/>
445 ····</form>446 ····</form>
446 ····</div>447 ····</div>
447 </search>448 </search>
448 <script>document.getElementById('searchbox').style.display·=·"block"</script>449 <script>document.getElementById('searchbox').style.display·=·"block"</script>
449 ········</div>450 ········</div>
450 ······</div>451 ······</div>
451 ··············<h3>Last·update:</h3>452 ··············<h3>Last·update:</h3>
452 ··············<p·class="topless">Sep·03,·2024</p>453 ··············<p·class="topless">set·03,·2024</p>
453 ··········</div>454 ··········</div>
454 ········455 ········
455 ······456 ······
456 ····</div>457 ····</div>
Max diff block lines reached; 299/8277 bytes (3.61%) of diff not shown.
2.75 KB
html2text {}
Max HTML report size reached
6.92 KB
./usr/share/doc/python-django-doc/html/_modules/django.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../templatebuiltins.js"></script>16 <script·src="../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 40 lines modifiedOffset 51, 40 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·href="index.html"·title="Module·code"·accesskey="U">up</a></div>64 ····<a·href="index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-django">69 ··········<div·class="yui-g"·id="_modules-django">
69 ············70 ············
70 ··<h1>Source·code·for·django</h1><div·class="highlight"><pre>71 ··<h1>Codice·sorgente·per·django</h1><div·class="highlight"><pre>
71 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.version</span>·<span·class="kn">import</span>·<span·class="n">get_version</span>72 <span></span><span·class="kn">from</span>·<span·class="nn">django.utils.version</span>·<span·class="kn">import</span>·<span·class="n">get_version</span>
  
72 <span·class="n">VERSION</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">16</span><span·class="p">,</span>·<span·class="s2">&quot;final&quot;</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>73 <span·class="n">VERSION</span>·<span·class="o">=</span>·<span·class="p">(</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">2</span><span·class="p">,</span>·<span·class="mi">16</span><span·class="p">,</span>·<span·class="s2">&quot;final&quot;</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">)</span>
  
73 <span·class="n">__version__</span>·<span·class="o">=</span>·<span·class="n">get_version</span><span·class="p">(</span><span·class="n">VERSION</span><span·class="p">)</span>74 <span·class="n">__version__</span>·<span·class="o">=</span>·<span·class="n">get_version</span><span·class="p">(</span><span·class="n">VERSION</span><span·class="p">)</span>
  
  
74 <div·class="viewcode-block"·id="setup">75 <div·class="viewcode-block"·id="setup">
75 <a·class="viewcode-back"·href="../ref/applications.html#django.setup">[docs]</a>76 <a·class="viewcode-back"·href="../ref/applications.html#django.setup">[documenti]</a>
76 <span·class="k">def</span>·<span·class="nf">setup</span><span·class="p">(</span><span·class="n">set_prefix</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>77 <span·class="k">def</span>·<span·class="nf">setup</span><span·class="p">(</span><span·class="n">set_prefix</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">):</span>
77 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>78 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
78 <span·class="sd">····Configure·the·settings·(this·happens·as·a·side·effect·of·accessing·the</span>79 <span·class="sd">····Configure·the·settings·(this·happens·as·a·side·effect·of·accessing·the</span>
79 <span·class="sd">····first·setting),·configure·logging·and·populate·the·app·registry.</span>80 <span·class="sd">····first·setting),·configure·logging·and·populate·the·app·registry.</span>
80 <span·class="sd">····Set·the·thread-local·urlresolvers·script·prefix·if·`set_prefix`·is·True.</span>81 <span·class="sd">····Set·the·thread-local·urlresolvers·script·prefix·if·`set_prefix`·is·True.</span>
81 <span·class="sd">····&quot;&quot;&quot;</span>82 <span·class="sd">····&quot;&quot;&quot;</span>
82 ····<span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>83 ····<span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">apps</span>
Offset 106, 35 lines modifiedOffset 107, 35 lines modified
106 ······107 ······
107 ········108 ········
108 ··········<div·class="yui-b"·id="sidebar">109 ··········<div·class="yui-b"·id="sidebar">
109 ············110 ············
110 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">111 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
111 ········<div·class="sphinxsidebarwrapper">112 ········<div·class="sphinxsidebarwrapper">
112 <search·id="searchbox"·style="display:·none"·role="search">113 <search·id="searchbox"·style="display:·none"·role="search">
113 ··<h3·id="searchlabel">Quick·search</h3>114 ··<h3·id="searchlabel">Ricerca·veloce</h3>
114 ····<div·class="searchformwrapper">115 ····<div·class="searchformwrapper">
115 ····<form·class="search"·action="../search.html"·method="get">116 ····<form·class="search"·action="../search.html"·method="get">
116 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>117 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
117 ······<input·type="submit"·value="Go"·/>118 ······<input·type="submit"·value="Vai"·/>
118 ····</form>119 ····</form>
119 ····</div>120 ····</div>
120 </search>121 </search>
121 <script>document.getElementById('searchbox').style.display·=·"block"</script>122 <script>document.getElementById('searchbox').style.display·=·"block"</script>
122 ········</div>123 ········</div>
123 ······</div>124 ······</div>
124 ··············<h3>Last·update:</h3>125 ··············<h3>Last·update:</h3>
125 ··············<p·class="topless">Sep·03,·2024</p>126 ··············<p·class="topless">set·03,·2024</p>
126 ··········</div>127 ··········</div>
127 ········128 ········
128 ······129 ······
129 ····</div>130 ····</div>
  
130 ····<div·id="ft">131 ····<div·id="ft">
131 ······<div·class="nav">132 ······<div·class="nav">
132 ····<a·href="index.html"·title="Module·code"·accesskey="U">up</a></div>133 ····<a·href="index.html"·title="Codice·del·modulo"·accesskey="U">up</a></div>
133 ····</div>134 ····</div>
134 ··</div>135 ··</div>
  
135 ······<div·class="clearer"></div>136 ······<div·class="clearer"></div>
136 ····</div>137 ····</div>
137 ··</body>138 ··</body>
138 </html>139 </html>
1.66 KB
html2text {}
Max HTML report size reached
6.51 KB
./usr/share/doc/python-django-doc/html/_modules/index.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>Overview:·module·code·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Vista·generale:·codice·del·modulo·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
  
  
  
14 ·15 ·
15 <script·src="../templatebuiltins.js"></script>16 <script·src="../templatebuiltins.js"></script>
16 <script>17 <script>
17 (function($)·{18 (function($)·{
Offset 50, 31 lines modifiedOffset 51, 31 lines modified
50 })(jQuery);</script>51 })(jQuery);</script>
  
51 ··</head><body>52 ··</head><body>
  
52 ····<div·class="document">53 ····<div·class="document">
53 ··<div·id="custom-doc"·class="yui-t6">54 ··<div·id="custom-doc"·class="yui-t6">
54 ····<div·id="hd">55 ····<div·id="hd">
55 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>56 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
56 ······<div·id="global-nav">57 ······<div·id="global-nav">
57 ········<a·title="Home·page"·href="../index.html">Home</a>··|58 ········<a·title="Home·page"·href="../index.html">Home</a>··|
58 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|59 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
59 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|60 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
60 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>61 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
61 ······</div>62 ······</div>
62 ······<div·class="nav">63 ······<div·class="nav">
63 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a></div>64 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a></div>
64 ····</div>65 ····</div>
  
65 ····<div·id="bd">66 ····<div·id="bd">
66 ······<div·id="yui-main">67 ······<div·id="yui-main">
67 ········<div·class="yui-b">68 ········<div·class="yui-b">
68 ··········<div·class="yui-g"·id="_modules-index">69 ··········<div·class="yui-g"·id="_modules-index">
69 ············70 ············
70 ··<h1>All·modules·for·which·code·is·available</h1>71 ··<h1>Tutti·i·moduli·di·cui·è·disponibile·il·codice</h1>
71 <ul><li><a·href="asgiref/sync.html">asgiref.sync</a></li>72 <ul><li><a·href="asgiref/sync.html">asgiref.sync</a></li>
72 <li><a·href="django.html">django</a></li>73 <li><a·href="django.html">django</a></li>
73 <ul><li><a·href="django/apps/config.html">django.apps.config</a></li>74 <ul><li><a·href="django/apps/config.html">django.apps.config</a></li>
74 <li><a·href="django/conf/urls/i18n.html">django.conf.urls.i18n</a></li>75 <li><a·href="django/conf/urls/i18n.html">django.conf.urls.i18n</a></li>
75 <li><a·href="django/contrib/admin.html">django.contrib.admin</a></li>76 <li><a·href="django/contrib/admin.html">django.contrib.admin</a></li>
76 <ul><li><a·href="django/contrib/admin/decorators.html">django.contrib.admin.decorators</a></li>77 <ul><li><a·href="django/contrib/admin/decorators.html">django.contrib.admin.decorators</a></li>
77 <li><a·href="django/contrib/admin/options.html">django.contrib.admin.options</a></li>78 <li><a·href="django/contrib/admin/options.html">django.contrib.admin.options</a></li>
Offset 234, 35 lines modifiedOffset 235, 35 lines modified
234 ······235 ······
235 ········236 ········
236 ··········<div·class="yui-b"·id="sidebar">237 ··········<div·class="yui-b"·id="sidebar">
237 ············238 ············
238 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">239 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
239 ········<div·class="sphinxsidebarwrapper">240 ········<div·class="sphinxsidebarwrapper">
240 <search·id="searchbox"·style="display:·none"·role="search">241 <search·id="searchbox"·style="display:·none"·role="search">
241 ··<h3·id="searchlabel">Quick·search</h3>242 ··<h3·id="searchlabel">Ricerca·veloce</h3>
242 ····<div·class="searchformwrapper">243 ····<div·class="searchformwrapper">
243 ····<form·class="search"·action="../search.html"·method="get">244 ····<form·class="search"·action="../search.html"·method="get">
244 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>245 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
245 ······<input·type="submit"·value="Go"·/>246 ······<input·type="submit"·value="Vai"·/>
246 ····</form>247 ····</form>
247 ····</div>248 ····</div>
248 </search>249 </search>
249 <script>document.getElementById('searchbox').style.display·=·"block"</script>250 <script>document.getElementById('searchbox').style.display·=·"block"</script>
250 ········</div>251 ········</div>
251 ······</div>252 ······</div>
252 ··············<h3>Last·update:</h3>253 ··············<h3>Last·update:</h3>
253 ··············<p·class="topless">Sep·03,·2024</p>254 ··············<p·class="topless">set·03,·2024</p>
254 ··········</div>255 ··········</div>
255 ········256 ········
256 ······257 ······
257 ····</div>258 ····</div>
  
258 ····<div·id="ft">259 ····<div·id="ft">
259 ······<div·class="nav">260 ······<div·class="nav">
260 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a></div>261 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a></div>
261 ····</div>262 ····</div>
262 ··</div>263 ··</div>
  
263 ······<div·class="clearer"></div>264 ······<div·class="clearer"></div>
264 ····</div>265 ····</div>
265 ··</body>266 ··</body>
266 </html>267 </html>
45.0 B
encoding
    
Offset 1, 1 lines modifiedOffset 1, 1 lines modified
1 us-ascii1 utf-8
2.23 KB
html2text {}
Max HTML report size reached
487 B
./usr/share/doc/python-django-doc/html/_static/documentation_options.js
345 B
js-beautify {}
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 const·DOCUMENTATION_OPTIONS·=·{1 const·DOCUMENTATION_OPTIONS·=·{
2 ····VERSION:·'4.2.16',2 ····VERSION:·'4.2.16',
3 ····LANGUAGE:·'en',3 ····LANGUAGE:·'it',
4 ····COLLAPSE_INDEX:·false,4 ····COLLAPSE_INDEX:·false,
5 ····BUILDER:·'djangohtml',5 ····BUILDER:·'djangohtml',
6 ····FILE_SUFFIX:·'.html',6 ····FILE_SUFFIX:·'.html',
7 ····LINK_SUFFIX:·'.html',7 ····LINK_SUFFIX:·'.html',
8 ····HAS_SOURCE:·false,8 ····HAS_SOURCE:·false,
9 ····SOURCELINK_SUFFIX:·'.txt',9 ····SOURCELINK_SUFFIX:·'.txt',
10 ····NAVIGATION_WITH_KEYS:·false,10 ····NAVIGATION_WITH_KEYS:·false,
34.2 KB
./usr/share/doc/python-django-doc/html/contents.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="./">2 <html·lang="it"·data-content_root="./">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·documentation·contents·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·documentation·contents·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>
9 ····<script·src="_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="search.html"·/>
14 ····<link·rel="next"·title="Django·documentation"·href="index.html"·/>15 ····<link·rel="next"·title="Django·documentation"·href="index.html"·/>
  
  
  
15 ·16 ·
16 <script·src="templatebuiltins.js"></script>17 <script·src="templatebuiltins.js"></script>
17 <script>18 <script>
Offset 52, 23 lines modifiedOffset 53, 23 lines modified
52 })(jQuery);</script>53 })(jQuery);</script>
  
53 ··</head><body>54 ··</head><body>
  
54 ····<div·class="document">55 ····<div·class="document">
55 ··<div·id="custom-doc"·class="yui-t6">56 ··<div·id="custom-doc"·class="yui-t6">
56 ····<div·id="hd">57 ····<div·id="hd">
57 ······<h1><a·href="index.html">Django·4.2.16·documentation</a></h1>58 ······<h1><a·href="index.html">Documentazione·Django·4.2.16·</a></h1>
58 ······<div·id="global-nav">59 ······<div·id="global-nav">
59 ········<a·title="Home·page"·href="index.html">Home</a>··|60 ········<a·title="Home·page"·href="index.html">Home</a>··|
60 ········<a·title="Table·of·contents"·href="#">Table·of·contents</a>··|61 ········<a·title="Table·of·contents"·href="#">Table·of·contents</a>··|
61 ········<a·title="Global·index"·href="genindex.html">Index</a>··|62 ········<a·title="Global·index"·href="genindex.html">Index</a>··|
62 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>63 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>
63 ······</div>64 ······</div>
64 ······<div·class="nav">65 ······<div·class="nav">
65 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a>66 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a>
66 ···|67 ···|
67 ····<a·href="index.html"·title="Django·documentation">next</a>·&raquo;</div>68 ····<a·href="index.html"·title="Django·documentation">next</a>·&raquo;</div>
68 ····</div>69 ····</div>
  
69 ····<div·id="bd">70 ····<div·id="bd">
70 ······<div·id="yui-main">71 ······<div·id="yui-main">
71 ········<div·class="yui-b">72 ········<div·class="yui-b">
Offset 414, 15 lines modifiedOffset 415, 15 lines modified
414 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-views">Async·views</a></li>415 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-views">Async·views</a></li>
415 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-safety">Async·safety</a></li>416 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-safety">Async·safety</a></li>
416 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-adapter-functions">Async·adapter·functions</a></li>417 <li·class="toctree-l3"><a·class="reference·internal"·href="topics/async.html#async-adapter-functions">Async·adapter·functions</a></li>
417 </ul>418 </ul>
418 </li>419 </li>
419 </ul>420 </ul>
420 </li>421 </li>
421 <li·class="toctree-l1"><a·class="reference·internal"·href="howto/index.html">How-to·guides</a><ul>422 <li·class="toctree-l1"><a·class="reference·internal"·href="howto/index.html">«How-to»·guides</a><ul>
422 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/auth-remote-user.html">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a><ul>423 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/auth-remote-user.html">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a><ul>
423 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/auth-remote-user.html#configuration">Configuration</a></li>424 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/auth-remote-user.html#configuration">Configuration</a></li>
424 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/auth-remote-user.html#using-remote-user-on-login-pages-only">Using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·on·login·pages·only</a></li>425 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/auth-remote-user.html#using-remote-user-on-login-pages-only">Using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·on·login·pages·only</a></li>
425 </ul>426 </ul>
426 </li>427 </li>
427 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/csrf.html">How·to·use·Django’s·CSRF·protection</a><ul>428 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/csrf.html">How·to·use·Django’s·CSRF·protection</a><ul>
428 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/csrf.html#using-csrf-protection-with-ajax">Using·CSRF·protection·with·AJAX</a></li>429 <li·class="toctree-l3"><a·class="reference·internal"·href="howto/csrf.html#using-csrf-protection-with-ajax">Using·CSRF·protection·with·AJAX</a></li>
Offset 563, 22 lines modifiedOffset 564, 22 lines modified
563 </li>564 </li>
564 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/delete-app.html">How·to·delete·a·Django·application</a></li>565 <li·class="toctree-l2"><a·class="reference·internal"·href="howto/delete-app.html">How·to·delete·a·Django·application</a></li>
565 </ul>566 </ul>
566 </li>567 </li>
567 <li·class="toctree-l1"><a·class="reference·internal"·href="faq/index.html">Django·FAQ</a><ul>568 <li·class="toctree-l1"><a·class="reference·internal"·href="faq/index.html">Django·FAQ</a><ul>
568 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/general.html">FAQ:·General</a><ul>569 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/general.html">FAQ:·General</a><ul>
569 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-does-this-project-exist">Why·does·this·project·exist?</a></li>570 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-does-this-project-exist">Why·does·this·project·exist?</a></li>
570 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#what-does-django-mean-and-how-do-you-pronounce-it">What·does·Django·mean,·and·how·do·you·pronounce·it?</a></li>571 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#what-does-django-mean-and-how-do-you-pronounce-it">What·does·«Django»·mean,·and·how·do·you·pronounce·it?</a></li>
571 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#is-django-stable">Is·Django·stable?</a></li>572 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#is-django-stable">Is·Django·stable?</a></li>
572 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#does-django-scale">Does·Django·scale?</a></li>573 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#does-django-scale">Does·Django·scale?</a></li>
573 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#who-s-behind-this">Who’s·behind·this?</a></li>574 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#who-s-behind-this">Who’s·behind·this?</a></li>
574 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-is-django-licensed">How·is·Django·licensed?</a></li>575 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-is-django-licensed">How·is·Django·licensed?</a></li>
575 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-does-django-include-python-s-license-file">Why·does·Django·include·Python’s·license·file?</a></li>576 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-does-django-include-python-s-license-file">Why·does·Django·include·Python’s·license·file?</a></li>
576 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#which-sites-use-django">Which·sites·use·Django?</a></li>577 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#which-sites-use-django">Which·sites·use·Django?</a></li>
577 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·view,·and·the·View·the·template.·How·come·you·don’t·use·the·standard·names?</a></li>578 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·«view»,·and·the·View·the·«template».·How·come·you·don’t·use·the·standard·names?</a></li>
578 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#framework-x-does-feature-y-why-doesn-t-django">&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?</a></li>579 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#framework-x-does-feature-y-why-doesn-t-django">&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?</a></li>
579 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?</a></li>580 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?</a></li>
580 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#is-django-a-content-management-system-cms">Is·Django·a·content-management-system·(CMS)?</a></li>581 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#is-django-a-content-management-system-cms">Is·Django·a·content-management-system·(CMS)?</a></li>
581 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-can-i-download-the-django-documentation-to-read-it-offline">How·can·I·download·the·Django·documentation·to·read·it·offline?</a></li>582 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-can-i-download-the-django-documentation-to-read-it-offline">How·can·I·download·the·Django·documentation·to·read·it·offline?</a></li>
582 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-do-i-cite-django">How·do·I·cite·Django?</a></li>583 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/general.html#how-do-i-cite-django">How·do·I·cite·Django?</a></li>
583 </ul>584 </ul>
584 </li>585 </li>
Offset 613, 31 lines modifiedOffset 614, 31 lines modified
613 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#do-django-models-support-multiple-column-primary-keys">Do·Django·models·support·multiple-column·primary·keys?</a></li>614 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#do-django-models-support-multiple-column-primary-keys">Do·Django·models·support·multiple-column·primary·keys?</a></li>
614 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#does-django-support-nosql-databases">Does·Django·support·NoSQL·databases?</a></li>615 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#does-django-support-nosql-databases">Does·Django·support·NoSQL·databases?</a></li>
615 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>616 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/models.html#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>
616 </ul>617 </ul>
617 </li>618 </li>
618 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/admin.html">FAQ:·The·admin</a><ul>619 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/admin.html">FAQ:·The·admin</a><ul>
619 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>620 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>
620 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·Please·enter·a·correct·username·and·password·error.</a></li>621 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·«Please·enter·a·correct·username·and·password»·error.</a></li>
621 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>622 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>
622 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>623 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>
623 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>624 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>
624 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·list_filter·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>625 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·«list_filter»·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>
625 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>626 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>
626 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>627 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>
627 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>628 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>
628 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>629 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/admin.html#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>
629 </ul>630 </ul>
630 </li>631 </li>
631 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/contributing.html">FAQ:·Contributing·code</a><ul>632 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/contributing.html">FAQ:·Contributing·code</a><ul>
632 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>633 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>
633 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>634 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>
634 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>635 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>
635 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>636 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>
636 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·Ready·For·Checkin·myself?</a></li>637 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/contributing.html#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·«Ready·For·Checkin»·myself?</a></li>
637 </ul>638 </ul>
638 </li>639 </li>
639 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/troubleshooting.html">Troubleshooting</a><ul>640 <li·class="toctree-l2"><a·class="reference·internal"·href="faq/troubleshooting.html">Troubleshooting</a><ul>
640 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/troubleshooting.html#problems-running-django-admin">Problems·running·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code></a></li>641 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/troubleshooting.html#problems-running-django-admin">Problems·running·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code></a></li>
641 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/troubleshooting.html#miscellaneous">Miscellaneous</a></li>642 <li·class="toctree-l3"><a·class="reference·internal"·href="faq/troubleshooting.html#miscellaneous">Miscellaneous</a></li>
642 </ul>643 </ul>
643 </li>644 </li>
Offset 684, 15 lines modifiedOffset 685, 15 lines modified
684 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/flatpages.html">The·flatpages·app</a></li>685 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/flatpages.html">The·flatpages·app</a></li>
685 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/gis/index.html">GeoDjango</a></li>686 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/gis/index.html">GeoDjango</a></li>
686 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/humanize.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></li>687 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/humanize.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></li>
687 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/messages.html">The·messages·framework</a></li>688 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/messages.html">The·messages·framework</a></li>
688 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/postgres/index.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a></li>689 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/postgres/index.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a></li>
689 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/redirects.html">The·redirects·app</a></li>690 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/redirects.html">The·redirects·app</a></li>
690 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/sitemaps.html">The·sitemap·framework</a></li>691 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/sitemaps.html">The·sitemap·framework</a></li>
691 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/sites.html">The·sites·framework</a></li>692 <li·class="toctree-l3"><a·class="reference·internal"·href="ref/contrib/sites.html">The·«sites»·framework</a></li>
Max diff block lines reached; 4844/19650 bytes (24.65%) of diff not shown.
14.9 KB
html2text {}
Max HTML report size reached
24.3 KB
./usr/share/doc/python-django-doc/html/faq/admin.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·The·admin·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·The·admin·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·Contributing·code"·href="contributing.html"·/>15 ····<link·rel="next"·title="FAQ:·Contributing·code"·href="contributing.html"·/>
15 ····<link·rel="prev"·title="FAQ:·Databases·and·models"·href="models.html"·/>16 ····<link·rel="prev"·title="FAQ:·Databases·and·models"·href="models.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 19 lines modifiedOffset 81, 19 lines modified
80 ··<section·id="s-faq-the-admin">81 ··<section·id="s-faq-the-admin">
81 <span·id="faq-the-admin"></span><h1>FAQ:·The·admin<a·class="headerlink"·href="#faq-the-admin"·title="Link·to·this·heading">¶</a></h1>82 <span·id="faq-the-admin"></span><h1>FAQ:·The·admin<a·class="headerlink"·href="#faq-the-admin"·title="Link·to·this·heading">¶</a></h1>
82 <section·id="s-i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">83 <section·id="s-i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">
83 <span·id="i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages"></span><h2>I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.<a·class="headerlink"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages"·title="Link·to·this·heading">¶</a></h2>84 <span·id="i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages"></span><h2>I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.<a·class="headerlink"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages"·title="Link·to·this·heading">¶</a></h2>
84 <p>The·login·cookie·isn’t·being·set·correctly,·because·the·domain·of·the·cookie85 <p>The·login·cookie·isn’t·being·set·correctly,·because·the·domain·of·the·cookie
85 sent·out·by·Django·doesn’t·match·the·domain·in·your·browser.·Try·setting·the86 sent·out·by·Django·doesn’t·match·the·domain·in·your·browser.·Try·setting·the
86 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_DOMAIN"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span></code></a>·setting·to·match·your·domain.·For·example,·if87 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_DOMAIN"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span></code></a>·setting·to·match·your·domain.·For·example,·if
87 you’re·going·to·<a·class="reference·external"·href="https://www.example.com/admin/">https://www.example.com/admin/</a>·in·your·browser,·set88 you’re·going·to·«<a·class="reference·external"·href="https://www.example.com/admin/">https://www.example.com/admin/</a>»·in·your·browser,·set
88 <code·class="docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span>·<span·class="pre">=</span>·<span·class="pre">'www.example.com'</span></code>.</p>89 <code·class="docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span>·<span·class="pre">=</span>·<span·class="pre">'www.example.com'</span></code>.</p>
89 </section>90 </section>
90 <section·id="s-i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">91 <section·id="s-i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">
91 <span·id="i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error"></span><h2>I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·Please·enter·a·correct·username·and·password·error.<a·class="headerlink"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error"·title="Link·to·this·heading">¶</a></h2>92 <span·id="i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error"></span><h2>I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·«Please·enter·a·correct·username·and·password»·error.<a·class="headerlink"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error"·title="Link·to·this·heading">¶</a></h2>
92 <p>If·you’re·sure·your·username·and·password·are·correct,·make·sure·your·user93 <p>If·you’re·sure·your·username·and·password·are·correct,·make·sure·your·user
93 account·has·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active</span></code></a>·and94 account·has·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active</span></code></a>·and
94 <a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_staff"·title="django.contrib.auth.models.User.is_staff"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_staff</span></code></a>·set·to·True.·The·admin·site95 <a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_staff"·title="django.contrib.auth.models.User.is_staff"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_staff</span></code></a>·set·to·True.·The·admin·site
95 only·allows·access·to·users·with·those·two·fields·both·set·to·True.</p>96 only·allows·access·to·users·with·those·two·fields·both·set·to·True.</p>
96 </section>97 </section>
97 <section·id="s-how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">98 <section·id="s-how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">
98 <span·id="how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin"></span><h2>How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?<a·class="headerlink"·href="#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin"·title="Link·to·this·heading">¶</a></h2>99 <span·id="how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin"></span><h2>How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?<a·class="headerlink"·href="#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin"·title="Link·to·this·heading">¶</a></h2>
Offset 111, 23 lines modifiedOffset 112, 23 lines modified
111 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_queryset"·title="django.contrib.admin.ModelAdmin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·and112 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_queryset"·title="django.contrib.admin.ModelAdmin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·and
112 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.has_change_permission"·title="django.contrib.admin.ModelAdmin.has_change_permission"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">has_change_permission()</span></code></a>·can·be·used·to113 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.has_change_permission"·title="django.contrib.admin.ModelAdmin.has_change_permission"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">has_change_permission()</span></code></a>·can·be·used·to
113 control·the·visibility·and·editability·of·objects·in·the·admin.</p>114 control·the·visibility·and·editability·of·objects·in·the·admin.</p>
114 </section>115 </section>
115 <section·id="s-my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">116 <section·id="s-my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">
116 <span·id="my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi"></span><h2>My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.<a·class="headerlink"·href="#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi"·title="Link·to·this·heading">¶</a></h2>117 <span·id="my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi"></span><h2>My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.<a·class="headerlink"·href="#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi"·title="Link·to·this·heading">¶</a></h2>
117 <p>See·<a·class="reference·internal"·href="../howto/deployment/wsgi/modwsgi.html#serving-the-admin-files"><span·class="std·std-ref">serving·the·admin·files</span></a>118 <p>See·<a·class="reference·internal"·href="../howto/deployment/wsgi/modwsgi.html#serving-the-admin-files"><span·class="std·std-ref">serving·the·admin·files</span></a>
118 in·the·How·to·use·Django·with·mod_wsgi·documentation.</p>119 in·the·«How·to·use·Django·with·mod_wsgi»·documentation.</p>
119 </section>120 </section>
120 <section·id="s-my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">121 <section·id="s-my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">
121 <span·id="my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display"></span><h2>My·list_filter·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.<a·class="headerlink"·href="#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display"·title="Link·to·this·heading">¶</a></h2>122 <span·id="my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display"></span><h2>My·«list_filter»·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.<a·class="headerlink"·href="#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display"·title="Link·to·this·heading">¶</a></h2>
122 <p>Django·won’t·bother·displaying·the·filter·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·if·there123 <p>Django·won’t·bother·displaying·the·filter·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·if·there
123 are·no·related·objects.</p>124 are·no·related·objects.</p>
124 <p>For·example,·if·your·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_filter"·title="django.contrib.admin.ModelAdmin.list_filter"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">list_filter</span></code></a>125 <p>For·example,·if·your·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_filter"·title="django.contrib.admin.ModelAdmin.list_filter"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">list_filter</span></code></a>
125 includes·<a·class="reference·internal"·href="../ref/contrib/sites.html"><span·class="doc">sites</span></a>,·and·there·are·no·sites·in·your126 includes·<a·class="reference·internal"·href="../ref/contrib/sites.html"><span·class="doc">sites</span></a>,·and·there·are·no·sites·in·your
126 database,·it·won’t·display·a·Site·filter.·In·that·case,·filtering·by·site127 database,·it·won’t·display·a·«Site»·filter.·In·that·case,·filtering·by·site
127 would·be·meaningless.</p>128 would·be·meaningless.</p>
128 </section>129 </section>
129 <section·id="s-some-objects-aren-t-appearing-in-the-admin">130 <section·id="s-some-objects-aren-t-appearing-in-the-admin">
130 <span·id="some-objects-aren-t-appearing-in-the-admin"></span><h2>Some·objects·aren’t·appearing·in·the·admin.<a·class="headerlink"·href="#some-objects-aren-t-appearing-in-the-admin"·title="Link·to·this·heading">¶</a></h2>131 <span·id="some-objects-aren-t-appearing-in-the-admin"></span><h2>Some·objects·aren’t·appearing·in·the·admin.<a·class="headerlink"·href="#some-objects-aren-t-appearing-in-the-admin"·title="Link·to·this·heading">¶</a></h2>
131 <p>Inconsistent·row·counts·may·be·caused·by·missing·foreign·key·values·or·a132 <p>Inconsistent·row·counts·may·be·caused·by·missing·foreign·key·values·or·a
132 foreign·key·field·incorrectly·set·to·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.null"·title="django.db.models.Field.null"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">null=False</span></code></a>.·If·you·have·a·record·with·a133 foreign·key·field·incorrectly·set·to·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.null"·title="django.db.models.Field.null"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">null=False</span></code></a>.·If·you·have·a·record·with·a
133 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·pointing·to·a·nonexistent·object·and134 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·pointing·to·a·nonexistent·object·and
Offset 181, 52 lines modifiedOffset 182, 52 lines modified
181 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">182 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
182 ········<div·class="sphinxsidebarwrapper">183 ········<div·class="sphinxsidebarwrapper">
183 ··<div>184 ··<div>
184 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>185 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>
185 ····<ul>186 ····<ul>
186 <li><a·class="reference·internal"·href="#">FAQ:·The·admin</a><ul>187 <li><a·class="reference·internal"·href="#">FAQ:·The·admin</a><ul>
187 <li><a·class="reference·internal"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>188 <li><a·class="reference·internal"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>
188 <li><a·class="reference·internal"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·Please·enter·a·correct·username·and·password·error.</a></li>189 <li><a·class="reference·internal"·href="#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·«Please·enter·a·correct·username·and·password»·error.</a></li>
189 <li><a·class="reference·internal"·href="#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>190 <li><a·class="reference·internal"·href="#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>
190 <li><a·class="reference·internal"·href="#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>191 <li><a·class="reference·internal"·href="#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>
191 <li><a·class="reference·internal"·href="#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>192 <li><a·class="reference·internal"·href="#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>
192 <li><a·class="reference·internal"·href="#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·list_filter·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>193 <li><a·class="reference·internal"·href="#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·«list_filter»·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>
193 <li><a·class="reference·internal"·href="#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>194 <li><a·class="reference·internal"·href="#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>
194 <li><a·class="reference·internal"·href="#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>195 <li><a·class="reference·internal"·href="#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>
195 <li><a·class="reference·internal"·href="#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>196 <li><a·class="reference·internal"·href="#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>
196 <li><a·class="reference·internal"·href="#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>197 <li><a·class="reference·internal"·href="#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>
197 </ul>198 </ul>
198 </li>199 </li>
199 </ul>200 </ul>
  
200 ··</div>201 ··</div>
201 ··<div>202 ··<div>
202 ····<h4>Previous·topic</h4>203 ····<h4>Argomento·precedente</h4>
203 ····<p·class="topless"><a·href="models.html"204 ····<p·class="topless"><a·href="models.html"
204 ··························title="previous·chapter">FAQ:·Databases·and·models</a></p>205 ··························title="capitolo·precedente">FAQ:·Databases·and·models</a></p>
205 ··</div>206 ··</div>
206 ··<div>207 ··<div>
207 ····<h4>Next·topic</h4>208 ····<h4>Argomento·successivo</h4>
208 ····<p·class="topless"><a·href="contributing.html"209 ····<p·class="topless"><a·href="contributing.html"
209 ··························title="next·chapter">FAQ:·Contributing·code</a></p>210 ··························title="capitolo·successivo">FAQ:·Contributing·code</a></p>
210 ··</div>211 ··</div>
211 <search·id="searchbox"·style="display:·none"·role="search">212 <search·id="searchbox"·style="display:·none"·role="search">
212 ··<h3·id="searchlabel">Quick·search</h3>213 ··<h3·id="searchlabel">Ricerca·veloce</h3>
213 ····<div·class="searchformwrapper">214 ····<div·class="searchformwrapper">
214 ····<form·class="search"·action="../search.html"·method="get">215 ····<form·class="search"·action="../search.html"·method="get">
215 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>216 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
216 ······<input·type="submit"·value="Go"·/>217 ······<input·type="submit"·value="Vai"·/>
217 ····</form>218 ····</form>
218 ····</div>219 ····</div>
219 </search>220 </search>
220 <script>document.getElementById('searchbox').style.display·=·"block"</script>221 <script>document.getElementById('searchbox').style.display·=·"block"</script>
221 ········</div>222 ········</div>
222 ······</div>223 ······</div>
Max diff block lines reached; 196/14943 bytes (1.31%) of diff not shown.
9.59 KB
html2text {}
Max HTML report size reached
13.7 KB
./usr/share/doc/python-django-doc/html/faq/contributing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·Contributing·code·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·Contributing·code·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Troubleshooting"·href="troubleshooting.html"·/>15 ····<link·rel="next"·title="Troubleshooting"·href="troubleshooting.html"·/>
15 ····<link·rel="prev"·title="FAQ:·The·admin"·href="admin.html"·/>16 ····<link·rel="prev"·title="FAQ:·The·admin"·href="admin.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 83, 16 lines modifiedOffset 84, 16 lines modified
83 <span·id="s-new-contributors-faq"></span><span·id="how-can-i-get-started-contributing-code-to-django"></span><span·id="new-contributors-faq"></span><h2>How·can·I·get·started·contributing·code·to·Django?<a·class="headerlink"·href="#how-can-i-get-started-contributing-code-to-django"·title="Link·to·this·heading">¶</a></h2>84 <span·id="s-new-contributors-faq"></span><span·id="how-can-i-get-started-contributing-code-to-django"></span><span·id="new-contributors-faq"></span><h2>How·can·I·get·started·contributing·code·to·Django?<a·class="headerlink"·href="#how-can-i-get-started-contributing-code-to-django"·title="Link·to·this·heading">¶</a></h2>
84 <p>Thanks·for·asking!·We’ve·written·an·entire·document·devoted·to·this·question.85 <p>Thanks·for·asking!·We’ve·written·an·entire·document·devoted·to·this·question.
85 It’s·titled·<a·class="reference·internal"·href="../internals/contributing/index.html"><span·class="doc">Contributing·to·Django</span></a>.</p>86 It’s·titled·<a·class="reference·internal"·href="../internals/contributing/index.html"><span·class="doc">Contributing·to·Django</span></a>.</p>
86 </section>87 </section>
87 <section·id="s-i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">88 <section·id="s-i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">
88 <span·id="i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch"></span><h2>I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?<a·class="headerlink"·href="#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch"·title="Link·to·this·heading">¶</a></h2>89 <span·id="i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch"></span><h2>I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?<a·class="headerlink"·href="#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch"·title="Link·to·this·heading">¶</a></h2>
89 <p>Don’t·worry:·We’re·not·ignoring·you!</p>90 <p>Don’t·worry:·We’re·not·ignoring·you!</p>
90 <p>It’s·important·to·understand·there·is·a·difference·between·a·ticket·is·being91 <p>It’s·important·to·understand·there·is·a·difference·between·«a·ticket·is·being
91 ignored·and·a·ticket·has·not·been·attended·to·yet.·Django’s·ticket·system92 ignored»·and·«a·ticket·has·not·been·attended·to·yet.»·Django’s·ticket·system
92 contains·hundreds·of·open·tickets,·of·various·degrees·of·impact·on·end-user93 contains·hundreds·of·open·tickets,·of·various·degrees·of·impact·on·end-user
93 functionality,·and·Django’s·developers·have·to·review·and·prioritize.</p>94 functionality,·and·Django’s·developers·have·to·review·and·prioritize.</p>
94 <p>On·top·of·that:·the·people·who·work·on·Django·are·all·volunteers.·As·a·result,95 <p>On·top·of·that:·the·people·who·work·on·Django·are·all·volunteers.·As·a·result,
95 the·amount·of·time·that·we·have·to·work·on·the·framework·is·limited·and·will96 the·amount·of·time·that·we·have·to·work·on·the·framework·is·limited·and·will
96 vary·from·week·to·week·depending·on·our·spare·time.·If·we’re·busy,·we·may·not97 vary·from·week·to·week·depending·on·our·spare·time.·If·we’re·busy,·we·may·not
97 be·able·to·spend·as·much·time·on·Django·as·we·might·want.</p>98 be·able·to·spend·as·much·time·on·Django·as·we·might·want.</p>
98 <p>The·best·way·to·make·sure·tickets·do·not·get·hung·up·on·the·way·to·checkin·is99 <p>The·best·way·to·make·sure·tickets·do·not·get·hung·up·on·the·way·to·checkin·is
Offset 157, 15 lines modifiedOffset 158, 15 lines modified
157 relative·priorities,·we·are·generally·trying·to·consider·the·needs·of·the158 relative·priorities,·we·are·generally·trying·to·consider·the·needs·of·the
158 entire·community,·instead·of·prioritizing·the·impact·on·one·particular·user.159 entire·community,·instead·of·prioritizing·the·impact·on·one·particular·user.
159 This·doesn’t·mean·that·we·think·your·problem·is·unimportant··just·that·in·the160 This·doesn’t·mean·that·we·think·your·problem·is·unimportant··just·that·in·the
160 limited·time·we·have·available,·we·will·always·err·on·the·side·of·making·10161 limited·time·we·have·available,·we·will·always·err·on·the·side·of·making·10
161 people·happy·rather·than·making·a·single·person·happy.</p>162 people·happy·rather·than·making·a·single·person·happy.</p>
162 </section>163 </section>
163 <section·id="s-i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">164 <section·id="s-i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">
164 <span·id="i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself"></span><h2>I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·Ready·For·Checkin·myself?<a·class="headerlink"·href="#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself"·title="Link·to·this·heading">¶</a></h2>165 <span·id="i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself"></span><h2>I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·«Ready·For·Checkin»·myself?<a·class="headerlink"·href="#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself"·title="Link·to·this·heading">¶</a></h2>
165 <p>Sorry,·no.·It’s·always·better·to·get·another·set·of·eyes·on·a·ticket.·If166 <p>Sorry,·no.·It’s·always·better·to·get·another·set·of·eyes·on·a·ticket.·If
166 you’re·having·trouble·getting·that·second·set·of·eyes,·see·questions·above.</p>167 you’re·having·trouble·getting·that·second·set·of·eyes,·see·questions·above.</p>
167 </section>168 </section>
168 </section>169 </section>
  
  
169 ··········</div>170 ··········</div>
Offset 181, 44 lines modifiedOffset 182, 44 lines modified
181 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>182 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>
182 ····<ul>183 ····<ul>
183 <li><a·class="reference·internal"·href="#">FAQ:·Contributing·code</a><ul>184 <li><a·class="reference·internal"·href="#">FAQ:·Contributing·code</a><ul>
184 <li><a·class="reference·internal"·href="#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>185 <li><a·class="reference·internal"·href="#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>
185 <li><a·class="reference·internal"·href="#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>186 <li><a·class="reference·internal"·href="#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>
186 <li><a·class="reference·internal"·href="#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>187 <li><a·class="reference·internal"·href="#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>
187 <li><a·class="reference·internal"·href="#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>188 <li><a·class="reference·internal"·href="#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>
188 <li><a·class="reference·internal"·href="#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·Ready·For·Checkin·myself?</a></li>189 <li><a·class="reference·internal"·href="#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·«Ready·For·Checkin»·myself?</a></li>
189 </ul>190 </ul>
190 </li>191 </li>
191 </ul>192 </ul>
  
192 ··</div>193 ··</div>
193 ··<div>194 ··<div>
194 ····<h4>Previous·topic</h4>195 ····<h4>Argomento·precedente</h4>
195 ····<p·class="topless"><a·href="admin.html"196 ····<p·class="topless"><a·href="admin.html"
196 ··························title="previous·chapter">FAQ:·The·admin</a></p>197 ··························title="capitolo·precedente">FAQ:·The·admin</a></p>
197 ··</div>198 ··</div>
198 ··<div>199 ··<div>
199 ····<h4>Next·topic</h4>200 ····<h4>Argomento·successivo</h4>
200 ····<p·class="topless"><a·href="troubleshooting.html"201 ····<p·class="topless"><a·href="troubleshooting.html"
201 ··························title="next·chapter">Troubleshooting</a></p>202 ··························title="capitolo·successivo">Troubleshooting</a></p>
202 ··</div>203 ··</div>
203 <search·id="searchbox"·style="display:·none"·role="search">204 <search·id="searchbox"·style="display:·none"·role="search">
204 ··<h3·id="searchlabel">Quick·search</h3>205 ··<h3·id="searchlabel">Ricerca·veloce</h3>
205 ····<div·class="searchformwrapper">206 ····<div·class="searchformwrapper">
206 ····<form·class="search"·action="../search.html"·method="get">207 ····<form·class="search"·action="../search.html"·method="get">
207 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>208 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
208 ······<input·type="submit"·value="Go"·/>209 ······<input·type="submit"·value="Vai"·/>
209 ····</form>210 ····</form>
210 ····</div>211 ····</div>
211 </search>212 </search>
212 <script>document.getElementById('searchbox').style.display·=·"block"</script>213 <script>document.getElementById('searchbox').style.display·=·"block"</script>
213 ········</div>214 ········</div>
214 ······</div>215 ······</div>
215 ··············<h3>Last·update:</h3>216 ··············<h3>Last·update:</h3>
216 ··············<p·class="topless">Sep·03,·2024</p>217 ··············<p·class="topless">set·03,·2024</p>
217 ··········</div>218 ··········</div>
218 ········219 ········
219 ······220 ······
220 ····</div>221 ····</div>
  
221 ····<div·id="ft">222 ····<div·id="ft">
222 ······<div·class="nav">223 ······<div·class="nav">
5.42 KB
html2text {}
Max HTML report size reached
32.2 KB
./usr/share/doc/python-django-doc/html/faq/general.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·General·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·General·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·Installation"·href="install.html"·/>15 ····<link·rel="next"·title="FAQ:·Installation"·href="install.html"·/>
15 ····<link·rel="prev"·title="Django·FAQ"·href="index.html"·/>16 ····<link·rel="prev"·title="Django·FAQ"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 32 lines modifiedOffset 96, 32 lines modified
95 over·two·years.</p>96 over·two·years.</p>
96 <p>In·summer·2005,·World·Online·decided·to·open-source·the·resulting·software,97 <p>In·summer·2005,·World·Online·decided·to·open-source·the·resulting·software,
97 Django.·Django·would·not·be·possible·without·a·whole·host·of·open-source98 Django.·Django·would·not·be·possible·without·a·whole·host·of·open-source
98 projects··<a·class="reference·external"·href="https://httpd.apache.org/">Apache</a>,·<a·class="reference·external"·href="https://www.python.org/">Python</a>,·and·<a·class="reference·external"·href="https://www.postgresql.org/">PostgreSQL</a>·to·name·a·few··and·we’re99 projects··<a·class="reference·external"·href="https://httpd.apache.org/">Apache</a>,·<a·class="reference·external"·href="https://www.python.org/">Python</a>,·and·<a·class="reference·external"·href="https://www.postgresql.org/">PostgreSQL</a>·to·name·a·few··and·we’re
99 thrilled·to·be·able·to·give·something·back·to·the·open-source·community.</p>100 thrilled·to·be·able·to·give·something·back·to·the·open-source·community.</p>
100 </section>101 </section>
101 <section·id="s-what-does-django-mean-and-how-do-you-pronounce-it">102 <section·id="s-what-does-django-mean-and-how-do-you-pronounce-it">
102 <span·id="what-does-django-mean-and-how-do-you-pronounce-it"></span><h2>What·does·Django·mean,·and·how·do·you·pronounce·it?<a·class="headerlink"·href="#what-does-django-mean-and-how-do-you-pronounce-it"·title="Link·to·this·heading">¶</a></h2>103 <span·id="what-does-django-mean-and-how-do-you-pronounce-it"></span><h2>What·does·«Django»·mean,·and·how·do·you·pronounce·it?<a·class="headerlink"·href="#what-does-django-mean-and-how-do-you-pronounce-it"·title="Link·to·this·heading">¶</a></h2>
103 <p>Django·is·named·after·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Django_Reinhardt">Django·Reinhardt</a>,·a·jazz·manouche·guitarist·from·the·1930s104 <p>Django·is·named·after·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Django_Reinhardt">Django·Reinhardt</a>,·a·jazz·manouche·guitarist·from·the·1930s
104 to·early·1950s.·To·this·day,·he’s·considered·one·of·the·best·guitarists·of·all·time.</p>105 to·early·1950s.·To·this·day,·he’s·considered·one·of·the·best·guitarists·of·all·time.</p>
105 <p>Listen·to·his·music.·You’ll·like·it.</p>106 <p>Listen·to·his·music.·You’ll·like·it.</p>
106 <p>Django·is·pronounced·<strong>JANG</strong>-oh.·Rhymes·with·FANG-oh.·The·D·is·silent.</p>107 <p>Django·is·pronounced·<strong>JANG</strong>-oh.·Rhymes·with·FANG-oh.·The·«D»·is·silent.</p>
107 <p>We’ve·also·recorded·an·<a·class="reference·external"·href="https://www.red-bean.com/~adrian/django_pronunciation.mp3">audio·clip·of·the·pronunciation</a>.</p>108 <p>We’ve·also·recorded·an·<a·class="reference·external"·href="https://www.red-bean.com/~adrian/django_pronunciation.mp3">audio·clip·of·the·pronunciation</a>.</p>
108 </section>109 </section>
109 <section·id="s-is-django-stable">110 <section·id="s-is-django-stable">
110 <span·id="is-django-stable"></span><h2>Is·Django·stable?<a·class="headerlink"·href="#is-django-stable"·title="Link·to·this·heading">¶</a></h2>111 <span·id="is-django-stable"></span><h2>Is·Django·stable?<a·class="headerlink"·href="#is-django-stable"·title="Link·to·this·heading">¶</a></h2>
111 <p>Yes,·it’s·quite·stable.·Companies·like·Disqus,·Instagram,·Pinterest,·and112 <p>Yes,·it’s·quite·stable.·Companies·like·Disqus,·Instagram,·Pinterest,·and
112 Mozilla·have·been·using·Django·for·many·years.·Sites·built·on·Django·have113 Mozilla·have·been·using·Django·for·many·years.·Sites·built·on·Django·have
113 weathered·traffic·spikes·of·over·50·thousand·hits·per·second.</p>114 weathered·traffic·spikes·of·over·50·thousand·hits·per·second.</p>
114 </section>115 </section>
115 <section·id="s-does-django-scale">116 <section·id="s-does-django-scale">
116 <span·id="does-django-scale"></span><h2>Does·Django·scale?<a·class="headerlink"·href="#does-django-scale"·title="Link·to·this·heading">¶</a></h2>117 <span·id="does-django-scale"></span><h2>Does·Django·scale?<a·class="headerlink"·href="#does-django-scale"·title="Link·to·this·heading">¶</a></h2>
117 <p>Yes.·Compared·to·development·time,·hardware·is·cheap,·and·so·Django·is118 <p>Yes.·Compared·to·development·time,·hardware·is·cheap,·and·so·Django·is
118 designed·to·take·advantage·of·as·much·hardware·as·you·can·throw·at·it.</p>119 designed·to·take·advantage·of·as·much·hardware·as·you·can·throw·at·it.</p>
119 <p>Django·uses·a·shared-nothing·architecture,·which·means·you·can·add·hardware120 <p>Django·uses·a·«shared-nothing»·architecture,·which·means·you·can·add·hardware
120 at·any·level··database·servers,·caching·servers·or·web/application·servers.</p>121 at·any·level··database·servers,·caching·servers·or·web/application·servers.</p>
121 <p>The·framework·cleanly·separates·components·such·as·its·database·layer·and122 <p>The·framework·cleanly·separates·components·such·as·its·database·layer·and
122 application·layer.·And·it·ships·with·a·simple-yet-powerful123 application·layer.·And·it·ships·with·a·simple-yet-powerful
123 <a·class="reference·internal"·href="../topics/cache.html"><span·class="doc">cache·framework</span></a>.</p>124 <a·class="reference·internal"·href="../topics/cache.html"><span·class="doc">cache·framework</span></a>.</p>
124 </section>125 </section>
125 <section·id="s-who-s-behind-this">126 <section·id="s-who-s-behind-this">
126 <span·id="who-s-behind-this"></span><h2>Who’s·behind·this?<a·class="headerlink"·href="#who-s-behind-this"·title="Link·to·this·heading">¶</a></h2>127 <span·id="who-s-behind-this"></span><h2>Who’s·behind·this?<a·class="headerlink"·href="#who-s-behind-this"·title="Link·to·this·heading">¶</a></h2>
Offset 140, 42 lines modifiedOffset 141, 42 lines modified
140 under·a·permissive·open·source·license.·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/LICENSE.python">A·copy·of·the·Python·license</a>·is·included·with·Django·for·compliance·with·Python’s·terms.</p>141 under·a·permissive·open·source·license.·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/LICENSE.python">A·copy·of·the·Python·license</a>·is·included·with·Django·for·compliance·with·Python’s·terms.</p>
141 </section>142 </section>
142 <section·id="s-which-sites-use-django">143 <section·id="s-which-sites-use-django">
143 <span·id="which-sites-use-django"></span><h2>Which·sites·use·Django?<a·class="headerlink"·href="#which-sites-use-django"·title="Link·to·this·heading">¶</a></h2>144 <span·id="which-sites-use-django"></span><h2>Which·sites·use·Django?<a·class="headerlink"·href="#which-sites-use-django"·title="Link·to·this·heading">¶</a></h2>
144 <p><a·class="reference·external"·href="https://djangosites.org">DjangoSites.org</a>·features·a·constantly·growing·list·of·Django-powered·sites.</p>145 <p><a·class="reference·external"·href="https://djangosites.org">DjangoSites.org</a>·features·a·constantly·growing·list·of·Django-powered·sites.</p>
145 </section>146 </section>
146 <section·id="s-django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">147 <section·id="s-django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">
147 <span·id="s-faq-mtv"></span><span·id="django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names"></span><span·id="faq-mtv"></span><h2>Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·view,·and·the·View·the·template.·How·come·you·don’t·use·the·standard·names?<a·class="headerlink"·href="#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names"·title="Link·to·this·heading">¶</a></h2>148 <span·id="s-faq-mtv"></span><span·id="django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names"></span><span·id="faq-mtv"></span><h2>Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·«view»,·and·the·View·the·«template».·How·come·you·don’t·use·the·standard·names?<a·class="headerlink"·href="#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names"·title="Link·to·this·heading">¶</a></h2>
148 <p>Well,·the·standard·names·are·debatable.</p>149 <p>Well,·the·standard·names·are·debatable.</p>
149 <p>In·our·interpretation·of·MVC,·the·view·describes·the·data·that·gets·presented150 <p>In·our·interpretation·of·MVC,·the·«view»·describes·the·data·that·gets·presented
150 to·the·user.·It’s·not·necessarily·<em>how</em>·the·data·<em>looks</em>,·but·<em>which</em>·data·is151 to·the·user.·It’s·not·necessarily·<em>how</em>·the·data·<em>looks</em>,·but·<em>which</em>·data·is
151 presented.·The·view·describes·<em>which·data·you·see</em>,·not·<em>how·you·see·it.</em>·It’s152 presented.·The·view·describes·<em>which·data·you·see</em>,·not·<em>how·you·see·it.</em>·It’s
152 a·subtle·distinction.</p>153 a·subtle·distinction.</p>
153 <p>So,·in·our·case,·a·view·is·the·Python·callback·function·for·a·particular·URL,154 <p>So,·in·our·case,·a·«view»·is·the·Python·callback·function·for·a·particular·URL,
154 because·that·callback·function·describes·which·data·is·presented.</p>155 because·that·callback·function·describes·which·data·is·presented.</p>
155 <p>Furthermore,·it’s·sensible·to·separate·content·from·presentation··which·is156 <p>Furthermore,·it’s·sensible·to·separate·content·from·presentation··which·is
156 where·templates·come·in.·In·Django,·a·view·describes·which·data·is·presented,157 where·templates·come·in.·In·Django,·a·«view»·describes·which·data·is·presented,
157 but·a·view·normally·delegates·to·a·template,·which·describes·<em>how</em>·the·data·is158 but·a·view·normally·delegates·to·a·template,·which·describes·<em>how</em>·the·data·is
158 presented.</p>159 presented.</p>
159 <p>Where·does·the·controller·fit·in,·then?·In·Django’s·case,·it’s·probably·the160 <p>Where·does·the·«controller»·fit·in,·then?·In·Django’s·case,·it’s·probably·the
160 framework·itself:·the·machinery·that·sends·a·request·to·the·appropriate·view,161 framework·itself:·the·machinery·that·sends·a·request·to·the·appropriate·view,
161 according·to·the·Django·URL·configuration.</p>162 according·to·the·Django·URL·configuration.</p>
162 <p>If·you’re·hungry·for·acronyms,·you·might·say·that·Django·is·a·MTV·framework163 <p>If·you’re·hungry·for·acronyms,·you·might·say·that·Django·is·a·«MTV»·framework
163 ·that·is,·model,·template,·and·view.·That·breakdown·makes·much·more164 ·that·is,·«model»,·«template»,·and·«view.»·That·breakdown·makes·much·more
164 sense.</p>165 sense.</p>
165 <p>At·the·end·of·the·day,·it·comes·down·to·getting·stuff·done.·And,·regardless·of166 <p>At·the·end·of·the·day,·it·comes·down·to·getting·stuff·done.·And,·regardless·of
166 how·things·are·named,·Django·gets·stuff·done·in·a·way·that’s·most·logical·to167 how·things·are·named,·Django·gets·stuff·done·in·a·way·that’s·most·logical·to
167 us.</p>168 us.</p>
168 </section>169 </section>
169 <section·id="s-framework-x-does-feature-y-why-doesn-t-django">170 <section·id="s-framework-x-does-feature-y-why-doesn-t-django">
170 <span·id="framework-x-does-feature-y-why-doesn-t-django"></span><h2>&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?<a·class="headerlink"·href="#framework-x-does-feature-y-why-doesn-t-django"·title="Link·to·this·heading">¶</a></h2>171 <span·id="framework-x-does-feature-y-why-doesn-t-django"></span><h2>&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?<a·class="headerlink"·href="#framework-x-does-feature-y-why-doesn-t-django"·title="Link·to·this·heading">¶</a></h2>
171 <p>We’re·well·aware·that·there·are·other·awesome·web·frameworks·out·there,·and172 <p>We’re·well·aware·that·there·are·other·awesome·web·frameworks·out·there,·and
172 we’re·not·averse·to·borrowing·ideas·where·appropriate.·However,·Django·was173 we’re·not·averse·to·borrowing·ideas·where·appropriate.·However,·Django·was
173 developed·precisely·because·we·were·unhappy·with·the·status·quo,·so·please·be174 developed·precisely·because·we·were·unhappy·with·the·status·quo,·so·please·be
174 aware·that·because·&lt;Framework·X&gt;·does·it·is·not·going·to·be·sufficient·reason175 aware·that·«because·&lt;Framework·X&gt;·does·it»·is·not·going·to·be·sufficient·reason
175 to·add·a·given·feature·to·Django.</p>176 to·add·a·given·feature·to·Django.</p>
176 </section>177 </section>
177 <section·id="s-why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">178 <section·id="s-why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">
178 <span·id="why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries"></span><h2>Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?<a·class="headerlink"·href="#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries"·title="Link·to·this·heading">¶</a></h2>179 <span·id="why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries"></span><h2>Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?<a·class="headerlink"·href="#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries"·title="Link·to·this·heading">¶</a></h2>
179 <p>When·Django·was·originally·written,·Adrian·and·Simon·spent·quite·a·bit·of·time180 <p>When·Django·was·originally·written,·Adrian·and·Simon·spent·quite·a·bit·of·time
180 exploring·the·various·Python·web·frameworks·available.</p>181 exploring·the·various·Python·web·frameworks·available.</p>
181 <p>In·our·opinion,·none·of·them·were·completely·up·to·snuff.</p>182 <p>In·our·opinion,·none·of·them·were·completely·up·to·snuff.</p>
Offset 190, 22 lines modifiedOffset 191, 22 lines modified
190 philosophies·100%.</p>191 philosophies·100%.</p>
191 <p>Like·we·said:·We’re·picky.</p>192 <p>Like·we·said:·We’re·picky.</p>
192 <p>We’ve·documented·our·philosophies·on·the193 <p>We’ve·documented·our·philosophies·on·the
193 <a·class="reference·internal"·href="../misc/design-philosophies.html"><span·class="doc">design·philosophies·page</span></a>.</p>194 <a·class="reference·internal"·href="../misc/design-philosophies.html"><span·class="doc">design·philosophies·page</span></a>.</p>
194 </section>195 </section>
195 <section·id="s-is-django-a-content-management-system-cms">196 <section·id="s-is-django-a-content-management-system-cms">
196 <span·id="is-django-a-content-management-system-cms"></span><h2>Is·Django·a·content-management-system·(CMS)?<a·class="headerlink"·href="#is-django-a-content-management-system-cms"·title="Link·to·this·heading">¶</a></h2>197 <span·id="is-django-a-content-management-system-cms"></span><h2>Is·Django·a·content-management-system·(CMS)?<a·class="headerlink"·href="#is-django-a-content-management-system-cms"·title="Link·to·this·heading">¶</a></h2>
197 <p>No,·Django·is·not·a·CMS,·or·any·sort·of·turnkey·product·in·and·of·itself.198 <p>No,·Django·is·not·a·CMS,·or·any·sort·of·«turnkey·product»·in·and·of·itself.
198 It’s·a·web·framework;·it’s·a·programming·tool·that·lets·you·build·websites.</p>199 It’s·a·web·framework;·it’s·a·programming·tool·that·lets·you·build·websites.</p>
199 <p>For·example,·it·doesn’t·make·much·sense·to·compare·Django·to·something·like200 <p>For·example,·it·doesn’t·make·much·sense·to·compare·Django·to·something·like
200 <a·class="reference·external"·href="https://www.drupal.org/">Drupal</a>,·because·Django·is·something·you·use·to·<em>create</em>·things·like·Drupal.</p>201 <a·class="reference·external"·href="https://www.drupal.org/">Drupal</a>,·because·Django·is·something·you·use·to·<em>create</em>·things·like·Drupal.</p>
Max diff block lines reached; 6800/18431 bytes (36.89%) of diff not shown.
14.1 KB
html2text {}
Max HTML report size reached
9.32 KB
./usr/share/doc/python-django-doc/html/faq/help.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·Getting·Help·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·Getting·Help·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·Databases·and·models"·href="models.html"·/>15 ····<link·rel="next"·title="FAQ:·Databases·and·models"·href="models.html"·/>
15 ····<link·rel="prev"·title="FAQ:·Using·Django"·href="usage.html"·/>16 ····<link·rel="prev"·title="FAQ:·Using·Django"·href="usage.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <p>First,·please·check·if·your·question·is·answered·on·the·<a·class="reference·internal"·href="index.html"><span·class="doc">FAQ</span></a>.·Also,·search·for·answers·using·your·favorite·search·engine,·and85 <p>First,·please·check·if·your·question·is·answered·on·the·<a·class="reference·internal"·href="index.html"><span·class="doc">FAQ</span></a>.·Also,·search·for·answers·using·your·favorite·search·engine,·and
85 in·<a·class="reference·external"·href="https://forum.djangoproject.com/">the·forum</a>.</p>86 in·<a·class="reference·external"·href="https://forum.djangoproject.com/">the·forum</a>.</p>
86 <p>If·you·can’t·find·an·answer,·please·take·a·few·minutes·to·formulate·your87 <p>If·you·can’t·find·an·answer,·please·take·a·few·minutes·to·formulate·your
87 question·well.·Explaining·the·problems·you·are·facing·clearly·will·help·others88 question·well.·Explaining·the·problems·you·are·facing·clearly·will·help·others
88 help·you.·See·the·StackOverflow·guide·on·<a·class="reference·external"·href="https://stackoverflow.com/help/how-to-ask">asking·good·questions</a>.</p>89 help·you.·See·the·StackOverflow·guide·on·<a·class="reference·external"·href="https://stackoverflow.com/help/how-to-ask">asking·good·questions</a>.</p>
89 <p>Then,·please·post·it·in·one·of·the·following·channels:</p>90 <p>Then,·please·post·it·in·one·of·the·following·channels:</p>
90 <ul·class="simple">91 <ul·class="simple">
91 <li><p>The·Django·Forum·section·<a·class="reference·external"·href="https://forum.djangoproject.com/c/users/6">Using·Django</a>.·This·is·for·web-based92 <li><p>The·Django·Forum·section·<a·class="reference·external"·href="https://forum.djangoproject.com/c/users/6">«Using·Django»</a>.·This·is·for·web-based
92 discussions.</p></li>93 discussions.</p></li>
93 <li><p>The·<a·class="reference·internal"·href="../internals/mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·mailing·list.·This·is·for·email-based·discussions.</p></li>94 <li><p>The·<a·class="reference·internal"·href="../internals/mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·mailing·list.·This·is·for·email-based·discussions.</p></li>
94 <li><p>The·<a·class="reference·external"·href="https://web.libera.chat/#django">#django·IRC·channel</a>·on·the·Libera.Chat·IRC·network.·This·is·for95 <li><p>The·<a·class="reference·external"·href="https://web.libera.chat/#django">#django·IRC·channel</a>·on·the·Libera.Chat·IRC·network.·This·is·for
95 chat-based·discussions.·If·you’re·new·to·IRC,·see·the·<a·class="reference·external"·href="https://libera.chat/guides/connect">Libera.Chat96 chat-based·discussions.·If·you’re·new·to·IRC,·see·the·<a·class="reference·external"·href="https://libera.chat/guides/connect">Libera.Chat
96 documentation</a>·for·different·ways·to·connect.</p></li>97 documentation</a>·for·different·ways·to·connect.</p></li>
97 </ul>98 </ul>
98 <p>In·all·these·channels·please·abide·by·the·<a·class="reference·external"·href="https://www.djangoproject.com/conduct/">Django·Code·of·Conduct</a>.·In99 <p>In·all·these·channels·please·abide·by·the·<a·class="reference·external"·href="https://www.djangoproject.com/conduct/">Django·Code·of·Conduct</a>.·In
Offset 167, 37 lines modifiedOffset 168, 37 lines modified
167 <li><a·class="reference·internal"·href="#i-think-i-ve-found-a-security-problem-what-should-i-do">I·think·I’ve·found·a·security·problem!·What·should·I·do?</a></li>168 <li><a·class="reference·internal"·href="#i-think-i-ve-found-a-security-problem-what-should-i-do">I·think·I’ve·found·a·security·problem!·What·should·I·do?</a></li>
168 </ul>169 </ul>
169 </li>170 </li>
170 </ul>171 </ul>
  
171 ··</div>172 ··</div>
172 ··<div>173 ··<div>
173 ····<h4>Previous·topic</h4>174 ····<h4>Argomento·precedente</h4>
174 ····<p·class="topless"><a·href="usage.html"175 ····<p·class="topless"><a·href="usage.html"
175 ··························title="previous·chapter">FAQ:·Using·Django</a></p>176 ··························title="capitolo·precedente">FAQ:·Using·Django</a></p>
176 ··</div>177 ··</div>
177 ··<div>178 ··<div>
178 ····<h4>Next·topic</h4>179 ····<h4>Argomento·successivo</h4>
179 ····<p·class="topless"><a·href="models.html"180 ····<p·class="topless"><a·href="models.html"
180 ··························title="next·chapter">FAQ:·Databases·and·models</a></p>181 ··························title="capitolo·successivo">FAQ:·Databases·and·models</a></p>
181 ··</div>182 ··</div>
182 <search·id="searchbox"·style="display:·none"·role="search">183 <search·id="searchbox"·style="display:·none"·role="search">
183 ··<h3·id="searchlabel">Quick·search</h3>184 ··<h3·id="searchlabel">Ricerca·veloce</h3>
184 ····<div·class="searchformwrapper">185 ····<div·class="searchformwrapper">
185 ····<form·class="search"·action="../search.html"·method="get">186 ····<form·class="search"·action="../search.html"·method="get">
186 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
187 ······<input·type="submit"·value="Go"·/>188 ······<input·type="submit"·value="Vai"·/>
188 ····</form>189 ····</form>
189 ····</div>190 ····</div>
190 </search>191 </search>
191 <script>document.getElementById('searchbox').style.display·=·"block"</script>192 <script>document.getElementById('searchbox').style.display·=·"block"</script>
192 ········</div>193 ········</div>
193 ······</div>194 ······</div>
194 ··············<h3>Last·update:</h3>195 ··············<h3>Last·update:</h3>
195 ··············<p·class="topless">Sep·03,·2024</p>196 ··············<p·class="topless">set·03,·2024</p>
196 ··········</div>197 ··········</div>
197 ········198 ········
198 ······199 ······
199 ····</div>200 ····</div>
  
200 ····<div·id="ft">201 ····<div·id="ft">
201 ······<div·class="nav">202 ······<div·class="nav">
3.81 KB
html2text {}
Max HTML report size reached
23.0 KB
./usr/share/doc/python-django-doc/html/faq/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·FAQ·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·FAQ·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·General"·href="general.html"·/>15 ····<link·rel="next"·title="FAQ:·General"·href="general.html"·/>
15 ····<link·rel="prev"·title="How·to·delete·a·Django·application"·href="../howto/delete-app.html"·/>16 ····<link·rel="prev"·title="How·to·delete·a·Django·application"·href="../howto/delete-app.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../howto/delete-app.html"·title="How·to·delete·a·Django·application">previous</a>67 ····&laquo;·<a·href="../howto/delete-app.html"·title="How·to·delete·a·Django·application">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="general.html"·title="FAQ:·General">next</a>·&raquo;</div>71 ····<a·href="general.html"·title="FAQ:·General">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 79, 22 lines modifiedOffset 80, 22 lines modified
79 ············80 ············
80 ··<section·id="s-django-faq">81 ··<section·id="s-django-faq">
81 <span·id="django-faq"></span><h1>Django·FAQ<a·class="headerlink"·href="#django-faq"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-faq"></span><h1>Django·FAQ<a·class="headerlink"·href="#django-faq"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="toctree-wrapper·compound">83 <div·class="toctree-wrapper·compound">
83 <ul>84 <ul>
84 <li·class="toctree-l1"><a·class="reference·internal"·href="general.html">FAQ:·General</a><ul>85 <li·class="toctree-l1"><a·class="reference·internal"·href="general.html">FAQ:·General</a><ul>
85 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-does-this-project-exist">Why·does·this·project·exist?</a></li>86 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-does-this-project-exist">Why·does·this·project·exist?</a></li>
86 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#what-does-django-mean-and-how-do-you-pronounce-it">What·does·Django·mean,·and·how·do·you·pronounce·it?</a></li>87 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#what-does-django-mean-and-how-do-you-pronounce-it">What·does·«Django»·mean,·and·how·do·you·pronounce·it?</a></li>
87 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#is-django-stable">Is·Django·stable?</a></li>88 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#is-django-stable">Is·Django·stable?</a></li>
88 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#does-django-scale">Does·Django·scale?</a></li>89 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#does-django-scale">Does·Django·scale?</a></li>
89 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#who-s-behind-this">Who’s·behind·this?</a></li>90 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#who-s-behind-this">Who’s·behind·this?</a></li>
90 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-is-django-licensed">How·is·Django·licensed?</a></li>91 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-is-django-licensed">How·is·Django·licensed?</a></li>
91 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-does-django-include-python-s-license-file">Why·does·Django·include·Python’s·license·file?</a></li>92 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-does-django-include-python-s-license-file">Why·does·Django·include·Python’s·license·file?</a></li>
92 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#which-sites-use-django">Which·sites·use·Django?</a></li>93 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#which-sites-use-django">Which·sites·use·Django?</a></li>
93 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·view,·and·the·View·the·template.·How·come·you·don’t·use·the·standard·names?</a></li>94 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names">Django·appears·to·be·a·MVC·framework,·but·you·call·the·Controller·the·«view»,·and·the·View·the·«template».·How·come·you·don’t·use·the·standard·names?</a></li>
94 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#framework-x-does-feature-y-why-doesn-t-django">&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?</a></li>95 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#framework-x-does-feature-y-why-doesn-t-django">&lt;Framework·X&gt;·does·&lt;feature·Y&gt;··why·doesn’t·Django?</a></li>
95 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?</a></li>96 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries">Why·did·you·write·all·of·Django·from·scratch,·instead·of·using·other·Python·libraries?</a></li>
96 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#is-django-a-content-management-system-cms">Is·Django·a·content-management-system·(CMS)?</a></li>97 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#is-django-a-content-management-system-cms">Is·Django·a·content-management-system·(CMS)?</a></li>
97 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-can-i-download-the-django-documentation-to-read-it-offline">How·can·I·download·the·Django·documentation·to·read·it·offline?</a></li>98 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-can-i-download-the-django-documentation-to-read-it-offline">How·can·I·download·the·Django·documentation·to·read·it·offline?</a></li>
98 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-do-i-cite-django">How·do·I·cite·Django?</a></li>99 <li·class="toctree-l2"><a·class="reference·internal"·href="general.html#how-do-i-cite-django">How·do·I·cite·Django?</a></li>
99 </ul>100 </ul>
100 </li>101 </li>
Offset 129, 31 lines modifiedOffset 130, 31 lines modified
129 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#do-django-models-support-multiple-column-primary-keys">Do·Django·models·support·multiple-column·primary·keys?</a></li>130 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#do-django-models-support-multiple-column-primary-keys">Do·Django·models·support·multiple-column·primary·keys?</a></li>
130 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#does-django-support-nosql-databases">Does·Django·support·NoSQL·databases?</a></li>131 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#does-django-support-nosql-databases">Does·Django·support·NoSQL·databases?</a></li>
131 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>132 <li·class="toctree-l2"><a·class="reference·internal"·href="models.html#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>
132 </ul>133 </ul>
133 </li>134 </li>
134 <li·class="toctree-l1"><a·class="reference·internal"·href="admin.html">FAQ:·The·admin</a><ul>135 <li·class="toctree-l1"><a·class="reference·internal"·href="admin.html">FAQ:·The·admin</a><ul>
135 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>136 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·just·brings·up·the·login·page·again,·with·no·error·messages.</a></li>
136 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·Please·enter·a·correct·username·and·password·error.</a></li>137 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error">I·can’t·log·in.·When·I·enter·a·valid·username·and·password,·it·brings·up·the·login·page·again,·with·a·«Please·enter·a·correct·username·and·password»·error.</a></li>
137 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>138 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin">How·do·I·automatically·set·a·field’s·value·to·the·user·who·last·edited·the·object·in·the·admin?</a></li>
138 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>139 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them">How·do·I·limit·admin·access·so·that·objects·can·only·be·edited·by·the·users·who·created·them?</a></li>
139 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>140 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi">My·admin-site·CSS·and·images·showed·up·fine·using·the·development·server,·but·they’re·not·displaying·when·using·mod_wsgi.</a></li>
140 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·list_filter·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>141 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display">My·«list_filter»·contains·a·ManyToManyField,·but·the·filter·doesn’t·display.</a></li>
141 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>142 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#some-objects-aren-t-appearing-in-the-admin">Some·objects·aren’t·appearing·in·the·admin.</a></li>
142 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>143 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#how-can-i-customize-the-functionality-of-the-admin-interface">How·can·I·customize·the·functionality·of·the·admin·interface?</a></li>
143 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>144 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it">The·dynamically-generated·admin·site·is·ugly!·How·can·I·change·it?</a></li>
144 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>145 <li·class="toctree-l2"><a·class="reference·internal"·href="admin.html#what-browsers-are-supported-for-using-the-admin">What·browsers·are·supported·for·using·the·admin?</a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 <li·class="toctree-l1"><a·class="reference·internal"·href="contributing.html">FAQ:·Contributing·code</a><ul>148 <li·class="toctree-l1"><a·class="reference·internal"·href="contributing.html">FAQ:·Contributing·code</a><ul>
148 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>149 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#how-can-i-get-started-contributing-code-to-django">How·can·I·get·started·contributing·code·to·Django?</a></li>
149 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>150 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch">I·submitted·a·bug·fix·in·the·ticket·system·several·weeks·ago.·Why·are·you·ignoring·my·patch?</a></li>
150 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>151 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about">When·and·how·might·I·remind·the·team·of·a·patch·I·care·about?</a></li>
151 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>152 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch">But·I’ve·reminded·you·several·times·and·you·keep·ignoring·my·patch!</a></li>
152 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·Ready·For·Checkin·myself?</a></li>153 <li·class="toctree-l2"><a·class="reference·internal"·href="contributing.html#i-m-sure-my-ticket-is-absolutely-100-perfect-can-i-mark-it-as-ready-for-checkin-myself">I’m·sure·my·ticket·is·absolutely·100%·perfect,·can·I·mark·it·as·«Ready·For·Checkin»·myself?</a></li>
153 </ul>154 </ul>
154 </li>155 </li>
155 <li·class="toctree-l1"><a·class="reference·internal"·href="troubleshooting.html">Troubleshooting</a><ul>156 <li·class="toctree-l1"><a·class="reference·internal"·href="troubleshooting.html">Troubleshooting</a><ul>
156 <li·class="toctree-l2"><a·class="reference·internal"·href="troubleshooting.html#problems-running-django-admin">Problems·running·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code></a></li>157 <li·class="toctree-l2"><a·class="reference·internal"·href="troubleshooting.html#problems-running-django-admin">Problems·running·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code></a></li>
157 <li·class="toctree-l2"><a·class="reference·internal"·href="troubleshooting.html#miscellaneous">Miscellaneous</a></li>158 <li·class="toctree-l2"><a·class="reference·internal"·href="troubleshooting.html#miscellaneous">Miscellaneous</a></li>
158 </ul>159 </ul>
159 </li>160 </li>
Offset 168, 47 lines modifiedOffset 169, 47 lines modified
168 ······169 ······
169 ········170 ········
170 ··········<div·class="yui-b"·id="sidebar">171 ··········<div·class="yui-b"·id="sidebar">
171 ············172 ············
172 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">173 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
173 ········<div·class="sphinxsidebarwrapper">174 ········<div·class="sphinxsidebarwrapper">
174 ··<div>175 ··<div>
175 ····<h4>Previous·topic</h4>176 ····<h4>Argomento·precedente</h4>
176 ····<p·class="topless"><a·href="../howto/delete-app.html"177 ····<p·class="topless"><a·href="../howto/delete-app.html"
177 ··························title="previous·chapter">How·to·delete·a·Django·application</a></p>178 ··························title="capitolo·precedente">How·to·delete·a·Django·application</a></p>
178 ··</div>179 ··</div>
179 ··<div>180 ··<div>
180 ····<h4>Next·topic</h4>181 ····<h4>Argomento·successivo</h4>
181 ····<p·class="topless"><a·href="general.html"182 ····<p·class="topless"><a·href="general.html"
182 ··························title="next·chapter">FAQ:·General</a></p>183 ··························title="capitolo·successivo">FAQ:·General</a></p>
183 ··</div>184 ··</div>
184 <search·id="searchbox"·style="display:·none"·role="search">185 <search·id="searchbox"·style="display:·none"·role="search">
185 ··<h3·id="searchlabel">Quick·search</h3>186 ··<h3·id="searchlabel">Ricerca·veloce</h3>
186 ····<div·class="searchformwrapper">187 ····<div·class="searchformwrapper">
187 ····<form·class="search"·action="../search.html"·method="get">188 ····<form·class="search"·action="../search.html"·method="get">
188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>189 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
189 ······<input·type="submit"·value="Go"·/>190 ······<input·type="submit"·value="Vai"·/>
Max diff block lines reached; 800/14038 bytes (5.70%) of diff not shown.
9.22 KB
html2text {}
Max HTML report size reached
6.16 KB
./usr/share/doc/python-django-doc/html/faq/install.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·Installation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·Installation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·Using·Django"·href="usage.html"·/>15 ····<link·rel="next"·title="FAQ:·Using·Django"·href="usage.html"·/>
15 ····<link·rel="prev"·title="FAQ:·General"·href="general.html"·/>16 ····<link·rel="prev"·title="FAQ:·General"·href="general.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 178, 37 lines modifiedOffset 179, 37 lines modified
178 <li><a·class="reference·internal"·href="#should-i-use-the-stable-version-or-development-version">Should·I·use·the·stable·version·or·development·version?</a></li>179 <li><a·class="reference·internal"·href="#should-i-use-the-stable-version-or-development-version">Should·I·use·the·stable·version·or·development·version?</a></li>
179 </ul>180 </ul>
180 </li>181 </li>
181 </ul>182 </ul>
  
182 ··</div>183 ··</div>
183 ··<div>184 ··<div>
184 ····<h4>Previous·topic</h4>185 ····<h4>Argomento·precedente</h4>
185 ····<p·class="topless"><a·href="general.html"186 ····<p·class="topless"><a·href="general.html"
186 ··························title="previous·chapter">FAQ:·General</a></p>187 ··························title="capitolo·precedente">FAQ:·General</a></p>
187 ··</div>188 ··</div>
188 ··<div>189 ··<div>
189 ····<h4>Next·topic</h4>190 ····<h4>Argomento·successivo</h4>
190 ····<p·class="topless"><a·href="usage.html"191 ····<p·class="topless"><a·href="usage.html"
191 ··························title="next·chapter">FAQ:·Using·Django</a></p>192 ··························title="capitolo·successivo">FAQ:·Using·Django</a></p>
192 ··</div>193 ··</div>
193 <search·id="searchbox"·style="display:·none"·role="search">194 <search·id="searchbox"·style="display:·none"·role="search">
194 ··<h3·id="searchlabel">Quick·search</h3>195 ··<h3·id="searchlabel">Ricerca·veloce</h3>
195 ····<div·class="searchformwrapper">196 ····<div·class="searchformwrapper">
196 ····<form·class="search"·action="../search.html"·method="get">197 ····<form·class="search"·action="../search.html"·method="get">
197 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>198 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
198 ······<input·type="submit"·value="Go"·/>199 ······<input·type="submit"·value="Vai"·/>
199 ····</form>200 ····</form>
200 ····</div>201 ····</div>
201 </search>202 </search>
202 <script>document.getElementById('searchbox').style.display·=·"block"</script>203 <script>document.getElementById('searchbox').style.display·=·"block"</script>
203 ········</div>204 ········</div>
204 ······</div>205 ······</div>
205 ··············<h3>Last·update:</h3>206 ··············<h3>Last·update:</h3>
206 ··············<p·class="topless">Sep·03,·2024</p>207 ··············<p·class="topless">set·03,·2024</p>
207 ··········</div>208 ··········</div>
208 ········209 ········
209 ······210 ······
210 ····</div>211 ····</div>
  
211 ····<div·id="ft">212 ····<div·id="ft">
212 ······<div·class="nav">213 ······<div·class="nav">
2.42 KB
html2text {}
Max HTML report size reached
6.68 KB
./usr/share/doc/python-django-doc/html/faq/models.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·Databases·and·models·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·Databases·and·models·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·The·admin"·href="admin.html"·/>15 ····<link·rel="next"·title="FAQ:·The·admin"·href="admin.html"·/>
15 ····<link·rel="prev"·title="FAQ:·Getting·Help"·href="help.html"·/>16 ····<link·rel="prev"·title="FAQ:·Getting·Help"·href="help.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 177, 37 lines modifiedOffset 178, 37 lines modified
177 <li><a·class="reference·internal"·href="#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>178 <li><a·class="reference·internal"·href="#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type">How·do·I·add·database-specific·options·to·my·CREATE·TABLE·statements,·such·as·specifying·MyISAM·as·the·table·type?</a></li>
178 </ul>179 </ul>
179 </li>180 </li>
180 </ul>181 </ul>
  
181 ··</div>182 ··</div>
182 ··<div>183 ··<div>
183 ····<h4>Previous·topic</h4>184 ····<h4>Argomento·precedente</h4>
184 ····<p·class="topless"><a·href="help.html"185 ····<p·class="topless"><a·href="help.html"
185 ··························title="previous·chapter">FAQ:·Getting·Help</a></p>186 ··························title="capitolo·precedente">FAQ:·Getting·Help</a></p>
186 ··</div>187 ··</div>
187 ··<div>188 ··<div>
188 ····<h4>Next·topic</h4>189 ····<h4>Argomento·successivo</h4>
189 ····<p·class="topless"><a·href="admin.html"190 ····<p·class="topless"><a·href="admin.html"
190 ··························title="next·chapter">FAQ:·The·admin</a></p>191 ··························title="capitolo·successivo">FAQ:·The·admin</a></p>
191 ··</div>192 ··</div>
192 <search·id="searchbox"·style="display:·none"·role="search">193 <search·id="searchbox"·style="display:·none"·role="search">
193 ··<h3·id="searchlabel">Quick·search</h3>194 ··<h3·id="searchlabel">Ricerca·veloce</h3>
194 ····<div·class="searchformwrapper">195 ····<div·class="searchformwrapper">
195 ····<form·class="search"·action="../search.html"·method="get">196 ····<form·class="search"·action="../search.html"·method="get">
196 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>197 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
197 ······<input·type="submit"·value="Go"·/>198 ······<input·type="submit"·value="Vai"·/>
198 ····</form>199 ····</form>
199 ····</div>200 ····</div>
200 </search>201 </search>
201 <script>document.getElementById('searchbox').style.display·=·"block"</script>202 <script>document.getElementById('searchbox').style.display·=·"block"</script>
202 ········</div>203 ········</div>
203 ······</div>204 ······</div>
204 ··············<h3>Last·update:</h3>205 ··············<h3>Last·update:</h3>
205 ··············<p·class="topless">Sep·03,·2024</p>206 ··············<p·class="topless">set·03,·2024</p>
206 ··········</div>207 ··········</div>
207 ········208 ········
208 ······209 ······
209 ····</div>210 ····</div>
  
210 ····<div·id="ft">211 ····<div·id="ft">
211 ······<div·class="nav">212 ······<div·class="nav">
2.81 KB
html2text {}
Max HTML report size reached
10.9 KB
./usr/share/doc/python-django-doc/html/faq/troubleshooting.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Troubleshooting·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Troubleshooting·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="API·Reference"·href="../ref/index.html"·/>15 ····<link·rel="next"·title="API·Reference"·href="../ref/index.html"·/>
15 ····<link·rel="prev"·title="FAQ:·Contributing·code"·href="contributing.html"·/>16 ····<link·rel="prev"·title="FAQ:·Contributing·code"·href="contributing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 17 lines modifiedOffset 89, 17 lines modified
88 <p><a·class="reference·internal"·href="../ref/django-admin.html"><span·class="doc">django-admin</span></a>·should·be·on·your·system·path·if·you89 <p><a·class="reference·internal"·href="../ref/django-admin.html"><span·class="doc">django-admin</span></a>·should·be·on·your·system·path·if·you
89 installed·Django·via·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>.·If·it’s·not·in·your·path,·ensure·you·have·your90 installed·Django·via·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>.·If·it’s·not·in·your·path,·ensure·you·have·your
90 virtual·environment·activated·and·you·can·try·running·the·equivalent·command91 virtual·environment·activated·and·you·can·try·running·the·equivalent·command
91 <code·class="docutils·literal·notranslate"><span·class="pre">python</span>·<span·class="pre">-m</span>·<span·class="pre">django</span></code>.</p>92 <code·class="docutils·literal·notranslate"><span·class="pre">python</span>·<span·class="pre">-m</span>·<span·class="pre">django</span></code>.</p>
92 </section>93 </section>
93 <section·id="s-macos-permissions">94 <section·id="s-macos-permissions">
94 <span·id="macos-permissions"></span><h3>macOS·permissions<a·class="headerlink"·href="#macos-permissions"·title="Link·to·this·heading">¶</a></h3>95 <span·id="macos-permissions"></span><h3>macOS·permissions<a·class="headerlink"·href="#macos-permissions"·title="Link·to·this·heading">¶</a></h3>
95 <p>If·you’re·using·macOS,·you·may·see·the·message·permission·denied·when96 <p>If·you’re·using·macOS,·you·may·see·the·message·«permission·denied»·when
96 you·try·to·run·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>.·This·is·because,·on·Unix-based·systems·like97 you·try·to·run·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>.·This·is·because,·on·Unix-based·systems·like
97 macOS,·a·file·must·be·marked·as·executable·before·it·can·be·run·as·a·program.98 macOS,·a·file·must·be·marked·as·«executable»·before·it·can·be·run·as·a·program.
98 To·do·this,·open·Terminal.app·and·navigate·(using·the·<code·class="docutils·literal·notranslate"><span·class="pre">cd</span></code>·command)·to·the99 To·do·this,·open·Terminal.app·and·navigate·(using·the·<code·class="docutils·literal·notranslate"><span·class="pre">cd</span></code>·command)·to·the
99 directory·where·<a·class="reference·internal"·href="../ref/django-admin.html"><span·class="doc">django-admin</span></a>·is·installed,·then100 directory·where·<a·class="reference·internal"·href="../ref/django-admin.html"><span·class="doc">django-admin</span></a>·is·installed,·then
100 run·the·command·<code·class="docutils·literal·notranslate"><span·class="pre">sudo</span>·<span·class="pre">chmod</span>·<span·class="pre">+x</span>·<span·class="pre">django-admin</span></code>.</p>101 run·the·command·<code·class="docutils·literal·notranslate"><span·class="pre">sudo</span>·<span·class="pre">chmod</span>·<span·class="pre">+x</span>·<span·class="pre">django-admin</span></code>.</p>
101 </section>102 </section>
102 </section>103 </section>
103 <section·id="s-miscellaneous">104 <section·id="s-miscellaneous">
104 <span·id="miscellaneous"></span><h2>Miscellaneous<a·class="headerlink"·href="#miscellaneous"·title="Link·to·this·heading">¶</a></h2>105 <span·id="miscellaneous"></span><h2>Miscellaneous<a·class="headerlink"·href="#miscellaneous"·title="Link·to·this·heading">¶</a></h2>
Offset 110, 15 lines modifiedOffset 111, 15 lines modified
110 <div·class="highlight-pytb·notranslate"><div·class="highlight"><pre><span></span><span·class="x">UnicodeDecodeError:·&#39;ascii&#39;·codec·can&#39;t·decode·byte·0x??·in·position·?:</span>111 <div·class="highlight-pytb·notranslate"><div·class="highlight"><pre><span></span><span·class="x">UnicodeDecodeError:·&#39;ascii&#39;·codec·can&#39;t·decode·byte·0x??·in·position·?:</span>
111 <span·class="x">ordinal·not·in·range(128)</span>112 <span·class="x">ordinal·not·in·range(128)</span>
112 </pre></div>113 </pre></div>
113 </div>114 </div>
114 <p>The·resolution·mostly·depends·on·the·context,·however·here·are·two·common115 <p>The·resolution·mostly·depends·on·the·context,·however·here·are·two·common
115 pitfalls·producing·this·error:</p>116 pitfalls·producing·this·error:</p>
116 <ul·class="simple">117 <ul·class="simple">
117 <li><p>Your·system·locale·may·be·a·default·ASCII·locale,·like·the·C·locale·on118 <li><p>Your·system·locale·may·be·a·default·ASCII·locale,·like·the·«C»·locale·on
118 UNIX-like·systems·(can·be·checked·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">locale</span></code>·command).·If·it’s·the119 UNIX-like·systems·(can·be·checked·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">locale</span></code>·command).·If·it’s·the
119 case,·please·refer·to·your·system·documentation·to·learn·how·you·can·change120 case,·please·refer·to·your·system·documentation·to·learn·how·you·can·change
120 this·to·a·UTF-8·locale.</p></li>121 this·to·a·UTF-8·locale.</p></li>
121 </ul>122 </ul>
122 <p>Related·resources:</p>123 <p>Related·resources:</p>
123 <ul·class="simple">124 <ul·class="simple">
124 <li><p><a·class="reference·internal"·href="../ref/unicode.html"><span·class="doc">Unicode·in·Django</span></a></p></li>125 <li><p><a·class="reference·internal"·href="../ref/unicode.html"><span·class="doc">Unicode·in·Django</span></a></p></li>
Offset 153, 37 lines modifiedOffset 154, 37 lines modified
153 </li>154 </li>
154 </ul>155 </ul>
155 </li>156 </li>
156 </ul>157 </ul>
  
157 ··</div>158 ··</div>
158 ··<div>159 ··<div>
159 ····<h4>Previous·topic</h4>160 ····<h4>Argomento·precedente</h4>
160 ····<p·class="topless"><a·href="contributing.html"161 ····<p·class="topless"><a·href="contributing.html"
161 ··························title="previous·chapter">FAQ:·Contributing·code</a></p>162 ··························title="capitolo·precedente">FAQ:·Contributing·code</a></p>
162 ··</div>163 ··</div>
163 ··<div>164 ··<div>
164 ····<h4>Next·topic</h4>165 ····<h4>Argomento·successivo</h4>
165 ····<p·class="topless"><a·href="../ref/index.html"166 ····<p·class="topless"><a·href="../ref/index.html"
166 ··························title="next·chapter">API·Reference</a></p>167 ··························title="capitolo·successivo">API·Reference</a></p>
167 ··</div>168 ··</div>
168 <search·id="searchbox"·style="display:·none"·role="search">169 <search·id="searchbox"·style="display:·none"·role="search">
169 ··<h3·id="searchlabel">Quick·search</h3>170 ··<h3·id="searchlabel">Ricerca·veloce</h3>
170 ····<div·class="searchformwrapper">171 ····<div·class="searchformwrapper">
171 ····<form·class="search"·action="../search.html"·method="get">172 ····<form·class="search"·action="../search.html"·method="get">
172 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>173 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
173 ······<input·type="submit"·value="Go"·/>174 ······<input·type="submit"·value="Vai"·/>
174 ····</form>175 ····</form>
175 ····</div>176 ····</div>
176 </search>177 </search>
177 <script>document.getElementById('searchbox').style.display·=·"block"</script>178 <script>document.getElementById('searchbox').style.display·=·"block"</script>
178 ········</div>179 ········</div>
179 ······</div>180 ······</div>
180 ··············<h3>Last·update:</h3>181 ··············<h3>Last·update:</h3>
181 ··············<p·class="topless">Sep·03,·2024</p>182 ··············<p·class="topless">set·03,·2024</p>
182 ··········</div>183 ··········</div>
183 ········184 ········
184 ······185 ······
185 ····</div>186 ····</div>
  
186 ····<div·id="ft">187 ····<div·id="ft">
187 ······<div·class="nav">188 ······<div·class="nav">
4.46 KB
html2text {}
Max HTML report size reached
6.5 KB
./usr/share/doc/python-django-doc/html/faq/usage.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>FAQ:·Using·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>FAQ:·Using·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="FAQ:·Getting·Help"·href="help.html"·/>15 ····<link·rel="next"·title="FAQ:·Getting·Help"·href="help.html"·/>
15 ····<link·rel="prev"·title="FAQ:·Installation"·href="install.html"·/>16 ····<link·rel="prev"·title="FAQ:·Installation"·href="install.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 159, 37 lines modifiedOffset 160, 37 lines modified
159 <li><a·class="reference·internal"·href="#how-do-i-make-a-variable-available-to-all-my-templates">How·do·I·make·a·variable·available·to·all·my·templates?</a></li>160 <li><a·class="reference·internal"·href="#how-do-i-make-a-variable-available-to-all-my-templates">How·do·I·make·a·variable·available·to·all·my·templates?</a></li>
160 </ul>161 </ul>
161 </li>162 </li>
162 </ul>163 </ul>
  
163 ··</div>164 ··</div>
164 ··<div>165 ··<div>
165 ····<h4>Previous·topic</h4>166 ····<h4>Argomento·precedente</h4>
166 ····<p·class="topless"><a·href="install.html"167 ····<p·class="topless"><a·href="install.html"
167 ··························title="previous·chapter">FAQ:·Installation</a></p>168 ··························title="capitolo·precedente">FAQ:·Installation</a></p>
168 ··</div>169 ··</div>
169 ··<div>170 ··<div>
170 ····<h4>Next·topic</h4>171 ····<h4>Argomento·successivo</h4>
171 ····<p·class="topless"><a·href="help.html"172 ····<p·class="topless"><a·href="help.html"
172 ··························title="next·chapter">FAQ:·Getting·Help</a></p>173 ··························title="capitolo·successivo">FAQ:·Getting·Help</a></p>
173 ··</div>174 ··</div>
174 <search·id="searchbox"·style="display:·none"·role="search">175 <search·id="searchbox"·style="display:·none"·role="search">
175 ··<h3·id="searchlabel">Quick·search</h3>176 ··<h3·id="searchlabel">Ricerca·veloce</h3>
176 ····<div·class="searchformwrapper">177 ····<div·class="searchformwrapper">
177 ····<form·class="search"·action="../search.html"·method="get">178 ····<form·class="search"·action="../search.html"·method="get">
178 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>179 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
179 ······<input·type="submit"·value="Go"·/>180 ······<input·type="submit"·value="Vai"·/>
180 ····</form>181 ····</form>
181 ····</div>182 ····</div>
182 </search>183 </search>
183 <script>document.getElementById('searchbox').style.display·=·"block"</script>184 <script>document.getElementById('searchbox').style.display·=·"block"</script>
184 ········</div>185 ········</div>
185 ······</div>186 ······</div>
186 ··············<h3>Last·update:</h3>187 ··············<h3>Last·update:</h3>
187 ··············<p·class="topless">Sep·03,·2024</p>188 ··············<p·class="topless">set·03,·2024</p>
188 ··········</div>189 ··········</div>
189 ········190 ········
190 ······191 ······
191 ····</div>192 ····</div>
  
192 ····<div·id="ft">193 ····<div·id="ft">
193 ······<div·class="nav">194 ······<div·class="nav">
2.74 KB
html2text {}
Max HTML report size reached
1.68 MB
./usr/share/doc/python-django-doc/html/genindex.html
Max HTML report size reached
11.1 KB
./usr/share/doc/python-django-doc/html/glossary.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="./">2 <html·lang="it"·data-content_root="./">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Glossary·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Glossary·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>
9 ····<script·src="_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="search.html"·/>
14 ····<link·rel="next"·title="Release·notes"·href="releases/index.html"·/>15 ····<link·rel="next"·title="Release·notes"·href="releases/index.html"·/>
15 ····<link·rel="prev"·title="Third-party·distributions·of·Django"·href="misc/distributions.html"·/>16 ····<link·rel="prev"·title="Third-party·distributions·of·Django"·href="misc/distributions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="templatebuiltins.js"></script>18 <script·src="templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="index.html">Home</a>··|61 ········<a·title="Home·page"·href="index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="misc/distributions.html"·title="Third-party·distributions·of·Django">previous</a>67 ····&laquo;·<a·href="misc/distributions.html"·title="Third-party·distributions·of·Django">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="releases/index.html"·title="Release·notes">next</a>·&raquo;</div>71 ····<a·href="releases/index.html"·title="Release·notes">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 89, 27 lines modifiedOffset 90, 27 lines modified
89 <dt·id="term-generic-view">generic·view<a·class="headerlink"·href="#term-generic-view"·title="Link·to·this·term">¶</a></dt><dd><p>A·higher-order·<a·class="reference·internal"·href="#term-view"><span·class="xref·std·std-term">view</span></a>·function·that·provides·an·abstract/generic90 <dt·id="term-generic-view">generic·view<a·class="headerlink"·href="#term-generic-view"·title="Link·to·this·term">¶</a></dt><dd><p>A·higher-order·<a·class="reference·internal"·href="#term-view"><span·class="xref·std·std-term">view</span></a>·function·that·provides·an·abstract/generic
90 implementation·of·a·common·idiom·or·pattern·found·in·view·development.</p>91 implementation·of·a·common·idiom·or·pattern·found·in·view·development.</p>
91 <p>See·<a·class="reference·internal"·href="topics/class-based-views/index.html"><span·class="doc">Class-based·views</span></a>.</p>92 <p>See·<a·class="reference·internal"·href="topics/class-based-views/index.html"><span·class="doc">Class-based·views</span></a>.</p>
92 </dd>93 </dd>
93 <dt·id="term-model">model<a·class="headerlink"·href="#term-model"·title="Link·to·this·term">¶</a></dt><dd><p>Models·store·your·application’s·data.</p>94 <dt·id="term-model">model<a·class="headerlink"·href="#term-model"·title="Link·to·this·term">¶</a></dt><dd><p>Models·store·your·application’s·data.</p>
94 <p>See·<a·class="reference·internal"·href="topics/db/models.html"><span·class="doc">Models</span></a>.</p>95 <p>See·<a·class="reference·internal"·href="topics/db/models.html"><span·class="doc">Models</span></a>.</p>
95 </dd>96 </dd>
96 <dt·id="term-MTV">MTV<a·class="headerlink"·href="#term-MTV"·title="Link·to·this·term">¶</a></dt><dd><p>Model-template-view;·a·software·pattern,·similar·in·style·to·MVC,·but97 <dt·id="term-MTV">MTV<a·class="headerlink"·href="#term-MTV"·title="Link·to·this·term">¶</a></dt><dd><p>«Model-template-view»;·a·software·pattern,·similar·in·style·to·MVC,·but
97 a·better·description·of·the·way·Django·does·things.</p>98 a·better·description·of·the·way·Django·does·things.</p>
98 <p>See·<a·class="reference·internal"·href="faq/general.html#faq-mtv"><span·class="std·std-ref">the·FAQ·entry</span></a>.</p>99 <p>See·<a·class="reference·internal"·href="faq/general.html#faq-mtv"><span·class="std·std-ref">the·FAQ·entry</span></a>.</p>
99 </dd>100 </dd>
100 <dt·id="term-MVC">MVC<a·class="headerlink"·href="#term-MVC"·title="Link·to·this·term">¶</a></dt><dd><p><a·class="reference·external"·href="https://en.wikipedia.org/wiki/Model-view-controller">Model-view-controller</a>;·a·software·pattern.·Django·<a·class="reference·internal"·href="faq/general.html#faq-mtv"><span·class="std·std-ref">follows·MVC101 <dt·id="term-MVC">MVC<a·class="headerlink"·href="#term-MVC"·title="Link·to·this·term">¶</a></dt><dd><p><a·class="reference·external"·href="https://en.wikipedia.org/wiki/Model-view-controller">Model-view-controller</a>;·a·software·pattern.·Django·<a·class="reference·internal"·href="faq/general.html#faq-mtv"><span·class="std·std-ref">follows·MVC
101 to·some·extent</span></a>.</p>102 to·some·extent</span></a>.</p>
102 </dd>103 </dd>
103 <dt·id="term-project">project<a·class="headerlink"·href="#term-project"·title="Link·to·this·term">¶</a></dt><dd><p>A·Python·package··i.e.·a·directory·of·code··that·contains·all·the104 <dt·id="term-project">project<a·class="headerlink"·href="#term-project"·title="Link·to·this·term">¶</a></dt><dd><p>A·Python·package··i.e.·a·directory·of·code··that·contains·all·the
104 settings·for·an·instance·of·Django.·This·would·include·database105 settings·for·an·instance·of·Django.·This·would·include·database
105 configuration,·Django-specific·options·and·application-specific106 configuration,·Django-specific·options·and·application-specific
106 settings.</p>107 settings.</p>
107 </dd>108 </dd>
108 <dt·id="term-property">property<a·class="headerlink"·href="#term-property"·title="Link·to·this·term">¶</a></dt><dd><p>Also·known·as·managed·attributes,·and·a·feature·of·Python·since109 <dt·id="term-property">property<a·class="headerlink"·href="#term-property"·title="Link·to·this·term">¶</a></dt><dd><p>Also·known·as·«managed·attributes»,·and·a·feature·of·Python·since
109 version·2.2.·This·is·a·neat·way·to·implement·attributes·whose·usage110 version·2.2.·This·is·a·neat·way·to·implement·attributes·whose·usage
110 resembles·attribute·access,·but·whose·implementation·uses·method·calls.</p>111 resembles·attribute·access,·but·whose·implementation·uses·method·calls.</p>
111 <p>See·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#property"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">property</span></code></a>.</p>112 <p>See·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#property"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">property</span></code></a>.</p>
112 </dd>113 </dd>
113 <dt·id="term-queryset">queryset<a·class="headerlink"·href="#term-queryset"·title="Link·to·this·term">¶</a></dt><dd><p>An·object·representing·some·set·of·rows·to·be·fetched·from·the·database.</p>114 <dt·id="term-queryset">queryset<a·class="headerlink"·href="#term-queryset"·title="Link·to·this·term">¶</a></dt><dd><p>An·object·representing·some·set·of·rows·to·be·fetched·from·the·database.</p>
114 <p>See·<a·class="reference·internal"·href="topics/db/queries.html"><span·class="doc">Making·queries</span></a>.</p>115 <p>See·<a·class="reference·internal"·href="topics/db/queries.html"><span·class="doc">Making·queries</span></a>.</p>
115 </dd>116 </dd>
Offset 136, 47 lines modifiedOffset 137, 47 lines modified
136 ······137 ······
137 ········138 ········
138 ··········<div·class="yui-b"·id="sidebar">139 ··········<div·class="yui-b"·id="sidebar">
139 ············140 ············
140 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">141 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
141 ········<div·class="sphinxsidebarwrapper">142 ········<div·class="sphinxsidebarwrapper">
142 ··<div>143 ··<div>
143 ····<h4>Previous·topic</h4>144 ····<h4>Argomento·precedente</h4>
144 ····<p·class="topless"><a·href="misc/distributions.html"145 ····<p·class="topless"><a·href="misc/distributions.html"
145 ··························title="previous·chapter">Third-party·distributions·of·Django</a></p>146 ··························title="capitolo·precedente">Third-party·distributions·of·Django</a></p>
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Next·topic</h4>149 ····<h4>Argomento·successivo</h4>
149 ····<p·class="topless"><a·href="releases/index.html"150 ····<p·class="topless"><a·href="releases/index.html"
150 ··························title="next·chapter">Release·notes</a></p>151 ··························title="capitolo·successivo">Release·notes</a></p>
151 ··</div>152 ··</div>
152 <search·id="searchbox"·style="display:·none"·role="search">153 <search·id="searchbox"·style="display:·none"·role="search">
153 ··<h3·id="searchlabel">Quick·search</h3>154 ··<h3·id="searchlabel">Ricerca·veloce</h3>
154 ····<div·class="searchformwrapper">155 ····<div·class="searchformwrapper">
155 ····<form·class="search"·action="search.html"·method="get">156 ····<form·class="search"·action="search.html"·method="get">
156 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
157 ······<input·type="submit"·value="Go"·/>158 ······<input·type="submit"·value="Vai"·/>
158 ····</form>159 ····</form>
159 ····</div>160 ····</div>
160 </search>161 </search>
161 <script>document.getElementById('searchbox').style.display·=·"block"</script>162 <script>document.getElementById('searchbox').style.display·=·"block"</script>
162 ········</div>163 ········</div>
163 ······</div>164 ······</div>
164 ··············<h3>Last·update:</h3>165 ··············<h3>Last·update:</h3>
165 ··············<p·class="topless">Sep·03,·2024</p>166 ··············<p·class="topless">set·03,·2024</p>
166 ··········</div>167 ··········</div>
167 ········168 ········
168 ······169 ······
169 ····</div>170 ····</div>
  
170 ····<div·id="ft">171 ····<div·id="ft">
171 ······<div·class="nav">172 ······<div·class="nav">
172 ····&laquo;·<a·href="misc/distributions.html"·title="Third-party·distributions·of·Django">previous</a>173 ····&laquo;·<a·href="misc/distributions.html"·title="Third-party·distributions·of·Django">previous</a>
173 ·····|174 ·····|
174 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a>175 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a>
175 ···|176 ···|
176 ····<a·href="releases/index.html"·title="Release·notes">next</a>·&raquo;</div>177 ····<a·href="releases/index.html"·title="Release·notes">next</a>·&raquo;</div>
177 ····</div>178 ····</div>
178 ··</div>179 ··</div>
  
179 ······<div·class="clearer"></div>180 ······<div·class="clearer"></div>
180 ····</div>181 ····</div>
3.38 KB
html2text {}
Max HTML report size reached
13.4 KB
./usr/share/doc/python-django-doc/html/howto/auth-remote-user.html
    
Offset 1, 24 lines modifiedOffset 1, 25 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·authenticate·using·REMOTE_USER·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·authenticate·using·REMOTE_USER·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django’s·CSRF·protection"·href="csrf.html"·/>15 ····<link·rel="next"·title="How·to·use·Django’s·CSRF·protection"·href="csrf.html"·/>
15 ····<link·rel="prev"·title="How-to·guides"·href="index.html"·/>16 ····<link·rel="prev"·title="«How-to»·guides"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
18 <script>19 <script>
19 (function($)·{20 (function($)·{
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="index.html"·title="How-to·guides">previous</a>67 ····&laquo;·<a·href="index.html"·title="«How-to»·guides">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="csrf.html"·title="How·to·use·Django’s·CSRF·protection">next</a>·&raquo;</div>71 ····<a·href="csrf.html"·title="How·to·use·Django’s·CSRF·protection">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 124, 15 lines modifiedOffset 125, 15 lines modified
124 <code·class="docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code>·list·will·use·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>·as·a·fallback125 <code·class="docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code>·list·will·use·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>·as·a·fallback
125 if·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·is·absent,·which·will·solve·these·issues.</p>126 if·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·is·absent,·which·will·solve·these·issues.</p>
126 <p>Django’s·user·management,·such·as·the·views·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code>·and127 <p>Django’s·user·management,·such·as·the·views·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code>·and
127 the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-createsuperuser"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">createsuperuser</span></code></a>·management·command,·doesn’t·integrate·with128 the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-createsuperuser"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">createsuperuser</span></code></a>·management·command,·doesn’t·integrate·with
128 remote·users.·These·interfaces·work·with·users·stored·in·the·database129 remote·users.·These·interfaces·work·with·users·stored·in·the·database
129 regardless·of·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code>.</p>130 regardless·of·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code>.</p>
130 <div·class="admonition·note">131 <div·class="admonition·note">
131 <p·class="admonition-title">Note</p>132 <p·class="admonition-title">Nota</p>
132 <p>Since·the·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserBackend</span></code>·inherits·from·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,·you·will133 <p>Since·the·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserBackend</span></code>·inherits·from·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,·you·will
133 still·have·all·of·the·same·permissions·checking·that·is·implemented·in134 still·have·all·of·the·same·permissions·checking·that·is·implemented·in
134 <code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>.</p>135 <code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>.</p>
135 <p>Users·with·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active=False</span></code></a>·won’t·be·allowed·to136 <p>Users·with·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active=False</span></code></a>·won’t·be·allowed·to
136 authenticate.·Use137 authenticate.·Use
137 <a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.backends.AllowAllUsersRemoteUserBackend"·title="django.contrib.auth.backends.AllowAllUsersRemoteUserBackend"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AllowAllUsersRemoteUserBackend</span></code></a>·if138 <a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.backends.AllowAllUsersRemoteUserBackend"·title="django.contrib.auth.backends.AllowAllUsersRemoteUserBackend"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AllowAllUsersRemoteUserBackend</span></code></a>·if
138 you·want·to·allow·them·to.</p>139 you·want·to·allow·them·to.</p>
Offset 144, 19 lines modifiedOffset 145, 19 lines modified
  
  
144 <span·class="k">class</span>·<span·class="nc">CustomHeaderMiddleware</span><span·class="p">(</span><span·class="n">RemoteUserMiddleware</span><span·class="p">):</span>145 <span·class="k">class</span>·<span·class="nc">CustomHeaderMiddleware</span><span·class="p">(</span><span·class="n">RemoteUserMiddleware</span><span·class="p">):</span>
145 ····<span·class="n">header</span>·<span·class="o">=</span>·<span·class="s2">&quot;HTTP_AUTHUSER&quot;</span>146 ····<span·class="n">header</span>·<span·class="o">=</span>·<span·class="s2">&quot;HTTP_AUTHUSER&quot;</span>
146 </pre></div>147 </pre></div>
147 </div>148 </div>
148 <div·class="admonition·warning">149 <div·class="admonition·warning">
149 <p·class="admonition-title">Warning</p>150 <p·class="admonition-title">Avvertimento</p>
150 <p>Be·very·careful·if·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserMiddleware</span></code>·subclass·with·a·custom151 <p>Be·very·careful·if·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserMiddleware</span></code>·subclass·with·a·custom
151 HTTP·header.·You·must·be·sure·that·your·front-end·web·server·always·sets·or152 HTTP·header.·You·must·be·sure·that·your·front-end·web·server·always·sets·or
152 strips·that·header·based·on·the·appropriate·authentication·checks,·never153 strips·that·header·based·on·the·appropriate·authentication·checks,·never
153 permitting·an·end-user·to·submit·a·fake·(or·spoofed)·header·value.·Since154 permitting·an·end-user·to·submit·a·fake·(or·«spoofed»)·header·value.·Since
154 the·HTTP·headers·<code·class="docutils·literal·notranslate"><span·class="pre">X-Auth-User</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">X-Auth_User</span></code>·(for·example)·both155 the·HTTP·headers·<code·class="docutils·literal·notranslate"><span·class="pre">X-Auth-User</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">X-Auth_User</span></code>·(for·example)·both
155 normalize·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">HTTP_X_AUTH_USER</span></code>·key·in·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>,·you·must156 normalize·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">HTTP_X_AUTH_USER</span></code>·key·in·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>,·you·must
156 also·check·that·your·web·server·doesn’t·allow·a·spoofed·header·using157 also·check·that·your·web·server·doesn’t·allow·a·spoofed·header·using
157 underscores·in·place·of·dashes.</p>158 underscores·in·place·of·dashes.</p>
158 <p>This·warning·doesn’t·apply·to·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserMiddleware</span></code>·in·its·default159 <p>This·warning·doesn’t·apply·to·<code·class="docutils·literal·notranslate"><span·class="pre">RemoteUserMiddleware</span></code>·in·its·default
159 configuration·with·<code·class="docutils·literal·notranslate"><span·class="pre">header</span>·<span·class="pre">=</span>·<span·class="pre">'REMOTE_USER'</span></code>,·since·a·key·that·doesn’t160 configuration·with·<code·class="docutils·literal·notranslate"><span·class="pre">header</span>·<span·class="pre">=</span>·<span·class="pre">'REMOTE_USER'</span></code>,·since·a·key·that·doesn’t
160 start·with·<code·class="docutils·literal·notranslate"><span·class="pre">HTTP_</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>·can·only·be·set·by·your·WSGI161 start·with·<code·class="docutils·literal·notranslate"><span·class="pre">HTTP_</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>·can·only·be·set·by·your·WSGI
Offset 202, 47 lines modifiedOffset 203, 47 lines modified
202 <li><a·class="reference·internal"·href="#using-remote-user-on-login-pages-only">Using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·on·login·pages·only</a></li>203 <li><a·class="reference·internal"·href="#using-remote-user-on-login-pages-only">Using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code>·on·login·pages·only</a></li>
203 </ul>204 </ul>
204 </li>205 </li>
205 </ul>206 </ul>
  
206 ··</div>207 ··</div>
207 ··<div>208 ··<div>
208 ····<h4>Previous·topic</h4>209 ····<h4>Argomento·precedente</h4>
209 ····<p·class="topless"><a·href="index.html"210 ····<p·class="topless"><a·href="index.html"
210 ··························title="previous·chapter">How-to·guides</a></p>211 ··························title="capitolo·precedente">«How-to»·guides</a></p>
211 ··</div>212 ··</div>
212 ··<div>213 ··<div>
213 ····<h4>Next·topic</h4>214 ····<h4>Argomento·successivo</h4>
214 ····<p·class="topless"><a·href="csrf.html"215 ····<p·class="topless"><a·href="csrf.html"
215 ··························title="next·chapter">How·to·use·Django’s·CSRF·protection</a></p>216 ··························title="capitolo·successivo">How·to·use·Django’s·CSRF·protection</a></p>
216 ··</div>217 ··</div>
217 <search·id="searchbox"·style="display:·none"·role="search">218 <search·id="searchbox"·style="display:·none"·role="search">
218 ··<h3·id="searchlabel">Quick·search</h3>219 ··<h3·id="searchlabel">Ricerca·veloce</h3>
219 ····<div·class="searchformwrapper">220 ····<div·class="searchformwrapper">
220 ····<form·class="search"·action="../search.html"·method="get">221 ····<form·class="search"·action="../search.html"·method="get">
221 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>222 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
222 ······<input·type="submit"·value="Go"·/>223 ······<input·type="submit"·value="Vai"·/>
223 ····</form>224 ····</form>
224 ····</div>225 ····</div>
225 </search>226 </search>
226 <script>document.getElementById('searchbox').style.display·=·"block"</script>227 <script>document.getElementById('searchbox').style.display·=·"block"</script>
227 ········</div>228 ········</div>
228 ······</div>229 ······</div>
229 ··············<h3>Last·update:</h3>230 ··············<h3>Last·update:</h3>
230 ··············<p·class="topless">Sep·03,·2024</p>231 ··············<p·class="topless">set·03,·2024</p>
231 ··········</div>232 ··········</div>
232 ········233 ········
233 ······234 ······
234 ····</div>235 ····</div>
  
235 ····<div·id="ft">236 ····<div·id="ft">
236 ······<div·class="nav">237 ······<div·class="nav">
237 ····&laquo;·<a·href="index.html"·title="How-to·guides">previous</a>238 ····&laquo;·<a·href="index.html"·title="«How-to»·guides">previous</a>
238 ·····|239 ·····|
Max diff block lines reached; 163/9014 bytes (1.81%) of diff not shown.
4.42 KB
html2text {}
Max HTML report size reached
16.2 KB
./usr/share/doc/python-django-doc/html/howto/csrf.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django’s·CSRF·protection·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django’s·CSRF·protection·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·create·custom·django-admin·commands"·href="custom-management-commands.html"·/>15 ····<link·rel="next"·title="How·to·create·custom·django-admin·commands"·href="custom-management-commands.html"·/>
15 ····<link·rel="prev"·title="How·to·authenticate·using·REMOTE_USER"·href="auth-remote-user.html"·/>16 ····<link·rel="prev"·title="How·to·authenticate·using·REMOTE_USER"·href="auth-remote-user.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">previous</a>67 ····&laquo;·<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="custom-management-commands.html"·title="How·to·create·custom·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;django-admin&lt;/span&gt;&lt;/code&gt;·commands">next</a>·&raquo;</div>71 ····<a·href="custom-management-commands.html"·title="How·to·create·custom·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;django-admin&lt;/span&gt;&lt;/code&gt;·commands">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 141, 24 lines modifiedOffset 142, 24 lines modified
141 </pre></div>142 </pre></div>
142 </div>143 </div>
143 <p>The·above·code·could·be·simplified·by·using·the·<a·class="reference·external"·href="https://github.com/js-cookie/js-cookie/">JavaScript·Cookie·library</a>·to·replace·<code·class="docutils·literal·notranslate"><span·class="pre">getCookie</span></code>:</p>144 <p>The·above·code·could·be·simplified·by·using·the·<a·class="reference·external"·href="https://github.com/js-cookie/js-cookie/">JavaScript·Cookie·library</a>·to·replace·<code·class="docutils·literal·notranslate"><span·class="pre">getCookie</span></code>:</p>
144 <div·class="highlight-javascript·notranslate"><div·class="highlight"><pre><span></span><span·class="kd">const</span><span·class="w">·</span><span·class="nx">csrftoken</span><span·class="w">·</span><span·class="o">=</span><span·class="w">·</span><span·class="nx">Cookies</span><span·class="p">.</span><span·class="nx">get</span><span·class="p">(</span><span·class="s1">&#39;csrftoken&#39;</span><span·class="p">);</span>145 <div·class="highlight-javascript·notranslate"><div·class="highlight"><pre><span></span><span·class="kd">const</span><span·class="w">·</span><span·class="nx">csrftoken</span><span·class="w">·</span><span·class="o">=</span><span·class="w">·</span><span·class="nx">Cookies</span><span·class="p">.</span><span·class="nx">get</span><span·class="p">(</span><span·class="s1">&#39;csrftoken&#39;</span><span·class="p">);</span>
145 </pre></div>146 </pre></div>
146 </div>147 </div>
147 <div·class="admonition·note">148 <div·class="admonition·note">
148 <p·class="admonition-title">Note</p>149 <p·class="admonition-title">Nota</p>
149 <p>The·CSRF·token·is·also·present·in·the·DOM·in·a·masked·form,·but·only·if150 <p>The·CSRF·token·is·also·present·in·the·DOM·in·a·masked·form,·but·only·if
150 explicitly·included·using·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-csrf_token"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">csrf_token</span></code></a>·in·a·template.·The·cookie151 explicitly·included·using·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-csrf_token"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">csrf_token</span></code></a>·in·a·template.·The·cookie
151 contains·the·canonical,·unmasked·token.·The152 contains·the·canonical,·unmasked·token.·The
152 <a·class="reference·internal"·href="../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware"·title="django.middleware.csrf.CsrfViewMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code></a>·will·accept·either.153 <a·class="reference·internal"·href="../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware"·title="django.middleware.csrf.CsrfViewMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code></a>·will·accept·either.
153 However,·in·order·to·protect·against·<a·class="reference·external"·href="https://www.breachattack.com/">BREACH</a>·attacks,·it’s·recommended·to154 However,·in·order·to·protect·against·<a·class="reference·external"·href="https://www.breachattack.com/">BREACH</a>·attacks,·it’s·recommended·to
154 use·a·masked·token.</p>155 use·a·masked·token.</p>
155 </div>156 </div>
156 <div·class="admonition·warning">157 <div·class="admonition·warning">
157 <p·class="admonition-title">Warning</p>158 <p·class="admonition-title">Avvertimento</p>
158 <p>If·your·view·is·not·rendering·a·template·containing·the·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-csrf_token"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">csrf_token</span></code></a>159 <p>If·your·view·is·not·rendering·a·template·containing·the·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-csrf_token"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">csrf_token</span></code></a>
159 template·tag,·Django·might·not·set·the·CSRF·token·cookie.·This·is·common·in160 template·tag,·Django·might·not·set·the·CSRF·token·cookie.·This·is·common·in
160 cases·where·forms·are·dynamically·added·to·the·page.·To·address·this·case,161 cases·where·forms·are·dynamically·added·to·the·page.·To·address·this·case,
161 Django·provides·a·view·decorator·which·forces·setting·of·the·cookie:162 Django·provides·a·view·decorator·which·forces·setting·of·the·cookie:
162 <a·class="reference·internal"·href="../ref/csrf.html#django.views.decorators.csrf.ensure_csrf_cookie"·title="django.views.decorators.csrf.ensure_csrf_cookie"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">ensure_csrf_cookie()</span></code></a>.</p>163 <a·class="reference·internal"·href="../ref/csrf.html#django.views.decorators.csrf.ensure_csrf_cookie"·title="django.views.decorators.csrf.ensure_csrf_cookie"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">ensure_csrf_cookie()</span></code></a>.</p>
163 </div>164 </div>
164 </section>165 </section>
Offset 207, 20 lines modifiedOffset 208, 20 lines modified
207 <p>Rather·than·adding·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·as·a·blanket·protection,·you·can·use208 <p>Rather·than·adding·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·as·a·blanket·protection,·you·can·use
208 the·<a·class="reference·internal"·href="../ref/csrf.html#django.views.decorators.csrf.csrf_protect"·title="django.views.decorators.csrf.csrf_protect"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">csrf_protect()</span></code></a>·decorator,·which·has209 the·<a·class="reference·internal"·href="../ref/csrf.html#django.views.decorators.csrf.csrf_protect"·title="django.views.decorators.csrf.csrf_protect"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">csrf_protect()</span></code></a>·decorator,·which·has
209 exactly·the·same·functionality,·on·particular·views·that·need·the·protection.210 exactly·the·same·functionality,·on·particular·views·that·need·the·protection.
210 It·must·be·used·<strong>both</strong>·on·views·that·insert·the·CSRF·token·in·the·output,·and211 It·must·be·used·<strong>both</strong>·on·views·that·insert·the·CSRF·token·in·the·output,·and
211 on·those·that·accept·the·POST·form·data.·(These·are·often·the·same·view212 on·those·that·accept·the·POST·form·data.·(These·are·often·the·same·view
212 function,·but·not·always).</p>213 function,·but·not·always).</p>
213 <p>Use·of·the·decorator·by·itself·is·<strong>not·recommended</strong>,·since·if·you·forget·to214 <p>Use·of·the·decorator·by·itself·is·<strong>not·recommended</strong>,·since·if·you·forget·to
214 use·it,·you·will·have·a·security·hole.·The·belt·and·braces·strategy·of·using215 use·it,·you·will·have·a·security·hole.·The·belt·and·braces·strategy·of·using
215 both·is·fine,·and·will·incur·minimal·overhead.</p>216 both·is·fine,·and·will·incur·minimal·overhead.</p>
216 </section>217 </section>
217 <section·id="s-handling-rejected-requests">218 <section·id="s-handling-rejected-requests">
218 <span·id="s-csrf-rejected-requests"></span><span·id="handling-rejected-requests"></span><span·id="csrf-rejected-requests"></span><h2>Handling·rejected·requests<a·class="headerlink"·href="#handling-rejected-requests"·title="Link·to·this·heading">¶</a></h2>219 <span·id="s-csrf-rejected-requests"></span><span·id="handling-rejected-requests"></span><span·id="csrf-rejected-requests"></span><h2>Handling·rejected·requests<a·class="headerlink"·href="#handling-rejected-requests"·title="Link·to·this·heading">¶</a></h2>
219 <p>By·default,·a·403·Forbidden·response·is·sent·to·the·user·if·an·incoming220 <p>By·default,·a·403·Forbidden·response·is·sent·to·the·user·if·an·incoming
220 request·fails·the·checks·performed·by·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>.·This·should221 request·fails·the·checks·performed·by·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>.·This·should
221 usually·only·be·seen·when·there·is·a·genuine·Cross·Site·Request·Forgery,·or222 usually·only·be·seen·when·there·is·a·genuine·Cross·Site·Request·Forgery,·or
222 when,·due·to·a·programming·error,·the·CSRF·token·has·not·been·included·with·a223 when,·due·to·a·programming·error,·the·CSRF·token·has·not·been·included·with·a
223 POST·form.</p>224 POST·form.</p>
224 <p>The·error·page,·however,·is·not·very·friendly,·so·you·may·want·to·provide·your225 <p>The·error·page,·however,·is·not·very·friendly,·so·you·may·want·to·provide·your
225 own·view·for·handling·this·condition.·To·do·this,·set·the226 own·view·for·handling·this·condition.·To·do·this,·set·the
226 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_FAILURE_VIEW"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_FAILURE_VIEW</span></code></a>·setting.</p>227 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_FAILURE_VIEW"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_FAILURE_VIEW</span></code></a>·setting.</p>
Offset 372, 47 lines modifiedOffset 373, 47 lines modified
372 <li><a·class="reference·internal"·href="#csrf-protection-in-reusable-applications">CSRF·protection·in·reusable·applications</a></li>373 <li><a·class="reference·internal"·href="#csrf-protection-in-reusable-applications">CSRF·protection·in·reusable·applications</a></li>
373 </ul>374 </ul>
374 </li>375 </li>
375 </ul>376 </ul>
  
376 ··</div>377 ··</div>
377 ··<div>378 ··<div>
378 ····<h4>Previous·topic</h4>379 ····<h4>Argomento·precedente</h4>
379 ····<p·class="topless"><a·href="auth-remote-user.html"380 ····<p·class="topless"><a·href="auth-remote-user.html"
380 ··························title="previous·chapter">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></p>381 ··························title="capitolo·precedente">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></p>
381 ··</div>382 ··</div>
382 ··<div>383 ··<div>
383 ····<h4>Next·topic</h4>384 ····<h4>Argomento·successivo</h4>
384 ····<p·class="topless"><a·href="custom-management-commands.html"385 ····<p·class="topless"><a·href="custom-management-commands.html"
385 ··························title="next·chapter">How·to·create·custom·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>·commands</a></p>386 ··························title="capitolo·successivo">How·to·create·custom·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>·commands</a></p>
386 ··</div>387 ··</div>
387 <search·id="searchbox"·style="display:·none"·role="search">388 <search·id="searchbox"·style="display:·none"·role="search">
388 ··<h3·id="searchlabel">Quick·search</h3>389 ··<h3·id="searchlabel">Ricerca·veloce</h3>
389 ····<div·class="searchformwrapper">390 ····<div·class="searchformwrapper">
390 ····<form·class="search"·action="../search.html"·method="get">391 ····<form·class="search"·action="../search.html"·method="get">
391 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>392 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
392 ······<input·type="submit"·value="Go"·/>393 ······<input·type="submit"·value="Vai"·/>
393 ····</form>394 ····</form>
394 ····</div>395 ····</div>
395 </search>396 </search>
396 <script>document.getElementById('searchbox').style.display·=·"block"</script>397 <script>document.getElementById('searchbox').style.display·=·"block"</script>
397 ········</div>398 ········</div>
398 ······</div>399 ······</div>
399 ··············<h3>Last·update:</h3>400 ··············<h3>Last·update:</h3>
400 ··············<p·class="topless">Sep·03,·2024</p>401 ··············<p·class="topless">set·03,·2024</p>
401 ··········</div>402 ··········</div>
Max diff block lines reached; 748/10422 bytes (7.18%) of diff not shown.
5.93 KB
html2text {}
Max HTML report size reached
7.02 KB
./usr/share/doc/python-django-doc/html/howto/custom-file-storage.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·write·a·custom·storage·class·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·write·a·custom·storage·class·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·deploy·Django"·href="deployment/index.html"·/>15 ····<link·rel="next"·title="How·to·deploy·Django"·href="deployment/index.html"·/>
15 ····<link·rel="prev"·title="How·to·create·custom·template·tags·and·filters"·href="custom-template-tags.html"·/>16 ····<link·rel="prev"·title="How·to·create·custom·template·tags·and·filters"·href="custom-template-tags.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">previous</a>67 ····&laquo;·<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="deployment/index.html"·title="How·to·deploy·Django">next</a>·&raquo;</div>71 ····<a·href="deployment/index.html"·title="How·to·deploy·Django">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 232, 47 lines modifiedOffset 233, 47 lines modified
232 <li><a·class="reference·internal"·href="#use-your-custom-storage-engine">Use·your·custom·storage·engine</a></li>233 <li><a·class="reference·internal"·href="#use-your-custom-storage-engine">Use·your·custom·storage·engine</a></li>
233 </ul>234 </ul>
234 </li>235 </li>
235 </ul>236 </ul>
  
236 ··</div>237 ··</div>
237 ··<div>238 ··<div>
238 ····<h4>Previous·topic</h4>239 ····<h4>Argomento·precedente</h4>
239 ····<p·class="topless"><a·href="custom-template-tags.html"240 ····<p·class="topless"><a·href="custom-template-tags.html"
240 ··························title="previous·chapter">How·to·create·custom·template·tags·and·filters</a></p>241 ··························title="capitolo·precedente">How·to·create·custom·template·tags·and·filters</a></p>
241 ··</div>242 ··</div>
242 ··<div>243 ··<div>
243 ····<h4>Next·topic</h4>244 ····<h4>Argomento·successivo</h4>
244 ····<p·class="topless"><a·href="deployment/index.html"245 ····<p·class="topless"><a·href="deployment/index.html"
245 ··························title="next·chapter">How·to·deploy·Django</a></p>246 ··························title="capitolo·successivo">How·to·deploy·Django</a></p>
246 ··</div>247 ··</div>
247 <search·id="searchbox"·style="display:·none"·role="search">248 <search·id="searchbox"·style="display:·none"·role="search">
248 ··<h3·id="searchlabel">Quick·search</h3>249 ··<h3·id="searchlabel">Ricerca·veloce</h3>
249 ····<div·class="searchformwrapper">250 ····<div·class="searchformwrapper">
250 ····<form·class="search"·action="../search.html"·method="get">251 ····<form·class="search"·action="../search.html"·method="get">
251 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>252 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
252 ······<input·type="submit"·value="Go"·/>253 ······<input·type="submit"·value="Vai"·/>
253 ····</form>254 ····</form>
254 ····</div>255 ····</div>
255 </search>256 </search>
256 <script>document.getElementById('searchbox').style.display·=·"block"</script>257 <script>document.getElementById('searchbox').style.display·=·"block"</script>
257 ········</div>258 ········</div>
258 ······</div>259 ······</div>
259 ··············<h3>Last·update:</h3>260 ··············<h3>Last·update:</h3>
260 ··············<p·class="topless">Sep·03,·2024</p>261 ··············<p·class="topless">set·03,·2024</p>
261 ··········</div>262 ··········</div>
262 ········263 ········
263 ······264 ······
264 ····</div>265 ····</div>
  
265 ····<div·id="ft">266 ····<div·id="ft">
266 ······<div·class="nav">267 ······<div·class="nav">
267 ····&laquo;·<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">previous</a>268 ····&laquo;·<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">previous</a>
268 ·····|269 ·····|
269 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>270 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
270 ···|271 ···|
271 ····<a·href="deployment/index.html"·title="How·to·deploy·Django">next</a>·&raquo;</div>272 ····<a·href="deployment/index.html"·title="How·to·deploy·Django">next</a>·&raquo;</div>
272 ····</div>273 ····</div>
273 ··</div>274 ··</div>
  
274 ······<div·class="clearer"></div>275 ······<div·class="clearer"></div>
275 ····</div>276 ····</div>
2.24 KB
html2text {}
Max HTML report size reached
12.5 KB
./usr/share/doc/python-django-doc/html/howto/custom-lookups.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·write·custom·lookups·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·write·custom·lookups·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·implement·a·custom·template·backend"·href="custom-template-backend.html"·/>15 ····<link·rel="next"·title="How·to·implement·a·custom·template·backend"·href="custom-template-backend.html"·/>
15 ····<link·rel="prev"·title="How·to·create·custom·model·fields"·href="custom-model-fields.html"·/>16 ····<link·rel="prev"·title="How·to·create·custom·model·fields"·href="custom-model-fields.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="custom-model-fields.html"·title="How·to·create·custom·model·fields">previous</a>67 ····&laquo;·<a·href="custom-model-fields.html"·title="How·to·create·custom·model·fields">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="custom-template-backend.html"·title="How·to·implement·a·custom·template·backend">next</a>·&raquo;</div>71 ····<a·href="custom-template-backend.html"·title="How·to·implement·a·custom·template·backend">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 167, 15 lines modifiedOffset 168, 15 lines modified
167 application·where·we·want·to·make·use·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">abs()</span></code>·operator.168 application·where·we·want·to·make·use·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">abs()</span></code>·operator.
168 We·have·an·<code·class="docutils·literal·notranslate"><span·class="pre">Experiment</span></code>·model·which·records·a·start·value,·end·value,·and·the169 We·have·an·<code·class="docutils·literal·notranslate"><span·class="pre">Experiment</span></code>·model·which·records·a·start·value,·end·value,·and·the
169 change·(start·-·end).·We·would·like·to·find·all·experiments·where·the·change170 change·(start·-·end).·We·would·like·to·find·all·experiments·where·the·change
170 was·equal·to·a·certain·amount·(<code·class="docutils·literal·notranslate"><span·class="pre">Experiment.objects.filter(change__abs=27)</span></code>),171 was·equal·to·a·certain·amount·(<code·class="docutils·literal·notranslate"><span·class="pre">Experiment.objects.filter(change__abs=27)</span></code>),
171 or·where·it·did·not·exceed·a·certain·amount172 or·where·it·did·not·exceed·a·certain·amount
172 (<code·class="docutils·literal·notranslate"><span·class="pre">Experiment.objects.filter(change__abs__lt=27)</span></code>).</p>173 (<code·class="docutils·literal·notranslate"><span·class="pre">Experiment.objects.filter(change__abs__lt=27)</span></code>).</p>
173 <div·class="admonition·note">174 <div·class="admonition·note">
174 <p·class="admonition-title">Note</p>175 <p·class="admonition-title">Nota</p>
175 <p>This·example·is·somewhat·contrived,·but·it·nicely·demonstrates·the·range·of176 <p>This·example·is·somewhat·contrived,·but·it·nicely·demonstrates·the·range·of
176 functionality·which·is·possible·in·a·database·backend·independent·manner,177 functionality·which·is·possible·in·a·database·backend·independent·manner,
177 and·without·duplicating·functionality·already·in·Django.</p>178 and·without·duplicating·functionality·already·in·Django.</p>
178 </div>179 </div>
179 <p>We·will·start·by·writing·an·<code·class="docutils·literal·notranslate"><span·class="pre">AbsoluteValue</span></code>·transformer.·This·will·use·the·SQL180 <p>We·will·start·by·writing·an·<code·class="docutils·literal·notranslate"><span·class="pre">AbsoluteValue</span></code>·transformer.·This·will·use·the·SQL
180 function·<code·class="docutils·literal·notranslate"><span·class="pre">ABS()</span></code>·to·transform·the·value·before·comparison:</p>181 function·<code·class="docutils·literal·notranslate"><span·class="pre">ABS()</span></code>·to·transform·the·value·before·comparison:</p>
181 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Transform</span>182 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Transform</span>
Offset 276, 15 lines modifiedOffset 277, 15 lines modified
276 <p>Notice·also·that··as·both·sides·are·used·multiple·times·in·the·query·the·params277 <p>Notice·also·that··as·both·sides·are·used·multiple·times·in·the·query·the·params
277 need·to·contain·<code·class="docutils·literal·notranslate"><span·class="pre">lhs_params</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">rhs_params</span></code>·multiple·times.</p>278 need·to·contain·<code·class="docutils·literal·notranslate"><span·class="pre">lhs_params</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">rhs_params</span></code>·multiple·times.</p>
278 <p>The·final·query·does·the·inversion·(<code·class="docutils·literal·notranslate"><span·class="pre">27</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">-27</span></code>)·directly·in·the279 <p>The·final·query·does·the·inversion·(<code·class="docutils·literal·notranslate"><span·class="pre">27</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">-27</span></code>)·directly·in·the
279 database.·The·reason·for·doing·this·is·that·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">self.rhs</span></code>·is·something·else280 database.·The·reason·for·doing·this·is·that·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">self.rhs</span></code>·is·something·else
280 than·a·plain·integer·value·(for·example·an·<code·class="docutils·literal·notranslate"><span·class="pre">F()</span></code>·reference)·we·can’t·do·the281 than·a·plain·integer·value·(for·example·an·<code·class="docutils·literal·notranslate"><span·class="pre">F()</span></code>·reference)·we·can’t·do·the
281 transformations·in·Python.</p>282 transformations·in·Python.</p>
282 <div·class="admonition·note">283 <div·class="admonition·note">
283 <p·class="admonition-title">Note</p>284 <p·class="admonition-title">Nota</p>
284 <p>In·fact,·most·lookups·with·<code·class="docutils·literal·notranslate"><span·class="pre">__abs</span></code>·could·be·implemented·as·range·queries285 <p>In·fact,·most·lookups·with·<code·class="docutils·literal·notranslate"><span·class="pre">__abs</span></code>·could·be·implemented·as·range·queries
285 like·this,·and·on·most·database·backends·it·is·likely·to·be·more·sensible·to286 like·this,·and·on·most·database·backends·it·is·likely·to·be·more·sensible·to
286 do·so·as·you·can·make·use·of·the·indexes.·However·with·PostgreSQL·you·may287 do·so·as·you·can·make·use·of·the·indexes.·However·with·PostgreSQL·you·may
287 want·to·add·an·index·on·<code·class="docutils·literal·notranslate"><span·class="pre">abs(change)</span></code>·which·would·allow·these·queries·to288 want·to·add·an·index·on·<code·class="docutils·literal·notranslate"><span·class="pre">abs(change)</span></code>·which·would·allow·these·queries·to
288 be·very·efficient.</p>289 be·very·efficient.</p>
289 </div>290 </div>
290 </section>291 </section>
Offset 417, 47 lines modifiedOffset 418, 47 lines modified
417 <li><a·class="reference·internal"·href="#how-django-determines-the-lookups-and-transforms-which-are-used">How·Django·determines·the·lookups·and·transforms·which·are·used</a></li>418 <li><a·class="reference·internal"·href="#how-django-determines-the-lookups-and-transforms-which-are-used">How·Django·determines·the·lookups·and·transforms·which·are·used</a></li>
418 </ul>419 </ul>
419 </li>420 </li>
420 </ul>421 </ul>
  
421 ··</div>422 ··</div>
422 ··<div>423 ··<div>
423 ····<h4>Previous·topic</h4>424 ····<h4>Argomento·precedente</h4>
424 ····<p·class="topless"><a·href="custom-model-fields.html"425 ····<p·class="topless"><a·href="custom-model-fields.html"
425 ··························title="previous·chapter">How·to·create·custom·model·fields</a></p>426 ··························title="capitolo·precedente">How·to·create·custom·model·fields</a></p>
426 ··</div>427 ··</div>
427 ··<div>428 ··<div>
428 ····<h4>Next·topic</h4>429 ····<h4>Argomento·successivo</h4>
429 ····<p·class="topless"><a·href="custom-template-backend.html"430 ····<p·class="topless"><a·href="custom-template-backend.html"
430 ··························title="next·chapter">How·to·implement·a·custom·template·backend</a></p>431 ··························title="capitolo·successivo">How·to·implement·a·custom·template·backend</a></p>
431 ··</div>432 ··</div>
432 <search·id="searchbox"·style="display:·none"·role="search">433 <search·id="searchbox"·style="display:·none"·role="search">
433 ··<h3·id="searchlabel">Quick·search</h3>434 ··<h3·id="searchlabel">Ricerca·veloce</h3>
434 ····<div·class="searchformwrapper">435 ····<div·class="searchformwrapper">
435 ····<form·class="search"·action="../search.html"·method="get">436 ····<form·class="search"·action="../search.html"·method="get">
436 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>437 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
437 ······<input·type="submit"·value="Go"·/>438 ······<input·type="submit"·value="Vai"·/>
438 ····</form>439 ····</form>
439 ····</div>440 ····</div>
440 </search>441 </search>
441 <script>document.getElementById('searchbox').style.display·=·"block"</script>442 <script>document.getElementById('searchbox').style.display·=·"block"</script>
442 ········</div>443 ········</div>
443 ······</div>444 ······</div>
444 ··············<h3>Last·update:</h3>445 ··············<h3>Last·update:</h3>
445 ··············<p·class="topless">Sep·03,·2024</p>446 ··············<p·class="topless">set·03,·2024</p>
446 ··········</div>447 ··········</div>
447 ········448 ········
448 ······449 ······
449 ····</div>450 ····</div>
  
450 ····<div·id="ft">451 ····<div·id="ft">
451 ······<div·class="nav">452 ······<div·class="nav">
452 ····&laquo;·<a·href="custom-model-fields.html"·title="How·to·create·custom·model·fields">previous</a>453 ····&laquo;·<a·href="custom-model-fields.html"·title="How·to·create·custom·model·fields">previous</a>
453 ·····|454 ·····|
454 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>455 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
455 ···|456 ···|
456 ····<a·href="custom-template-backend.html"·title="How·to·implement·a·custom·template·backend">next</a>·&raquo;</div>457 ····<a·href="custom-template-backend.html"·title="How·to·implement·a·custom·template·backend">next</a>·&raquo;</div>
457 ····</div>458 ····</div>
458 ··</div>459 ··</div>
  
Max diff block lines reached; 12/7906 bytes (0.15%) of diff not shown.
4.65 KB
html2text {}
Max HTML report size reached
38.8 KB
./usr/share/doc/python-django-doc/html/howto/custom-management-commands.html
Max HTML report size reached
19.7 KB
./usr/share/doc/python-django-doc/html/howto/custom-model-fields.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·create·custom·model·fields·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·create·custom·model·fields·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·write·custom·lookups"·href="custom-lookups.html"·/>15 ····<link·rel="next"·title="How·to·write·custom·lookups"·href="custom-lookups.html"·/>
15 ····<link·rel="prev"·title="How·to·create·custom·django-admin·commands"·href="custom-management-commands.html"·/>16 ····<link·rel="prev"·title="How·to·create·custom·django-admin·commands"·href="custom-management-commands.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="custom-management-commands.html"·title="How·to·create·custom·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;django-admin&lt;/span&gt;&lt;/code&gt;·commands">previous</a>67 ····&laquo;·<a·href="custom-management-commands.html"·title="How·to·create·custom·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;django-admin&lt;/span&gt;&lt;/code&gt;·commands">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">next</a>·&raquo;</div>71 ····<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 130, 15 lines modifiedOffset 131, 15 lines modified
130 <p>We·assign·to·and·retrieve·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">hand</span></code>·attribute·in·our·model·just·like131 <p>We·assign·to·and·retrieve·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">hand</span></code>·attribute·in·our·model·just·like
131 any·other·Python·class.·The·trick·is·to·tell·Django·how·to·handle·saving·and132 any·other·Python·class.·The·trick·is·to·tell·Django·how·to·handle·saving·and
132 loading·such·an·object.</p>133 loading·such·an·object.</p>
133 <p>In·order·to·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">Hand</span></code>·class·in·our·models,·we·<strong>do·not</strong>·have·to·change134 <p>In·order·to·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">Hand</span></code>·class·in·our·models,·we·<strong>do·not</strong>·have·to·change
134 this·class·at·all.·This·is·ideal,·because·it·means·you·can·easily·write135 this·class·at·all.·This·is·ideal,·because·it·means·you·can·easily·write
135 model·support·for·existing·classes·where·you·cannot·change·the·source·code.</p>136 model·support·for·existing·classes·where·you·cannot·change·the·source·code.</p>
136 <div·class="admonition·note">137 <div·class="admonition·note">
137 <p·class="admonition-title">Note</p>138 <p·class="admonition-title">Nota</p>
138 <p>You·might·only·be·wanting·to·take·advantage·of·custom·database·column139 <p>You·might·only·be·wanting·to·take·advantage·of·custom·database·column
139 types·and·deal·with·the·data·as·standard·Python·types·in·your·models;140 types·and·deal·with·the·data·as·standard·Python·types·in·your·models;
140 strings,·or·floats,·for·example.·This·case·is·similar·to·our·<code·class="docutils·literal·notranslate"><span·class="pre">Hand</span></code>141 strings,·or·floats,·for·example.·This·case·is·similar·to·our·<code·class="docutils·literal·notranslate"><span·class="pre">Hand</span></code>
141 example·and·we’ll·note·any·differences·as·we·go·along.</p>142 example·and·we’ll·note·any·differences·as·we·go·along.</p>
142 </div>143 </div>
143 </section>144 </section>
144 </section>145 </section>
Offset 227, 15 lines modifiedOffset 228, 15 lines modified
227 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>228 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="o">*</span><span·class="n">args</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
228 </pre></div>229 </pre></div>
229 </div>230 </div>
230 <p>Our·<code·class="docutils·literal·notranslate"><span·class="pre">HandField</span></code>·accepts·most·of·the·standard·field·options·(see·the·list231 <p>Our·<code·class="docutils·literal·notranslate"><span·class="pre">HandField</span></code>·accepts·most·of·the·standard·field·options·(see·the·list
231 below),·but·we·ensure·it·has·a·fixed·length,·since·it·only·needs·to·hold·52232 below),·but·we·ensure·it·has·a·fixed·length,·since·it·only·needs·to·hold·52
232 card·values·plus·their·suits;·104·characters·in·total.</p>233 card·values·plus·their·suits;·104·characters·in·total.</p>
233 <div·class="admonition·note">234 <div·class="admonition·note">
234 <p·class="admonition-title">Note</p>235 <p·class="admonition-title">Nota</p>
235 <p>Many·of·Django’s·model·fields·accept·options·that·they·don’t·do·anything236 <p>Many·of·Django’s·model·fields·accept·options·that·they·don’t·do·anything
236 with.·For·example,·you·can·pass·both237 with.·For·example,·you·can·pass·both
237 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.editable"·title="django.db.models.Field.editable"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">editable</span></code></a>·and238 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.editable"·title="django.db.models.Field.editable"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">editable</span></code></a>·and
238 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField.auto_now"·title="django.db.models.DateField.auto_now"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">auto_now</span></code></a>·to·a239 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField.auto_now"·title="django.db.models.DateField.auto_now"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">auto_now</span></code></a>·to·a
239 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField"·title="django.db.models.DateField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.db.models.DateField</span></code></a>·and·it·will·ignore·the240 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField"·title="django.db.models.DateField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.db.models.DateField</span></code></a>·and·it·will·ignore·the
240 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.editable"·title="django.db.models.Field.editable"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">editable</span></code></a>·parameter241 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.editable"·title="django.db.models.Field.editable"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">editable</span></code></a>·parameter
241 (<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField.auto_now"·title="django.db.models.DateField.auto_now"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">auto_now</span></code></a>·being·set·implies242 (<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.DateField.auto_now"·title="django.db.models.DateField.auto_now"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">auto_now</span></code></a>·being·set·implies
Offset 405, 15 lines modifiedOffset 406, 15 lines modified
405 <span·id="documenting-your-custom-field"></span><h3>Documenting·your·custom·field<a·class="headerlink"·href="#documenting-your-custom-field"·title="Link·to·this·heading">¶</a></h3>406 <span·id="documenting-your-custom-field"></span><h3>Documenting·your·custom·field<a·class="headerlink"·href="#documenting-your-custom-field"·title="Link·to·this·heading">¶</a></h3>
406 <p>As·always,·you·should·document·your·field·type,·so·users·will·know·what·it·is.407 <p>As·always,·you·should·document·your·field·type,·so·users·will·know·what·it·is.
407 In·addition·to·providing·a·docstring·for·it,·which·is·useful·for·developers,408 In·addition·to·providing·a·docstring·for·it,·which·is·useful·for·developers,
408 you·can·also·allow·users·of·the·admin·app·to·see·a·short·description·of·the409 you·can·also·allow·users·of·the·admin·app·to·see·a·short·description·of·the
409 field·type·via·the·<a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html"><span·class="doc">django.contrib.admindocs</span></a>·application.·To·do·this·provide·descriptive410 field·type·via·the·<a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html"><span·class="doc">django.contrib.admindocs</span></a>·application.·To·do·this·provide·descriptive
410 text·in·a·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.description"·title="django.db.models.Field.description"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">description</span></code></a>·class·attribute·of·your·custom·field.·In411 text·in·a·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.description"·title="django.db.models.Field.description"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">description</span></code></a>·class·attribute·of·your·custom·field.·In
411 the·above·example,·the·description·displayed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">admindocs</span></code>·application412 the·above·example,·the·description·displayed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">admindocs</span></code>·application
412 for·a·<code·class="docutils·literal·notranslate"><span·class="pre">HandField</span></code>·will·be·A·hand·of·cards·(bridge·style).</p>413 for·a·<code·class="docutils·literal·notranslate"><span·class="pre">HandField</span></code>·will·be·A·hand·of·cards·(bridge·style).</p>
413 <p>In·the·<a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html#module-django.contrib.admindocs"·title="django.contrib.admindocs:·Django's·admin·documentation·generator."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs</span></code></a>·display,·the·field·description·is414 <p>In·the·<a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html#module-django.contrib.admindocs"·title="django.contrib.admindocs:·Django's·admin·documentation·generator."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs</span></code></a>·display,·the·field·description·is
414 interpolated·with·<code·class="docutils·literal·notranslate"><span·class="pre">field.__dict__</span></code>·which·allows·the·description·to415 interpolated·with·<code·class="docutils·literal·notranslate"><span·class="pre">field.__dict__</span></code>·which·allows·the·description·to
415 incorporate·arguments·of·the·field.·For·example,·the·description·for416 incorporate·arguments·of·the·field.·For·example,·the·description·for
416 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.CharField"·title="django.db.models.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>·is:</p>417 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.CharField"·title="django.db.models.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>·is:</p>
417 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;String·(up·to·</span><span·class="si">%(max_length)s</span><span·class="s2">)&quot;</span><span·class="p">)</span>418 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">description</span>·<span·class="o">=</span>·<span·class="n">_</span><span·class="p">(</span><span·class="s2">&quot;String·(up·to·</span><span·class="si">%(max_length)s</span><span·class="s2">)&quot;</span><span·class="p">)</span>
418 </pre></div>419 </pre></div>
419 </div>420 </div>
Offset 592, 15 lines modifiedOffset 593, 15 lines modified
592 ····<span·class="k">def</span>·<span·class="nf">get_prep_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>593 ····<span·class="k">def</span>·<span·class="nf">get_prep_value</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">value</span><span·class="p">):</span>
593 ········<span·class="k">return</span>·<span·class="s2">&quot;&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span>594 ········<span·class="k">return</span>·<span·class="s2">&quot;&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span>
594 ············<span·class="p">[</span><span·class="s2">&quot;&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">l</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">l</span>·<span·class="ow">in</span>·<span·class="p">(</span><span·class="n">value</span><span·class="o">.</span><span·class="n">north</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">east</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">south</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">west</span><span·class="p">)]</span>595 ············<span·class="p">[</span><span·class="s2">&quot;&quot;</span><span·class="o">.</span><span·class="n">join</span><span·class="p">(</span><span·class="n">l</span><span·class="p">)</span>·<span·class="k">for</span>·<span·class="n">l</span>·<span·class="ow">in</span>·<span·class="p">(</span><span·class="n">value</span><span·class="o">.</span><span·class="n">north</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">east</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">south</span><span·class="p">,</span>·<span·class="n">value</span><span·class="o">.</span><span·class="n">west</span><span·class="p">)]</span>
595 ········<span·class="p">)</span>596 ········<span·class="p">)</span>
596 </pre></div>597 </pre></div>
597 </div>598 </div>
598 <div·class="admonition·warning">599 <div·class="admonition·warning">
599 <p·class="admonition-title">Warning</p>600 <p·class="admonition-title">Avvertimento</p>
600 <p>If·your·custom·field·uses·the·<code·class="docutils·literal·notranslate"><span·class="pre">CHAR</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">VARCHAR</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">TEXT</span></code>601 <p>If·your·custom·field·uses·the·<code·class="docutils·literal·notranslate"><span·class="pre">CHAR</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">VARCHAR</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">TEXT</span></code>
601 types·for·MySQL,·you·must·make·sure·that·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.get_prep_value"·title="django.db.models.Field.get_prep_value"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_prep_value()</span></code></a>602 types·for·MySQL,·you·must·make·sure·that·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.get_prep_value"·title="django.db.models.Field.get_prep_value"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_prep_value()</span></code></a>
602 always·returns·a·string·type.·MySQL·performs·flexible·and·unexpected603 always·returns·a·string·type.·MySQL·performs·flexible·and·unexpected
603 matching·when·a·query·is·performed·on·these·types·and·the·provided604 matching·when·a·query·is·performed·on·these·types·and·the·provided
604 value·is·an·integer,·which·can·cause·queries·to·include·unexpected605 value·is·an·integer,·which·can·cause·queries·to·include·unexpected
605 objects·in·their·results.·This·problem·cannot·occur·if·you·always606 objects·in·their·results.·This·problem·cannot·occur·if·you·always
606 return·a·string·type·from·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.get_prep_value"·title="django.db.models.Field.get_prep_value"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_prep_value()</span></code></a>.</p>607 return·a·string·type·from·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.get_prep_value"·title="django.db.models.Field.get_prep_value"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_prep_value()</span></code></a>.</p>
Offset 816, 47 lines modifiedOffset 817, 47 lines modified
816 </li>817 </li>
817 </ul>818 </ul>
818 </li>819 </li>
819 </ul>820 </ul>
  
820 ··</div>821 ··</div>
821 ··<div>822 ··<div>
822 ····<h4>Previous·topic</h4>823 ····<h4>Argomento·precedente</h4>
823 ····<p·class="topless"><a·href="custom-management-commands.html"824 ····<p·class="topless"><a·href="custom-management-commands.html"
824 ··························title="previous·chapter">How·to·create·custom·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>·commands</a></p>825 ··························title="capitolo·precedente">How·to·create·custom·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span></code>·commands</a></p>
825 ··</div>826 ··</div>
826 ··<div>827 ··<div>
827 ····<h4>Next·topic</h4>828 ····<h4>Argomento·successivo</h4>
Max diff block lines reached; 1595/13203 bytes (12.08%) of diff not shown.
6.7 KB
html2text {}
Max HTML report size reached
7.25 KB
./usr/share/doc/python-django-doc/html/howto/custom-template-backend.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·implement·a·custom·template·backend·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·implement·a·custom·template·backend·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·create·custom·template·tags·and·filters"·href="custom-template-tags.html"·/>15 ····<link·rel="next"·title="How·to·create·custom·template·tags·and·filters"·href="custom-template-tags.html"·/>
15 ····<link·rel="prev"·title="How·to·write·custom·lookups"·href="custom-lookups.html"·/>16 ····<link·rel="prev"·title="How·to·write·custom·lookups"·href="custom-lookups.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">previous</a>67 ····&laquo;·<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">next</a>·&raquo;</div>71 ····<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 243, 47 lines modifiedOffset 244, 47 lines modified
243 </li>244 </li>
244 </ul>245 </ul>
245 </li>246 </li>
246 </ul>247 </ul>
  
247 ··</div>248 ··</div>
248 ··<div>249 ··<div>
249 ····<h4>Previous·topic</h4>250 ····<h4>Argomento·precedente</h4>
250 ····<p·class="topless"><a·href="custom-lookups.html"251 ····<p·class="topless"><a·href="custom-lookups.html"
251 ··························title="previous·chapter">How·to·write·custom·lookups</a></p>252 ··························title="capitolo·precedente">How·to·write·custom·lookups</a></p>
252 ··</div>253 ··</div>
253 ··<div>254 ··<div>
254 ····<h4>Next·topic</h4>255 ····<h4>Argomento·successivo</h4>
255 ····<p·class="topless"><a·href="custom-template-tags.html"256 ····<p·class="topless"><a·href="custom-template-tags.html"
256 ··························title="next·chapter">How·to·create·custom·template·tags·and·filters</a></p>257 ··························title="capitolo·successivo">How·to·create·custom·template·tags·and·filters</a></p>
257 ··</div>258 ··</div>
258 <search·id="searchbox"·style="display:·none"·role="search">259 <search·id="searchbox"·style="display:·none"·role="search">
259 ··<h3·id="searchlabel">Quick·search</h3>260 ··<h3·id="searchlabel">Ricerca·veloce</h3>
260 ····<div·class="searchformwrapper">261 ····<div·class="searchformwrapper">
261 ····<form·class="search"·action="../search.html"·method="get">262 ····<form·class="search"·action="../search.html"·method="get">
262 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>263 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
263 ······<input·type="submit"·value="Go"·/>264 ······<input·type="submit"·value="Vai"·/>
264 ····</form>265 ····</form>
265 ····</div>266 ····</div>
266 </search>267 </search>
267 <script>document.getElementById('searchbox').style.display·=·"block"</script>268 <script>document.getElementById('searchbox').style.display·=·"block"</script>
268 ········</div>269 ········</div>
269 ······</div>270 ······</div>
270 ··············<h3>Last·update:</h3>271 ··············<h3>Last·update:</h3>
271 ··············<p·class="topless">Sep·03,·2024</p>272 ··············<p·class="topless">set·03,·2024</p>
272 ··········</div>273 ··········</div>
273 ········274 ········
274 ······275 ······
275 ····</div>276 ····</div>
  
276 ····<div·id="ft">277 ····<div·id="ft">
277 ······<div·class="nav">278 ······<div·class="nav">
278 ····&laquo;·<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">previous</a>279 ····&laquo;·<a·href="custom-lookups.html"·title="How·to·write·custom·lookups">previous</a>
279 ·····|280 ·····|
280 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>281 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
281 ···|282 ···|
282 ····<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">next</a>·&raquo;</div>283 ····<a·href="custom-template-tags.html"·title="How·to·create·custom·template·tags·and·filters">next</a>·&raquo;</div>
283 ····</div>284 ····</div>
284 ··</div>285 ··</div>
  
285 ······<div·class="clearer"></div>286 ······<div·class="clearer"></div>
286 ····</div>287 ····</div>
2.53 KB
html2text {}
Max HTML report size reached
45.6 KB
./usr/share/doc/python-django-doc/html/howto/custom-template-tags.html
Max HTML report size reached
8.61 KB
./usr/share/doc/python-django-doc/html/howto/delete-app.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·delete·a·Django·application·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·delete·a·Django·application·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·FAQ"·href="../faq/index.html"·/>15 ····<link·rel="next"·title="Django·FAQ"·href="../faq/index.html"·/>
15 ····<link·rel="prev"·title="How·to·create·database·migrations"·href="writing-migrations.html"·/>16 ····<link·rel="prev"·title="How·to·create·database·migrations"·href="writing-migrations.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="writing-migrations.html"·title="How·to·create·database·migrations">previous</a>67 ····&laquo;·<a·href="writing-migrations.html"·title="How·to·create·database·migrations">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../faq/index.html"·title="Django·FAQ">next</a>·&raquo;</div>71 ····<a·href="../faq/index.html"·title="Django·FAQ">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 <ol·class="arabic·simple">87 <ol·class="arabic·simple">
87 <li><p>Remove·all·references·to·the·app·(imports,·foreign·keys·etc.).</p></li>88 <li><p>Remove·all·references·to·the·app·(imports,·foreign·keys·etc.).</p></li>
88 <li><p>Remove·all·models·from·the·corresponding·<code·class="docutils·literal·notranslate"><span·class="pre">models.py</span></code>·file.</p></li>89 <li><p>Remove·all·models·from·the·corresponding·<code·class="docutils·literal·notranslate"><span·class="pre">models.py</span></code>·file.</p></li>
89 <li><p>Create·relevant·migrations·by·running·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-makemigrations"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">makemigrations</span></code></a>.·This·step90 <li><p>Create·relevant·migrations·by·running·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-makemigrations"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">makemigrations</span></code></a>.·This·step
90 generates·a·migration·that·deletes·tables·for·the·removed·models,·and·any91 generates·a·migration·that·deletes·tables·for·the·removed·models,·and·any
91 other·required·migration·for·updating·relationships·connected·to·those92 other·required·migration·for·updating·relationships·connected·to·those
92 models.</p></li>93 models.</p></li>
93 <li><p><a·class="reference·internal"·href="../topics/migrations.html#migration-squashing"><span·class="std·std-ref">Squash</span></a>·out·references·to·the·app·in·other·apps94 <li><p><a·class="reference·internal"·href="../topics/migrations.html#migration-squashing"><span·class="std·std-ref">Squash</span></a>·out·references·to·the·app·in·other·apps
94 migrations.</p></li>95 migrations.</p></li>
95 <li><p>Apply·migrations·locally,·runs·tests,·and·verify·the·correctness·of·your96 <li><p>Apply·migrations·locally,·runs·tests,·and·verify·the·correctness·of·your
96 project.</p></li>97 project.</p></li>
97 <li><p>Deploy/release·your·updated·Django·project.</p></li>98 <li><p>Deploy/release·your·updated·Django·project.</p></li>
98 <li><p>Remove·the·app·from·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>.</p></li>99 <li><p>Remove·the·app·from·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>.</p></li>
99 <li><p>Finally,·remove·the·app’s·directory.</p></li>100 <li><p>Finally,·remove·the·app’s·directory.</p></li>
100 </ol>101 </ol>
Offset 107, 47 lines modifiedOffset 108, 47 lines modified
107 ······108 ······
108 ········109 ········
109 ··········<div·class="yui-b"·id="sidebar">110 ··········<div·class="yui-b"·id="sidebar">
110 ············111 ············
111 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">112 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
112 ········<div·class="sphinxsidebarwrapper">113 ········<div·class="sphinxsidebarwrapper">
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="writing-migrations.html"116 ····<p·class="topless"><a·href="writing-migrations.html"
116 ··························title="previous·chapter">How·to·create·database·migrations</a></p>117 ··························title="capitolo·precedente">How·to·create·database·migrations</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="../faq/index.html"121 ····<p·class="topless"><a·href="../faq/index.html"
121 ··························title="next·chapter">Django·FAQ</a></p>122 ··························title="capitolo·successivo">Django·FAQ</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
143 ····&laquo;·<a·href="writing-migrations.html"·title="How·to·create·database·migrations">previous</a>144 ····&laquo;·<a·href="writing-migrations.html"·title="How·to·create·database·migrations">previous</a>
144 ·····|145 ·····|
145 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>146 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
146 ···|147 ···|
147 ····<a·href="../faq/index.html"·title="Django·FAQ">next</a>·&raquo;</div>148 ····<a·href="../faq/index.html"·title="Django·FAQ">next</a>·&raquo;</div>
148 ····</div>149 ····</div>
149 ··</div>150 ··</div>
  
150 ······<div·class="clearer"></div>151 ······<div·class="clearer"></div>
151 ····</div>152 ····</div>
2.44 KB
html2text {}
Max HTML report size reached
7.03 KB
./usr/share/doc/python-django-doc/html/howto/deployment/asgi/daphne.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·Daphne·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·Daphne·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·Hypercorn"·href="hypercorn.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·Hypercorn"·href="hypercorn.html"·/>
15 ····<link·rel="prev"·title="How·to·deploy·with·ASGI"·href="index.html"·/>16 ····<link·rel="prev"·title="How·to·deploy·with·ASGI"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·ASGI">previous</a>67 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·ASGI">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">next</a>·&raquo;</div>71 ····<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 139, 47 lines modifiedOffset 140, 47 lines modified
139 <li><a·class="reference·internal"·href="#integration-with-runserver">Integration·with·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code></a></li>140 <li><a·class="reference·internal"·href="#integration-with-runserver">Integration·with·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code></a></li>
140 </ul>141 </ul>
141 </li>142 </li>
142 </ul>143 </ul>
  
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Previous·topic</h4>146 ····<h4>Argomento·precedente</h4>
146 ····<p·class="topless"><a·href="index.html"147 ····<p·class="topless"><a·href="index.html"
147 ··························title="previous·chapter">How·to·deploy·with·ASGI</a></p>148 ··························title="capitolo·precedente">How·to·deploy·with·ASGI</a></p>
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Next·topic</h4>151 ····<h4>Argomento·successivo</h4>
151 ····<p·class="topless"><a·href="hypercorn.html"152 ····<p·class="topless"><a·href="hypercorn.html"
152 ··························title="next·chapter">How·to·use·Django·with·Hypercorn</a></p>153 ··························title="capitolo·successivo">How·to·use·Django·with·Hypercorn</a></p>
153 ··</div>154 ··</div>
154 <search·id="searchbox"·style="display:·none"·role="search">155 <search·id="searchbox"·style="display:·none"·role="search">
155 ··<h3·id="searchlabel">Quick·search</h3>156 ··<h3·id="searchlabel">Ricerca·veloce</h3>
156 ····<div·class="searchformwrapper">157 ····<div·class="searchformwrapper">
157 ····<form·class="search"·action="../../../search.html"·method="get">158 ····<form·class="search"·action="../../../search.html"·method="get">
158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
159 ······<input·type="submit"·value="Go"·/>160 ······<input·type="submit"·value="Vai"·/>
160 ····</form>161 ····</form>
161 ····</div>162 ····</div>
162 </search>163 </search>
163 <script>document.getElementById('searchbox').style.display·=·"block"</script>164 <script>document.getElementById('searchbox').style.display·=·"block"</script>
164 ········</div>165 ········</div>
165 ······</div>166 ······</div>
166 ··············<h3>Last·update:</h3>167 ··············<h3>Last·update:</h3>
167 ··············<p·class="topless">Sep·03,·2024</p>168 ··············<p·class="topless">set·03,·2024</p>
168 ··········</div>169 ··········</div>
169 ········170 ········
170 ······171 ······
171 ····</div>172 ····</div>
  
172 ····<div·id="ft">173 ····<div·id="ft">
173 ······<div·class="nav">174 ······<div·class="nav">
174 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·ASGI">previous</a>175 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·ASGI">previous</a>
175 ·····|176 ·····|
176 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>177 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
177 ···|178 ···|
178 ····<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">next</a>·&raquo;</div>179 ····<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">next</a>·&raquo;</div>
179 ····</div>180 ····</div>
180 ··</div>181 ··</div>
  
181 ······<div·class="clearer"></div>182 ······<div·class="clearer"></div>
182 ····</div>183 ····</div>
2.18 KB
html2text {}
Max HTML report size reached
7.1 KB
./usr/share/doc/python-django-doc/html/howto/deployment/asgi/hypercorn.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·Hypercorn·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·Hypercorn·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·Uvicorn"·href="uvicorn.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·Uvicorn"·href="uvicorn.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·Daphne"·href="daphne.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·Daphne"·href="daphne.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">previous</a>67 ····&laquo;·<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="uvicorn.html"·title="How·to·use·Django·with·Uvicorn">next</a>·&raquo;</div>71 ····<a·href="uvicorn.html"·title="How·to·use·Django·with·Uvicorn">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 123, 47 lines modifiedOffset 124, 47 lines modified
123 <li><a·class="reference·internal"·href="#running-django-in-hypercorn">Running·Django·in·Hypercorn</a></li>124 <li><a·class="reference·internal"·href="#running-django-in-hypercorn">Running·Django·in·Hypercorn</a></li>
124 </ul>125 </ul>
125 </li>126 </li>
126 </ul>127 </ul>
  
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Previous·topic</h4>130 ····<h4>Argomento·precedente</h4>
130 ····<p·class="topless"><a·href="daphne.html"131 ····<p·class="topless"><a·href="daphne.html"
131 ··························title="previous·chapter">How·to·use·Django·with·Daphne</a></p>132 ··························title="capitolo·precedente">How·to·use·Django·with·Daphne</a></p>
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Next·topic</h4>135 ····<h4>Argomento·successivo</h4>
135 ····<p·class="topless"><a·href="uvicorn.html"136 ····<p·class="topless"><a·href="uvicorn.html"
136 ··························title="next·chapter">How·to·use·Django·with·Uvicorn</a></p>137 ··························title="capitolo·successivo">How·to·use·Django·with·Uvicorn</a></p>
137 ··</div>138 ··</div>
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../../../search.html"·method="get">142 ····<form·class="search"·action="../../../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
158 ····&laquo;·<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">previous</a>159 ····&laquo;·<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">previous</a>
159 ·····|160 ·····|
160 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>161 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
161 ···|162 ···|
162 ····<a·href="uvicorn.html"·title="How·to·use·Django·with·Uvicorn">next</a>·&raquo;</div>163 ····<a·href="uvicorn.html"·title="How·to·use·Django·with·Uvicorn">next</a>·&raquo;</div>
163 ····</div>164 ····</div>
164 ··</div>165 ··</div>
  
165 ······<div·class="clearer"></div>166 ······<div·class="clearer"></div>
166 ····</div>167 ····</div>
2.3 KB
html2text {}
Max HTML report size reached
9.65 KB
./usr/share/doc/python-django-doc/html/howto/deployment/asgi/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·deploy·with·ASGI·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·deploy·with·ASGI·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·Daphne"·href="daphne.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·Daphne"·href="daphne.html"·/>
15 ····<link·rel="prev"·title="How·to·authenticate·against·Django’s·user·database·from·Apache"·href="../wsgi/apache-auth.html"·/>16 ····<link·rel="prev"·title="How·to·authenticate·against·Django’s·user·database·from·Apache"·href="../wsgi/apache-auth.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../wsgi/apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">previous</a>67 ····&laquo;·<a·href="../wsgi/apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">next</a>·&raquo;</div>71 ····<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 101, 15 lines modifiedOffset 102, 15 lines modified
101 <p>The·<a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">startproject</span></code></a>·command·creates·a·file102 <p>The·<a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">startproject</span></code></a>·command·creates·a·file
102 <code·class="file·docutils·literal·notranslate"><span·class="pre">&lt;project_name&gt;/asgi.py</span></code>·that·contains·such·an·<code·class="docutils·literal·notranslate"><span·class="pre">application</span></code>·callable.</p>103 <code·class="file·docutils·literal·notranslate"><span·class="pre">&lt;project_name&gt;/asgi.py</span></code>·that·contains·such·an·<code·class="docutils·literal·notranslate"><span·class="pre">application</span></code>·callable.</p>
103 <p>It’s·not·used·by·the·development·server·(<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>),·but·can·be·used·by104 <p>It’s·not·used·by·the·development·server·(<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>),·but·can·be·used·by
104 any·ASGI·server·either·in·development·or·in·production.</p>105 any·ASGI·server·either·in·development·or·in·production.</p>
105 <p>ASGI·servers·usually·take·the·path·to·the·application·callable·as·a·string;106 <p>ASGI·servers·usually·take·the·path·to·the·application·callable·as·a·string;
106 for·most·Django·projects,·this·will·look·like·<code·class="docutils·literal·notranslate"><span·class="pre">myproject.asgi:application</span></code>.</p>107 for·most·Django·projects,·this·will·look·like·<code·class="docutils·literal·notranslate"><span·class="pre">myproject.asgi:application</span></code>.</p>
107 <div·class="admonition·warning">108 <div·class="admonition·warning">
108 <p·class="admonition-title">Warning</p>109 <p·class="admonition-title">Avvertimento</p>
109 <p>While·Django’s·default·ASGI·handler·will·run·all·your·code·in·a·synchronous110 <p>While·Django’s·default·ASGI·handler·will·run·all·your·code·in·a·synchronous
110 thread,·if·you·choose·to·run·your·own·async·handler·you·must·be·aware·of111 thread,·if·you·choose·to·run·your·own·async·handler·you·must·be·aware·of
111 async-safety.</p>112 async-safety.</p>
112 <p>Do·not·call·blocking·synchronous·functions·or·libraries·in·any·async·code.113 <p>Do·not·call·blocking·synchronous·functions·or·libraries·in·any·async·code.
113 Django·prevents·you·from·doing·this·with·the·parts·of·Django·that·are·not114 Django·prevents·you·from·doing·this·with·the·parts·of·Django·that·are·not
114 async-safe,·but·the·same·may·not·be·true·of·third-party·apps·or·Python115 async-safe,·but·the·same·may·not·be·true·of·third-party·apps·or·Python
115 libraries.</p>116 libraries.</p>
Offset 157, 47 lines modifiedOffset 158, 47 lines modified
157 <li><a·class="reference·internal"·href="#applying-asgi-middleware">Applying·ASGI·middleware</a></li>158 <li><a·class="reference·internal"·href="#applying-asgi-middleware">Applying·ASGI·middleware</a></li>
158 </ul>159 </ul>
159 </li>160 </li>
160 </ul>161 </ul>
  
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Previous·topic</h4>164 ····<h4>Argomento·precedente</h4>
164 ····<p·class="topless"><a·href="../wsgi/apache-auth.html"165 ····<p·class="topless"><a·href="../wsgi/apache-auth.html"
165 ··························title="previous·chapter">How·to·authenticate·against·Django’s·user·database·from·Apache</a></p>166 ··························title="capitolo·precedente">How·to·authenticate·against·Django’s·user·database·from·Apache</a></p>
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Next·topic</h4>169 ····<h4>Argomento·successivo</h4>
169 ····<p·class="topless"><a·href="daphne.html"170 ····<p·class="topless"><a·href="daphne.html"
170 ··························title="next·chapter">How·to·use·Django·with·Daphne</a></p>171 ··························title="capitolo·successivo">How·to·use·Django·with·Daphne</a></p>
171 ··</div>172 ··</div>
172 <search·id="searchbox"·style="display:·none"·role="search">173 <search·id="searchbox"·style="display:·none"·role="search">
173 ··<h3·id="searchlabel">Quick·search</h3>174 ··<h3·id="searchlabel">Ricerca·veloce</h3>
174 ····<div·class="searchformwrapper">175 ····<div·class="searchformwrapper">
175 ····<form·class="search"·action="../../../search.html"·method="get">176 ····<form·class="search"·action="../../../search.html"·method="get">
176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
177 ······<input·type="submit"·value="Go"·/>178 ······<input·type="submit"·value="Vai"·/>
178 ····</form>179 ····</form>
179 ····</div>180 ····</div>
180 </search>181 </search>
181 <script>document.getElementById('searchbox').style.display·=·"block"</script>182 <script>document.getElementById('searchbox').style.display·=·"block"</script>
182 ········</div>183 ········</div>
183 ······</div>184 ······</div>
184 ··············<h3>Last·update:</h3>185 ··············<h3>Last·update:</h3>
185 ··············<p·class="topless">Sep·03,·2024</p>186 ··············<p·class="topless">set·03,·2024</p>
186 ··········</div>187 ··········</div>
187 ········188 ········
188 ······189 ······
189 ····</div>190 ····</div>
  
190 ····<div·id="ft">191 ····<div·id="ft">
191 ······<div·class="nav">192 ······<div·class="nav">
192 ····&laquo;·<a·href="../wsgi/apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">previous</a>193 ····&laquo;·<a·href="../wsgi/apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">previous</a>
193 ·····|194 ·····|
194 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>195 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
195 ···|196 ···|
196 ····<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">next</a>·&raquo;</div>197 ····<a·href="daphne.html"·title="How·to·use·Django·with·Daphne">next</a>·&raquo;</div>
197 ····</div>198 ····</div>
198 ··</div>199 ··</div>
  
199 ······<div·class="clearer"></div>200 ······<div·class="clearer"></div>
200 ····</div>201 ····</div>
3.24 KB
html2text {}
Max HTML report size reached
7.1 KB
./usr/share/doc/python-django-doc/html/howto/deployment/asgi/uvicorn.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·Uvicorn·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·Uvicorn·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Deployment·checklist"·href="../checklist.html"·/>15 ····<link·rel="next"·title="Deployment·checklist"·href="../checklist.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·Hypercorn"·href="hypercorn.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·Hypercorn"·href="hypercorn.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">previous</a>67 ····&laquo;·<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../checklist.html"·title="Deployment·checklist">next</a>·&raquo;</div>71 ····<a·href="../checklist.html"·title="Deployment·checklist">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 139, 47 lines modifiedOffset 140, 47 lines modified
139 <li><a·class="reference·internal"·href="#deploying-django-using-uvicorn-and-gunicorn">Deploying·Django·using·Uvicorn·and·Gunicorn</a></li>140 <li><a·class="reference·internal"·href="#deploying-django-using-uvicorn-and-gunicorn">Deploying·Django·using·Uvicorn·and·Gunicorn</a></li>
140 </ul>141 </ul>
141 </li>142 </li>
142 </ul>143 </ul>
  
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Previous·topic</h4>146 ····<h4>Argomento·precedente</h4>
146 ····<p·class="topless"><a·href="hypercorn.html"147 ····<p·class="topless"><a·href="hypercorn.html"
147 ··························title="previous·chapter">How·to·use·Django·with·Hypercorn</a></p>148 ··························title="capitolo·precedente">How·to·use·Django·with·Hypercorn</a></p>
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Next·topic</h4>151 ····<h4>Argomento·successivo</h4>
151 ····<p·class="topless"><a·href="../checklist.html"152 ····<p·class="topless"><a·href="../checklist.html"
152 ··························title="next·chapter">Deployment·checklist</a></p>153 ··························title="capitolo·successivo">Deployment·checklist</a></p>
153 ··</div>154 ··</div>
154 <search·id="searchbox"·style="display:·none"·role="search">155 <search·id="searchbox"·style="display:·none"·role="search">
155 ··<h3·id="searchlabel">Quick·search</h3>156 ··<h3·id="searchlabel">Ricerca·veloce</h3>
156 ····<div·class="searchformwrapper">157 ····<div·class="searchformwrapper">
157 ····<form·class="search"·action="../../../search.html"·method="get">158 ····<form·class="search"·action="../../../search.html"·method="get">
158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
159 ······<input·type="submit"·value="Go"·/>160 ······<input·type="submit"·value="Vai"·/>
160 ····</form>161 ····</form>
161 ····</div>162 ····</div>
162 </search>163 </search>
163 <script>document.getElementById('searchbox').style.display·=·"block"</script>164 <script>document.getElementById('searchbox').style.display·=·"block"</script>
164 ········</div>165 ········</div>
165 ······</div>166 ······</div>
166 ··············<h3>Last·update:</h3>167 ··············<h3>Last·update:</h3>
167 ··············<p·class="topless">Sep·03,·2024</p>168 ··············<p·class="topless">set·03,·2024</p>
168 ··········</div>169 ··········</div>
169 ········170 ········
170 ······171 ······
171 ····</div>172 ····</div>
  
172 ····<div·id="ft">173 ····<div·id="ft">
173 ······<div·class="nav">174 ······<div·class="nav">
174 ····&laquo;·<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">previous</a>175 ····&laquo;·<a·href="hypercorn.html"·title="How·to·use·Django·with·Hypercorn">previous</a>
175 ·····|176 ·····|
176 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>177 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
177 ···|178 ···|
178 ····<a·href="../checklist.html"·title="Deployment·checklist">next</a>·&raquo;</div>179 ····<a·href="../checklist.html"·title="Deployment·checklist">next</a>·&raquo;</div>
179 ····</div>180 ····</div>
180 ··</div>181 ··</div>
  
181 ······<div·class="clearer"></div>182 ······<div·class="clearer"></div>
182 ····</div>183 ····</div>
2.28 KB
html2text {}
Max HTML report size reached
9.06 KB
./usr/share/doc/python-django-doc/html/howto/deployment/checklist.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Deployment·checklist·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Deployment·checklist·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="How·to·upgrade·Django·to·a·newer·version"·href="../upgrade-version.html"·/>15 ····<link·rel="next"·title="How·to·upgrade·Django·to·a·newer·version"·href="../upgrade-version.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·Uvicorn"·href="asgi/uvicorn.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·Uvicorn"·href="asgi/uvicorn.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="asgi/uvicorn.html"·title="How·to·use·Django·with·Uvicorn">previous</a>67 ····&laquo;·<a·href="asgi/uvicorn.html"·title="How·to·use·Django·with·Uvicorn">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../upgrade-version.html"·title="How·to·upgrade·Django·to·a·newer·version">next</a>·&raquo;</div>71 ····<a·href="../upgrade-version.html"·title="How·to·upgrade·Django·to·a·newer·version">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 165, 15 lines modifiedOffset 166, 15 lines modified
165 header,·or·otherwise·ensure·that·you·aren’t·vulnerable·to·this·category·of166 header,·or·otherwise·ensure·that·you·aren’t·vulnerable·to·this·category·of
166 attacks.</p>167 attacks.</p>
167 <p>You·should·also·configure·the·web·server·that·sits·in·front·of·Django·to168 <p>You·should·also·configure·the·web·server·that·sits·in·front·of·Django·to
168 validate·the·host.·It·should·respond·with·a·static·error·page·or·ignore169 validate·the·host.·It·should·respond·with·a·static·error·page·or·ignore
169 requests·for·incorrect·hosts·instead·of·forwarding·the·request·to·Django.·This170 requests·for·incorrect·hosts·instead·of·forwarding·the·request·to·Django.·This
170 way·you’ll·avoid·spurious·errors·in·your·Django·logs·(or·emails·if·you·have171 way·you’ll·avoid·spurious·errors·in·your·Django·logs·(or·emails·if·you·have
171 error·reporting·configured·that·way).·For·example,·on·nginx·you·might·set·up·a172 error·reporting·configured·that·way).·For·example,·on·nginx·you·might·set·up·a
172 default·server·to·return·444·No·Response·on·an·unrecognized·host:</p>173 default·server·to·return·«444·No·Response»·on·an·unrecognized·host:</p>
173 <div·class="highlight-nginx·notranslate"><div·class="highlight"><pre><span></span><span·class="k">server</span><span·class="w">·</span><span·class="p">{</span>174 <div·class="highlight-nginx·notranslate"><div·class="highlight"><pre><span></span><span·class="k">server</span><span·class="w">·</span><span·class="p">{</span>
174 <span·class="w">····</span><span·class="kn">listen</span><span·class="w">·</span><span·class="mi">80</span><span·class="w">·</span><span·class="s">default_server</span><span·class="p">;</span>175 <span·class="w">····</span><span·class="kn">listen</span><span·class="w">·</span><span·class="mi">80</span><span·class="w">·</span><span·class="s">default_server</span><span·class="p">;</span>
175 <span·class="w">····</span><span·class="kn">return</span><span·class="w">·</span><span·class="mi">444</span><span·class="p">;</span>176 <span·class="w">····</span><span·class="kn">return</span><span·class="w">·</span><span·class="mi">444</span><span·class="p">;</span>
176 <span·class="p">}</span>177 <span·class="p">}</span>
177 </pre></div>178 </pre></div>
178 </div>179 </div>
179 </section>180 </section>
Offset 348, 47 lines modifiedOffset 349, 47 lines modified
348 </li>349 </li>
349 </ul>350 </ul>
350 </li>351 </li>
351 </ul>352 </ul>
  
352 ··</div>353 ··</div>
353 ··<div>354 ··<div>
354 ····<h4>Previous·topic</h4>355 ····<h4>Argomento·precedente</h4>
355 ····<p·class="topless"><a·href="asgi/uvicorn.html"356 ····<p·class="topless"><a·href="asgi/uvicorn.html"
356 ··························title="previous·chapter">How·to·use·Django·with·Uvicorn</a></p>357 ··························title="capitolo·precedente">How·to·use·Django·with·Uvicorn</a></p>
357 ··</div>358 ··</div>
358 ··<div>359 ··<div>
359 ····<h4>Next·topic</h4>360 ····<h4>Argomento·successivo</h4>
360 ····<p·class="topless"><a·href="../upgrade-version.html"361 ····<p·class="topless"><a·href="../upgrade-version.html"
361 ··························title="next·chapter">How·to·upgrade·Django·to·a·newer·version</a></p>362 ··························title="capitolo·successivo">How·to·upgrade·Django·to·a·newer·version</a></p>
362 ··</div>363 ··</div>
363 <search·id="searchbox"·style="display:·none"·role="search">364 <search·id="searchbox"·style="display:·none"·role="search">
364 ··<h3·id="searchlabel">Quick·search</h3>365 ··<h3·id="searchlabel">Ricerca·veloce</h3>
365 ····<div·class="searchformwrapper">366 ····<div·class="searchformwrapper">
366 ····<form·class="search"·action="../../search.html"·method="get">367 ····<form·class="search"·action="../../search.html"·method="get">
367 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>368 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
368 ······<input·type="submit"·value="Go"·/>369 ······<input·type="submit"·value="Vai"·/>
369 ····</form>370 ····</form>
370 ····</div>371 ····</div>
371 </search>372 </search>
372 <script>document.getElementById('searchbox').style.display·=·"block"</script>373 <script>document.getElementById('searchbox').style.display·=·"block"</script>
373 ········</div>374 ········</div>
374 ······</div>375 ······</div>
375 ··············<h3>Last·update:</h3>376 ··············<h3>Last·update:</h3>
376 ··············<p·class="topless">Sep·03,·2024</p>377 ··············<p·class="topless">set·03,·2024</p>
377 ··········</div>378 ··········</div>
378 ········379 ········
379 ······380 ······
380 ····</div>381 ····</div>
  
381 ····<div·id="ft">382 ····<div·id="ft">
382 ······<div·class="nav">383 ······<div·class="nav">
383 ····&laquo;·<a·href="asgi/uvicorn.html"·title="How·to·use·Django·with·Uvicorn">previous</a>384 ····&laquo;·<a·href="asgi/uvicorn.html"·title="How·to·use·Django·with·Uvicorn">previous</a>
384 ·····|385 ·····|
385 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>386 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
386 ···|387 ···|
387 ····<a·href="../upgrade-version.html"·title="How·to·upgrade·Django·to·a·newer·version">next</a>·&raquo;</div>388 ····<a·href="../upgrade-version.html"·title="How·to·upgrade·Django·to·a·newer·version">next</a>·&raquo;</div>
388 ····</div>389 ····</div>
389 ··</div>390 ··</div>
  
390 ······<div·class="clearer"></div>391 ······<div·class="clearer"></div>
391 ····</div>392 ····</div>
3.18 KB
html2text {}
Max HTML report size reached
8.27 KB
./usr/share/doc/python-django-doc/html/howto/deployment/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·deploy·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·deploy·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="How·to·deploy·with·WSGI"·href="wsgi/index.html"·/>15 ····<link·rel="next"·title="How·to·deploy·with·WSGI"·href="wsgi/index.html"·/>
15 ····<link·rel="prev"·title="How·to·write·a·custom·storage·class"·href="../custom-file-storage.html"·/>16 ····<link·rel="prev"·title="How·to·write·a·custom·storage·class"·href="../custom-file-storage.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 37 lines modifiedOffset 54, 37 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../custom-file-storage.html"·title="How·to·write·a·custom·storage·class">previous</a>67 ····&laquo;·<a·href="../custom-file-storage.html"·title="How·to·write·a·custom·storage·class">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="wsgi/index.html"·title="How·to·deploy·with·WSGI">next</a>·&raquo;</div>71 ····<a·href="wsgi/index.html"·title="How·to·deploy·with·WSGI">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-deployment-index">76 ··········<div·class="yui-g"·id="howto-deployment-index">
76 ············77 ············
77 ··<section·id="s-how-to-deploy-django">78 ··<section·id="s-how-to-deploy-django">
78 <span·id="how-to-deploy-django"></span><h1>How·to·deploy·Django<a·class="headerlink"·href="#how-to-deploy-django"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-deploy-django"></span><h1>How·to·deploy·Django<a·class="headerlink"·href="#how-to-deploy-django"·title="Link·to·this·heading">¶</a></h1>
79 <p>Django·is·full·of·shortcuts·to·make·web·developers·lives·easier,·but·all80 <p>Django·is·full·of·shortcuts·to·make·web·developers·lives·easier,·but·all
80 those·tools·are·of·no·use·if·you·can’t·easily·deploy·your·sites.·Since·Django’s81 those·tools·are·of·no·use·if·you·can’t·easily·deploy·your·sites.·Since·Django’s
81 inception,·ease·of·deployment·has·been·a·major·goal.</p>82 inception,·ease·of·deployment·has·been·a·major·goal.</p>
82 <p>There·are·many·options·for·deploying·your·Django·application,·based·on·your83 <p>There·are·many·options·for·deploying·your·Django·application,·based·on·your
83 architecture·or·your·particular·business·needs,·but·that·discussion·is·outside84 architecture·or·your·particular·business·needs,·but·that·discussion·is·outside
84 the·scope·of·what·Django·can·give·you·as·guidance.</p>85 the·scope·of·what·Django·can·give·you·as·guidance.</p>
85 <p>Django,·being·a·web·framework,·needs·a·web·server·in·order·to·operate.·And86 <p>Django,·being·a·web·framework,·needs·a·web·server·in·order·to·operate.·And
86 since·most·web·servers·don’t·natively·speak·Python,·we·need·an·interface·to87 since·most·web·servers·don’t·natively·speak·Python,·we·need·an·interface·to
Offset 142, 47 lines modifiedOffset 143, 47 lines modified
142 ······143 ······
143 ········144 ········
144 ··········<div·class="yui-b"·id="sidebar">145 ··········<div·class="yui-b"·id="sidebar">
145 ············146 ············
146 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">147 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
147 ········<div·class="sphinxsidebarwrapper">148 ········<div·class="sphinxsidebarwrapper">
148 ··<div>149 ··<div>
149 ····<h4>Previous·topic</h4>150 ····<h4>Argomento·precedente</h4>
150 ····<p·class="topless"><a·href="../custom-file-storage.html"151 ····<p·class="topless"><a·href="../custom-file-storage.html"
151 ··························title="previous·chapter">How·to·write·a·custom·storage·class</a></p>152 ··························title="capitolo·precedente">How·to·write·a·custom·storage·class</a></p>
152 ··</div>153 ··</div>
153 ··<div>154 ··<div>
154 ····<h4>Next·topic</h4>155 ····<h4>Argomento·successivo</h4>
155 ····<p·class="topless"><a·href="wsgi/index.html"156 ····<p·class="topless"><a·href="wsgi/index.html"
156 ··························title="next·chapter">How·to·deploy·with·WSGI</a></p>157 ··························title="capitolo·successivo">How·to·deploy·with·WSGI</a></p>
157 ··</div>158 ··</div>
158 <search·id="searchbox"·style="display:·none"·role="search">159 <search·id="searchbox"·style="display:·none"·role="search">
159 ··<h3·id="searchlabel">Quick·search</h3>160 ··<h3·id="searchlabel">Ricerca·veloce</h3>
160 ····<div·class="searchformwrapper">161 ····<div·class="searchformwrapper">
161 ····<form·class="search"·action="../../search.html"·method="get">162 ····<form·class="search"·action="../../search.html"·method="get">
162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
163 ······<input·type="submit"·value="Go"·/>164 ······<input·type="submit"·value="Vai"·/>
164 ····</form>165 ····</form>
165 ····</div>166 ····</div>
166 </search>167 </search>
167 <script>document.getElementById('searchbox').style.display·=·"block"</script>168 <script>document.getElementById('searchbox').style.display·=·"block"</script>
168 ········</div>169 ········</div>
169 ······</div>170 ······</div>
170 ··············<h3>Last·update:</h3>171 ··············<h3>Last·update:</h3>
171 ··············<p·class="topless">Sep·03,·2024</p>172 ··············<p·class="topless">set·03,·2024</p>
172 ··········</div>173 ··········</div>
173 ········174 ········
174 ······175 ······
175 ····</div>176 ····</div>
  
176 ····<div·id="ft">177 ····<div·id="ft">
177 ······<div·class="nav">178 ······<div·class="nav">
178 ····&laquo;·<a·href="../custom-file-storage.html"·title="How·to·write·a·custom·storage·class">previous</a>179 ····&laquo;·<a·href="../custom-file-storage.html"·title="How·to·write·a·custom·storage·class">previous</a>
179 ·····|180 ·····|
180 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>181 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
181 ···|182 ···|
182 ····<a·href="wsgi/index.html"·title="How·to·deploy·with·WSGI">next</a>·&raquo;</div>183 ····<a·href="wsgi/index.html"·title="How·to·deploy·with·WSGI">next</a>·&raquo;</div>
183 ····</div>184 ····</div>
184 ··</div>185 ··</div>
  
185 ······<div·class="clearer"></div>186 ······<div·class="clearer"></div>
186 ····</div>187 ····</div>
2.55 KB
html2text {}
Max HTML report size reached
13.0 KB
./usr/share/doc/python-django-doc/html/howto/deployment/wsgi/apache-auth.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·authenticate·against·Django’s·user·database·from·Apache·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·authenticate·against·Django’s·user·database·from·Apache·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·deploy·with·ASGI"·href="../asgi/index.html"·/>15 ····<link·rel="next"·title="How·to·deploy·with·ASGI"·href="../asgi/index.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·Apache·and·mod_wsgi"·href="modwsgi.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·Apache·and·mod_wsgi"·href="modwsgi.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">previous</a>67 ····&laquo;·<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../asgi/index.html"·title="How·to·deploy·with·ASGI">next</a>·&raquo;</div>71 ····<a·href="../asgi/index.html"·title="How·to·deploy·with·ASGI">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 86, 26 lines modifiedOffset 87, 26 lines modified
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Serve·static/media·files·directly·from·Apache·only·to·authenticated·users.</p></li>88 <li><p>Serve·static/media·files·directly·from·Apache·only·to·authenticated·users.</p></li>
88 <li><p>Authenticate·access·to·a·<a·class="reference·external"·href="https://subversion.apache.org/">Subversion</a>·repository·against·Django·users·with89 <li><p>Authenticate·access·to·a·<a·class="reference·external"·href="https://subversion.apache.org/">Subversion</a>·repository·against·Django·users·with
89 a·certain·permission.</p></li>90 a·certain·permission.</p></li>
90 <li><p>Allow·certain·users·to·connect·to·a·WebDAV·share·created·with·<a·class="reference·external"·href="https://httpd.apache.org/docs/2.2/mod/mod_dav.html">mod_dav</a>.</p></li>91 <li><p>Allow·certain·users·to·connect·to·a·WebDAV·share·created·with·<a·class="reference·external"·href="https://httpd.apache.org/docs/2.2/mod/mod_dav.html">mod_dav</a>.</p></li>
91 </ul>92 </ul>
92 <div·class="admonition·note">93 <div·class="admonition·note">
93 <p·class="admonition-title">Note</p>94 <p·class="admonition-title">Nota</p>
94 <p>If·you·have·installed·a·<a·class="reference·internal"·href="../../../topics/auth/customizing.html#auth-custom-user"><span·class="std·std-ref">custom·user·model</span></a>·and95 <p>If·you·have·installed·a·<a·class="reference·internal"·href="../../../topics/auth/customizing.html#auth-custom-user"><span·class="std·std-ref">custom·user·model</span></a>·and
95 want·to·use·this·default·auth·handler,·it·must·support·an·<code·class="docutils·literal·notranslate"><span·class="pre">is_active</span></code>96 want·to·use·this·default·auth·handler,·it·must·support·an·<code·class="docutils·literal·notranslate"><span·class="pre">is_active</span></code>
96 attribute.·If·you·want·to·use·group·based·authorization,·your·custom·user97 attribute.·If·you·want·to·use·group·based·authorization,·your·custom·user
97 must·have·a·relation·named·groups,·referring·to·a·related·object·that·has98 must·have·a·relation·named·groups,·referring·to·a·related·object·that·has
98 a·name·field.·You·can·also·specify·your·own·custom·mod_wsgi99 a·name·field.·You·can·also·specify·your·own·custom·mod_wsgi
99 auth·handler·if·your·custom·cannot·conform·to·these·requirements.</p>100 auth·handler·if·your·custom·cannot·conform·to·these·requirements.</p>
100 </div>101 </div>
101 <section·id="s-authentication-with-mod-wsgi">102 <section·id="s-authentication-with-mod-wsgi">
102 <span·id="authentication-with-mod-wsgi"></span><h2>Authentication·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code><a·class="headerlink"·href="#authentication-with-mod-wsgi"·title="Link·to·this·heading">¶</a></h2>103 <span·id="authentication-with-mod-wsgi"></span><h2>Authentication·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code><a·class="headerlink"·href="#authentication-with-mod-wsgi"·title="Link·to·this·heading">¶</a></h2>
103 <div·class="admonition·note">104 <div·class="admonition·note">
104 <p·class="admonition-title">Note</p>105 <p·class="admonition-title">Nota</p>
105 <p>The·use·of·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIApplicationGroup</span>·<span·class="pre">%{GLOBAL}</span></code>·in·the·configurations·below106 <p>The·use·of·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIApplicationGroup</span>·<span·class="pre">%{GLOBAL}</span></code>·in·the·configurations·below
106 presumes·that·your·Apache·instance·is·running·only·one·Django·application.107 presumes·that·your·Apache·instance·is·running·only·one·Django·application.
107 If·you·are·running·more·than·one·Django·application,·please·refer·to·the108 If·you·are·running·more·than·one·Django·application,·please·refer·to·the
108 <a·class="reference·external"·href="https://modwsgi.readthedocs.io/en/develop/user-guides/configuration-guidelines.html#defining-application-groups">Defining·Application·Groups</a>·section·of·the·mod_wsgi·docs·for·more109 <a·class="reference·external"·href="https://modwsgi.readthedocs.io/en/develop/user-guides/configuration-guidelines.html#defining-application-groups">Defining·Application·Groups</a>·section·of·the·mod_wsgi·docs·for·more
109 information·about·this·setting.</p>110 information·about·this·setting.</p>
110 </div>111 </div>
111 <p>Make·sure·that·mod_wsgi·is·installed·and·activated·and·that·you·have112 <p>Make·sure·that·mod_wsgi·is·installed·and·activated·and·that·you·have
Offset 183, 15 lines modifiedOffset 184, 15 lines modified
183 <p>To·support·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIAuthGroupScript</span></code>·directive,·the·same·WSGI·script184 <p>To·support·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIAuthGroupScript</span></code>·directive,·the·same·WSGI·script
184 <code·class="docutils·literal·notranslate"><span·class="pre">mysite.wsgi</span></code>·must·also·import·the·<code·class="docutils·literal·notranslate"><span·class="pre">groups_for_user</span></code>·function·which185 <code·class="docutils·literal·notranslate"><span·class="pre">mysite.wsgi</span></code>·must·also·import·the·<code·class="docutils·literal·notranslate"><span·class="pre">groups_for_user</span></code>·function·which
185 returns·a·list·groups·the·given·user·belongs·to.</p>186 returns·a·list·groups·the·given·user·belongs·to.</p>
186 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth.handlers.modwsgi</span>·<span·class="kn">import</span>·<span·class="n">check_password</span><span·class="p">,</span>·<span·class="n">groups_for_user</span>187 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth.handlers.modwsgi</span>·<span·class="kn">import</span>·<span·class="n">check_password</span><span·class="p">,</span>·<span·class="n">groups_for_user</span>
187 </pre></div>188 </pre></div>
188 </div>189 </div>
189 <p>Requests·for·<code·class="docutils·literal·notranslate"><span·class="pre">/secret/</span></code>·will·now·also·require·user·to·be·a·member·of·the190 <p>Requests·for·<code·class="docutils·literal·notranslate"><span·class="pre">/secret/</span></code>·will·now·also·require·user·to·be·a·member·of·the
190 secret-agents·group.</p>191 «secret-agents»·group.</p>
191 </section>192 </section>
192 </section>193 </section>
193 </section>194 </section>
  
  
194 ··········</div>195 ··········</div>
195 ········</div>196 ········</div>
Offset 212, 47 lines modifiedOffset 213, 47 lines modified
212 </li>213 </li>
213 </ul>214 </ul>
214 </li>215 </li>
215 </ul>216 </ul>
  
216 ··</div>217 ··</div>
217 ··<div>218 ··<div>
218 ····<h4>Previous·topic</h4>219 ····<h4>Argomento·precedente</h4>
219 ····<p·class="topless"><a·href="modwsgi.html"220 ····<p·class="topless"><a·href="modwsgi.html"
220 ··························title="previous·chapter">How·to·use·Django·with·Apache·and·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code></a></p>221 ··························title="capitolo·precedente">How·to·use·Django·with·Apache·and·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code></a></p>
221 ··</div>222 ··</div>
222 ··<div>223 ··<div>
223 ····<h4>Next·topic</h4>224 ····<h4>Argomento·successivo</h4>
224 ····<p·class="topless"><a·href="../asgi/index.html"225 ····<p·class="topless"><a·href="../asgi/index.html"
225 ··························title="next·chapter">How·to·deploy·with·ASGI</a></p>226 ··························title="capitolo·successivo">How·to·deploy·with·ASGI</a></p>
226 ··</div>227 ··</div>
227 <search·id="searchbox"·style="display:·none"·role="search">228 <search·id="searchbox"·style="display:·none"·role="search">
228 ··<h3·id="searchlabel">Quick·search</h3>229 ··<h3·id="searchlabel">Ricerca·veloce</h3>
229 ····<div·class="searchformwrapper">230 ····<div·class="searchformwrapper">
230 ····<form·class="search"·action="../../../search.html"·method="get">231 ····<form·class="search"·action="../../../search.html"·method="get">
231 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>232 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
232 ······<input·type="submit"·value="Go"·/>233 ······<input·type="submit"·value="Vai"·/>
233 ····</form>234 ····</form>
234 ····</div>235 ····</div>
235 </search>236 </search>
236 <script>document.getElementById('searchbox').style.display·=·"block"</script>237 <script>document.getElementById('searchbox').style.display·=·"block"</script>
237 ········</div>238 ········</div>
238 ······</div>239 ······</div>
239 ··············<h3>Last·update:</h3>240 ··············<h3>Last·update:</h3>
240 ··············<p·class="topless">Sep·03,·2024</p>241 ··············<p·class="topless">set·03,·2024</p>
241 ··········</div>242 ··········</div>
242 ········243 ········
243 ······244 ······
244 ····</div>245 ····</div>
Max diff block lines reached; 587/8648 bytes (6.79%) of diff not shown.
4.43 KB
html2text {}
Max HTML report size reached
9.11 KB
./usr/share/doc/python-django-doc/html/howto/deployment/wsgi/gunicorn.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·Gunicorn·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·Gunicorn·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·uWSGI"·href="uwsgi.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·uWSGI"·href="uwsgi.html"·/>
15 ····<link·rel="prev"·title="How·to·deploy·with·WSGI"·href="index.html"·/>16 ····<link·rel="prev"·title="How·to·deploy·with·WSGI"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 37 lines modifiedOffset 54, 37 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·WSGI">previous</a>67 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·WSGI">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">next</a>·&raquo;</div>71 ····<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-deployment-wsgi-gunicorn">76 ··········<div·class="yui-g"·id="howto-deployment-wsgi-gunicorn">
76 ············77 ············
77 ··<section·id="s-how-to-use-django-with-gunicorn">78 ··<section·id="s-how-to-use-django-with-gunicorn">
78 <span·id="how-to-use-django-with-gunicorn"></span><h1>How·to·use·Django·with·Gunicorn<a·class="headerlink"·href="#how-to-use-django-with-gunicorn"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-use-django-with-gunicorn"></span><h1>How·to·use·Django·with·Gunicorn<a·class="headerlink"·href="#how-to-use-django-with-gunicorn"·title="Link·to·this·heading">¶</a></h1>
79 <p><a·class="reference·external"·href="https://gunicorn.org/">Gunicorn</a>·(Green·Unicorn)·is·a·pure-Python·WSGI·server·for·UNIX.·It·has·no80 <p><a·class="reference·external"·href="https://gunicorn.org/">Gunicorn</a>·(Green·Unicorn)·is·a·pure-Python·WSGI·server·for·UNIX.·It·has·no
80 dependencies·and·can·be·installed·using·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>.</p>81 dependencies·and·can·be·installed·using·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>.</p>
81 <section·id="s-installing-gunicorn">82 <section·id="s-installing-gunicorn">
82 <span·id="installing-gunicorn"></span><h2>Installing·Gunicorn<a·class="headerlink"·href="#installing-gunicorn"·title="Link·to·this·heading">¶</a></h2>83 <span·id="installing-gunicorn"></span><h2>Installing·Gunicorn<a·class="headerlink"·href="#installing-gunicorn"·title="Link·to·this·heading">¶</a></h2>
83 <p>Install·gunicorn·by·running·<code·class="docutils·literal·notranslate"><span·class="pre">python</span>·<span·class="pre">-m</span>·<span·class="pre">pip</span>·<span·class="pre">install</span>·<span·class="pre">gunicorn</span></code>.·For·more84 <p>Install·gunicorn·by·running·<code·class="docutils·literal·notranslate"><span·class="pre">python</span>·<span·class="pre">-m</span>·<span·class="pre">pip</span>·<span·class="pre">install</span>·<span·class="pre">gunicorn</span></code>.·For·more
84 details,·see·the·<a·class="reference·external"·href="https://docs.gunicorn.org/en/latest/install.html">gunicorn·documentation</a>.</p>85 details,·see·the·<a·class="reference·external"·href="https://docs.gunicorn.org/en/latest/install.html">gunicorn·documentation</a>.</p>
85 </section>86 </section>
86 <section·id="s-running-django-in-gunicorn-as-a-generic-wsgi-application">87 <section·id="s-running-django-in-gunicorn-as-a-generic-wsgi-application">
Offset 120, 47 lines modifiedOffset 121, 47 lines modified
120 <li><a·class="reference·internal"·href="#running-django-in-gunicorn-as-a-generic-wsgi-application">Running·Django·in·Gunicorn·as·a·generic·WSGI·application</a></li>121 <li><a·class="reference·internal"·href="#running-django-in-gunicorn-as-a-generic-wsgi-application">Running·Django·in·Gunicorn·as·a·generic·WSGI·application</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="index.html"128 ····<p·class="topless"><a·href="index.html"
128 ··························title="previous·chapter">How·to·deploy·with·WSGI</a></p>129 ··························title="capitolo·precedente">How·to·deploy·with·WSGI</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="uwsgi.html"133 ····<p·class="topless"><a·href="uwsgi.html"
133 ··························title="next·chapter">How·to·use·Django·with·uWSGI</a></p>134 ··························title="capitolo·successivo">How·to·use·Django·with·uWSGI</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../../../search.html"·method="get">139 ····<form·class="search"·action="../../../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
155 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·WSGI">previous</a>156 ····&laquo;·<a·href="index.html"·title="How·to·deploy·with·WSGI">previous</a>
156 ·····|157 ·····|
157 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>158 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
158 ···|159 ···|
159 ····<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">next</a>·&raquo;</div>160 ····<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">next</a>·&raquo;</div>
160 ····</div>161 ····</div>
161 ··</div>162 ··</div>
  
162 ······<div·class="clearer"></div>163 ······<div·class="clearer"></div>
163 ····</div>164 ····</div>
2.95 KB
html2text {}
Max HTML report size reached
9.72 KB
./usr/share/doc/python-django-doc/html/howto/deployment/wsgi/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·deploy·with·WSGI·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·deploy·with·WSGI·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·Gunicorn"·href="gunicorn.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·Gunicorn"·href="gunicorn.html"·/>
15 ····<link·rel="prev"·title="How·to·deploy·Django"·href="../index.html"·/>16 ····<link·rel="prev"·title="How·to·deploy·Django"·href="../index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../index.html"·title="How·to·deploy·Django">previous</a>67 ····&laquo;·<a·href="../index.html"·title="How·to·deploy·Django">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">next</a>·&raquo;</div>71 ····<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 117, 15 lines modifiedOffset 118, 15 lines modified
117 locate·the·appropriate·settings·module.·It·must·contain·the·dotted·path·to·the118 locate·the·appropriate·settings·module.·It·must·contain·the·dotted·path·to·the
118 settings·module.·You·can·use·a·different·value·for·development·and·production;119 settings·module.·You·can·use·a·different·value·for·development·and·production;
119 it·all·depends·on·how·you·organize·your·settings.</p>120 it·all·depends·on·how·you·organize·your·settings.</p>
120 <p>If·this·variable·isn’t·set,·the·default·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>·sets·it·to121 <p>If·this·variable·isn’t·set,·the·default·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>·sets·it·to
121 <code·class="docutils·literal·notranslate"><span·class="pre">mysite.settings</span></code>,·where·<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·is·the·name·of·your·project.·That’s·how122 <code·class="docutils·literal·notranslate"><span·class="pre">mysite.settings</span></code>,·where·<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·is·the·name·of·your·project.·That’s·how
122 <a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-runserver"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">runserver</span></code></a>·discovers·the·default·settings·file·by·default.</p>123 <a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-runserver"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">runserver</span></code></a>·discovers·the·default·settings·file·by·default.</p>
123 <div·class="admonition·note">124 <div·class="admonition·note">
124 <p·class="admonition-title">Note</p>125 <p·class="admonition-title">Nota</p>
125 <p>Since·environment·variables·are·process-wide,·this·doesn’t·work·when·you126 <p>Since·environment·variables·are·process-wide,·this·doesn’t·work·when·you
126 run·multiple·Django·sites·in·the·same·process.·This·happens·with·mod_wsgi.</p>127 run·multiple·Django·sites·in·the·same·process.·This·happens·with·mod_wsgi.</p>
127 <p>To·avoid·this·problem,·use·mod_wsgi’s·daemon·mode·with·each·site·in·its128 <p>To·avoid·this·problem,·use·mod_wsgi’s·daemon·mode·with·each·site·in·its
128 own·daemon·process,·or·override·the·value·from·the·environment·by129 own·daemon·process,·or·override·the·value·from·the·environment·by
129 enforcing·<code·class="docutils·literal·notranslate"><span·class="pre">os.environ[&quot;DJANGO_SETTINGS_MODULE&quot;]</span>·<span·class="pre">=</span>·<span·class="pre">&quot;mysite.settings&quot;</span></code>·in130 enforcing·<code·class="docutils·literal·notranslate"><span·class="pre">os.environ[&quot;DJANGO_SETTINGS_MODULE&quot;]</span>·<span·class="pre">=</span>·<span·class="pre">&quot;mysite.settings&quot;</span></code>·in
130 your·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>.</p>131 your·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>.</p>
131 </div>132 </div>
Offset 165, 47 lines modifiedOffset 166, 47 lines modified
165 <li><a·class="reference·internal"·href="#applying-wsgi-middleware">Applying·WSGI·middleware</a></li>166 <li><a·class="reference·internal"·href="#applying-wsgi-middleware">Applying·WSGI·middleware</a></li>
166 </ul>167 </ul>
167 </li>168 </li>
168 </ul>169 </ul>
  
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Previous·topic</h4>172 ····<h4>Argomento·precedente</h4>
172 ····<p·class="topless"><a·href="../index.html"173 ····<p·class="topless"><a·href="../index.html"
173 ··························title="previous·chapter">How·to·deploy·Django</a></p>174 ··························title="capitolo·precedente">How·to·deploy·Django</a></p>
174 ··</div>175 ··</div>
175 ··<div>176 ··<div>
176 ····<h4>Next·topic</h4>177 ····<h4>Argomento·successivo</h4>
177 ····<p·class="topless"><a·href="gunicorn.html"178 ····<p·class="topless"><a·href="gunicorn.html"
178 ··························title="next·chapter">How·to·use·Django·with·Gunicorn</a></p>179 ··························title="capitolo·successivo">How·to·use·Django·with·Gunicorn</a></p>
179 ··</div>180 ··</div>
180 <search·id="searchbox"·style="display:·none"·role="search">181 <search·id="searchbox"·style="display:·none"·role="search">
181 ··<h3·id="searchlabel">Quick·search</h3>182 ··<h3·id="searchlabel">Ricerca·veloce</h3>
182 ····<div·class="searchformwrapper">183 ····<div·class="searchformwrapper">
183 ····<form·class="search"·action="../../../search.html"·method="get">184 ····<form·class="search"·action="../../../search.html"·method="get">
184 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>185 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
185 ······<input·type="submit"·value="Go"·/>186 ······<input·type="submit"·value="Vai"·/>
186 ····</form>187 ····</form>
187 ····</div>188 ····</div>
188 </search>189 </search>
189 <script>document.getElementById('searchbox').style.display·=·"block"</script>190 <script>document.getElementById('searchbox').style.display·=·"block"</script>
190 ········</div>191 ········</div>
191 ······</div>192 ······</div>
192 ··············<h3>Last·update:</h3>193 ··············<h3>Last·update:</h3>
193 ··············<p·class="topless">Sep·03,·2024</p>194 ··············<p·class="topless">set·03,·2024</p>
194 ··········</div>195 ··········</div>
195 ········196 ········
196 ······197 ······
197 ····</div>198 ····</div>
  
198 ····<div·id="ft">199 ····<div·id="ft">
199 ······<div·class="nav">200 ······<div·class="nav">
200 ····&laquo;·<a·href="../index.html"·title="How·to·deploy·Django">previous</a>201 ····&laquo;·<a·href="../index.html"·title="How·to·deploy·Django">previous</a>
201 ·····|202 ·····|
202 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>203 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
203 ···|204 ···|
204 ····<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">next</a>·&raquo;</div>205 ····<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">next</a>·&raquo;</div>
205 ····</div>206 ····</div>
206 ··</div>207 ··</div>
  
207 ······<div·class="clearer"></div>208 ······<div·class="clearer"></div>
208 ····</div>209 ····</div>
3.43 KB
html2text {}
Max HTML report size reached
15.6 KB
./usr/share/doc/python-django-doc/html/howto/deployment/wsgi/modwsgi.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·Apache·and·mod_wsgi·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·Apache·and·mod_wsgi·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·authenticate·against·Django’s·user·database·from·Apache"·href="apache-auth.html"·/>15 ····<link·rel="next"·title="How·to·authenticate·against·Django’s·user·database·from·Apache"·href="apache-auth.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·uWSGI"·href="uwsgi.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·uWSGI"·href="uwsgi.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">previous</a>67 ····&laquo;·<a·href="uwsgi.html"·title="How·to·use·Django·with·uWSGI">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">next</a>·&raquo;</div>71 ····<a·href="apache-auth.html"·title="How·to·authenticate·against·Django’s·user·database·from·Apache">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 <span·class="nb">Require</span><span·class="w">·</span><span·class="k">all</span><span·class="w">·</span>granted101 <span·class="nb">Require</span><span·class="w">·</span><span·class="k">all</span><span·class="w">·</span>granted
101 <span·class="nt">&lt;/Files&gt;</span>102 <span·class="nt">&lt;/Files&gt;</span>
102 <span·class="nt">&lt;/Directory&gt;</span>103 <span·class="nt">&lt;/Directory&gt;</span>
103 </pre></div>104 </pre></div>
104 </div>105 </div>
105 <p>The·first·bit·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIScriptAlias</span></code>·line·is·the·base·URL·path·you·want·to106 <p>The·first·bit·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIScriptAlias</span></code>·line·is·the·base·URL·path·you·want·to
106 serve·your·application·at·(<code·class="docutils·literal·notranslate"><span·class="pre">/</span></code>·indicates·the·root·url),·and·the·second·is·the107 serve·your·application·at·(<code·class="docutils·literal·notranslate"><span·class="pre">/</span></code>·indicates·the·root·url),·and·the·second·is·the
107 location·of·a·WSGI·file··see·below··on·your·system,·usually·inside·of108 location·of·a·«WSGI·file»··see·below··on·your·system,·usually·inside·of
108 your·project·package·(<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·in·this·example).·This·tells·Apache·to·serve109 your·project·package·(<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·in·this·example).·This·tells·Apache·to·serve
109 any·request·below·the·given·URL·using·the·WSGI·application·defined·in·that110 any·request·below·the·given·URL·using·the·WSGI·application·defined·in·that
110 file.</p>111 file.</p>
111 <p>If·you·install·your·project’s·Python·dependencies·inside·a·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/venv.html#module-venv"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">virtual</span>112 <p>If·you·install·your·project’s·Python·dependencies·inside·a·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/venv.html#module-venv"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">virtual</span>
112 <span·class="pre">environment</span></code></a>,·add·the·path·using·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonHome</span></code>.·See·the·<a·class="reference·external"·href="https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html">mod_wsgi113 <span·class="pre">environment</span></code></a>,·add·the·path·using·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonHome</span></code>.·See·the·<a·class="reference·external"·href="https://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html">mod_wsgi
113 virtual·environment·guide</a>·for·more·details.</p>114 virtual·environment·guide</a>·for·more·details.</p>
114 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonPath</span></code>·line·ensures·that·your·project·package·is·available·for115 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonPath</span></code>·line·ensures·that·your·project·package·is·available·for
Offset 117, 15 lines modifiedOffset 118, 15 lines modified
117 file.</p>118 file.</p>
118 <p>Next·we’ll·need·to·ensure·this·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>·with·a·WSGI·application·object119 <p>Next·we’ll·need·to·ensure·this·<code·class="file·docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>·with·a·WSGI·application·object
119 exists.·As·of·Django·version·1.4,·<a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">startproject</span></code></a>·will·have·created·one120 exists.·As·of·Django·version·1.4,·<a·class="reference·internal"·href="../../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">startproject</span></code></a>·will·have·created·one
120 for·you;·otherwise,·you’ll·need·to·create·it.·See·the·<a·class="reference·internal"·href="index.html"><span·class="doc">WSGI·overview121 for·you;·otherwise,·you’ll·need·to·create·it.·See·the·<a·class="reference·internal"·href="index.html"><span·class="doc">WSGI·overview
121 documentation</span></a>·for·the·default·contents·you122 documentation</span></a>·for·the·default·contents·you
122 should·put·in·this·file,·and·what·else·you·can·add·to·it.</p>123 should·put·in·this·file,·and·what·else·you·can·add·to·it.</p>
123 <div·class="admonition·warning">124 <div·class="admonition·warning">
124 <p·class="admonition-title">Warning</p>125 <p·class="admonition-title">Avvertimento</p>
125 <p>If·multiple·Django·sites·are·run·in·a·single·mod_wsgi·process,·all·of·them126 <p>If·multiple·Django·sites·are·run·in·a·single·mod_wsgi·process,·all·of·them
126 will·use·the·settings·of·whichever·one·happens·to·run·first.·This·can·be127 will·use·the·settings·of·whichever·one·happens·to·run·first.·This·can·be
127 solved·by·changing:</p>128 solved·by·changing:</p>
128 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">os</span><span·class="o">.</span><span·class="n">environ</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;DJANGO_SETTINGS_MODULE&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;{{·project_name·}}.settings&quot;</span><span·class="p">)</span>129 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">os</span><span·class="o">.</span><span·class="n">environ</span><span·class="o">.</span><span·class="n">setdefault</span><span·class="p">(</span><span·class="s2">&quot;DJANGO_SETTINGS_MODULE&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;{{·project_name·}}.settings&quot;</span><span·class="p">)</span>
129 </pre></div>130 </pre></div>
130 </div>131 </div>
131 <p>in·<code·class="docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>,·to:</p>132 <p>in·<code·class="docutils·literal·notranslate"><span·class="pre">wsgi.py</span></code>,·to:</p>
Offset 153, 15 lines modifiedOffset 154, 15 lines modified
153 </div>154 </div>
154 <p>See·the·<a·class="reference·internal"·href="../../../ref/unicode.html#unicode-files"><span·class="std·std-ref">Files</span></a>·section·of·the·Unicode·reference·guide·for155 <p>See·the·<a·class="reference·internal"·href="../../../ref/unicode.html#unicode-files"><span·class="std·std-ref">Files</span></a>·section·of·the·Unicode·reference·guide·for
155 details.</p>156 details.</p>
156 </div>157 </div>
157 </section>158 </section>
158 <section·id="s-using-mod-wsgi-daemon-mode">159 <section·id="s-using-mod-wsgi-daemon-mode">
159 <span·id="s-daemon-mode"></span><span·id="using-mod-wsgi-daemon-mode"></span><span·id="daemon-mode"></span><h2>Using·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code>·daemon·mode<a·class="headerlink"·href="#using-mod-wsgi-daemon-mode"·title="Link·to·this·heading">¶</a></h2>160 <span·id="s-daemon-mode"></span><span·id="using-mod-wsgi-daemon-mode"></span><span·id="daemon-mode"></span><h2>Using·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code>·daemon·mode<a·class="headerlink"·href="#using-mod-wsgi-daemon-mode"·title="Link·to·this·heading">¶</a></h2>
160 <p>Daemon·mode·is·the·recommended·mode·for·running·mod_wsgi·(on·non-Windows161 <p>«Daemon·mode»·is·the·recommended·mode·for·running·mod_wsgi·(on·non-Windows
161 platforms).·To·create·the·required·daemon·process·group·and·delegate·the162 platforms).·To·create·the·required·daemon·process·group·and·delegate·the
162 Django·instance·to·run·in·it,·you·will·need·to·add·appropriate163 Django·instance·to·run·in·it,·you·will·need·to·add·appropriate
163 <code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIProcessGroup</span></code>·directives.·A·further·change164 <code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIProcessGroup</span></code>·directives.·A·further·change
164 required·to·the·above·configuration·if·you·use·daemon·mode·is·that·you·can’t165 required·to·the·above·configuration·if·you·use·daemon·mode·is·that·you·can’t
165 use·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonPath</span></code>;·instead·you·should·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">python-path</span></code>·option·to166 use·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIPythonPath</span></code>;·instead·you·should·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">python-path</span></code>·option·to
166 <code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>,·for·example:</p>167 <code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>,·for·example:</p>
167 <div·class="highlight-apache·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">WSGIDaemonProcess</span><span·class="w">·</span>example.com<span·class="w">·</span>python-home=/path/to/venv<span·class="w">·</span>python-path=/path/to/mysite.com168 <div·class="highlight-apache·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">WSGIDaemonProcess</span><span·class="w">·</span>example.com<span·class="w">·</span>python-home=/path/to/venv<span·class="w">·</span>python-path=/path/to/mysite.com
Offset 272, 47 lines modifiedOffset 273, 47 lines modified
272 <li><a·class="reference·internal"·href="#authenticating-against-django-s-user-database-from-apache">Authenticating·against·Django’s·user·database·from·Apache</a></li>273 <li><a·class="reference·internal"·href="#authenticating-against-django-s-user-database-from-apache">Authenticating·against·Django’s·user·database·from·Apache</a></li>
273 </ul>274 </ul>
274 </li>275 </li>
275 </ul>276 </ul>
  
276 ··</div>277 ··</div>
277 ··<div>278 ··<div>
278 ····<h4>Previous·topic</h4>279 ····<h4>Argomento·precedente</h4>
279 ····<p·class="topless"><a·href="uwsgi.html"280 ····<p·class="topless"><a·href="uwsgi.html"
280 ··························title="previous·chapter">How·to·use·Django·with·uWSGI</a></p>281 ··························title="capitolo·precedente">How·to·use·Django·with·uWSGI</a></p>
281 ··</div>282 ··</div>
282 ··<div>283 ··<div>
283 ····<h4>Next·topic</h4>284 ····<h4>Argomento·successivo</h4>
284 ····<p·class="topless"><a·href="apache-auth.html"285 ····<p·class="topless"><a·href="apache-auth.html"
285 ··························title="next·chapter">How·to·authenticate·against·Django’s·user·database·from·Apache</a></p>286 ··························title="capitolo·successivo">How·to·authenticate·against·Django’s·user·database·from·Apache</a></p>
286 ··</div>287 ··</div>
287 <search·id="searchbox"·style="display:·none"·role="search">288 <search·id="searchbox"·style="display:·none"·role="search">
288 ··<h3·id="searchlabel">Quick·search</h3>289 ··<h3·id="searchlabel">Ricerca·veloce</h3>
289 ····<div·class="searchformwrapper">290 ····<div·class="searchformwrapper">
290 ····<form·class="search"·action="../../../search.html"·method="get">291 ····<form·class="search"·action="../../../search.html"·method="get">
291 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>292 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
292 ······<input·type="submit"·value="Go"·/>293 ······<input·type="submit"·value="Vai"·/>
293 ····</form>294 ····</form>
294 ····</div>295 ····</div>
295 </search>296 </search>
296 <script>document.getElementById('searchbox').style.display·=·"block"</script>297 <script>document.getElementById('searchbox').style.display·=·"block"</script>
297 ········</div>298 ········</div>
298 ······</div>299 ······</div>
299 ··············<h3>Last·update:</h3>300 ··············<h3>Last·update:</h3>
Max diff block lines reached; 525/10053 bytes (5.22%) of diff not shown.
5.64 KB
html2text {}
Max HTML report size reached
11.9 KB
./usr/share/doc/python-django-doc/html/howto/deployment/wsgi/uwsgi.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·Django·with·uWSGI·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·Django·with·uWSGI·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·Django·with·Apache·and·mod_wsgi"·href="modwsgi.html"·/>15 ····<link·rel="next"·title="How·to·use·Django·with·Apache·and·mod_wsgi"·href="modwsgi.html"·/>
15 ····<link·rel="prev"·title="How·to·use·Django·with·Gunicorn"·href="gunicorn.html"·/>16 ····<link·rel="prev"·title="How·to·use·Django·with·Gunicorn"·href="gunicorn.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 40 lines modifiedOffset 54, 40 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">previous</a>67 ····&laquo;·<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>71 ····<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-deployment-wsgi-uwsgi">76 ··········<div·class="yui-g"·id="howto-deployment-wsgi-uwsgi">
76 ············77 ············
77 ··<section·id="s-how-to-use-django-with-uwsgi">78 ··<section·id="s-how-to-use-django-with-uwsgi">
78 <span·id="how-to-use-django-with-uwsgi"></span><h1>How·to·use·Django·with·uWSGI<a·class="headerlink"·href="#how-to-use-django-with-uwsgi"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-use-django-with-uwsgi"></span><h1>How·to·use·Django·with·uWSGI<a·class="headerlink"·href="#how-to-use-django-with-uwsgi"·title="Link·to·this·heading">¶</a></h1>
79 <p><a·class="reference·external"·href="https://uwsgi-docs.readthedocs.io/">uWSGI</a>·is·a·fast,·self-healing·and·developer/sysadmin-friendly·application80 <p><a·class="reference·external"·href="https://uwsgi-docs.readthedocs.io/">uWSGI</a>·is·a·fast,·self-healing·and·developer/sysadmin-friendly·application
80 container·server·coded·in·pure·C.</p>81 container·server·coded·in·pure·C.</p>
81 <div·class="admonition·seealso">82 <div·class="admonition·seealso">
82 <p·class="admonition-title">See·also</p>83 <p·class="admonition-title">Vedi·anche</p>
83 <p>The·uWSGI·docs·offer·a·<a·class="reference·external"·href="https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html">tutorial</a>·covering·Django,·nginx,·and·uWSGI·(one84 <p>The·uWSGI·docs·offer·a·<a·class="reference·external"·href="https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html">tutorial</a>·covering·Django,·nginx,·and·uWSGI·(one
84 possible·deployment·setup·of·many).·The·docs·below·are·focused·on·how·to85 possible·deployment·setup·of·many).·The·docs·below·are·focused·on·how·to
85 integrate·Django·with·uWSGI.</p>86 integrate·Django·with·uWSGI.</p>
86 </div>87 </div>
87 <section·id="s-prerequisite-uwsgi">88 <section·id="s-prerequisite-uwsgi">
88 <span·id="prerequisite-uwsgi"></span><h2>Prerequisite:·uWSGI<a·class="headerlink"·href="#prerequisite-uwsgi"·title="Link·to·this·heading">¶</a></h2>89 <span·id="prerequisite-uwsgi"></span><h2>Prerequisite:·uWSGI<a·class="headerlink"·href="#prerequisite-uwsgi"·title="Link·to·this·heading">¶</a></h2>
89 <p>The·uWSGI·wiki·describes·several·<a·class="reference·external"·href="https://uwsgi-docs.readthedocs.io/en/latest/Install.html">installation·procedures</a>.·Using·pip,·the90 <p>The·uWSGI·wiki·describes·several·<a·class="reference·external"·href="https://uwsgi-docs.readthedocs.io/en/latest/Install.html">installation·procedures</a>.·Using·pip,·the
Offset 98, 15 lines modifiedOffset 99, 15 lines modified
98 <span·class="gp">#·</span>Or<span·class="w">·</span>install<span·class="w">·</span>LTS<span·class="w">·</span><span·class="o">(</span>long<span·class="w">·</span>term<span·class="w">·</span>support<span·class="o">)</span>.99 <span·class="gp">#·</span>Or<span·class="w">·</span>install<span·class="w">·</span>LTS<span·class="w">·</span><span·class="o">(</span>long<span·class="w">·</span>term<span·class="w">·</span>support<span·class="o">)</span>.
99 <span·class="gp">$·</span>python<span·class="w">·</span>-m<span·class="w">·</span>pip<span·class="w">·</span>install<span·class="w">·</span>https://projects.unbit.it/downloads/uwsgi-lts.tar.gz100 <span·class="gp">$·</span>python<span·class="w">·</span>-m<span·class="w">·</span>pip<span·class="w">·</span>install<span·class="w">·</span>https://projects.unbit.it/downloads/uwsgi-lts.tar.gz
100 </pre></div>101 </pre></div>
101 </div>102 </div>
102 <section·id="s-uwsgi-model">103 <section·id="s-uwsgi-model">
103 <span·id="uwsgi-model"></span><h3>uWSGI·model<a·class="headerlink"·href="#uwsgi-model"·title="Link·to·this·heading">¶</a></h3>104 <span·id="uwsgi-model"></span><h3>uWSGI·model<a·class="headerlink"·href="#uwsgi-model"·title="Link·to·this·heading">¶</a></h3>
104 <p>uWSGI·operates·on·a·client-server·model.·Your·web·server·(e.g.,·nginx,·Apache)105 <p>uWSGI·operates·on·a·client-server·model.·Your·web·server·(e.g.,·nginx,·Apache)
105 communicates·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">django-uwsgi</span></code>·worker·process·to·serve·dynamic·content.</p>106 communicates·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">django-uwsgi</span></code>·«worker»·process·to·serve·dynamic·content.</p>
106 </section>107 </section>
107 <section·id="s-configuring-and-starting-the-uwsgi-server-for-django">108 <section·id="s-configuring-and-starting-the-uwsgi-server-for-django">
108 <span·id="configuring-and-starting-the-uwsgi-server-for-django"></span><h3>Configuring·and·starting·the·uWSGI·server·for·Django<a·class="headerlink"·href="#configuring-and-starting-the-uwsgi-server-for-django"·title="Link·to·this·heading">¶</a></h3>109 <span·id="configuring-and-starting-the-uwsgi-server-for-django"></span><h3>Configuring·and·starting·the·uWSGI·server·for·Django<a·class="headerlink"·href="#configuring-and-starting-the-uwsgi-server-for-django"·title="Link·to·this·heading">¶</a></h3>
109 <p>uWSGI·supports·multiple·ways·to·configure·the·process.·See·uWSGI’s110 <p>uWSGI·supports·multiple·ways·to·configure·the·process.·See·uWSGI’s
110 <a·class="reference·external"·href="https://uwsgi.readthedocs.io/en/latest/Configuration.html">configuration·documentation</a>.</p>111 <a·class="reference·external"·href="https://uwsgi.readthedocs.io/en/latest/Configuration.html">configuration·documentation</a>.</p>
111 <p>Here’s·an·example·command·to·start·a·uWSGI·server:</p>112 <p>Here’s·an·example·command·to·start·a·uWSGI·server:</p>
112 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>uwsgi<span·class="w">·</span>--chdir<span·class="o">=</span>/path/to/your/project<span·class="w">·</span><span·class="se">\</span>113 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>uwsgi<span·class="w">·</span>--chdir<span·class="o">=</span>/path/to/your/project<span·class="w">·</span><span·class="se">\</span>
Offset 192, 47 lines modifiedOffset 193, 47 lines modified
192 </li>193 </li>
193 </ul>194 </ul>
194 </li>195 </li>
195 </ul>196 </ul>
  
196 ··</div>197 ··</div>
197 ··<div>198 ··<div>
198 ····<h4>Previous·topic</h4>199 ····<h4>Argomento·precedente</h4>
199 ····<p·class="topless"><a·href="gunicorn.html"200 ····<p·class="topless"><a·href="gunicorn.html"
200 ··························title="previous·chapter">How·to·use·Django·with·Gunicorn</a></p>201 ··························title="capitolo·precedente">How·to·use·Django·with·Gunicorn</a></p>
201 ··</div>202 ··</div>
202 ··<div>203 ··<div>
203 ····<h4>Next·topic</h4>204 ····<h4>Argomento·successivo</h4>
204 ····<p·class="topless"><a·href="modwsgi.html"205 ····<p·class="topless"><a·href="modwsgi.html"
205 ··························title="next·chapter">How·to·use·Django·with·Apache·and·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code></a></p>206 ··························title="capitolo·successivo">How·to·use·Django·with·Apache·and·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code></a></p>
206 ··</div>207 ··</div>
207 <search·id="searchbox"·style="display:·none"·role="search">208 <search·id="searchbox"·style="display:·none"·role="search">
208 ··<h3·id="searchlabel">Quick·search</h3>209 ··<h3·id="searchlabel">Ricerca·veloce</h3>
209 ····<div·class="searchformwrapper">210 ····<div·class="searchformwrapper">
210 ····<form·class="search"·action="../../../search.html"·method="get">211 ····<form·class="search"·action="../../../search.html"·method="get">
211 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>212 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
212 ······<input·type="submit"·value="Go"·/>213 ······<input·type="submit"·value="Vai"·/>
213 ····</form>214 ····</form>
214 ····</div>215 ····</div>
215 </search>216 </search>
216 <script>document.getElementById('searchbox').style.display·=·"block"</script>217 <script>document.getElementById('searchbox').style.display·=·"block"</script>
217 ········</div>218 ········</div>
218 ······</div>219 ······</div>
219 ··············<h3>Last·update:</h3>220 ··············<h3>Last·update:</h3>
220 ··············<p·class="topless">Sep·03,·2024</p>221 ··············<p·class="topless">set·03,·2024</p>
221 ··········</div>222 ··········</div>
222 ········223 ········
223 ······224 ······
224 ····</div>225 ····</div>
  
225 ····<div·id="ft">226 ····<div·id="ft">
226 ······<div·class="nav">227 ······<div·class="nav">
227 ····&laquo;·<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">previous</a>228 ····&laquo;·<a·href="gunicorn.html"·title="How·to·use·Django·with·Gunicorn">previous</a>
228 ·····|229 ·····|
229 ····<a·href="../../index.html"·title="How-to·guides"·accesskey="U">up</a>230 ····<a·href="../../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
230 ···|231 ···|
231 ····<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>232 ····<a·href="modwsgi.html"·title="How·to·use·Django·with·Apache·and·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;mod_wsgi&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>
232 ····</div>233 ····</div>
233 ··</div>234 ··</div>
  
234 ······<div·class="clearer"></div>235 ······<div·class="clearer"></div>
Max diff block lines reached; 0/8224 bytes (0.00%) of diff not shown.
3.74 KB
html2text {}
Max HTML report size reached
55.3 KB
./usr/share/doc/python-django-doc/html/howto/error-reporting.html
Max HTML report size reached
10.5 KB
./usr/share/doc/python-django-doc/html/howto/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How-to·guides·&#8212;·Django·4.2.16·documentation</title>6 ····<title>«How-to»·guides·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·authenticate·using·REMOTE_USER"·href="auth-remote-user.html"·/>15 ····<link·rel="next"·title="How·to·authenticate·using·REMOTE_USER"·href="auth-remote-user.html"·/>
15 ····<link·rel="prev"·title="Asynchronous·support"·href="../topics/async.html"·/>16 ····<link·rel="prev"·title="Asynchronous·support"·href="../topics/async.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 37 lines modifiedOffset 54, 37 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../topics/async.html"·title="Asynchronous·support">previous</a>67 ····&laquo;·<a·href="../topics/async.html"·title="Asynchronous·support">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>71 ····<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-index">76 ··········<div·class="yui-g"·id="howto-index">
76 ············77 ············
77 ··<section·id="s-how-to-guides">78 ··<section·id="s-how-to-guides">
78 <span·id="how-to-guides"></span><h1>How-to·guides<a·class="headerlink"·href="#how-to-guides"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-guides"></span><h1>«How-to»·guides<a·class="headerlink"·href="#how-to-guides"·title="Link·to·this·heading">¶</a></h1>
79 <p>Here·you’ll·find·short·answers·to·How·do·I….?·types·of·questions.·These80 <p>Here·you’ll·find·short·answers·to·«How·do·I….?»·types·of·questions.·These
80 how-to·guides·don’t·cover·topics·in·depth··you’ll·find·that·material·in·the81 how-to·guides·don’t·cover·topics·in·depth··you’ll·find·that·material·in·the
81 <a·class="reference·internal"·href="../topics/index.html"><span·class="doc">Using·Django</span></a>·and·the·<a·class="reference·internal"·href="../ref/index.html"><span·class="doc">API·Reference</span></a>.·However,·these·guides·will·help82 <a·class="reference·internal"·href="../topics/index.html"><span·class="doc">Using·Django</span></a>·and·the·<a·class="reference·internal"·href="../ref/index.html"><span·class="doc">API·Reference</span></a>.·However,·these·guides·will·help
82 you·quickly·accomplish·common·tasks.</p>83 you·quickly·accomplish·common·tasks.</p>
83 <div·class="toctree-wrapper·compound">84 <div·class="toctree-wrapper·compound">
84 <ul>85 <ul>
85 <li·class="toctree-l1"><a·class="reference·internal"·href="auth-remote-user.html">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></li>86 <li·class="toctree-l1"><a·class="reference·internal"·href="auth-remote-user.html">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></li>
86 <li·class="toctree-l1"><a·class="reference·internal"·href="csrf.html">How·to·use·Django’s·CSRF·protection</a></li>87 <li·class="toctree-l1"><a·class="reference·internal"·href="csrf.html">How·to·use·Django’s·CSRF·protection</a></li>
Offset 106, 15 lines modifiedOffset 107, 15 lines modified
106 <li·class="toctree-l1"><a·class="reference·internal"·href="static-files/deployment.html">How·to·deploy·static·files</a></li>107 <li·class="toctree-l1"><a·class="reference·internal"·href="static-files/deployment.html">How·to·deploy·static·files</a></li>
107 <li·class="toctree-l1"><a·class="reference·internal"·href="windows.html">How·to·install·Django·on·Windows</a></li>108 <li·class="toctree-l1"><a·class="reference·internal"·href="windows.html">How·to·install·Django·on·Windows</a></li>
108 <li·class="toctree-l1"><a·class="reference·internal"·href="writing-migrations.html">How·to·create·database·migrations</a></li>109 <li·class="toctree-l1"><a·class="reference·internal"·href="writing-migrations.html">How·to·create·database·migrations</a></li>
109 <li·class="toctree-l1"><a·class="reference·internal"·href="delete-app.html">How·to·delete·a·Django·application</a></li>110 <li·class="toctree-l1"><a·class="reference·internal"·href="delete-app.html">How·to·delete·a·Django·application</a></li>
110 </ul>111 </ul>
111 </div>112 </div>
112 <div·class="admonition·seealso">113 <div·class="admonition·seealso">
113 <p·class="admonition-title">See·also</p>114 <p·class="admonition-title">Vedi·anche</p>
114 <p>The·<a·class="reference·external"·href="https://www.djangoproject.com/community/">Django·community·aggregator</a>,·where·we·aggregate·content·from·the115 <p>The·<a·class="reference·external"·href="https://www.djangoproject.com/community/">Django·community·aggregator</a>,·where·we·aggregate·content·from·the
115 global·Django·community.·Many·writers·in·the·aggregator·write·this·sort·of116 global·Django·community.·Many·writers·in·the·aggregator·write·this·sort·of
116 how-to·material.</p>117 how-to·material.</p>
117 </div>118 </div>
118 </section>119 </section>
  
  
Offset 124, 47 lines modifiedOffset 125, 47 lines modified
124 ······125 ······
125 ········126 ········
126 ··········<div·class="yui-b"·id="sidebar">127 ··········<div·class="yui-b"·id="sidebar">
127 ············128 ············
128 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">129 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
129 ········<div·class="sphinxsidebarwrapper">130 ········<div·class="sphinxsidebarwrapper">
130 ··<div>131 ··<div>
131 ····<h4>Previous·topic</h4>132 ····<h4>Argomento·precedente</h4>
132 ····<p·class="topless"><a·href="../topics/async.html"133 ····<p·class="topless"><a·href="../topics/async.html"
133 ··························title="previous·chapter">Asynchronous·support</a></p>134 ··························title="capitolo·precedente">Asynchronous·support</a></p>
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Next·topic</h4>137 ····<h4>Argomento·successivo</h4>
137 ····<p·class="topless"><a·href="auth-remote-user.html"138 ····<p·class="topless"><a·href="auth-remote-user.html"
138 ··························title="next·chapter">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></p>139 ··························title="capitolo·successivo">How·to·authenticate·using·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_USER</span></code></a></p>
139 ··</div>140 ··</div>
140 <search·id="searchbox"·style="display:·none"·role="search">141 <search·id="searchbox"·style="display:·none"·role="search">
141 ··<h3·id="searchlabel">Quick·search</h3>142 ··<h3·id="searchlabel">Ricerca·veloce</h3>
142 ····<div·class="searchformwrapper">143 ····<div·class="searchformwrapper">
143 ····<form·class="search"·action="../search.html"·method="get">144 ····<form·class="search"·action="../search.html"·method="get">
144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
145 ······<input·type="submit"·value="Go"·/>146 ······<input·type="submit"·value="Vai"·/>
146 ····</form>147 ····</form>
147 ····</div>148 ····</div>
148 </search>149 </search>
149 <script>document.getElementById('searchbox').style.display·=·"block"</script>150 <script>document.getElementById('searchbox').style.display·=·"block"</script>
150 ········</div>151 ········</div>
151 ······</div>152 ······</div>
152 ··············<h3>Last·update:</h3>153 ··············<h3>Last·update:</h3>
153 ··············<p·class="topless">Sep·03,·2024</p>154 ··············<p·class="topless">set·03,·2024</p>
154 ··········</div>155 ··········</div>
155 ········156 ········
156 ······157 ······
157 ····</div>158 ····</div>
  
158 ····<div·id="ft">159 ····<div·id="ft">
159 ······<div·class="nav">160 ······<div·class="nav">
160 ····&laquo;·<a·href="../topics/async.html"·title="Asynchronous·support">previous</a>161 ····&laquo;·<a·href="../topics/async.html"·title="Asynchronous·support">previous</a>
161 ·····|162 ·····|
162 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>163 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
163 ···|164 ···|
164 ····<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>165 ····<a·href="auth-remote-user.html"·title="How·to·authenticate·using·&lt;code·class=&#34;docutils·literal·notranslate&#34;&gt;&lt;span·class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt;">next</a>·&raquo;</div>
165 ····</div>166 ····</div>
166 ··</div>167 ··</div>
  
167 ······<div·class="clearer"></div>168 ······<div·class="clearer"></div>
168 ····</div>169 ····</div>
3.3 KB
html2text {}
Max HTML report size reached
8.52 KB
./usr/share/doc/python-django-doc/html/howto/initial-data.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·provide·initial·data·for·models·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·provide·initial·data·for·models·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·integrate·Django·with·a·legacy·database"·href="legacy-databases.html"·/>15 ····<link·rel="next"·title="How·to·integrate·Django·with·a·legacy·database"·href="legacy-databases.html"·/>
15 ····<link·rel="prev"·title="How·to·manage·error·reporting"·href="error-reporting.html"·/>16 ····<link·rel="prev"·title="How·to·manage·error·reporting"·href="error-reporting.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="error-reporting.html"·title="How·to·manage·error·reporting">previous</a>67 ····&laquo;·<a·href="error-reporting.html"·title="How·to·manage·error·reporting">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">next</a>·&raquo;</div>71 ····<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 159, 15 lines modifiedOffset 160, 15 lines modified
159 you·have·fixture·files·with·the·same·name·in·different·applications,·you160 you·have·fixture·files·with·the·same·name·in·different·applications,·you
160 will·be·unable·to·distinguish·between·them·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">loaddata</span></code>·commands.161 will·be·unable·to·distinguish·between·them·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">loaddata</span></code>·commands.
161 The·easiest·way·to·avoid·this·problem·is·by·<em>namespacing</em>·your·fixture162 The·easiest·way·to·avoid·this·problem·is·by·<em>namespacing</em>·your·fixture
162 files.·That·is,·by·putting·them·inside·a·directory·named·for·their163 files.·That·is,·by·putting·them·inside·a·directory·named·for·their
163 application,·as·in·the·relative·path·example·above.</p>164 application,·as·in·the·relative·path·example·above.</p>
164 </div>165 </div>
165 <div·class="admonition·seealso">166 <div·class="admonition·seealso">
166 <p·class="admonition-title">See·also</p>167 <p·class="admonition-title">Vedi·anche</p>
167 <p>Fixtures·are·also·used·by·the·<a·class="reference·internal"·href="../topics/testing/tools.html#topics-testing-fixtures"><span·class="std·std-ref">testing·framework</span></a>·to·help·set·up·a·consistent·test·environment.</p>168 <p>Fixtures·are·also·used·by·the·<a·class="reference·internal"·href="../topics/testing/tools.html#topics-testing-fixtures"><span·class="std·std-ref">testing·framework</span></a>·to·help·set·up·a·consistent·test·environment.</p>
168 </div>169 </div>
169 </section>170 </section>
170 </section>171 </section>
171 </section>172 </section>
  
  
Offset 191, 47 lines modifiedOffset 192, 47 lines modified
191 </li>192 </li>
192 </ul>193 </ul>
193 </li>194 </li>
194 </ul>195 </ul>
  
195 ··</div>196 ··</div>
196 ··<div>197 ··<div>
197 ····<h4>Previous·topic</h4>198 ····<h4>Argomento·precedente</h4>
198 ····<p·class="topless"><a·href="error-reporting.html"199 ····<p·class="topless"><a·href="error-reporting.html"
199 ··························title="previous·chapter">How·to·manage·error·reporting</a></p>200 ··························title="capitolo·precedente">How·to·manage·error·reporting</a></p>
200 ··</div>201 ··</div>
201 ··<div>202 ··<div>
202 ····<h4>Next·topic</h4>203 ····<h4>Argomento·successivo</h4>
203 ····<p·class="topless"><a·href="legacy-databases.html"204 ····<p·class="topless"><a·href="legacy-databases.html"
204 ··························title="next·chapter">How·to·integrate·Django·with·a·legacy·database</a></p>205 ··························title="capitolo·successivo">How·to·integrate·Django·with·a·legacy·database</a></p>
205 ··</div>206 ··</div>
206 <search·id="searchbox"·style="display:·none"·role="search">207 <search·id="searchbox"·style="display:·none"·role="search">
207 ··<h3·id="searchlabel">Quick·search</h3>208 ··<h3·id="searchlabel">Ricerca·veloce</h3>
208 ····<div·class="searchformwrapper">209 ····<div·class="searchformwrapper">
209 ····<form·class="search"·action="../search.html"·method="get">210 ····<form·class="search"·action="../search.html"·method="get">
210 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>211 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
211 ······<input·type="submit"·value="Go"·/>212 ······<input·type="submit"·value="Vai"·/>
212 ····</form>213 ····</form>
213 ····</div>214 ····</div>
214 </search>215 </search>
215 <script>document.getElementById('searchbox').style.display·=·"block"</script>216 <script>document.getElementById('searchbox').style.display·=·"block"</script>
216 ········</div>217 ········</div>
217 ······</div>218 ······</div>
218 ··············<h3>Last·update:</h3>219 ··············<h3>Last·update:</h3>
219 ··············<p·class="topless">Sep·03,·2024</p>220 ··············<p·class="topless">set·03,·2024</p>
220 ··········</div>221 ··········</div>
221 ········222 ········
222 ······223 ······
223 ····</div>224 ····</div>
  
224 ····<div·id="ft">225 ····<div·id="ft">
225 ······<div·class="nav">226 ······<div·class="nav">
226 ····&laquo;·<a·href="error-reporting.html"·title="How·to·manage·error·reporting">previous</a>227 ····&laquo;·<a·href="error-reporting.html"·title="How·to·manage·error·reporting">previous</a>
227 ·····|228 ·····|
228 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>229 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
229 ···|230 ···|
230 ····<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">next</a>·&raquo;</div>231 ····<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">next</a>·&raquo;</div>
231 ····</div>232 ····</div>
232 ··</div>233 ··</div>
  
233 ······<div·class="clearer"></div>234 ······<div·class="clearer"></div>
234 ····</div>235 ····</div>
3.0 KB
html2text {}
Max HTML report size reached
7.17 KB
./usr/share/doc/python-django-doc/html/howto/legacy-databases.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·integrate·Django·with·a·legacy·database·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·integrate·Django·with·a·legacy·database·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·configure·and·use·logging"·href="logging.html"·/>15 ····<link·rel="next"·title="How·to·configure·and·use·logging"·href="logging.html"·/>
15 ····<link·rel="prev"·title="How·to·provide·initial·data·for·models"·href="initial-data.html"·/>16 ····<link·rel="prev"·title="How·to·provide·initial·data·for·models"·href="initial-data.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="initial-data.html"·title="How·to·provide·initial·data·for·models">previous</a>67 ····&laquo;·<a·href="initial-data.html"·title="How·to·provide·initial·data·for·models">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="logging.html"·title="How·to·configure·and·use·logging">next</a>·&raquo;</div>71 ····<a·href="logging.html"·title="How·to·configure·and·use·logging">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 171, 47 lines modifiedOffset 172, 47 lines modified
171 <li><a·class="reference·internal"·href="#test-and-tweak">Test·and·tweak</a></li>172 <li><a·class="reference·internal"·href="#test-and-tweak">Test·and·tweak</a></li>
172 </ul>173 </ul>
173 </li>174 </li>
174 </ul>175 </ul>
  
175 ··</div>176 ··</div>
176 ··<div>177 ··<div>
177 ····<h4>Previous·topic</h4>178 ····<h4>Argomento·precedente</h4>
178 ····<p·class="topless"><a·href="initial-data.html"179 ····<p·class="topless"><a·href="initial-data.html"
179 ··························title="previous·chapter">How·to·provide·initial·data·for·models</a></p>180 ··························title="capitolo·precedente">How·to·provide·initial·data·for·models</a></p>
180 ··</div>181 ··</div>
181 ··<div>182 ··<div>
182 ····<h4>Next·topic</h4>183 ····<h4>Argomento·successivo</h4>
183 ····<p·class="topless"><a·href="logging.html"184 ····<p·class="topless"><a·href="logging.html"
184 ··························title="next·chapter">How·to·configure·and·use·logging</a></p>185 ··························title="capitolo·successivo">How·to·configure·and·use·logging</a></p>
185 ··</div>186 ··</div>
186 <search·id="searchbox"·style="display:·none"·role="search">187 <search·id="searchbox"·style="display:·none"·role="search">
187 ··<h3·id="searchlabel">Quick·search</h3>188 ··<h3·id="searchlabel">Ricerca·veloce</h3>
188 ····<div·class="searchformwrapper">189 ····<div·class="searchformwrapper">
189 ····<form·class="search"·action="../search.html"·method="get">190 ····<form·class="search"·action="../search.html"·method="get">
190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>191 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
191 ······<input·type="submit"·value="Go"·/>192 ······<input·type="submit"·value="Vai"·/>
192 ····</form>193 ····</form>
193 ····</div>194 ····</div>
194 </search>195 </search>
195 <script>document.getElementById('searchbox').style.display·=·"block"</script>196 <script>document.getElementById('searchbox').style.display·=·"block"</script>
196 ········</div>197 ········</div>
197 ······</div>198 ······</div>
198 ··············<h3>Last·update:</h3>199 ··············<h3>Last·update:</h3>
199 ··············<p·class="topless">Sep·03,·2024</p>200 ··············<p·class="topless">set·03,·2024</p>
200 ··········</div>201 ··········</div>
201 ········202 ········
202 ······203 ······
203 ····</div>204 ····</div>
  
204 ····<div·id="ft">205 ····<div·id="ft">
205 ······<div·class="nav">206 ······<div·class="nav">
206 ····&laquo;·<a·href="initial-data.html"·title="How·to·provide·initial·data·for·models">previous</a>207 ····&laquo;·<a·href="initial-data.html"·title="How·to·provide·initial·data·for·models">previous</a>
207 ·····|208 ·····|
208 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>209 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
209 ···|210 ···|
210 ····<a·href="logging.html"·title="How·to·configure·and·use·logging">next</a>·&raquo;</div>211 ····<a·href="logging.html"·title="How·to·configure·and·use·logging">next</a>·&raquo;</div>
211 ····</div>212 ····</div>
212 ··</div>213 ··</div>
  
213 ······<div·class="clearer"></div>214 ······<div·class="clearer"></div>
214 ····</div>215 ····</div>
2.46 KB
html2text {}
Max HTML report size reached
11.2 KB
./usr/share/doc/python-django-doc/html/howto/logging.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·configure·and·use·logging·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·configure·and·use·logging·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·create·CSV·output"·href="outputting-csv.html"·/>15 ····<link·rel="next"·title="How·to·create·CSV·output"·href="outputting-csv.html"·/>
15 ····<link·rel="prev"·title="How·to·integrate·Django·with·a·legacy·database"·href="legacy-databases.html"·/>16 ····<link·rel="prev"·title="How·to·integrate·Django·with·a·legacy·database"·href="legacy-databases.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 38 lines modifiedOffset 54, 38 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">previous</a>67 ····&laquo;·<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="outputting-csv.html"·title="How·to·create·CSV·output">next</a>·&raquo;</div>71 ····<a·href="outputting-csv.html"·title="How·to·create·CSV·output">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-logging">76 ··········<div·class="yui-g"·id="howto-logging">
76 ············77 ············
77 ··<section·id="s-how-to-configure-and-use-logging">78 ··<section·id="s-how-to-configure-and-use-logging">
78 <span·id="s-logging-how-to"></span><span·id="how-to-configure-and-use-logging"></span><span·id="logging-how-to"></span><h1>How·to·configure·and·use·logging<a·class="headerlink"·href="#how-to-configure-and-use-logging"·title="Link·to·this·heading">¶</a></h1>79 <span·id="s-logging-how-to"></span><span·id="how-to-configure-and-use-logging"></span><span·id="logging-how-to"></span><h1>How·to·configure·and·use·logging<a·class="headerlink"·href="#how-to-configure-and-use-logging"·title="Link·to·this·heading">¶</a></h1>
79 <div·class="admonition·seealso">80 <div·class="admonition·seealso">
80 <p·class="admonition-title">See·also</p>81 <p·class="admonition-title">Vedi·anche</p>
81 <ul·class="simple">82 <ul·class="simple">
82 <li><p><a·class="reference·internal"·href="../ref/logging.html#logging-ref"><span·class="std·std-ref">Django·logging·reference</span></a></p></li>83 <li><p><a·class="reference·internal"·href="../ref/logging.html#logging-ref"><span·class="std·std-ref">Django·logging·reference</span></a></p></li>
83 <li><p><a·class="reference·internal"·href="../topics/logging.html#logging-explanation"><span·class="std·std-ref">Django·logging·overview</span></a></p></li>84 <li><p><a·class="reference·internal"·href="../topics/logging.html#logging-explanation"><span·class="std·std-ref">Django·logging·overview</span></a></p></li>
84 </ul>85 </ul>
85 </div>86 </div>
86 <p>Django·provides·a·working·<a·class="reference·internal"·href="../ref/logging.html#default-logging-configuration"><span·class="std·std-ref">default·logging·configuration</span></a>·that·is·readily·extended.</p>87 <p>Django·provides·a·working·<a·class="reference·internal"·href="../ref/logging.html#default-logging-configuration"><span·class="std·std-ref">default·logging·configuration</span></a>·that·is·readily·extended.</p>
87 <section·id="s-make-a-basic-logging-call">88 <section·id="s-make-a-basic-logging-call">
Offset 121, 15 lines modifiedOffset 122, 15 lines modified
121 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·level·used·in·the·example·above·is·one·of·several122 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·level·used·in·the·example·above·is·one·of·several
122 <a·class="reference·internal"·href="../topics/logging.html#topic-logging-parts-loggers"><span·class="std·std-ref">logging·severity·levels</span></a>:·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>,123 <a·class="reference·internal"·href="../topics/logging.html#topic-logging-parts-loggers"><span·class="std·std-ref">logging·severity·levels</span></a>:·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>,
123 <code·class="docutils·literal·notranslate"><span·class="pre">INFO</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">ERROR</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">CRITICAL</span></code>.·So,·another·example·might·be:</p>124 <code·class="docutils·literal·notranslate"><span·class="pre">INFO</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">ERROR</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">CRITICAL</span></code>.·So,·another·example·might·be:</p>
124 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">logger</span><span·class="o">.</span><span·class="n">critical</span><span·class="p">(</span><span·class="s2">&quot;Payment·system·is·not·responding&quot;</span><span·class="p">)</span>125 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">logger</span><span·class="o">.</span><span·class="n">critical</span><span·class="p">(</span><span·class="s2">&quot;Payment·system·is·not·responding&quot;</span><span·class="p">)</span>
125 </pre></div>126 </pre></div>
126 </div>127 </div>
127 <div·class="admonition·important">128 <div·class="admonition·important">
128 <p·class="admonition-title">Important</p>129 <p·class="admonition-title">Importante</p>
129 <p>Records·with·a·level·lower·than·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·will·not·appear·in·the·console130 <p>Records·with·a·level·lower·than·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·will·not·appear·in·the·console
130 by·default.·Changing·this·behavior·requires·additional·configuration.</p>131 by·default.·Changing·this·behavior·requires·additional·configuration.</p>
131 </div>132 </div>
132 </section>133 </section>
133 <section·id="s-customize-logging-configuration">134 <section·id="s-customize-logging-configuration">
134 <span·id="customize-logging-configuration"></span><h2>Customize·logging·configuration<a·class="headerlink"·href="#customize-logging-configuration"·title="Link·to·this·heading">¶</a></h2>135 <span·id="customize-logging-configuration"></span><h2>Customize·logging·configuration<a·class="headerlink"·href="#customize-logging-configuration"·title="Link·to·this·heading">¶</a></h2>
135 <p>Although·Django’s·logging·configuration·works·out·of·the·box,·you·can·control136 <p>Although·Django’s·logging·configuration·works·out·of·the·box,·you·can·control
Offset 394, 47 lines modifiedOffset 395, 47 lines modified
394 </li>395 </li>
395 </ul>396 </ul>
396 </li>397 </li>
397 </ul>398 </ul>
  
398 ··</div>399 ··</div>
399 ··<div>400 ··<div>
400 ····<h4>Previous·topic</h4>401 ····<h4>Argomento·precedente</h4>
401 ····<p·class="topless"><a·href="legacy-databases.html"402 ····<p·class="topless"><a·href="legacy-databases.html"
402 ··························title="previous·chapter">How·to·integrate·Django·with·a·legacy·database</a></p>403 ··························title="capitolo·precedente">How·to·integrate·Django·with·a·legacy·database</a></p>
403 ··</div>404 ··</div>
404 ··<div>405 ··<div>
405 ····<h4>Next·topic</h4>406 ····<h4>Argomento·successivo</h4>
406 ····<p·class="topless"><a·href="outputting-csv.html"407 ····<p·class="topless"><a·href="outputting-csv.html"
407 ··························title="next·chapter">How·to·create·CSV·output</a></p>408 ··························title="capitolo·successivo">How·to·create·CSV·output</a></p>
408 ··</div>409 ··</div>
409 <search·id="searchbox"·style="display:·none"·role="search">410 <search·id="searchbox"·style="display:·none"·role="search">
410 ··<h3·id="searchlabel">Quick·search</h3>411 ··<h3·id="searchlabel">Ricerca·veloce</h3>
411 ····<div·class="searchformwrapper">412 ····<div·class="searchformwrapper">
412 ····<form·class="search"·action="../search.html"·method="get">413 ····<form·class="search"·action="../search.html"·method="get">
413 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>414 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
414 ······<input·type="submit"·value="Go"·/>415 ······<input·type="submit"·value="Vai"·/>
415 ····</form>416 ····</form>
416 ····</div>417 ····</div>
417 </search>418 </search>
418 <script>document.getElementById('searchbox').style.display·=·"block"</script>419 <script>document.getElementById('searchbox').style.display·=·"block"</script>
419 ········</div>420 ········</div>
420 ······</div>421 ······</div>
421 ··············<h3>Last·update:</h3>422 ··············<h3>Last·update:</h3>
422 ··············<p·class="topless">Sep·03,·2024</p>423 ··············<p·class="topless">set·03,·2024</p>
423 ··········</div>424 ··········</div>
424 ········425 ········
425 ······426 ······
426 ····</div>427 ····</div>
  
427 ····<div·id="ft">428 ····<div·id="ft">
428 ······<div·class="nav">429 ······<div·class="nav">
429 ····&laquo;·<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">previous</a>430 ····&laquo;·<a·href="legacy-databases.html"·title="How·to·integrate·Django·with·a·legacy·database">previous</a>
430 ·····|431 ·····|
431 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>432 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
432 ···|433 ···|
433 ····<a·href="outputting-csv.html"·title="How·to·create·CSV·output">next</a>·&raquo;</div>434 ····<a·href="outputting-csv.html"·title="How·to·create·CSV·output">next</a>·&raquo;</div>
434 ····</div>435 ····</div>
435 ··</div>436 ··</div>
  
436 ······<div·class="clearer"></div>437 ······<div·class="clearer"></div>
437 ····</div>438 ····</div>
3.8 KB
html2text {}
Max HTML report size reached
9.98 KB
./usr/share/doc/python-django-doc/html/howto/outputting-csv.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·create·CSV·output·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·create·CSV·output·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·create·PDF·files"·href="outputting-pdf.html"·/>15 ····<link·rel="next"·title="How·to·create·PDF·files"·href="outputting-pdf.html"·/>
15 ····<link·rel="prev"·title="How·to·configure·and·use·logging"·href="logging.html"·/>16 ····<link·rel="prev"·title="How·to·configure·and·use·logging"·href="logging.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="logging.html"·title="How·to·configure·and·use·logging">previous</a>67 ····&laquo;·<a·href="logging.html"·title="How·to·configure·and·use·logging">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">next</a>·&raquo;</div>71 ····<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 111, 15 lines modifiedOffset 112, 15 lines modified
111 <ul·class="simple">112 <ul·class="simple">
112 <li><p>The·response·gets·a·special·MIME·type,·<em·class="mimetype">text/csv</em>.·This·tells113 <li><p>The·response·gets·a·special·MIME·type,·<em·class="mimetype">text/csv</em>.·This·tells
113 browsers·that·the·document·is·a·CSV·file,·rather·than·an·HTML·file.·If114 browsers·that·the·document·is·a·CSV·file,·rather·than·an·HTML·file.·If
114 you·leave·this·off,·browsers·will·probably·interpret·the·output·as·HTML,115 you·leave·this·off,·browsers·will·probably·interpret·the·output·as·HTML,
115 which·will·result·in·ugly,·scary·gobbledygook·in·the·browser·window.</p></li>116 which·will·result·in·ugly,·scary·gobbledygook·in·the·browser·window.</p></li>
116 <li><p>The·response·gets·an·additional·<code·class="docutils·literal·notranslate"><span·class="pre">Content-Disposition</span></code>·header,·which117 <li><p>The·response·gets·an·additional·<code·class="docutils·literal·notranslate"><span·class="pre">Content-Disposition</span></code>·header,·which
117 contains·the·name·of·the·CSV·file.·This·filename·is·arbitrary;·call·it118 contains·the·name·of·the·CSV·file.·This·filename·is·arbitrary;·call·it
118 whatever·you·want.·It’ll·be·used·by·browsers·in·the·Save·as…·dialog,·etc.</p></li>119 whatever·you·want.·It’ll·be·used·by·browsers·in·the·«Save·as…»·dialog,·etc.</p></li>
119 <li><p>You·can·hook·into·the·CSV-generation·API·by·passing·<code·class="docutils·literal·notranslate"><span·class="pre">response</span></code>·as·the·first120 <li><p>You·can·hook·into·the·CSV-generation·API·by·passing·<code·class="docutils·literal·notranslate"><span·class="pre">response</span></code>·as·the·first
120 argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">csv.writer</span></code>.·The·<code·class="docutils·literal·notranslate"><span·class="pre">csv.writer</span></code>·function·expects·a·file-like121 argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">csv.writer</span></code>.·The·<code·class="docutils·literal·notranslate"><span·class="pre">csv.writer</span></code>·function·expects·a·file-like
121 object,·and·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·objects·fit·the·bill.</p></li>122 object,·and·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·objects·fit·the·bill.</p></li>
122 <li><p>For·each·row·in·your·CSV·file,·call·<code·class="docutils·literal·notranslate"><span·class="pre">writer.writerow</span></code>,·passing·it·an123 <li><p>For·each·row·in·your·CSV·file,·call·<code·class="docutils·literal·notranslate"><span·class="pre">writer.writerow</span></code>,·passing·it·an
123 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-iterable"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">iterable</span></a>.</p></li>124 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-iterable"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">iterable</span></a>.</p></li>
124 <li><p>The·CSV·module·takes·care·of·quoting·for·you,·so·you·don’t·have·to·worry125 <li><p>The·CSV·module·takes·care·of·quoting·for·you,·so·you·don’t·have·to·worry
125 about·escaping·strings·with·quotes·or·commas·in·them.·Pass·<code·class="docutils·literal·notranslate"><span·class="pre">writerow()</span></code>126 about·escaping·strings·with·quotes·or·commas·in·them.·Pass·<code·class="docutils·literal·notranslate"><span·class="pre">writerow()</span></code>
Offset 241, 47 lines modifiedOffset 242, 47 lines modified
241 <li><a·class="reference·internal"·href="#other-text-based-formats">Other·text-based·formats</a></li>242 <li><a·class="reference·internal"·href="#other-text-based-formats">Other·text-based·formats</a></li>
242 </ul>243 </ul>
243 </li>244 </li>
244 </ul>245 </ul>
  
245 ··</div>246 ··</div>
246 ··<div>247 ··<div>
247 ····<h4>Previous·topic</h4>248 ····<h4>Argomento·precedente</h4>
248 ····<p·class="topless"><a·href="logging.html"249 ····<p·class="topless"><a·href="logging.html"
249 ··························title="previous·chapter">How·to·configure·and·use·logging</a></p>250 ··························title="capitolo·precedente">How·to·configure·and·use·logging</a></p>
250 ··</div>251 ··</div>
251 ··<div>252 ··<div>
252 ····<h4>Next·topic</h4>253 ····<h4>Argomento·successivo</h4>
253 ····<p·class="topless"><a·href="outputting-pdf.html"254 ····<p·class="topless"><a·href="outputting-pdf.html"
254 ··························title="next·chapter">How·to·create·PDF·files</a></p>255 ··························title="capitolo·successivo">How·to·create·PDF·files</a></p>
255 ··</div>256 ··</div>
256 <search·id="searchbox"·style="display:·none"·role="search">257 <search·id="searchbox"·style="display:·none"·role="search">
257 ··<h3·id="searchlabel">Quick·search</h3>258 ··<h3·id="searchlabel">Ricerca·veloce</h3>
258 ····<div·class="searchformwrapper">259 ····<div·class="searchformwrapper">
259 ····<form·class="search"·action="../search.html"·method="get">260 ····<form·class="search"·action="../search.html"·method="get">
260 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>261 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
261 ······<input·type="submit"·value="Go"·/>262 ······<input·type="submit"·value="Vai"·/>
262 ····</form>263 ····</form>
263 ····</div>264 ····</div>
264 </search>265 </search>
265 <script>document.getElementById('searchbox').style.display·=·"block"</script>266 <script>document.getElementById('searchbox').style.display·=·"block"</script>
266 ········</div>267 ········</div>
267 ······</div>268 ······</div>
268 ··············<h3>Last·update:</h3>269 ··············<h3>Last·update:</h3>
269 ··············<p·class="topless">Sep·03,·2024</p>270 ··············<p·class="topless">set·03,·2024</p>
270 ··········</div>271 ··········</div>
271 ········272 ········
272 ······273 ······
273 ····</div>274 ····</div>
  
274 ····<div·id="ft">275 ····<div·id="ft">
275 ······<div·class="nav">276 ······<div·class="nav">
276 ····&laquo;·<a·href="logging.html"·title="How·to·configure·and·use·logging">previous</a>277 ····&laquo;·<a·href="logging.html"·title="How·to·configure·and·use·logging">previous</a>
277 ·····|278 ·····|
278 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>279 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
279 ···|280 ···|
280 ····<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">next</a>·&raquo;</div>281 ····<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">next</a>·&raquo;</div>
281 ····</div>282 ····</div>
282 ··</div>283 ··</div>
  
283 ······<div·class="clearer"></div>284 ······<div·class="clearer"></div>
284 ····</div>285 ····</div>
3.43 KB
html2text {}
Max HTML report size reached
13.6 KB
./usr/share/doc/python-django-doc/html/howto/outputting-pdf.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·create·PDF·files·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·create·PDF·files·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·override·templates"·href="overriding-templates.html"·/>15 ····<link·rel="next"·title="How·to·override·templates"·href="overriding-templates.html"·/>
15 ····<link·rel="prev"·title="How·to·create·CSV·output"·href="outputting-csv.html"·/>16 ····<link·rel="prev"·title="How·to·create·CSV·output"·href="outputting-csv.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 25 lines modifiedOffset 67, 25 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
80 ····&laquo;·<a·href="outputting-csv.html"·title="How·to·create·CSV·output">previous</a>81 ····&laquo;·<a·href="outputting-csv.html"·title="How·to·create·CSV·output">previous</a>
81 ·····|82 ·····|
82 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>83 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
83 ···|84 ···|
84 ····<a·href="overriding-templates.html"·title="How·to·override·templates">next</a>·&raquo;</div>85 ····<a·href="overriding-templates.html"·title="How·to·override·templates">next</a>·&raquo;</div>
85 ····</div>86 ····</div>
  
86 ····<div·id="bd">87 ····<div·id="bd">
87 ······<div·id="yui-main">88 ······<div·id="yui-main">
88 ········<div·class="yui-b">89 ········<div·class="yui-b">
Offset 128, 15 lines modifiedOffset 129, 15 lines modified
128 <p>If·that·command·doesn’t·raise·any·errors,·the·installation·worked.</p>129 <p>If·that·command·doesn’t·raise·any·errors,·the·installation·worked.</p>
129 </section>130 </section>
130 <section·id="s-write-your-view">131 <section·id="s-write-your-view">
131 <span·id="write-your-view"></span><h2>Write·your·view<a·class="headerlink"·href="#write-your-view"·title="Link·to·this·heading">¶</a></h2>132 <span·id="write-your-view"></span><h2>Write·your·view<a·class="headerlink"·href="#write-your-view"·title="Link·to·this·heading">¶</a></h2>
132 <p>The·key·to·generating·PDFs·dynamically·with·Django·is·that·the·ReportLab·API133 <p>The·key·to·generating·PDFs·dynamically·with·Django·is·that·the·ReportLab·API
133 acts·on·file-like·objects,·and·Django’s·<a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>134 acts·on·file-like·objects,·and·Django’s·<a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>
134 objects·accept·file-like·objects.</p>135 objects·accept·file-like·objects.</p>
135 <p>Here’s·a·Hello·World·example:</p>136 <p>Here’s·a·«Hello·World»·example:</p>
136 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">io</span>137 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">io</span>
137 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">FileResponse</span>138 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">FileResponse</span>
138 <span·class="kn">from</span>·<span·class="nn">reportlab.pdfgen</span>·<span·class="kn">import</span>·<span·class="n">canvas</span>139 <span·class="kn">from</span>·<span·class="nn">reportlab.pdfgen</span>·<span·class="kn">import</span>·<span·class="n">canvas</span>
  
  
139 <span·class="k">def</span>·<span·class="nf">some_view</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>140 <span·class="k">def</span>·<span·class="nf">some_view</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
140 ····<span·class="c1">#·Create·a·file-like·buffer·to·receive·PDF·data.</span>141 ····<span·class="c1">#·Create·a·file-like·buffer·to·receive·PDF·data.</span>
Offset 169, 39 lines modifiedOffset 170, 39 lines modified
169 <li><p>When·<code·class="docutils·literal·notranslate"><span·class="pre">as_attachment=True</span></code>·is·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code>,·it·sets·the170 <li><p>When·<code·class="docutils·literal·notranslate"><span·class="pre">as_attachment=True</span></code>·is·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code>,·it·sets·the
170 appropriate·<code·class="docutils·literal·notranslate"><span·class="pre">Content-Disposition</span></code>·header·and·that·tells·web·browsers·to171 appropriate·<code·class="docutils·literal·notranslate"><span·class="pre">Content-Disposition</span></code>·header·and·that·tells·web·browsers·to
171 pop-up·a·dialog·box·prompting/confirming·how·to·handle·the·document·even·if·a172 pop-up·a·dialog·box·prompting/confirming·how·to·handle·the·document·even·if·a
172 default·is·set·on·the·machine.·If·the·<code·class="docutils·literal·notranslate"><span·class="pre">as_attachment</span></code>·parameter·is·omitted,173 default·is·set·on·the·machine.·If·the·<code·class="docutils·literal·notranslate"><span·class="pre">as_attachment</span></code>·parameter·is·omitted,
173 browsers·will·handle·the·PDF·using·whatever·program/plugin·they’ve·been174 browsers·will·handle·the·PDF·using·whatever·program/plugin·they’ve·been
174 configured·to·use·for·PDFs.</p></li>175 configured·to·use·for·PDFs.</p></li>
175 <li><p>You·can·provide·an·arbitrary·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·parameter.·It’ll·be·used·by·browsers176 <li><p>You·can·provide·an·arbitrary·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·parameter.·It’ll·be·used·by·browsers
176 in·the·Save·as…·dialog.</p></li>177 in·the·«Save·as…»·dialog.</p></li>
177 <li><p>You·can·hook·into·the·ReportLab·API:·The·same·buffer·passed·as·the·first178 <li><p>You·can·hook·into·the·ReportLab·API:·The·same·buffer·passed·as·the·first
178 argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">canvas.Canvas</span></code>·can·be·fed·to·the179 argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">canvas.Canvas</span></code>·can·be·fed·to·the
179 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·class.</p></li>180 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·class.</p></li>
180 <li><p>Note·that·all·subsequent·PDF-generation·methods·are·called·on·the·PDF181 <li><p>Note·that·all·subsequent·PDF-generation·methods·are·called·on·the·PDF
181 object·(in·this·case,·<code·class="docutils·literal·notranslate"><span·class="pre">p</span></code>)··not·on·<code·class="docutils·literal·notranslate"><span·class="pre">buffer</span></code>.</p></li>182 object·(in·this·case,·<code·class="docutils·literal·notranslate"><span·class="pre">p</span></code>)··not·on·<code·class="docutils·literal·notranslate"><span·class="pre">buffer</span></code>.</p></li>
182 <li><p>Finally,·it’s·important·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">showPage()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·on·the·PDF183 <li><p>Finally,·it’s·important·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">showPage()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·on·the·PDF
183 file.</p></li>184 file.</p></li>
184 </ul>185 </ul>
185 <div·class="admonition·note">186 <div·class="admonition·note">
186 <p·class="admonition-title">Note</p>187 <p·class="admonition-title">Nota</p>
187 <p>ReportLab·is·not·thread-safe.·Some·of·our·users·have·reported·odd·issues188 <p>ReportLab·is·not·thread-safe.·Some·of·our·users·have·reported·odd·issues
188 with·building·PDF-generating·Django·views·that·are·accessed·by·many·people189 with·building·PDF-generating·Django·views·that·are·accessed·by·many·people
189 at·the·same·time.</p>190 at·the·same·time.</p>
190 </div>191 </div>
191 </section>192 </section>
192 <section·id="s-other-formats">193 <section·id="s-other-formats">
193 <span·id="other-formats"></span><h2>Other·formats<a·class="headerlink"·href="#other-formats"·title="Link·to·this·heading">¶</a></h2>194 <span·id="other-formats"></span><h2>Other·formats<a·class="headerlink"·href="#other-formats"·title="Link·to·this·heading">¶</a></h2>
194 <p>Notice·that·there·isn’t·a·lot·in·these·examples·that’s·PDF-specific··just·the195 <p>Notice·that·there·isn’t·a·lot·in·these·examples·that’s·PDF-specific··just·the
195 bits·using·<code·class="docutils·literal·notranslate"><span·class="pre">reportlab</span></code>.·You·can·use·a·similar·technique·to·generate·any196 bits·using·<code·class="docutils·literal·notranslate"><span·class="pre">reportlab</span></code>.·You·can·use·a·similar·technique·to·generate·any
196 arbitrary·format·that·you·can·find·a·Python·library·for.·Also·see197 arbitrary·format·that·you·can·find·a·Python·library·for.·Also·see
197 <a·class="reference·internal"·href="outputting-csv.html"><span·class="doc">How·to·create·CSV·output</span></a>·for·another·example·and·some·techniques·you·can·use198 <a·class="reference·internal"·href="outputting-csv.html"><span·class="doc">How·to·create·CSV·output</span></a>·for·another·example·and·some·techniques·you·can·use
198 when·generated·text-based·formats.</p>199 when·generated·text-based·formats.</p>
199 <div·class="admonition·seealso">200 <div·class="admonition·seealso">
200 <p·class="admonition-title">See·also</p>201 <p·class="admonition-title">Vedi·anche</p>
201 <p>Django·Packages·provides·a·<a·class="reference·external"·href="https://djangopackages.org/grids/g/pdf/">comparison·of·packages</a>·that·help·generate·PDF·files202 <p>Django·Packages·provides·a·<a·class="reference·external"·href="https://djangopackages.org/grids/g/pdf/">comparison·of·packages</a>·that·help·generate·PDF·files
202 from·Django.</p>203 from·Django.</p>
203 </div>204 </div>
204 </section>205 </section>
205 </section>206 </section>
  
  
Offset 223, 47 lines modifiedOffset 224, 47 lines modified
223 <li><a·class="reference·internal"·href="#other-formats">Other·formats</a></li>224 <li><a·class="reference·internal"·href="#other-formats">Other·formats</a></li>
224 </ul>225 </ul>
225 </li>226 </li>
226 </ul>227 </ul>
  
227 ··</div>228 ··</div>
228 ··<div>229 ··<div>
229 ····<h4>Previous·topic</h4>230 ····<h4>Argomento·precedente</h4>
230 ····<p·class="topless"><a·href="outputting-csv.html"231 ····<p·class="topless"><a·href="outputting-csv.html"
231 ··························title="previous·chapter">How·to·create·CSV·output</a></p>232 ··························title="capitolo·precedente">How·to·create·CSV·output</a></p>
232 ··</div>233 ··</div>
233 ··<div>234 ··<div>
234 ····<h4>Next·topic</h4>235 ····<h4>Argomento·successivo</h4>
235 ····<p·class="topless"><a·href="overriding-templates.html"236 ····<p·class="topless"><a·href="overriding-templates.html"
236 ··························title="next·chapter">How·to·override·templates</a></p>237 ··························title="capitolo·successivo">How·to·override·templates</a></p>
237 ··</div>238 ··</div>
238 <search·id="searchbox"·style="display:·none"·role="search">239 <search·id="searchbox"·style="display:·none"·role="search">
239 ··<h3·id="searchlabel">Quick·search</h3>240 ··<h3·id="searchlabel">Ricerca·veloce</h3>
240 ····<div·class="searchformwrapper">241 ····<div·class="searchformwrapper">
241 ····<form·class="search"·action="../search.html"·method="get">242 ····<form·class="search"·action="../search.html"·method="get">
242 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>243 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
Max diff block lines reached; 779/9294 bytes (8.38%) of diff not shown.
4.4 KB
html2text {}
Max HTML report size reached
9.83 KB
./usr/share/doc/python-django-doc/html/howto/overriding-templates.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·override·templates·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·override·templates·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)"·href="static-files/index.html"·/>15 ····<link·rel="next"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)"·href="static-files/index.html"·/>
15 ····<link·rel="prev"·title="How·to·create·PDF·files"·href="outputting-pdf.html"·/>16 ····<link·rel="prev"·title="How·to·create·PDF·files"·href="outputting-pdf.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">previous</a>67 ····&laquo;·<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="static-files/index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">next</a>·&raquo;</div>71 ····<a·href="static-files/index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 such·as·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>.·You·can·either·put·template·overrides·in·your85 such·as·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>.·You·can·either·put·template·overrides·in·your
85 project’s·templates·directory·or·in·an·application’s·templates·directory.</p>86 project’s·templates·directory·or·in·an·application’s·templates·directory.</p>
86 <p>If·you·have·app·and·project·templates·directories·that·both·contain·overrides,87 <p>If·you·have·app·and·project·templates·directories·that·both·contain·overrides,
87 the·default·Django·template·loader·will·try·to·load·the·template·from·the88 the·default·Django·template·loader·will·try·to·load·the·template·from·the
88 project-level·directory·first.·In·other·words,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TEMPLATES-DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DIRS</span></code></a>89 project-level·directory·first.·In·other·words,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TEMPLATES-DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DIRS</span></code></a>
89 is·searched·before·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TEMPLATES-APP_DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">APP_DIRS</span></code></a>.</p>90 is·searched·before·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TEMPLATES-APP_DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">APP_DIRS</span></code></a>.</p>
90 <div·class="admonition·seealso">91 <div·class="admonition·seealso">
91 <p·class="admonition-title">See·also</p>92 <p·class="admonition-title">Vedi·anche</p>
92 <p>Read·<a·class="reference·internal"·href="../ref/forms/renderers.html#overriding-built-in-widget-templates"><span·class="std·std-ref">Overriding·built-in·widget·templates</span></a>·if·you’re·looking·to93 <p>Read·<a·class="reference·internal"·href="../ref/forms/renderers.html#overriding-built-in-widget-templates"><span·class="std·std-ref">Overriding·built-in·widget·templates</span></a>·if·you’re·looking·to
93 do·that.</p>94 do·that.</p>
94 </div>95 </div>
95 <section·id="s-overriding-from-the-project-s-templates-directory">96 <section·id="s-overriding-from-the-project-s-templates-directory">
96 <span·id="overriding-from-the-project-s-templates-directory"></span><h2>Overriding·from·the·project’s·templates·directory<a·class="headerlink"·href="#overriding-from-the-project-s-templates-directory"·title="Link·to·this·heading">¶</a></h2>97 <span·id="overriding-from-the-project-s-templates-directory"></span><h2>Overriding·from·the·project’s·templates·directory<a·class="headerlink"·href="#overriding-from-the-project-s-templates-directory"·title="Link·to·this·heading">¶</a></h2>
97 <p>First,·we’ll·explore·overriding·templates·by·creating·replacement·templates·in98 <p>First,·we’ll·explore·overriding·templates·by·creating·replacement·templates·in
98 your·project’s·templates·directory.</p>99 your·project’s·templates·directory.</p>
Offset 223, 47 lines modifiedOffset 224, 47 lines modified
223 <li><a·class="reference·internal"·href="#extending-an-overridden-template">Extending·an·overridden·template</a></li>224 <li><a·class="reference·internal"·href="#extending-an-overridden-template">Extending·an·overridden·template</a></li>
224 </ul>225 </ul>
225 </li>226 </li>
226 </ul>227 </ul>
  
227 ··</div>228 ··</div>
228 ··<div>229 ··<div>
229 ····<h4>Previous·topic</h4>230 ····<h4>Argomento·precedente</h4>
230 ····<p·class="topless"><a·href="outputting-pdf.html"231 ····<p·class="topless"><a·href="outputting-pdf.html"
231 ··························title="previous·chapter">How·to·create·PDF·files</a></p>232 ··························title="capitolo·precedente">How·to·create·PDF·files</a></p>
232 ··</div>233 ··</div>
233 ··<div>234 ··<div>
234 ····<h4>Next·topic</h4>235 ····<h4>Argomento·successivo</h4>
235 ····<p·class="topless"><a·href="static-files/index.html"236 ····<p·class="topless"><a·href="static-files/index.html"
236 ··························title="next·chapter">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</a></p>237 ··························title="capitolo·successivo">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</a></p>
237 ··</div>238 ··</div>
238 <search·id="searchbox"·style="display:·none"·role="search">239 <search·id="searchbox"·style="display:·none"·role="search">
239 ··<h3·id="searchlabel">Quick·search</h3>240 ··<h3·id="searchlabel">Ricerca·veloce</h3>
240 ····<div·class="searchformwrapper">241 ····<div·class="searchformwrapper">
241 ····<form·class="search"·action="../search.html"·method="get">242 ····<form·class="search"·action="../search.html"·method="get">
242 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>243 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
243 ······<input·type="submit"·value="Go"·/>244 ······<input·type="submit"·value="Vai"·/>
244 ····</form>245 ····</form>
245 ····</div>246 ····</div>
246 </search>247 </search>
247 <script>document.getElementById('searchbox').style.display·=·"block"</script>248 <script>document.getElementById('searchbox').style.display·=·"block"</script>
248 ········</div>249 ········</div>
249 ······</div>250 ······</div>
250 ··············<h3>Last·update:</h3>251 ··············<h3>Last·update:</h3>
251 ··············<p·class="topless">Sep·03,·2024</p>252 ··············<p·class="topless">set·03,·2024</p>
252 ··········</div>253 ··········</div>
253 ········254 ········
254 ······255 ······
255 ····</div>256 ····</div>
  
256 ····<div·id="ft">257 ····<div·id="ft">
257 ······<div·class="nav">258 ······<div·class="nav">
258 ····&laquo;·<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">previous</a>259 ····&laquo;·<a·href="outputting-pdf.html"·title="How·to·create·PDF·files">previous</a>
259 ·····|260 ·····|
260 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>261 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
261 ···|262 ···|
262 ····<a·href="static-files/index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">next</a>·&raquo;</div>263 ····<a·href="static-files/index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">next</a>·&raquo;</div>
263 ····</div>264 ····</div>
264 ··</div>265 ··</div>
  
265 ······<div·class="clearer"></div>266 ······<div·class="clearer"></div>
266 ····</div>267 ····</div>
3.4 KB
html2text {}
Max HTML report size reached
9.56 KB
./usr/share/doc/python-django-doc/html/howto/static-files/deployment.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·deploy·static·files·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·deploy·static·files·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="How·to·install·Django·on·Windows"·href="../windows.html"·/>15 ····<link·rel="next"·title="How·to·install·Django·on·Windows"·href="../windows.html"·/>
15 ····<link·rel="prev"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)"·href="index.html"·/>16 ····<link·rel="prev"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 38 lines modifiedOffset 54, 38 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">previous</a>67 ····&laquo;·<a·href="index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../windows.html"·title="How·to·install·Django·on·Windows">next</a>·&raquo;</div>71 ····<a·href="../windows.html"·title="How·to·install·Django·on·Windows">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-static-files-deployment">76 ··········<div·class="yui-g"·id="howto-static-files-deployment">
76 ············77 ············
77 ··<section·id="s-how-to-deploy-static-files">78 ··<section·id="s-how-to-deploy-static-files">
78 <span·id="how-to-deploy-static-files"></span><h1>How·to·deploy·static·files<a·class="headerlink"·href="#how-to-deploy-static-files"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-deploy-static-files"></span><h1>How·to·deploy·static·files<a·class="headerlink"·href="#how-to-deploy-static-files"·title="Link·to·this·heading">¶</a></h1>
79 <div·class="admonition·seealso">80 <div·class="admonition·seealso">
80 <p·class="admonition-title">See·also</p>81 <p·class="admonition-title">Vedi·anche</p>
81 <p>For·an·introduction·to·the·use·of·<a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>,·see82 <p>For·an·introduction·to·the·use·of·<a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>,·see
82 <a·class="reference·internal"·href="index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.</p>83 <a·class="reference·internal"·href="index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.</p>
83 </div>84 </div>
84 <section·id="s-serving-static-files-in-production">85 <section·id="s-serving-static-files-in-production">
85 <span·id="s-staticfiles-production"></span><span·id="serving-static-files-in-production"></span><span·id="staticfiles-production"></span><h2>Serving·static·files·in·production<a·class="headerlink"·href="#serving-static-files-in-production"·title="Link·to·this·heading">¶</a></h2>86 <span·id="s-staticfiles-production"></span><span·id="serving-static-files-in-production"></span><span·id="staticfiles-production"></span><h2>Serving·static·files·in·production<a·class="headerlink"·href="#serving-static-files-in-production"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·basic·outline·of·putting·static·files·into·production·consists·of·two87 <p>The·basic·outline·of·putting·static·files·into·production·consists·of·two
87 steps:·run·the·<a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#django-admin-collectstatic"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">collectstatic</span></code></a>·command·when·static·files·change,·then88 steps:·run·the·<a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#django-admin-collectstatic"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">collectstatic</span></code></a>·command·when·static·files·change,·then
Offset 198, 47 lines modifiedOffset 199, 47 lines modified
198 <li><a·class="reference·internal"·href="#learn-more">Learn·more</a></li>199 <li><a·class="reference·internal"·href="#learn-more">Learn·more</a></li>
199 </ul>200 </ul>
200 </li>201 </li>
201 </ul>202 </ul>
  
202 ··</div>203 ··</div>
203 ··<div>204 ··<div>
204 ····<h4>Previous·topic</h4>205 ····<h4>Argomento·precedente</h4>
205 ····<p·class="topless"><a·href="index.html"206 ····<p·class="topless"><a·href="index.html"
206 ··························title="previous·chapter">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</a></p>207 ··························title="capitolo·precedente">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</a></p>
207 ··</div>208 ··</div>
208 ··<div>209 ··<div>
209 ····<h4>Next·topic</h4>210 ····<h4>Argomento·successivo</h4>
210 ····<p·class="topless"><a·href="../windows.html"211 ····<p·class="topless"><a·href="../windows.html"
211 ··························title="next·chapter">How·to·install·Django·on·Windows</a></p>212 ··························title="capitolo·successivo">How·to·install·Django·on·Windows</a></p>
212 ··</div>213 ··</div>
213 <search·id="searchbox"·style="display:·none"·role="search">214 <search·id="searchbox"·style="display:·none"·role="search">
214 ··<h3·id="searchlabel">Quick·search</h3>215 ··<h3·id="searchlabel">Ricerca·veloce</h3>
215 ····<div·class="searchformwrapper">216 ····<div·class="searchformwrapper">
216 ····<form·class="search"·action="../../search.html"·method="get">217 ····<form·class="search"·action="../../search.html"·method="get">
217 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>218 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
218 ······<input·type="submit"·value="Go"·/>219 ······<input·type="submit"·value="Vai"·/>
219 ····</form>220 ····</form>
220 ····</div>221 ····</div>
221 </search>222 </search>
222 <script>document.getElementById('searchbox').style.display·=·"block"</script>223 <script>document.getElementById('searchbox').style.display·=·"block"</script>
223 ········</div>224 ········</div>
224 ······</div>225 ······</div>
225 ··············<h3>Last·update:</h3>226 ··············<h3>Last·update:</h3>
226 ··············<p·class="topless">Sep·03,·2024</p>227 ··············<p·class="topless">set·03,·2024</p>
227 ··········</div>228 ··········</div>
228 ········229 ········
229 ······230 ······
230 ····</div>231 ····</div>
  
231 ····<div·id="ft">232 ····<div·id="ft">
232 ······<div·class="nav">233 ······<div·class="nav">
233 ····&laquo;·<a·href="index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">previous</a>234 ····&laquo;·<a·href="index.html"·title="How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)">previous</a>
234 ·····|235 ·····|
235 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>236 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
236 ···|237 ···|
237 ····<a·href="../windows.html"·title="How·to·install·Django·on·Windows">next</a>·&raquo;</div>238 ····<a·href="../windows.html"·title="How·to·install·Django·on·Windows">next</a>·&raquo;</div>
238 ····</div>239 ····</div>
239 ··</div>240 ··</div>
  
240 ······<div·class="clearer"></div>241 ······<div·class="clearer"></div>
241 ····</div>242 ····</div>
3.17 KB
html2text {}
Max HTML report size reached
13.8 KB
./usr/share/doc/python-django-doc/html/howto/static-files/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="How·to·deploy·static·files"·href="deployment.html"·/>15 ····<link·rel="next"·title="How·to·deploy·static·files"·href="deployment.html"·/>
15 ····<link·rel="prev"·title="How·to·override·templates"·href="../overriding-templates.html"·/>16 ····<link·rel="prev"·title="How·to·override·templates"·href="../overriding-templates.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 38 lines modifiedOffset 54, 38 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../overriding-templates.html"·title="How·to·override·templates">previous</a>67 ····&laquo;·<a·href="../overriding-templates.html"·title="How·to·override·templates">previous</a>
67 ·····|68 ·····|
68 ····<a·href="../index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="../index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="deployment.html"·title="How·to·deploy·static·files">next</a>·&raquo;</div>71 ····<a·href="deployment.html"·title="How·to·deploy·static·files">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="howto-static-files-index">76 ··········<div·class="yui-g"·id="howto-static-files-index">
76 ············77 ············
77 ··<section·id="s-how-to-manage-static-files-e-g-images-javascript-css">78 ··<section·id="s-how-to-manage-static-files-e-g-images-javascript-css">
78 <span·id="how-to-manage-static-files-e-g-images-javascript-css"></span><h1>How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)<a·class="headerlink"·href="#how-to-manage-static-files-e-g-images-javascript-css"·title="Link·to·this·heading">¶</a></h1>79 <span·id="how-to-manage-static-files-e-g-images-javascript-css"></span><h1>How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)<a·class="headerlink"·href="#how-to-manage-static-files-e-g-images-javascript-css"·title="Link·to·this·heading">¶</a></h1>
79 <p>Websites·generally·need·to·serve·additional·files·such·as·images,·JavaScript,80 <p>Websites·generally·need·to·serve·additional·files·such·as·images,·JavaScript,
80 or·CSS.·In·Django,·we·refer·to·these·files·as·static·files.··Django·provides81 or·CSS.·In·Django,·we·refer·to·these·files·as·«static·files».··Django·provides
81 <a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>·to·help·you·manage·them.</p>82 <a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>·to·help·you·manage·them.</p>
82 <p>This·page·describes·how·you·can·serve·these·static·files.</p>83 <p>This·page·describes·how·you·can·serve·these·static·files.</p>
83 <section·id="s-configuring-static-files">84 <section·id="s-configuring-static-files">
84 <span·id="configuring-static-files"></span><h2>Configuring·static·files<a·class="headerlink"·href="#configuring-static-files"·title="Link·to·this·heading">¶</a></h2>85 <span·id="configuring-static-files"></span><h2>Configuring·static·files<a·class="headerlink"·href="#configuring-static-files"·title="Link·to·this·heading">¶</a></h2>
85 <ol·class="arabic">86 <ol·class="arabic">
86 <li><p>Make·sure·that·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·is·included·in·your87 <li><p>Make·sure·that·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·is·included·in·your
87 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>.</p></li>88 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>.</p></li>
Offset 159, 15 lines modifiedOffset 160, 15 lines modified
  
159 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>160 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
160 ····<span·class="c1">#·...·the·rest·of·your·URLconf·goes·here·...</span>161 ····<span·class="c1">#·...·the·rest·of·your·URLconf·goes·here·...</span>
161 <span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">static</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_URL</span><span·class="p">,</span>·<span·class="n">document_root</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_ROOT</span><span·class="p">)</span>162 <span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">static</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_URL</span><span·class="p">,</span>·<span·class="n">document_root</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">STATIC_ROOT</span><span·class="p">)</span>
162 </pre></div>163 </pre></div>
163 </div>164 </div>
164 <div·class="admonition·note">165 <div·class="admonition·note">
165 <p·class="admonition-title">Note</p>166 <p·class="admonition-title">Nota</p>
166 <p>This·helper·function·works·only·in·debug·mode·and·only·if167 <p>This·helper·function·works·only·in·debug·mode·and·only·if
167 the·given·prefix·is·local·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">static/</span></code>)·and·not·a·URL·(e.g.168 the·given·prefix·is·local·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">static/</span></code>)·and·not·a·URL·(e.g.
168 <code·class="docutils·literal·notranslate"><span·class="pre">http://static.example.com/</span></code>).</p>169 <code·class="docutils·literal·notranslate"><span·class="pre">http://static.example.com/</span></code>).</p>
169 <p>Also·this·helper·function·only·serves·the·actual·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-STATIC_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_ROOT</span></code></a>170 <p>Also·this·helper·function·only·serves·the·actual·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-STATIC_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_ROOT</span></code></a>
170 folder;·it·doesn’t·perform·static·files·discovery·like171 folder;·it·doesn’t·perform·static·files·discovery·like
171 <a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>.</p>172 <a·class="reference·internal"·href="../../ref/contrib/staticfiles.html#module-django.contrib.staticfiles"·title="django.contrib.staticfiles:·An·app·for·handling·static·files."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code></a>.</p>
172 <p>Finally,·static·files·are·served·via·a·wrapper·at·the·WSGI·application173 <p>Finally,·static·files·are·served·via·a·wrapper·at·the·WSGI·application
Offset 188, 15 lines modifiedOffset 189, 15 lines modified
  
188 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>189 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
189 ····<span·class="c1">#·...·the·rest·of·your·URLconf·goes·here·...</span>190 ····<span·class="c1">#·...·the·rest·of·your·URLconf·goes·here·...</span>
190 <span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">static</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">MEDIA_URL</span><span·class="p">,</span>·<span·class="n">document_root</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">MEDIA_ROOT</span><span·class="p">)</span>191 <span·class="p">]</span>·<span·class="o">+</span>·<span·class="n">static</span><span·class="p">(</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">MEDIA_URL</span><span·class="p">,</span>·<span·class="n">document_root</span><span·class="o">=</span><span·class="n">settings</span><span·class="o">.</span><span·class="n">MEDIA_ROOT</span><span·class="p">)</span>
191 </pre></div>192 </pre></div>
192 </div>193 </div>
193 <div·class="admonition·note">194 <div·class="admonition·note">
194 <p·class="admonition-title">Note</p>195 <p·class="admonition-title">Nota</p>
195 <p>This·helper·function·works·only·in·debug·mode·and·only·if196 <p>This·helper·function·works·only·in·debug·mode·and·only·if
196 the·given·prefix·is·local·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">media/</span></code>)·and·not·a·URL·(e.g.197 the·given·prefix·is·local·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">media/</span></code>)·and·not·a·URL·(e.g.
197 <code·class="docutils·literal·notranslate"><span·class="pre">http://media.example.com/</span></code>).</p>198 <code·class="docutils·literal·notranslate"><span·class="pre">http://media.example.com/</span></code>).</p>
198 </div>199 </div>
199 </section>200 </section>
200 <section·id="s-testing">201 <section·id="s-testing">
201 <span·id="s-staticfiles-testing-support"></span><span·id="testing"></span><span·id="staticfiles-testing-support"></span><h2>Testing<a·class="headerlink"·href="#testing"·title="Link·to·this·heading">¶</a></h2>202 <span·id="s-staticfiles-testing-support"></span><span·id="testing"></span><span·id="staticfiles-testing-support"></span><h2>Testing<a·class="headerlink"·href="#testing"·title="Link·to·this·heading">¶</a></h2>
Offset 268, 47 lines modifiedOffset 269, 47 lines modified
268 <li><a·class="reference·internal"·href="#learn-more">Learn·more</a></li>269 <li><a·class="reference·internal"·href="#learn-more">Learn·more</a></li>
269 </ul>270 </ul>
270 </li>271 </li>
271 </ul>272 </ul>
  
272 ··</div>273 ··</div>
273 ··<div>274 ··<div>
274 ····<h4>Previous·topic</h4>275 ····<h4>Argomento·precedente</h4>
275 ····<p·class="topless"><a·href="../overriding-templates.html"276 ····<p·class="topless"><a·href="../overriding-templates.html"
276 ··························title="previous·chapter">How·to·override·templates</a></p>277 ··························title="capitolo·precedente">How·to·override·templates</a></p>
277 ··</div>278 ··</div>
278 ··<div>279 ··<div>
279 ····<h4>Next·topic</h4>280 ····<h4>Argomento·successivo</h4>
280 ····<p·class="topless"><a·href="deployment.html"281 ····<p·class="topless"><a·href="deployment.html"
281 ··························title="next·chapter">How·to·deploy·static·files</a></p>282 ··························title="capitolo·successivo">How·to·deploy·static·files</a></p>
282 ··</div>283 ··</div>
283 <search·id="searchbox"·style="display:·none"·role="search">284 <search·id="searchbox"·style="display:·none"·role="search">
284 ··<h3·id="searchlabel">Quick·search</h3>285 ··<h3·id="searchlabel">Ricerca·veloce</h3>
285 ····<div·class="searchformwrapper">286 ····<div·class="searchformwrapper">
286 ····<form·class="search"·action="../../search.html"·method="get">287 ····<form·class="search"·action="../../search.html"·method="get">
287 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>288 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
288 ······<input·type="submit"·value="Go"·/>289 ······<input·type="submit"·value="Vai"·/>
289 ····</form>290 ····</form>
290 ····</div>291 ····</div>
291 </search>292 </search>
292 <script>document.getElementById('searchbox').style.display·=·"block"</script>293 <script>document.getElementById('searchbox').style.display·=·"block"</script>
293 ········</div>294 ········</div>
294 ······</div>295 ······</div>
295 ··············<h3>Last·update:</h3>296 ··············<h3>Last·update:</h3>
296 ··············<p·class="topless">Sep·03,·2024</p>297 ··············<p·class="topless">set·03,·2024</p>
297 ··········</div>298 ··········</div>
298 ········299 ········
Max diff block lines reached; 479/9337 bytes (5.13%) of diff not shown.
4.59 KB
html2text {}
Max HTML report size reached
9.22 KB
./usr/share/doc/python-django-doc/html/howto/upgrade-version.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·upgrade·Django·to·a·newer·version·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·upgrade·Django·to·a·newer·version·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·manage·error·reporting"·href="error-reporting.html"·/>15 ····<link·rel="next"·title="How·to·manage·error·reporting"·href="error-reporting.html"·/>
15 ····<link·rel="prev"·title="Deployment·checklist"·href="deployment/checklist.html"·/>16 ····<link·rel="prev"·title="Deployment·checklist"·href="deployment/checklist.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 25 lines modifiedOffset 67, 25 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
80 ····&laquo;·<a·href="deployment/checklist.html"·title="Deployment·checklist">previous</a>81 ····&laquo;·<a·href="deployment/checklist.html"·title="Deployment·checklist">previous</a>
81 ·····|82 ·····|
82 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>83 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
83 ···|84 ···|
84 ····<a·href="error-reporting.html"·title="How·to·manage·error·reporting">next</a>·&raquo;</div>85 ····<a·href="error-reporting.html"·title="How·to·manage·error·reporting">next</a>·&raquo;</div>
85 ····</div>86 ····</div>
  
86 ····<div·id="bd">87 ····<div·id="bd">
87 ······<div·id="yui-main">88 ······<div·id="yui-main">
88 ········<div·class="yui-b">89 ········<div·class="yui-b">
Offset 107, 15 lines modifiedOffset 108, 15 lines modified
107 <section·id="s-required-reading">108 <section·id="s-required-reading">
108 <span·id="required-reading"></span><h2>Required·Reading<a·class="headerlink"·href="#required-reading"·title="Link·to·this·heading">¶</a></h2>109 <span·id="required-reading"></span><h2>Required·Reading<a·class="headerlink"·href="#required-reading"·title="Link·to·this·heading">¶</a></h2>
109 <p>If·it’s·your·first·time·doing·an·upgrade,·it·is·useful·to·read·the·<a·class="reference·internal"·href="../internals/release-process.html"><span·class="doc">guide110 <p>If·it’s·your·first·time·doing·an·upgrade,·it·is·useful·to·read·the·<a·class="reference·internal"·href="../internals/release-process.html"><span·class="doc">guide
110 on·the·different·release·processes</span></a>.</p>111 on·the·different·release·processes</span></a>.</p>
111 <p>Afterward,·you·should·familiarize·yourself·with·the·changes·that·were·made·in112 <p>Afterward,·you·should·familiarize·yourself·with·the·changes·that·were·made·in
112 the·new·Django·version(s):</p>113 the·new·Django·version(s):</p>
113 <ul·class="simple">114 <ul·class="simple">
114 <li><p>Read·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·notes</span></a>·for·each·final·release·from115 <li><p>Read·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·notes</span></a>·for·each·final·release·from
115 the·one·after·your·current·Django·version,·up·to·and·including·the·version·to116 the·one·after·your·current·Django·version,·up·to·and·including·the·version·to
116 which·you·plan·to·upgrade.</p></li>117 which·you·plan·to·upgrade.</p></li>
117 <li><p>Look·at·the·<a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecation·timeline</span></a>·for·the118 <li><p>Look·at·the·<a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecation·timeline</span></a>·for·the
118 relevant·versions.</p></li>119 relevant·versions.</p></li>
119 </ul>120 </ul>
120 <p>Pay·particular·attention·to·backwards·incompatible·changes·to·get·a·clear·idea121 <p>Pay·particular·attention·to·backwards·incompatible·changes·to·get·a·clear·idea
121 of·what·will·be·needed·for·a·successful·upgrade.</p>122 of·what·will·be·needed·for·a·successful·upgrade.</p>
Offset 256, 47 lines modifiedOffset 257, 47 lines modified
256 <li><a·class="reference·internal"·href="#deployment">Deployment</a></li>257 <li><a·class="reference·internal"·href="#deployment">Deployment</a></li>
257 </ul>258 </ul>
258 </li>259 </li>
259 </ul>260 </ul>
  
260 ··</div>261 ··</div>
261 ··<div>262 ··<div>
262 ····<h4>Previous·topic</h4>263 ····<h4>Argomento·precedente</h4>
263 ····<p·class="topless"><a·href="deployment/checklist.html"264 ····<p·class="topless"><a·href="deployment/checklist.html"
264 ··························title="previous·chapter">Deployment·checklist</a></p>265 ··························title="capitolo·precedente">Deployment·checklist</a></p>
265 ··</div>266 ··</div>
266 ··<div>267 ··<div>
267 ····<h4>Next·topic</h4>268 ····<h4>Argomento·successivo</h4>
268 ····<p·class="topless"><a·href="error-reporting.html"269 ····<p·class="topless"><a·href="error-reporting.html"
269 ··························title="next·chapter">How·to·manage·error·reporting</a></p>270 ··························title="capitolo·successivo">How·to·manage·error·reporting</a></p>
270 ··</div>271 ··</div>
271 <search·id="searchbox"·style="display:·none"·role="search">272 <search·id="searchbox"·style="display:·none"·role="search">
272 ··<h3·id="searchlabel">Quick·search</h3>273 ··<h3·id="searchlabel">Ricerca·veloce</h3>
273 ····<div·class="searchformwrapper">274 ····<div·class="searchformwrapper">
274 ····<form·class="search"·action="../search.html"·method="get">275 ····<form·class="search"·action="../search.html"·method="get">
275 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>276 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
276 ······<input·type="submit"·value="Go"·/>277 ······<input·type="submit"·value="Vai"·/>
277 ····</form>278 ····</form>
278 ····</div>279 ····</div>
279 </search>280 </search>
280 <script>document.getElementById('searchbox').style.display·=·"block"</script>281 <script>document.getElementById('searchbox').style.display·=·"block"</script>
281 ········</div>282 ········</div>
282 ······</div>283 ······</div>
283 ··············<h3>Last·update:</h3>284 ··············<h3>Last·update:</h3>
284 ··············<p·class="topless">Sep·03,·2024</p>285 ··············<p·class="topless">set·03,·2024</p>
285 ··········</div>286 ··········</div>
286 ········287 ········
287 ······288 ······
288 ····</div>289 ····</div>
  
289 ····<div·id="ft">290 ····<div·id="ft">
290 ······<div·class="nav">291 ······<div·class="nav">
291 ····&laquo;·<a·href="deployment/checklist.html"·title="Deployment·checklist">previous</a>292 ····&laquo;·<a·href="deployment/checklist.html"·title="Deployment·checklist">previous</a>
292 ·····|293 ·····|
293 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>294 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
294 ···|295 ···|
295 ····<a·href="error-reporting.html"·title="How·to·manage·error·reporting">next</a>·&raquo;</div>296 ····<a·href="error-reporting.html"·title="How·to·manage·error·reporting">next</a>·&raquo;</div>
296 ····</div>297 ····</div>
297 ··</div>298 ··</div>
  
298 ······<div·class="clearer"></div>299 ······<div·class="clearer"></div>
299 ····</div>300 ····</div>
3.25 KB
html2text {}
Max HTML report size reached
13.3 KB
./usr/share/doc/python-django-doc/html/howto/windows.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·install·Django·on·Windows·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·install·Django·on·Windows·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·create·database·migrations"·href="writing-migrations.html"·/>15 ····<link·rel="next"·title="How·to·create·database·migrations"·href="writing-migrations.html"·/>
15 ····<link·rel="prev"·title="How·to·deploy·static·files"·href="static-files/deployment.html"·/>16 ····<link·rel="prev"·title="How·to·deploy·static·files"·href="static-files/deployment.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="static-files/deployment.html"·title="How·to·deploy·static·files">previous</a>67 ····&laquo;·<a·href="static-files/deployment.html"·title="How·to·deploy·static·files">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="writing-migrations.html"·title="How·to·create·database·migrations">next</a>·&raquo;</div>71 ····<a·href="writing-migrations.html"·title="How·to·create·database·migrations">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 89, 23 lines modifiedOffset 90, 23 lines modified
89 the·Windows·command·prompt.</p>90 the·Windows·command·prompt.</p>
90 <section·id="s-install-python">91 <section·id="s-install-python">
91 <span·id="s-install-python-windows"></span><span·id="install-python"></span><span·id="install-python-windows"></span><h2>Install·Python<a·class="headerlink"·href="#install-python"·title="Link·to·this·heading">¶</a></h2>92 <span·id="s-install-python-windows"></span><span·id="install-python"></span><span·id="install-python-windows"></span><h2>Install·Python<a·class="headerlink"·href="#install-python"·title="Link·to·this·heading">¶</a></h2>
92 <p>Django·is·a·Python·web·framework,·thus·requiring·Python·to·be·installed·on·your93 <p>Django·is·a·Python·web·framework,·thus·requiring·Python·to·be·installed·on·your
93 machine.·At·the·time·of·writing,·Python·3.8·is·the·latest·version.</p>94 machine.·At·the·time·of·writing,·Python·3.8·is·the·latest·version.</p>
94 <p>To·install·Python·on·your·machine·go·to·<a·class="reference·external"·href="https://www.python.org/downloads/">https://www.python.org/downloads/</a>.·The95 <p>To·install·Python·on·your·machine·go·to·<a·class="reference·external"·href="https://www.python.org/downloads/">https://www.python.org/downloads/</a>.·The
95 website·should·offer·you·a·download·button·for·the·latest·Python·version.96 website·should·offer·you·a·download·button·for·the·latest·Python·version.
96 Download·the·executable·installer·and·run·it.·Check·the·boxes·next·to·Install97 Download·the·executable·installer·and·run·it.·Check·the·boxes·next·to·«Install
97 launcher·for·all·users·(recommended)·then·click·Install·Now.</p>98 launcher·for·all·users·(recommended)»·then·click·«Install·Now».</p>
98 <p>After·installation,·open·the·command·prompt·and·check·that·the·Python·version99 <p>After·installation,·open·the·command·prompt·and·check·that·the·Python·version
99 matches·the·version·you·installed·by·executing:</p>100 matches·the·version·you·installed·by·executing:</p>
100 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·--version101 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·--version
101 </pre></div>102 </pre></div>
102 </div>103 </div>
103 <div·class="admonition·seealso">104 <div·class="admonition·seealso">
104 <p·class="admonition-title">See·also</p>105 <p·class="admonition-title">Vedi·anche</p>
105 <p>For·more·details,·see·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/using/windows.html"·title="(in·Python·v3.12)"><span>Using·Python·on·Windows</span></a>·documentation.</p>106 <p>For·more·details,·see·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/using/windows.html"·title="(in·Python·v3.12)"><span>Using·Python·on·Windows</span></a>·documentation.</p>
106 </div>107 </div>
107 </section>108 </section>
108 <section·id="s-about-pip">109 <section·id="s-about-pip">
109 <span·id="about-pip"></span><h2>About·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code><a·class="headerlink"·href="#about-pip"·title="Link·to·this·heading">¶</a></h2>110 <span·id="about-pip"></span><h2>About·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code><a·class="headerlink"·href="#about-pip"·title="Link·to·this·heading">¶</a></h2>
110 <p><a·class="extlink-pypi·reference·external"·href="https://pypi.org/project/pip/">pip</a>·is·a·package·manager·for·Python·and·is·included·by·default·with·the111 <p><a·class="extlink-pypi·reference·external"·href="https://pypi.org/project/pip/">pip</a>·is·a·package·manager·for·Python·and·is·included·by·default·with·the
111 Python·installer.·It·helps·to·install·and·uninstall·Python·packages112 Python·installer.·It·helps·to·install·and·uninstall·Python·packages
Offset 122, 20 lines modifiedOffset 123, 20 lines modified
122 environments·which·we·will·use·for·this·guide.</p>123 environments·which·we·will·use·for·this·guide.</p>
123 <p>To·create·a·virtual·environment·for·your·project,·open·a·new·command·prompt,124 <p>To·create·a·virtual·environment·for·your·project,·open·a·new·command·prompt,
124 navigate·to·the·folder·where·you·want·to·create·your·project·and·then·enter·the125 navigate·to·the·folder·where·you·want·to·create·your·project·and·then·enter·the
125 following:</p>126 following:</p>
126 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·-m·venv·project-name127 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·-m·venv·project-name
127 </pre></div>128 </pre></div>
128 </div>129 </div>
129 <p>This·will·create·a·folder·called·project-name·if·it·does·not·already·exist130 <p>This·will·create·a·folder·called·project-name·if·it·does·not·already·exist
130 and·set·up·the·virtual·environment.·To·activate·the·environment,·run:</p>131 and·set·up·the·virtual·environment.·To·activate·the·environment,·run:</p>
131 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·project-name\Scripts\activate.bat132 <div·class="highlight-doscon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·project-name\Scripts\activate.bat
132 </pre></div>133 </pre></div>
133 </div>134 </div>
134 <p>The·virtual·environment·will·be·activated·and·you’ll·see·(project-name)·next135 <p>The·virtual·environment·will·be·activated·and·you’ll·see·«(project-name)»·next
135 to·the·command·prompt·to·designate·that.·Each·time·you·start·a·new·command136 to·the·command·prompt·to·designate·that.·Each·time·you·start·a·new·command
136 prompt,·you’ll·need·to·activate·the·environment·again.</p>137 prompt,·you’ll·need·to·activate·the·environment·again.</p>
137 </section>138 </section>
138 <section·id="s-install-django">139 <section·id="s-install-django">
139 <span·id="install-django"></span><h2>Install·Django<a·class="headerlink"·href="#install-django"·title="Link·to·this·heading">¶</a></h2>140 <span·id="install-django"></span><h2>Install·Django<a·class="headerlink"·href="#install-django"·title="Link·to·this·heading">¶</a></h2>
140 <p>Django·can·be·installed·easily·using·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>·within·your·virtual·environment.</p>141 <p>Django·can·be·installed·easily·using·<code·class="docutils·literal·notranslate"><span·class="pre">pip</span></code>·within·your·virtual·environment.</p>
141 <p>In·the·command·prompt,·ensure·your·virtual·environment·is·active,·and·execute142 <p>In·the·command·prompt,·ensure·your·virtual·environment·is·active,·and·execute
Offset 211, 47 lines modifiedOffset 212, 47 lines modified
211 <li><a·class="reference·internal"·href="#common-pitfalls">Common·pitfalls</a></li>212 <li><a·class="reference·internal"·href="#common-pitfalls">Common·pitfalls</a></li>
212 </ul>213 </ul>
213 </li>214 </li>
214 </ul>215 </ul>
  
215 ··</div>216 ··</div>
216 ··<div>217 ··<div>
217 ····<h4>Previous·topic</h4>218 ····<h4>Argomento·precedente</h4>
218 ····<p·class="topless"><a·href="static-files/deployment.html"219 ····<p·class="topless"><a·href="static-files/deployment.html"
219 ··························title="previous·chapter">How·to·deploy·static·files</a></p>220 ··························title="capitolo·precedente">How·to·deploy·static·files</a></p>
220 ··</div>221 ··</div>
221 ··<div>222 ··<div>
222 ····<h4>Next·topic</h4>223 ····<h4>Argomento·successivo</h4>
223 ····<p·class="topless"><a·href="writing-migrations.html"224 ····<p·class="topless"><a·href="writing-migrations.html"
224 ··························title="next·chapter">How·to·create·database·migrations</a></p>225 ··························title="capitolo·successivo">How·to·create·database·migrations</a></p>
225 ··</div>226 ··</div>
226 <search·id="searchbox"·style="display:·none"·role="search">227 <search·id="searchbox"·style="display:·none"·role="search">
227 ··<h3·id="searchlabel">Quick·search</h3>228 ··<h3·id="searchlabel">Ricerca·veloce</h3>
228 ····<div·class="searchformwrapper">229 ····<div·class="searchformwrapper">
229 ····<form·class="search"·action="../search.html"·method="get">230 ····<form·class="search"·action="../search.html"·method="get">
230 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>231 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
231 ······<input·type="submit"·value="Go"·/>232 ······<input·type="submit"·value="Vai"·/>
232 ····</form>233 ····</form>
233 ····</div>234 ····</div>
234 </search>235 </search>
235 <script>document.getElementById('searchbox').style.display·=·"block"</script>236 <script>document.getElementById('searchbox').style.display·=·"block"</script>
236 ········</div>237 ········</div>
237 ······</div>238 ······</div>
238 ··············<h3>Last·update:</h3>239 ··············<h3>Last·update:</h3>
239 ··············<p·class="topless">Sep·03,·2024</p>240 ··············<p·class="topless">set·03,·2024</p>
240 ··········</div>241 ··········</div>
241 ········242 ········
Max diff block lines reached; 489/8328 bytes (5.87%) of diff not shown.
5.07 KB
html2text {}
Max HTML report size reached
12.5 KB
./usr/share/doc/python-django-doc/html/howto/writing-migrations.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·create·database·migrations·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·create·database·migrations·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·delete·a·Django·application"·href="delete-app.html"·/>15 ····<link·rel="next"·title="How·to·delete·a·Django·application"·href="delete-app.html"·/>
15 ····<link·rel="prev"·title="How·to·install·Django·on·Windows"·href="windows.html"·/>16 ····<link·rel="prev"·title="How·to·install·Django·on·Windows"·href="windows.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="windows.html"·title="How·to·install·Django·on·Windows">previous</a>67 ····&laquo;·<a·href="windows.html"·title="How·to·install·Django·on·Windows">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>69 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="delete-app.html"·title="How·to·delete·a·Django·application">next</a>·&raquo;</div>71 ····<a·href="delete-app.html"·title="How·to·delete·a·Django·application">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 142, 15 lines modifiedOffset 143, 15 lines modified
142 </div>143 </div>
143 <p>If·your·<code·class="docutils·literal·notranslate"><span·class="pre">RunPython</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">RunSQL</span></code>·operation·only·affects·one·model,·it’s·good144 <p>If·your·<code·class="docutils·literal·notranslate"><span·class="pre">RunPython</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">RunSQL</span></code>·operation·only·affects·one·model,·it’s·good
144 practice·to·pass·<code·class="docutils·literal·notranslate"><span·class="pre">model_name</span></code>·as·a·hint·to·make·it·as·transparent·as·possible145 practice·to·pass·<code·class="docutils·literal·notranslate"><span·class="pre">model_name</span></code>·as·a·hint·to·make·it·as·transparent·as·possible
145 to·the·router.·This·is·especially·important·for·reusable·and·third-party·apps.</p>146 to·the·router.·This·is·especially·important·for·reusable·and·third-party·apps.</p>
146 </section>147 </section>
147 <section·id="s-migrations-that-add-unique-fields">148 <section·id="s-migrations-that-add-unique-fields">
148 <span·id="migrations-that-add-unique-fields"></span><h2>Migrations·that·add·unique·fields<a·class="headerlink"·href="#migrations-that-add-unique-fields"·title="Link·to·this·heading">¶</a></h2>149 <span·id="migrations-that-add-unique-fields"></span><h2>Migrations·that·add·unique·fields<a·class="headerlink"·href="#migrations-that-add-unique-fields"·title="Link·to·this·heading">¶</a></h2>
149 <p>Applying·a·plain·migration·that·adds·a·unique·non-nullable·field·to·a·table150 <p>Applying·a·«plain»·migration·that·adds·a·unique·non-nullable·field·to·a·table
150 with·existing·rows·will·raise·an·error·because·the·value·used·to·populate151 with·existing·rows·will·raise·an·error·because·the·value·used·to·populate
151 existing·rows·is·generated·only·once,·thus·breaking·the·unique·constraint.</p>152 existing·rows·is·generated·only·once,·thus·breaking·the·unique·constraint.</p>
152 <p>Therefore,·the·following·steps·should·be·taken.·In·this·example,·we’ll·add·a153 <p>Therefore,·the·following·steps·should·be·taken.·In·this·example,·we’ll·add·a
153 non-nullable·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.UUIDField"·title="django.db.models.UUIDField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UUIDField</span></code></a>·with·a·default·value.·Modify154 non-nullable·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.UUIDField"·title="django.db.models.UUIDField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UUIDField</span></code></a>·with·a·default·value.·Modify
154 the·respective·field·according·to·your·needs.</p>155 the·respective·field·according·to·your·needs.</p>
155 <ul>156 <ul>
156 <li><p>Add·the·field·on·your·model·with·<code·class="docutils·literal·notranslate"><span·class="pre">default=uuid.uuid4</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">unique=True</span></code>157 <li><p>Add·the·field·on·your·model·with·<code·class="docutils·literal·notranslate"><span·class="pre">default=uuid.uuid4</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">unique=True</span></code>
Offset 311, 15 lines modifiedOffset 312, 15 lines modified
311 ····<span·class="n">dependencies</span>·<span·class="o">=</span>·<span·class="p">[</span>312 ····<span·class="n">dependencies</span>·<span·class="o">=</span>·<span·class="p">[</span>
312 ········<span·class="p">(</span><span·class="s2">&quot;myapp&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;0123_the_previous_migration&quot;</span><span·class="p">),</span>313 ········<span·class="p">(</span><span·class="s2">&quot;myapp&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;0123_the_previous_migration&quot;</span><span·class="p">),</span>
313 ····<span·class="p">]</span>314 ····<span·class="p">]</span>
314 </pre></div>315 </pre></div>
315 </div>316 </div>
316 <p>Usually·this·will·be·enough,·but·from·time·to·time·you·may·need·to317 <p>Usually·this·will·be·enough,·but·from·time·to·time·you·may·need·to
317 ensure·that·your·migration·runs·<em>before</em>·other·migrations.·This·is318 ensure·that·your·migration·runs·<em>before</em>·other·migrations.·This·is
318 useful,·for·example,·to·make·third-party·apps·migrations·run·<em>after</em>319 useful,·for·example,·to·make·third-party·apps·migrations·run·<em>after</em>
319 your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>·replacement.</p>320 your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>·replacement.</p>
320 <p>To·achieve·this,·place·all·migrations·that·should·depend·on·yours·in321 <p>To·achieve·this,·place·all·migrations·that·should·depend·on·yours·in
321 the·<code·class="docutils·literal·notranslate"><span·class="pre">run_before</span></code>·attribute·on·your·<code·class="docutils·literal·notranslate"><span·class="pre">Migration</span></code>·class:</p>322 the·<code·class="docutils·literal·notranslate"><span·class="pre">run_before</span></code>·attribute·on·your·<code·class="docutils·literal·notranslate"><span·class="pre">Migration</span></code>·class:</p>
322 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">Migration</span><span·class="p">(</span><span·class="n">migrations</span><span·class="o">.</span><span·class="n">Migration</span><span·class="p">):</span>323 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">Migration</span><span·class="p">(</span><span·class="n">migrations</span><span·class="o">.</span><span·class="n">Migration</span><span·class="p">):</span>
323 ····<span·class="o">...</span>324 ····<span·class="o">...</span>
  
324 ····<span·class="n">run_before</span>·<span·class="o">=</span>·<span·class="p">[</span>325 ····<span·class="n">run_before</span>·<span·class="o">=</span>·<span·class="p">[</span>
Offset 499, 47 lines modifiedOffset 500, 47 lines modified
499 <li><a·class="reference·internal"·href="#changing-an-unmanaged-model-to-managed">Changing·an·unmanaged·model·to·managed</a></li>500 <li><a·class="reference·internal"·href="#changing-an-unmanaged-model-to-managed">Changing·an·unmanaged·model·to·managed</a></li>
500 </ul>501 </ul>
501 </li>502 </li>
502 </ul>503 </ul>
  
503 ··</div>504 ··</div>
504 ··<div>505 ··<div>
505 ····<h4>Previous·topic</h4>506 ····<h4>Argomento·precedente</h4>
506 ····<p·class="topless"><a·href="windows.html"507 ····<p·class="topless"><a·href="windows.html"
507 ··························title="previous·chapter">How·to·install·Django·on·Windows</a></p>508 ··························title="capitolo·precedente">How·to·install·Django·on·Windows</a></p>
508 ··</div>509 ··</div>
509 ··<div>510 ··<div>
510 ····<h4>Next·topic</h4>511 ····<h4>Argomento·successivo</h4>
511 ····<p·class="topless"><a·href="delete-app.html"512 ····<p·class="topless"><a·href="delete-app.html"
512 ··························title="next·chapter">How·to·delete·a·Django·application</a></p>513 ··························title="capitolo·successivo">How·to·delete·a·Django·application</a></p>
513 ··</div>514 ··</div>
514 <search·id="searchbox"·style="display:·none"·role="search">515 <search·id="searchbox"·style="display:·none"·role="search">
515 ··<h3·id="searchlabel">Quick·search</h3>516 ··<h3·id="searchlabel">Ricerca·veloce</h3>
516 ····<div·class="searchformwrapper">517 ····<div·class="searchformwrapper">
517 ····<form·class="search"·action="../search.html"·method="get">518 ····<form·class="search"·action="../search.html"·method="get">
518 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>519 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
519 ······<input·type="submit"·value="Go"·/>520 ······<input·type="submit"·value="Vai"·/>
520 ····</form>521 ····</form>
521 ····</div>522 ····</div>
522 </search>523 </search>
523 <script>document.getElementById('searchbox').style.display·=·"block"</script>524 <script>document.getElementById('searchbox').style.display·=·"block"</script>
524 ········</div>525 ········</div>
525 ······</div>526 ······</div>
526 ··············<h3>Last·update:</h3>527 ··············<h3>Last·update:</h3>
527 ··············<p·class="topless">Sep·03,·2024</p>528 ··············<p·class="topless">set·03,·2024</p>
528 ··········</div>529 ··········</div>
529 ········530 ········
530 ······531 ······
531 ····</div>532 ····</div>
  
532 ····<div·id="ft">533 ····<div·id="ft">
533 ······<div·class="nav">534 ······<div·class="nav">
534 ····&laquo;·<a·href="windows.html"·title="How·to·install·Django·on·Windows">previous</a>535 ····&laquo;·<a·href="windows.html"·title="How·to·install·Django·on·Windows">previous</a>
535 ·····|536 ·····|
536 ····<a·href="index.html"·title="How-to·guides"·accesskey="U">up</a>537 ····<a·href="index.html"·title="«How-to»·guides"·accesskey="U">up</a>
537 ···|538 ···|
538 ····<a·href="delete-app.html"·title="How·to·delete·a·Django·application">next</a>·&raquo;</div>539 ····<a·href="delete-app.html"·title="How·to·delete·a·Django·application">next</a>·&raquo;</div>
539 ····</div>540 ····</div>
540 ··</div>541 ··</div>
  
Max diff block lines reached; 12/7966 bytes (0.15%) of diff not shown.
4.56 KB
html2text {}
Max HTML report size reached
14.8 KB
./usr/share/doc/python-django-doc/html/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="./">2 <html·lang="it"·data-content_root="./">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·documentation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·documentation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>
9 ····<script·src="_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="search.html"·/>
14 ····<link·rel="next"·title="Getting·started"·href="intro/index.html"·/>15 ····<link·rel="next"·title="Getting·started"·href="intro/index.html"·/>
15 ····<link·rel="prev"·title="Django·documentation·contents"·href="contents.html"·/>16 ····<link·rel="prev"·title="Django·documentation·contents"·href="contents.html"·/>
  
  
  
16 ·17 ·
17 <script·src="templatebuiltins.js"></script>18 <script·src="templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="">57 ··<div·id="custom-doc"·class="">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="#">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="#">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="#">Home</a>··|61 ········<a·title="Home·page"·href="#">Home</a>··|
61 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="contents.html"·title="Django·documentation·contents">previous</a>67 ····&laquo;·<a·href="contents.html"·title="Django·documentation·contents">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="#"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="#"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="intro/index.html"·title="Getting·started">next</a>·&raquo;</div>71 ····<a·href="intro/index.html"·title="Getting·started">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 102, 42 lines modifiedOffset 103, 42 lines modified
102 </ul>103 </ul>
103 </section>104 </section>
104 <section·id="s-getting-help">105 <section·id="s-getting-help">
105 <span·id="getting-help"></span><h2>Getting·help<a·class="headerlink"·href="#getting-help"·title="Link·to·this·heading">¶</a></h2>106 <span·id="getting-help"></span><h2>Getting·help<a·class="headerlink"·href="#getting-help"·title="Link·to·this·heading">¶</a></h2>
106 <p>Having·trouble?·We’d·like·to·help!</p>107 <p>Having·trouble?·We’d·like·to·help!</p>
107 <ul·class="simple">108 <ul·class="simple">
108 <li><p>Try·the·<a·class="reference·internal"·href="faq/index.html"><span·class="doc">FAQ</span></a>··it’s·got·answers·to·many·common·questions.</p></li>109 <li><p>Try·the·<a·class="reference·internal"·href="faq/index.html"><span·class="doc">FAQ</span></a>··it’s·got·answers·to·many·common·questions.</p></li>
109 <li><p>Looking·for·specific·information?·Try·the·<a·class="reference·internal"·href="genindex.html"><span·class="std·std-ref">Index</span></a>,·<a·class="reference·internal"·href="py-modindex.html"><span·class="std·std-ref">Module·Index</span></a>·or110 <li><p>Looking·for·specific·information?·Try·the·<a·class="reference·internal"·href="genindex.html"><span·class="std·std-ref">Indice</span></a>,·<a·class="reference·internal"·href="py-modindex.html"><span·class="std·std-ref">Indice·dei·moduli</span></a>·or
110 the·<a·class="reference·internal"·href="contents.html"><span·class="doc">detailed·table·of·contents</span></a>.</p></li>111 the·<a·class="reference·internal"·href="contents.html"><span·class="doc">detailed·table·of·contents</span></a>.</p></li>
111 <li><p>Not·found·anything?·See·<a·class="reference·internal"·href="faq/help.html"><span·class="doc">FAQ:·Getting·Help</span></a>·for·information·on·getting·support112 <li><p>Not·found·anything?·See·<a·class="reference·internal"·href="faq/help.html"><span·class="doc">FAQ:·Getting·Help</span></a>·for·information·on·getting·support
112 and·asking·questions·to·the·community.</p></li>113 and·asking·questions·to·the·community.</p></li>
113 <li><p>Report·bugs·with·Django·in·our·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>.</p></li>114 <li><p>Report·bugs·with·Django·in·our·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>.</p></li>
114 </ul>115 </ul>
115 </section>116 </section>
116 <section·id="s-how-the-documentation-is-organized">117 <section·id="s-how-the-documentation-is-organized">
117 <span·id="how-the-documentation-is-organized"></span><h2>How·the·documentation·is·organized<a·class="headerlink"·href="#how-the-documentation-is-organized"·title="Link·to·this·heading">¶</a></h2>118 <span·id="how-the-documentation-is-organized"></span><h2>How·the·documentation·is·organized<a·class="headerlink"·href="#how-the-documentation-is-organized"·title="Link·to·this·heading">¶</a></h2>
118 <p>Django·has·a·lot·of·documentation.·A·high-level·overview·of·how·it’s·organized119 <p>Django·has·a·lot·of·documentation.·A·high-level·overview·of·how·it’s·organized
119 will·help·you·know·where·to·look·for·certain·things:</p>120 will·help·you·know·where·to·look·for·certain·things:</p>
120 <ul·class="simple">121 <ul·class="simple">
121 <li><p><a·class="reference·internal"·href="intro/index.html"><span·class="doc">Tutorials</span></a>·take·you·by·the·hand·through·a·series·of122 <li><p><a·class="reference·internal"·href="intro/index.html"><span·class="doc">Tutorials</span></a>·take·you·by·the·hand·through·a·series·of
122 steps·to·create·a·web·application.·Start·here·if·you’re·new·to·Django·or·web123 steps·to·create·a·web·application.·Start·here·if·you’re·new·to·Django·or·web
123 application·development.·Also·look·at·the·<a·class="reference·internal"·href="#index-first-steps"><span·class="std·std-ref">First·steps</span></a>.</p></li>124 application·development.·Also·look·at·the·«<a·class="reference·internal"·href="#index-first-steps"><span·class="std·std-ref">First·steps</span></a>».</p></li>
124 <li><p><a·class="reference·internal"·href="topics/index.html"><span·class="doc">Topic·guides</span></a>·discuss·key·topics·and·concepts·at·a125 <li><p><a·class="reference·internal"·href="topics/index.html"><span·class="doc">Topic·guides</span></a>·discuss·key·topics·and·concepts·at·a
125 fairly·high·level·and·provide·useful·background·information·and·explanation.</p></li>126 fairly·high·level·and·provide·useful·background·information·and·explanation.</p></li>
126 <li><p><a·class="reference·internal"·href="ref/index.html"><span·class="doc">Reference·guides</span></a>·contain·technical·reference·for·APIs·and127 <li><p><a·class="reference·internal"·href="ref/index.html"><span·class="doc">Reference·guides</span></a>·contain·technical·reference·for·APIs·and
127 other·aspects·of·Django’s·machinery.·They·describe·how·it·works·and·how·to128 other·aspects·of·Django’s·machinery.·They·describe·how·it·works·and·how·to
128 use·it·but·assume·that·you·have·a·basic·understanding·of·key·concepts.</p></li>129 use·it·but·assume·that·you·have·a·basic·understanding·of·key·concepts.</p></li>
129 <li><p><a·class="reference·internal"·href="howto/index.html"><span·class="doc">How-to·guides</span></a>·are·recipes.·They·guide·you·through·the130 <li><p><a·class="reference·internal"·href="howto/index.html"><span·class="doc">How-to·guides</span></a>·are·recipes.·They·guide·you·through·the
130 steps·involved·in·addressing·key·problems·and·use-cases.·They·are·more131 steps·involved·in·addressing·key·problems·and·use-cases.·They·are·more
131 advanced·than·tutorials·and·assume·some·knowledge·of·how·Django·works.</p></li>132 advanced·than·tutorials·and·assume·some·knowledge·of·how·Django·works.</p></li>
132 </ul>133 </ul>
133 </section>134 </section>
134 <section·id="s-the-model-layer">135 <section·id="s-the-model-layer">
135 <span·id="the-model-layer"></span><h2>The·model·layer<a·class="headerlink"·href="#the-model-layer"·title="Link·to·this·heading">¶</a></h2>136 <span·id="the-model-layer"></span><h2>The·model·layer<a·class="headerlink"·href="#the-model-layer"·title="Link·to·this·heading">¶</a></h2>
136 <p>Django·provides·an·abstraction·layer·(the·models)·for·structuring·and137 <p>Django·provides·an·abstraction·layer·(the·«models»)·for·structuring·and
137 manipulating·the·data·of·your·web·application.·Learn·more·about·it·below:</p>138 manipulating·the·data·of·your·web·application.·Learn·more·about·it·below:</p>
138 <ul·class="simple">139 <ul·class="simple">
139 <li><p><strong>Models:</strong>140 <li><p><strong>Models:</strong>
140 <a·class="reference·internal"·href="topics/db/models.html"><span·class="doc">Introduction·to·models</span></a>·|141 <a·class="reference·internal"·href="topics/db/models.html"><span·class="doc">Introduction·to·models</span></a>·|
141 <a·class="reference·internal"·href="ref/models/fields.html"><span·class="doc">Field·types</span></a>·|142 <a·class="reference·internal"·href="ref/models/fields.html"><span·class="doc">Field·types</span></a>·|
142 <a·class="reference·internal"·href="ref/models/indexes.html"><span·class="doc">Indexes</span></a>·|143 <a·class="reference·internal"·href="ref/models/indexes.html"><span·class="doc">Indexes</span></a>·|
143 <a·class="reference·internal"·href="ref/models/options.html"><span·class="doc">Meta·options</span></a>·|144 <a·class="reference·internal"·href="ref/models/options.html"><span·class="doc">Meta·options</span></a>·|
Offset 172, 15 lines modifiedOffset 173, 15 lines modified
172 <a·class="reference·internal"·href="howto/initial-data.html"><span·class="doc">Providing·initial·data</span></a>·|173 <a·class="reference·internal"·href="howto/initial-data.html"><span·class="doc">Providing·initial·data</span></a>·|
173 <a·class="reference·internal"·href="topics/db/optimization.html"><span·class="doc">Optimize·database·access</span></a>·|174 <a·class="reference·internal"·href="topics/db/optimization.html"><span·class="doc">Optimize·database·access</span></a>·|
174 <a·class="reference·internal"·href="ref/contrib/postgres/index.html"><span·class="doc">PostgreSQL·specific·features</span></a></p></li>175 <a·class="reference·internal"·href="ref/contrib/postgres/index.html"><span·class="doc">PostgreSQL·specific·features</span></a></p></li>
175 </ul>176 </ul>
176 </section>177 </section>
177 <section·id="s-the-view-layer">178 <section·id="s-the-view-layer">
178 <span·id="the-view-layer"></span><h2>The·view·layer<a·class="headerlink"·href="#the-view-layer"·title="Link·to·this·heading">¶</a></h2>179 <span·id="the-view-layer"></span><h2>The·view·layer<a·class="headerlink"·href="#the-view-layer"·title="Link·to·this·heading">¶</a></h2>
179 <p>Django·has·the·concept·of·views·to·encapsulate·the·logic·responsible·for180 <p>Django·has·the·concept·of·«views»·to·encapsulate·the·logic·responsible·for
180 processing·a·user’s·request·and·for·returning·the·response.·Find·all·you·need181 processing·a·user’s·request·and·for·returning·the·response.·Find·all·you·need
181 to·know·about·views·via·the·links·below:</p>182 to·know·about·views·via·the·links·below:</p>
182 <ul·class="simple">183 <ul·class="simple">
183 <li><p><strong>The·basics:</strong>184 <li><p><strong>The·basics:</strong>
184 <a·class="reference·internal"·href="topics/http/urls.html"><span·class="doc">URLconfs</span></a>·|185 <a·class="reference·internal"·href="topics/http/urls.html"><span·class="doc">URLconfs</span></a>·|
185 <a·class="reference·internal"·href="topics/http/views.html"><span·class="doc">View·functions</span></a>·|186 <a·class="reference·internal"·href="topics/http/views.html"><span·class="doc">View·functions</span></a>·|
186 <a·class="reference·internal"·href="topics/http/shortcuts.html"><span·class="doc">Shortcuts</span></a>·|187 <a·class="reference·internal"·href="topics/http/shortcuts.html"><span·class="doc">Shortcuts</span></a>·|
Offset 398, 15 lines modifiedOffset 399, 15 lines modified
398 ······399 ······
399 ····</div>400 ····</div>
  
400 ····<div·id="ft">401 ····<div·id="ft">
401 ······<div·class="nav">402 ······<div·class="nav">
402 ····&laquo;·<a·href="contents.html"·title="Django·documentation·contents">previous</a>403 ····&laquo;·<a·href="contents.html"·title="Django·documentation·contents">previous</a>
403 ·····|404 ·····|
404 ····<a·title="Django·4.2.16·documentation"·href="#"·accesskey="U">up</a>405 ····<a·title="Documentazione·Django·4.2.16·"·href="#"·accesskey="U">up</a>
405 ···|406 ···|
406 ····<a·href="intro/index.html"·title="Getting·started">next</a>·&raquo;</div>407 ····<a·href="intro/index.html"·title="Getting·started">next</a>·&raquo;</div>
407 ····</div>408 ····</div>
408 ··</div>409 ··</div>
  
409 ······<div·class="clearer"></div>410 ······<div·class="clearer"></div>
410 ····</div>411 ····</div>
6.63 KB
html2text {}
Max HTML report size reached
15.9 KB
./usr/share/doc/python-django-doc/html/internals/contributing/bugs-and-features.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Reporting·bugs·and·requesting·features·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Reporting·bugs·and·requesting·features·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Triaging·tickets"·href="triaging-tickets.html"·/>15 ····<link·rel="next"·title="Triaging·tickets"·href="triaging-tickets.html"·/>
15 ····<link·rel="prev"·title="Advice·for·new·contributors"·href="new-contributors.html"·/>16 ····<link·rel="prev"·title="Advice·for·new·contributors"·href="new-contributors.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 29 lines modifiedOffset 77, 29 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="internals-contributing-bugs-and-features">79 ··········<div·class="yui-g"·id="internals-contributing-bugs-and-features">
79 ············80 ············
80 ··<section·id="s-reporting-bugs-and-requesting-features">81 ··<section·id="s-reporting-bugs-and-requesting-features">
81 <span·id="reporting-bugs-and-requesting-features"></span><h1>Reporting·bugs·and·requesting·features<a·class="headerlink"·href="#reporting-bugs-and-requesting-features"·title="Link·to·this·heading">¶</a></h1>82 <span·id="reporting-bugs-and-requesting-features"></span><h1>Reporting·bugs·and·requesting·features<a·class="headerlink"·href="#reporting-bugs-and-requesting-features"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·important">83 <div·class="admonition·important">
83 <p·class="admonition-title">Important</p>84 <p·class="admonition-title">Importante</p>
84 <p>Please·report·security·issues·<strong>only</strong>·to85 <p>Please·report·security·issues·<strong>only</strong>·to
85 <a·class="reference·external"·href="mailto:security&#37;&#52;&#48;djangoproject&#46;com">security<span>&#64;</span>djangoproject<span>&#46;</span>com</a>.··This·is·a·private·list·only·open·to86 <a·class="reference·external"·href="mailto:security&#37;&#52;&#48;djangoproject&#46;com">security<span>&#64;</span>djangoproject<span>&#46;</span>com</a>.··This·is·a·private·list·only·open·to
86 long-time,·highly·trusted·Django·developers,·and·its·archives·are87 long-time,·highly·trusted·Django·developers,·and·its·archives·are
87 not·public.·For·further·details,·please·see·<a·class="reference·internal"·href="../security.html"><span·class="doc">our·security88 not·public.·For·further·details,·please·see·<a·class="reference·internal"·href="../security.html"><span·class="doc">our·security
88 policies</span></a>.</p>89 policies</span></a>.</p>
89 </div>90 </div>
90 <p>Otherwise,·before·reporting·a·bug·or·requesting·a·new·feature·on·the91 <p>Otherwise,·before·reporting·a·bug·or·requesting·a·new·feature·on·the
91 <a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·consider·these·points:</p>92 <a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·consider·these·points:</p>
92 <ul·class="simple">93 <ul·class="simple">
93 <li><p>Check·that·someone·hasn’t·already·filed·the·bug·or·feature·request·by94 <li><p>Check·that·someone·hasn’t·already·filed·the·bug·or·feature·request·by
94 <a·class="reference·external"·href="https://code.djangoproject.com/search">searching</a>·or·running·<a·class="reference·external"·href="https://code.djangoproject.com/query">custom·queries</a>·in·the·ticket·tracker.</p></li>95 <a·class="reference·external"·href="https://code.djangoproject.com/search">searching</a>·or·running·<a·class="reference·external"·href="https://code.djangoproject.com/query">custom·queries</a>·in·the·ticket·tracker.</p></li>
95 <li><p>Don’t·use·the·ticket·system·to·ask·support·questions.·Use·the96 <li><p>Don’t·use·the·ticket·system·to·ask·support·questions.·Use·the
96 <a·class="reference·internal"·href="../mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·list·or·the·<a·class="reference·external"·href="https://web.libera.chat/#django">#django</a>·IRC·channel·for·that.</p></li>97 <a·class="reference·internal"·href="../mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·list·or·the·<a·class="reference·external"·href="https://web.libera.chat/#django">#django</a>·IRC·channel·for·that.</p></li>
97 <li><p>Don’t·reopen·issues·that·have·been·marked·wontfix·without·finding·consensus98 <li><p>Don’t·reopen·issues·that·have·been·marked·«wontfix»·without·finding·consensus
98 to·do·so·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p></li>99 to·do·so·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p></li>
99 <li><p>Don’t·use·the·ticket·tracker·for·lengthy·discussions,·because·they’re100 <li><p>Don’t·use·the·ticket·tracker·for·lengthy·discussions,·because·they’re
100 likely·to·get·lost.·If·a·particular·ticket·is·controversial,·please·move·the101 likely·to·get·lost.·If·a·particular·ticket·is·controversial,·please·move·the
101 discussion·to·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p></li>102 discussion·to·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p></li>
102 </ul>103 </ul>
103 <section·id="s-reporting-bugs">104 <section·id="s-reporting-bugs">
104 <span·id="s-id1"></span><span·id="reporting-bugs"></span><span·id="id1"></span><h2>Reporting·bugs<a·class="headerlink"·href="#reporting-bugs"·title="Link·to·this·heading">¶</a></h2>105 <span·id="s-id1"></span><span·id="reporting-bugs"></span><span·id="id1"></span><h2>Reporting·bugs<a·class="headerlink"·href="#reporting-bugs"·title="Link·to·this·heading">¶</a></h2>
Offset 179, 35 lines modifiedOffset 180, 35 lines modified
179 <span·id="s-id2"></span><span·id="how-we-make-decisions"></span><span·id="id2"></span><h2>How·we·make·decisions<a·class="headerlink"·href="#how-we-make-decisions"·title="Link·to·this·heading">¶</a></h2>180 <span·id="s-id2"></span><span·id="how-we-make-decisions"></span><span·id="id2"></span><h2>How·we·make·decisions<a·class="headerlink"·href="#how-we-make-decisions"·title="Link·to·this·heading">¶</a></h2>
180 <p>Whenever·possible,·we·strive·for·a·rough·consensus.·To·that·end,·we’ll·often181 <p>Whenever·possible,·we·strive·for·a·rough·consensus.·To·that·end,·we’ll·often
181 have·informal·votes·on·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·or·the·Django·Forum·about·a·feature.182 have·informal·votes·on·<a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·or·the·Django·Forum·about·a·feature.
182 In·these·votes·we·follow·the·voting·style·invented·by·Apache·and·used·on·Python183 In·these·votes·we·follow·the·voting·style·invented·by·Apache·and·used·on·Python
183 itself,·where·votes·are·given·as·+1,·+0,·-0,·or·-1.184 itself,·where·votes·are·given·as·+1,·+0,·-0,·or·-1.
184 Roughly·translated,·these·votes·mean:</p>185 Roughly·translated,·these·votes·mean:</p>
185 <ul·class="simple">186 <ul·class="simple">
186 <li><p>+1:·I·love·the·idea·and·I’m·strongly·committed·to·it.</p></li>187 <li><p>+1:·«I·love·the·idea·and·I’m·strongly·committed·to·it.»</p></li>
187 <li><p>+0:·Sounds·OK·to·me.</p></li>188 <li><p>+0:·«Sounds·OK·to·me.»</p></li>
188 <li><p>-0:·I’m·not·thrilled,·but·I·won’t·stand·in·the·way.</p></li>189 <li><p>-0:·«I’m·not·thrilled,·but·I·won’t·stand·in·the·way.»</p></li>
189 <li><p>-1:·I·strongly·disagree·and·would·be·very·unhappy·to·see·the·idea·turn190 <li><p>-1:·«I·strongly·disagree·and·would·be·very·unhappy·to·see·the·idea·turn
190 into·reality.</p></li>191 into·reality.»</p></li>
191 </ul>192 </ul>
192 <p>Although·these·votes·are·informal,·they’ll·be·taken·very·seriously.·After·a193 <p>Although·these·votes·are·informal,·they’ll·be·taken·very·seriously.·After·a
193 suitable·voting·period,·if·an·obvious·consensus·arises·we’ll·follow·the·votes.</p>194 suitable·voting·period,·if·an·obvious·consensus·arises·we’ll·follow·the·votes.</p>
194 <p>However,·consensus·is·not·always·possible.·If·consensus·cannot·be·reached,·or195 <p>However,·consensus·is·not·always·possible.·If·consensus·cannot·be·reached,·or
195 if·the·discussion·toward·a·consensus·fizzles·out·without·a·concrete·decision,196 if·the·discussion·toward·a·consensus·fizzles·out·without·a·concrete·decision,
196 the·decision·may·be·deferred·to·the·<a·class="reference·internal"·href="../organization.html#steering-council"><span·class="std·std-ref">steering·council</span></a>.</p>197 the·decision·may·be·deferred·to·the·<a·class="reference·internal"·href="../organization.html#steering-council"><span·class="std·std-ref">steering·council</span></a>.</p>
197 <p>Internally,·the·steering·council·will·use·the·same·voting·mechanism.·A198 <p>Internally,·the·steering·council·will·use·the·same·voting·mechanism.·A
198 proposition·will·be·considered·carried·if:</p>199 proposition·will·be·considered·carried·if:</p>
199 <ul·class="simple">200 <ul·class="simple">
200 <li><p>There·are·at·least·three·+1·votes·from·members·of·the·steering·council.</p></li>201 <li><p>There·are·at·least·three·«+1»·votes·from·members·of·the·steering·council.</p></li>
201 <li><p>There·is·no·-1·vote·from·any·member·of·the·steering·council.</p></li>202 <li><p>There·is·no·«-1»·vote·from·any·member·of·the·steering·council.</p></li>
202 </ul>203 </ul>
203 <p>Votes·should·be·submitted·within·a·week.</p>204 <p>Votes·should·be·submitted·within·a·week.</p>
204 <p>Since·this·process·allows·any·steering·council·member·to·veto·a·proposal,·a205 <p>Since·this·process·allows·any·steering·council·member·to·veto·a·proposal,·a
205 -1·vote·should·be·accompanied·by·an·explanation·of·what·it·would·take·to206 «-1»·vote·should·be·accompanied·by·an·explanation·of·what·it·would·take·to
206 convert·that·-1·into·at·least·a·+0.</p>207 convert·that·«-1»·into·at·least·a·«+0».</p>
207 <p>Votes·on·technical·matters·should·be·announced·and·held·in·public·on·the208 <p>Votes·on·technical·matters·should·be·announced·and·held·in·public·on·the
208 <a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·mailing·list·or·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>.</p>209 <a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·mailing·list·or·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>.</p>
209 </section>210 </section>
210 </section>211 </section>
  
  
211 ··········</div>212 ··········</div>
Offset 229, 37 lines modifiedOffset 230, 37 lines modified
229 <li><a·class="reference·internal"·href="#how-we-make-decisions">How·we·make·decisions</a></li>230 <li><a·class="reference·internal"·href="#how-we-make-decisions">How·we·make·decisions</a></li>
230 </ul>231 </ul>
231 </li>232 </li>
232 </ul>233 </ul>
  
233 ··</div>234 ··</div>
234 ··<div>235 ··<div>
235 ····<h4>Previous·topic</h4>236 ····<h4>Argomento·precedente</h4>
236 ····<p·class="topless"><a·href="new-contributors.html"237 ····<p·class="topless"><a·href="new-contributors.html"
237 ··························title="previous·chapter">Advice·for·new·contributors</a></p>238 ··························title="capitolo·precedente">Advice·for·new·contributors</a></p>
238 ··</div>239 ··</div>
239 ··<div>240 ··<div>
240 ····<h4>Next·topic</h4>241 ····<h4>Argomento·successivo</h4>
241 ····<p·class="topless"><a·href="triaging-tickets.html"242 ····<p·class="topless"><a·href="triaging-tickets.html"
242 ··························title="next·chapter">Triaging·tickets</a></p>243 ··························title="capitolo·successivo">Triaging·tickets</a></p>
243 ··</div>244 ··</div>
244 <search·id="searchbox"·style="display:·none"·role="search">245 <search·id="searchbox"·style="display:·none"·role="search">
245 ··<h3·id="searchlabel">Quick·search</h3>246 ··<h3·id="searchlabel">Ricerca·veloce</h3>
246 ····<div·class="searchformwrapper">247 ····<div·class="searchformwrapper">
247 ····<form·class="search"·action="../../search.html"·method="get">248 ····<form·class="search"·action="../../search.html"·method="get">
248 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>249 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
Max diff block lines reached; 365/9859 bytes (3.70%) of diff not shown.
6.06 KB
html2text {}
Max HTML report size reached
19.1 KB
./usr/share/doc/python-django-doc/html/internals/contributing/committing-code.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Committing·code·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Committing·code·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Mailing·lists·and·Forum"·href="../mailing-lists.html"·/>15 ····<link·rel="next"·title="Mailing·lists·and·Forum"·href="../mailing-lists.html"·/>
15 ····<link·rel="prev"·title="Localizing·Django"·href="localizing.html"·/>16 ····<link·rel="prev"·title="Localizing·Django"·href="localizing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 165, 15 lines modifiedOffset 166, 15 lines modified
165 </pre></div>166 </pre></div>
166 </section>167 </section>
167 </div>168 </div>
168 <p>Force·push·to·the·branch·after·rebasing·on·main·but·before·merging·and·pushing169 <p>Force·push·to·the·branch·after·rebasing·on·main·but·before·merging·and·pushing
169 to·upstream.·This·allows·the·commit·hashes·on·main·and·the·branch·to·match170 to·upstream.·This·allows·the·commit·hashes·on·main·and·the·branch·to·match
170 which·automatically·closes·the·pull·request.</p>171 which·automatically·closes·the·pull·request.</p>
171 <p>If·a·pull·request·doesn’t·need·to·be·merged·as·multiple·commits,·you·can·use172 <p>If·a·pull·request·doesn’t·need·to·be·merged·as·multiple·commits,·you·can·use
172 GitHub’s·Squash·and·merge·button·on·the·website.·Edit·the·commit·message·as173 GitHub’s·«Squash·and·merge»·button·on·the·website.·Edit·the·commit·message·as
173 needed·to·conform·to·<a·class="reference·internal"·href="#committing-guidelines"><span·class="std·std-ref">the·guidelines</span></a>·and·remove174 needed·to·conform·to·<a·class="reference·internal"·href="#committing-guidelines"><span·class="std·std-ref">the·guidelines</span></a>·and·remove
174 the·pull·request·number·that’s·automatically·appended·to·the·message’s·first175 the·pull·request·number·that’s·automatically·appended·to·the·message’s·first
175 line.</p>176 line.</p>
176 <p>When·rewriting·the·commit·history·of·a·pull·request,·the·goal·is·to·make177 <p>When·rewriting·the·commit·history·of·a·pull·request,·the·goal·is·to·make
177 Django’s·commit·history·as·usable·as·possible:</p>178 Django’s·commit·history·as·usable·as·possible:</p>
178 <ul·class="simple">179 <ul·class="simple">
179 <li><p>If·a·patch·contains·back-and-forth·commits,·then·rewrite·those·into·one.180 <li><p>If·a·patch·contains·back-and-forth·commits,·then·rewrite·those·into·one.
Offset 198, 71 lines modifiedOffset 199, 71 lines modified
198 <span·id="s-id2"></span><span·id="committing-guidelines"></span><span·id="id2"></span><h2>Committing·guidelines<a·class="headerlink"·href="#committing-guidelines"·title="Link·to·this·heading">¶</a></h2>199 <span·id="s-id2"></span><span·id="committing-guidelines"></span><span·id="id2"></span><h2>Committing·guidelines<a·class="headerlink"·href="#committing-guidelines"·title="Link·to·this·heading">¶</a></h2>
199 <p>In·addition,·please·follow·the·following·guidelines·when·committing·code·to200 <p>In·addition,·please·follow·the·following·guidelines·when·committing·code·to
200 Django’s·Git·repository:</p>201 Django’s·Git·repository:</p>
201 <ul>202 <ul>
202 <li><p>Never·change·the·published·history·of·<code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·branches·by·force203 <li><p>Never·change·the·published·history·of·<code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·branches·by·force
203 pushing.·If·you·absolutely·must·(for·security·reasons·for·example),·first204 pushing.·If·you·absolutely·must·(for·security·reasons·for·example),·first
204 discuss·the·situation·with·the·team.</p></li>205 discuss·the·situation·with·the·team.</p></li>
205 <li><p>For·any·medium-to-big·changes,·where·medium-to-big·is·according·to206 <li><p>For·any·medium-to-big·changes,·where·«medium-to-big»·is·according·to
206 your·judgment,·please·bring·things·up·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or207 your·judgment,·please·bring·things·up·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or
207 <a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·mailing·list·before·making·the·change.</p>208 <a·class="reference·internal"·href="../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·mailing·list·before·making·the·change.</p>
208 <p>If·you·bring·something·up·and·nobody·responds,·please·don’t·take·that209 <p>If·you·bring·something·up·and·nobody·responds,·please·don’t·take·that
209 to·mean·your·idea·is·great·and·should·be·implemented·immediately·because210 to·mean·your·idea·is·great·and·should·be·implemented·immediately·because
210 nobody·contested·it.·Everyone·doesn’t·always·have·a·lot·of·time·to·read211 nobody·contested·it.·Everyone·doesn’t·always·have·a·lot·of·time·to·read
211 mailing·list·discussions·immediately,·so·you·may·have·to·wait·a·couple·of212 mailing·list·discussions·immediately,·so·you·may·have·to·wait·a·couple·of
212 days·before·getting·a·response.</p>213 days·before·getting·a·response.</p>
213 </li>214 </li>
214 <li><p>Write·detailed·commit·messages·in·the·past·tense,·not·present·tense.</p>215 <li><p>Write·detailed·commit·messages·in·the·past·tense,·not·present·tense.</p>
215 <ul·class="simple">216 <ul·class="simple">
216 <li><p>Good:·Fixed·Unicode·bug·in·RSS·API.</p></li>217 <li><p>Good:·«Fixed·Unicode·bug·in·RSS·API.»</p></li>
217 <li><p>Bad:·Fixes·Unicode·bug·in·RSS·API.</p></li>218 <li><p>Bad:·«Fixes·Unicode·bug·in·RSS·API.»</p></li>
218 <li><p>Bad:·Fixing·Unicode·bug·in·RSS·API.</p></li>219 <li><p>Bad:·«Fixing·Unicode·bug·in·RSS·API.»</p></li>
219 </ul>220 </ul>
220 <p>The·commit·message·should·be·in·lines·of·72·chars·maximum.·There·should·be221 <p>The·commit·message·should·be·in·lines·of·72·chars·maximum.·There·should·be
221 a·subject·line,·separated·by·a·blank·line·and·then·paragraphs·of·72·char222 a·subject·line,·separated·by·a·blank·line·and·then·paragraphs·of·72·char
222 lines.·The·limits·are·soft.·For·the·subject·line,·shorter·is·better.·In·the223 lines.·The·limits·are·soft.·For·the·subject·line,·shorter·is·better.·In·the
223 body·of·the·commit·message·more·detail·is·better·than·less:</p>224 body·of·the·commit·message·more·detail·is·better·than·less:</p>
224 <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Fixed·#18307·--·Added·git·workflow·guidelines.225 <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>Fixed·#18307·--·Added·git·workflow·guidelines.
  
225 Refactored·the·Django&#39;s·documentation·to·remove·mentions·of·SVN226 Refactored·the·Django&#39;s·documentation·to·remove·mentions·of·SVN
226 specific·tasks.·Added·guidelines·of·how·to·use·Git,·GitHub,·and227 specific·tasks.·Added·guidelines·of·how·to·use·Git,·GitHub,·and
227 how·to·use·pull·request·together·with·Trac·instead.228 how·to·use·pull·request·together·with·Trac·instead.
228 </pre></div>229 </pre></div>
229 </div>230 </div>
230 <p>Credit·the·contributors·in·the·commit·message:·Thanks·A·for·the·report·and·B231 <p>Credit·the·contributors·in·the·commit·message:·«Thanks·A·for·the·report·and·B
231 for·review.·Use·git’s·<a·class="reference·external"·href="https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors">Co-Authored-By</a>·as·appropriate.</p>232 for·review.»·Use·git’s·<a·class="reference·external"·href="https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors">Co-Authored-By</a>·as·appropriate.</p>
232 </li>233 </li>
233 <li><p>For·commits·to·a·branch,·prefix·the·commit·message·with·the·branch·name.234 <li><p>For·commits·to·a·branch,·prefix·the·commit·message·with·the·branch·name.
234 For·example:·[1.4.x]·Fixed·#xxxxx··Added·support·for·mind·reading.</p></li>235 For·example:·«[1.4.x]·Fixed·#xxxxx··Added·support·for·mind·reading.»</p></li>
235 <li><p>Limit·commits·to·the·most·granular·change·that·makes·sense.·This·means,236 <li><p>Limit·commits·to·the·most·granular·change·that·makes·sense.·This·means,
236 use·frequent·small·commits·rather·than·infrequent·large·commits.·For237 use·frequent·small·commits·rather·than·infrequent·large·commits.·For
237 example,·if·implementing·feature·X·requires·a·small·change·to·library·Y,238 example,·if·implementing·feature·X·requires·a·small·change·to·library·Y,
238 first·commit·the·change·to·library·Y,·then·commit·feature·X·in·a·separate239 first·commit·the·change·to·library·Y,·then·commit·feature·X·in·a·separate
239 commit.·This·goes·a·<em>long·way</em>·in·helping·everyone·follow·your·changes.</p></li>240 commit.·This·goes·a·<em>long·way</em>·in·helping·everyone·follow·your·changes.</p></li>
240 <li><p>Separate·bug·fixes·from·feature·changes.·Bugfixes·may·need·to·be·backported241 <li><p>Separate·bug·fixes·from·feature·changes.·Bugfixes·may·need·to·be·backported
241 to·the·stable·branch,·according·to·<a·class="reference·internal"·href="../release-process.html#supported-versions-policy"><span·class="std·std-ref">Supported·versions</span></a>.</p></li>242 to·the·stable·branch,·according·to·<a·class="reference·internal"·href="../release-process.html#supported-versions-policy"><span·class="std·std-ref">Supported·versions</span></a>.</p></li>
242 <li><p>If·your·commit·closes·a·ticket·in·the·Django·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·begin243 <li><p>If·your·commit·closes·a·ticket·in·the·Django·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·begin
243 your·commit·message·with·the·text·Fixed·#xxxxx,·where·xxxxx·is·the244 your·commit·message·with·the·text·«Fixed·#xxxxx»,·where·«xxxxx»·is·the
244 number·of·the·ticket·your·commit·fixes.·Example:·Fixed·#123··Added245 number·of·the·ticket·your·commit·fixes.·Example:·«Fixed·#123··Added
245 whizbang·feature..·We’ve·rigged·Trac·so·that·any·commit·message·in·that246 whizbang·feature.».·We’ve·rigged·Trac·so·that·any·commit·message·in·that
246 format·will·automatically·close·the·referenced·ticket·and·post·a·comment247 format·will·automatically·close·the·referenced·ticket·and·post·a·comment
247 to·it·with·the·full·commit·message.</p>248 to·it·with·the·full·commit·message.</p>
248 <p>For·the·curious,·we’re·using·a·<a·class="reference·external"·href="https://github.com/trac-hacks/trac-github">Trac·plugin</a>·for·this.</p>249 <p>For·the·curious,·we’re·using·a·<a·class="reference·external"·href="https://github.com/trac-hacks/trac-github">Trac·plugin</a>·for·this.</p>
249 </li>250 </li>
250 </ul>251 </ul>
251 <div·class="admonition·note">252 <div·class="admonition·note">
252 <p·class="admonition-title">Note</p>253 <p·class="admonition-title">Nota</p>
253 <p>Note·that·the·Trac·integration·doesn’t·know·anything·about·pull·requests.254 <p>Note·that·the·Trac·integration·doesn’t·know·anything·about·pull·requests.
254 So·if·you·try·to·close·a·pull·request·with·the·phrase·closes·#400·in·your255 So·if·you·try·to·close·a·pull·request·with·the·phrase·«closes·#400»·in·your
255 commit·message,·GitHub·will·close·the·pull·request,·but·the·Trac·plugin256 commit·message,·GitHub·will·close·the·pull·request,·but·the·Trac·plugin
256 will·not·close·the·same·numbered·ticket·in·Trac.</p>257 will·not·close·the·same·numbered·ticket·in·Trac.</p>
257 </div>258 </div>
258 <ul>259 <ul>
259 <li><p>If·your·commit·references·a·ticket·in·the·Django·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>·but260 <li><p>If·your·commit·references·a·ticket·in·the·Django·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>·but
260 does·<em>not</em>·close·the·ticket,·include·the·phrase·Refs·#xxxxx,·where·xxxxx261 does·<em>not</em>·close·the·ticket,·include·the·phrase·«Refs·#xxxxx»,·where·«xxxxx»
261 is·the·number·of·the·ticket·your·commit·references.·This·will·automatically262 is·the·number·of·the·ticket·your·commit·references.·This·will·automatically
262 post·a·comment·to·the·appropriate·ticket.</p></li>263 post·a·comment·to·the·appropriate·ticket.</p></li>
263 <li><p>Write·commit·messages·for·backports·using·this·pattern:</p>264 <li><p>Write·commit·messages·for·backports·using·this·pattern:</p>
264 <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>[&lt;Django·version&gt;]·Fixed·&lt;ticket&gt;·--·&lt;description&gt;265 <div·class="highlight-none·notranslate"><div·class="highlight"><pre><span></span>[&lt;Django·version&gt;]·Fixed·&lt;ticket&gt;·--·&lt;description&gt;
  
265 Backport·of·&lt;revision&gt;·from·&lt;branch&gt;.266 Backport·of·&lt;revision&gt;·from·&lt;branch&gt;.
266 </pre></div>267 </pre></div>
Max diff block lines reached; 1573/10939 bytes (14.38%) of diff not shown.
8.22 KB
html2text {}
Max HTML report size reached
6.08 KB
./usr/share/doc/python-django-doc/html/internals/contributing/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Contributing·to·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Contributing·to·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Advice·for·new·contributors"·href="new-contributors.html"·/>15 ····<link·rel="next"·title="Advice·for·new·contributors"·href="new-contributors.html"·/>
15 ····<link·rel="prev"·title="Django·internals"·href="../index.html"·/>16 ····<link·rel="prev"·title="Django·internals"·href="../index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 216, 37 lines modifiedOffset 217, 37 lines modified
216 <li><a·class="reference·internal"·href="#join-the-django-community">Join·the·Django·community·❤️</a></li>217 <li><a·class="reference·internal"·href="#join-the-django-community">Join·the·Django·community·❤️</a></li>
217 </ul>218 </ul>
218 </li>219 </li>
219 </ul>220 </ul>
  
220 ··</div>221 ··</div>
221 ··<div>222 ··<div>
222 ····<h4>Previous·topic</h4>223 ····<h4>Argomento·precedente</h4>
223 ····<p·class="topless"><a·href="../index.html"224 ····<p·class="topless"><a·href="../index.html"
224 ··························title="previous·chapter">Django·internals</a></p>225 ··························title="capitolo·precedente">Django·internals</a></p>
225 ··</div>226 ··</div>
226 ··<div>227 ··<div>
227 ····<h4>Next·topic</h4>228 ····<h4>Argomento·successivo</h4>
228 ····<p·class="topless"><a·href="new-contributors.html"229 ····<p·class="topless"><a·href="new-contributors.html"
229 ··························title="next·chapter">Advice·for·new·contributors</a></p>230 ··························title="capitolo·successivo">Advice·for·new·contributors</a></p>
230 ··</div>231 ··</div>
231 <search·id="searchbox"·style="display:·none"·role="search">232 <search·id="searchbox"·style="display:·none"·role="search">
232 ··<h3·id="searchlabel">Quick·search</h3>233 ··<h3·id="searchlabel">Ricerca·veloce</h3>
233 ····<div·class="searchformwrapper">234 ····<div·class="searchformwrapper">
234 ····<form·class="search"·action="../../search.html"·method="get">235 ····<form·class="search"·action="../../search.html"·method="get">
235 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>236 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
236 ······<input·type="submit"·value="Go"·/>237 ······<input·type="submit"·value="Vai"·/>
237 ····</form>238 ····</form>
238 ····</div>239 ····</div>
239 </search>240 </search>
240 <script>document.getElementById('searchbox').style.display·=·"block"</script>241 <script>document.getElementById('searchbox').style.display·=·"block"</script>
241 ········</div>242 ········</div>
242 ······</div>243 ······</div>
243 ··············<h3>Last·update:</h3>244 ··············<h3>Last·update:</h3>
244 ··············<p·class="topless">Sep·03,·2024</p>245 ··············<p·class="topless">set·03,·2024</p>
245 ··········</div>246 ··········</div>
246 ········247 ········
247 ······248 ······
248 ····</div>249 ····</div>
  
249 ····<div·id="ft">250 ····<div·id="ft">
250 ······<div·class="nav">251 ······<div·class="nav">
2.22 KB
html2text {}
Max HTML report size reached
10.7 KB
./usr/share/doc/python-django-doc/html/internals/contributing/localizing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Localizing·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Localizing·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Committing·code"·href="committing-code.html"·/>15 ····<link·rel="next"·title="Committing·code"·href="committing-code.html"·/>
15 ····<link·rel="prev"·title="Writing·documentation"·href="writing-documentation.html"·/>16 ····<link·rel="prev"·title="Writing·documentation"·href="writing-documentation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 93, 26 lines modifiedOffset 94, 26 lines modified
93 translating·or·adding·a·language·that·isn’t·yet·translated,·here’s·what·to·do:</p>94 translating·or·adding·a·language·that·isn’t·yet·translated,·here’s·what·to·do:</p>
94 <ul>95 <ul>
95 <li><p>Introduce·yourself·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/i18n/14">Django·internationalization·forum</a>.</p></li>96 <li><p>Introduce·yourself·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/i18n/14">Django·internationalization·forum</a>.</p></li>
96 <li><p>Make·sure·you·read·the·notes·about·<a·class="reference·internal"·href="../../topics/i18n/translation.html#specialties-of-django-i18n"><span·class="std·std-ref">Specialties·of·Django·translation</span></a>.</p></li>97 <li><p>Make·sure·you·read·the·notes·about·<a·class="reference·internal"·href="../../topics/i18n/translation.html#specialties-of-django-i18n"><span·class="std·std-ref">Specialties·of·Django·translation</span></a>.</p></li>
97 <li><p>Sign·up·at·<a·class="reference·external"·href="https://www.transifex.com/">Transifex</a>·and·visit·the·<a·class="reference·external"·href="https://app.transifex.com/django/django/">Django·project·page</a>.</p></li>98 <li><p>Sign·up·at·<a·class="reference·external"·href="https://www.transifex.com/">Transifex</a>·and·visit·the·<a·class="reference·external"·href="https://app.transifex.com/django/django/">Django·project·page</a>.</p></li>
98 <li><p>On·the·<a·class="reference·external"·href="https://app.transifex.com/django/django/">Django·project·page</a>,·choose·the·language·you·want·to·work·on,99 <li><p>On·the·<a·class="reference·external"·href="https://app.transifex.com/django/django/">Django·project·page</a>,·choose·the·language·you·want·to·work·on,
99 <strong>or</strong>··in·case·the·language·doesn’t·exist·yet·100 <strong>or</strong>··in·case·the·language·doesn’t·exist·yet·
100 request·a·new·language·team·by·clicking·on·the·Request·language·link101 request·a·new·language·team·by·clicking·on·the·«Request·language»·link
101 and·selecting·the·appropriate·language.</p></li>102 and·selecting·the·appropriate·language.</p></li>
102 <li><p>Then,·click·the·Join·this·Team·button·to·become·a·member·of·this·team.103 <li><p>Then,·click·the·«Join·this·Team»·button·to·become·a·member·of·this·team.
103 Every·team·has·at·least·one·coordinator·who·is·responsible·to·review104 Every·team·has·at·least·one·coordinator·who·is·responsible·to·review
104 your·membership·request.·You·can·also·contact·the·team·coordinator·to·clarify105 your·membership·request.·You·can·also·contact·the·team·coordinator·to·clarify
105 procedural·problems·and·handle·the·actual·translation·process.</p></li>106 procedural·problems·and·handle·the·actual·translation·process.</p></li>
106 <li><p>Once·you·are·a·member·of·a·team·choose·the·translation·resource·you107 <li><p>Once·you·are·a·member·of·a·team·choose·the·translation·resource·you
107 want·to·update·on·the·team·page.·For·example,·the·core·resource·refers108 want·to·update·on·the·team·page.·For·example,·the·«core»·resource·refers
108 to·the·translation·catalog·that·contains·all·non-contrib·translations.109 to·the·translation·catalog·that·contains·all·non-contrib·translations.
109 Each·of·the·contrib·apps·also·has·a·resource·(prefixed·with·contrib).</p>110 Each·of·the·contrib·apps·also·has·a·resource·(prefixed·with·«contrib»).</p>
110 <div·class="admonition·note">111 <div·class="admonition·note">
111 <p·class="admonition-title">Note</p>112 <p·class="admonition-title">Nota</p>
112 <p>For·more·information·about·how·to·use·Transifex,·read·the113 <p>For·more·information·about·how·to·use·Transifex,·read·the
113 <a·class="reference·external"·href="https://help.transifex.com/">Transifex·User·Guide</a>.</p>114 <a·class="reference·external"·href="https://help.transifex.com/">Transifex·User·Guide</a>.</p>
114 </div>115 </div>
115 </li>116 </li>
116 </ul>117 </ul>
117 <p>Translations·from·Transifex·are·only·integrated·into·the·Django·repository·at118 <p>Translations·from·Transifex·are·only·integrated·into·the·Django·repository·at
118 the·time·of·a·new·<a·class="reference·internal"·href="../release-process.html#term-Feature-release"><span·class="xref·std·std-term">feature·release</span></a>.·We·try·to·update119 the·time·of·a·new·<a·class="reference·internal"·href="../release-process.html#term-Feature-release"><span·class="xref·std·std-term">feature·release</span></a>.·We·try·to·update
Offset 168, 37 lines modifiedOffset 169, 37 lines modified
168 <li><a·class="reference·internal"·href="#documentation">Documentation</a></li>169 <li><a·class="reference·internal"·href="#documentation">Documentation</a></li>
169 </ul>170 </ul>
170 </li>171 </li>
171 </ul>172 </ul>
  
172 ··</div>173 ··</div>
173 ··<div>174 ··<div>
174 ····<h4>Previous·topic</h4>175 ····<h4>Argomento·precedente</h4>
175 ····<p·class="topless"><a·href="writing-documentation.html"176 ····<p·class="topless"><a·href="writing-documentation.html"
176 ··························title="previous·chapter">Writing·documentation</a></p>177 ··························title="capitolo·precedente">Writing·documentation</a></p>
177 ··</div>178 ··</div>
178 ··<div>179 ··<div>
179 ····<h4>Next·topic</h4>180 ····<h4>Argomento·successivo</h4>
180 ····<p·class="topless"><a·href="committing-code.html"181 ····<p·class="topless"><a·href="committing-code.html"
181 ··························title="next·chapter">Committing·code</a></p>182 ··························title="capitolo·successivo">Committing·code</a></p>
182 ··</div>183 ··</div>
183 <search·id="searchbox"·style="display:·none"·role="search">184 <search·id="searchbox"·style="display:·none"·role="search">
184 ··<h3·id="searchlabel">Quick·search</h3>185 ··<h3·id="searchlabel">Ricerca·veloce</h3>
185 ····<div·class="searchformwrapper">186 ····<div·class="searchformwrapper">
186 ····<form·class="search"·action="../../search.html"·method="get">187 ····<form·class="search"·action="../../search.html"·method="get">
187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
188 ······<input·type="submit"·value="Go"·/>189 ······<input·type="submit"·value="Vai"·/>
189 ····</form>190 ····</form>
190 ····</div>191 ····</div>
191 </search>192 </search>
192 <script>document.getElementById('searchbox').style.display·=·"block"</script>193 <script>document.getElementById('searchbox').style.display·=·"block"</script>
193 ········</div>194 ········</div>
194 ······</div>195 ······</div>
195 ··············<h3>Last·update:</h3>196 ··············<h3>Last·update:</h3>
196 ··············<p·class="topless">Sep·03,·2024</p>197 ··············<p·class="topless">set·03,·2024</p>
197 ··········</div>198 ··········</div>
198 ········199 ········
199 ······200 ······
200 ····</div>201 ····</div>
  
201 ····<div·id="ft">202 ····<div·id="ft">
202 ······<div·class="nav">203 ······<div·class="nav">
4.42 KB
html2text {}
Max HTML report size reached
15.7 KB
./usr/share/doc/python-django-doc/html/internals/contributing/new-contributors.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Advice·for·new·contributors·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Advice·for·new·contributors·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Reporting·bugs·and·requesting·features"·href="bugs-and-features.html"·/>15 ····<link·rel="next"·title="Reporting·bugs·and·requesting·features"·href="bugs-and-features.html"·/>
15 ····<link·rel="prev"·title="Contributing·to·Django"·href="index.html"·/>16 ····<link·rel="prev"·title="Contributing·to·Django"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 118, 15 lines modifiedOffset 119, 15 lines modified
118 </li>119 </li>
119 <li><p><strong>Write·some·documentation</strong></p>120 <li><p><strong>Write·some·documentation</strong></p>
120 <p>Django’s·documentation·is·great·but·it·can·always·be·improved.·Did·you·find121 <p>Django’s·documentation·is·great·but·it·can·always·be·improved.·Did·you·find
121 a·typo?·Do·you·think·that·something·should·be·clarified?·Go·ahead·and122 a·typo?·Do·you·think·that·something·should·be·clarified?·Go·ahead·and
122 suggest·a·documentation·patch!·See·also·the·guide·on123 suggest·a·documentation·patch!·See·also·the·guide·on
123 <a·class="reference·internal"·href="writing-documentation.html"><span·class="doc">Writing·documentation</span></a>.</p>124 <a·class="reference·internal"·href="writing-documentation.html"><span·class="doc">Writing·documentation</span></a>.</p>
124 <div·class="admonition·note">125 <div·class="admonition·note">
125 <p·class="admonition-title">Note</p>126 <p·class="admonition-title">Nota</p>
126 <p>The·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/Reports">reports·page</a>·contains·links·to·many·useful·Trac·queries,·including127 <p>The·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/Reports">reports·page</a>·contains·links·to·many·useful·Trac·queries,·including
127 several·that·are·useful·for·triaging·tickets·and·reviewing·patches·as128 several·that·are·useful·for·triaging·tickets·and·reviewing·patches·as
128 suggested·above.</p>129 suggested·above.</p>
129 </div>130 </div>
130 </li>131 </li>
131 <li><p><strong>Sign·the·Contributor·License·Agreement</strong></p>132 <li><p><strong>Sign·the·Contributor·License·Agreement</strong></p>
132 <p>The·code·that·you·write·belongs·to·you·or·your·employer.·If·your133 <p>The·code·that·you·write·belongs·to·you·or·your·employer.·If·your
Offset 142, 15 lines modifiedOffset 143, 15 lines modified
142 some·advice·to·make·your·work·on·Django·more·useful·and·rewarding.</p>143 some·advice·to·make·your·work·on·Django·more·useful·and·rewarding.</p>
143 <ul>144 <ul>
144 <li><p><strong>Pick·a·subject·area·that·you·care·about,·that·you·are·familiar·with,·or145 <li><p><strong>Pick·a·subject·area·that·you·care·about,·that·you·are·familiar·with,·or
145 that·you·want·to·learn·about</strong></p>146 that·you·want·to·learn·about</strong></p>
146 <p>You·don’t·already·have·to·be·an·expert·on·the·area·you·want·to·work·on;·you147 <p>You·don’t·already·have·to·be·an·expert·on·the·area·you·want·to·work·on;·you
147 become·an·expert·through·your·ongoing·contributions·to·the·code.</p>148 become·an·expert·through·your·ongoing·contributions·to·the·code.</p>
148 </li>149 </li>
149 <li><p><strong>Analyze·tickets·context·and·history</strong></p>150 <li><p><strong>Analyze·tickets·context·and·history</strong></p>
150 <p>Trac·isn’t·an·absolute;·the·context·is·just·as·important·as·the·words.151 <p>Trac·isn’t·an·absolute;·the·context·is·just·as·important·as·the·words.
151 When·reading·Trac,·you·need·to·take·into·account·who·says·things,·and·when152 When·reading·Trac,·you·need·to·take·into·account·who·says·things,·and·when
152 they·were·said.·Support·for·an·idea·two·years·ago·doesn’t·necessarily·mean153 they·were·said.·Support·for·an·idea·two·years·ago·doesn’t·necessarily·mean
153 that·the·idea·will·still·have·support.·You·also·need·to·pay·attention·to·who154 that·the·idea·will·still·have·support.·You·also·need·to·pay·attention·to·who
154 <em>hasn’t</em>·spoken··for·example,·if·an·experienced·contributor·hasn’t·been155 <em>hasn’t</em>·spoken··for·example,·if·an·experienced·contributor·hasn’t·been
155 recently·involved·in·a·discussion,·then·a·ticket·may·not·have·the·support156 recently·involved·in·a·discussion,·then·a·ticket·may·not·have·the·support
156 required·to·get·into·Django.</p>157 required·to·get·into·Django.</p>
Offset 162, 16 lines modifiedOffset 163, 16 lines modified
162 <li><p><strong>If·you’re·going·to·engage·in·a·big·task,·make·sure·that·your·idea·has163 <li><p><strong>If·you’re·going·to·engage·in·a·big·task,·make·sure·that·your·idea·has
163 support·first</strong></p>164 support·first</strong></p>
164 <p>This·means·getting·someone·else·to·confirm·that·a·bug·is·real·before·you·fix165 <p>This·means·getting·someone·else·to·confirm·that·a·bug·is·real·before·you·fix
165 the·issue,·and·ensuring·that·there’s·consensus·on·a·proposed·feature·before166 the·issue,·and·ensuring·that·there’s·consensus·on·a·proposed·feature·before
166 you·go·implementing·it.</p>167 you·go·implementing·it.</p>
167 </li>168 </li>
168 <li><p><strong>Be·bold!·Leave·feedback!</strong></p>169 <li><p><strong>Be·bold!·Leave·feedback!</strong></p>
169 <p>Sometimes·it·can·be·scary·to·put·your·opinion·out·to·the·world·and·say·this170 <p>Sometimes·it·can·be·scary·to·put·your·opinion·out·to·the·world·and·say·«this
170 ticket·is·correct·or·this·patch·needs·work,·but·it’s·the·only·way·the171 ticket·is·correct»·or·«this·patch·needs·work»,·but·it’s·the·only·way·the
171 project·moves·forward.·The·contributions·of·the·broad·Django·community172 project·moves·forward.·The·contributions·of·the·broad·Django·community
172 ultimately·have·a·much·greater·impact·than·that·of·any·one·person.·We·can’t173 ultimately·have·a·much·greater·impact·than·that·of·any·one·person.·We·can’t
173 do·it·without·<strong>you</strong>!</p>174 do·it·without·<strong>you</strong>!</p>
174 </li>175 </li>
175 <li><p><strong>Err·on·the·side·of·caution·when·marking·things·Ready·For·Check-in</strong></p>176 <li><p><strong>Err·on·the·side·of·caution·when·marking·things·Ready·For·Check-in</strong></p>
176 <p>If·you’re·really·not·certain·if·a·ticket·is·ready,·don’t·mark·it·as177 <p>If·you’re·really·not·certain·if·a·ticket·is·ready,·don’t·mark·it·as
177 such.·Leave·a·comment·instead,·letting·others·know·your·thoughts.··If·you’re178 such.·Leave·a·comment·instead,·letting·others·know·your·thoughts.··If·you’re
Offset 180, 17 lines modifiedOffset 181, 17 lines modified
180 </li>181 </li>
181 <li><p><strong>Wait·for·feedback,·and·respond·to·feedback·that·you·receive</strong></p>182 <li><p><strong>Wait·for·feedback,·and·respond·to·feedback·that·you·receive</strong></p>
182 <p>Focus·on·one·or·two·tickets,·see·them·through·from·start·to·finish,·and183 <p>Focus·on·one·or·two·tickets,·see·them·through·from·start·to·finish,·and
183 repeat.·The·shotgun·approach·of·taking·on·lots·of·tickets·and·letting·some184 repeat.·The·shotgun·approach·of·taking·on·lots·of·tickets·and·letting·some
184 fall·by·the·wayside·ends·up·doing·more·harm·than·good.</p>185 fall·by·the·wayside·ends·up·doing·more·harm·than·good.</p>
185 </li>186 </li>
186 <li><p><strong>Be·rigorous</strong></p>187 <li><p><strong>Be·rigorous</strong></p>
187 <p>When·we·say·<span·class="target"·id="index-0"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0008/"><strong>PEP·8</strong></a>,·and·must·have·docs·and·tests,·we·mean·it.·If·a·patch188 <p>When·we·say·«<span·class="target"·id="index-0"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0008/"><strong>PEP·8</strong></a>,·and·must·have·docs·and·tests»,·we·mean·it.·If·a·patch
188 doesn’t·have·docs·and·tests,·there·had·better·be·a·good·reason.·Arguments189 doesn’t·have·docs·and·tests,·there·had·better·be·a·good·reason.·Arguments
189 like·I·couldn’t·find·any·existing·tests·of·this·feature·don’t·carry·much190 like·«I·couldn’t·find·any·existing·tests·of·this·feature»·don’t·carry·much
190 weight–while·it·may·be·true,·that·means·you·have·the·extra-important·job·of191 weight–while·it·may·be·true,·that·means·you·have·the·extra-important·job·of
191 writing·the·very·first·tests·for·that·feature,·not·that·you·get·a·pass·from192 writing·the·very·first·tests·for·that·feature,·not·that·you·get·a·pass·from
192 writing·tests·altogether.</p>193 writing·tests·altogether.</p>
193 </li>194 </li>
194 <li><p><strong>Be·patient</strong></p>195 <li><p><strong>Be·patient</strong></p>
195 <p>It’s·not·always·easy·for·your·ticket·or·your·patch·to·be·reviewed·quickly.196 <p>It’s·not·always·easy·for·your·ticket·or·your·patch·to·be·reviewed·quickly.
196 This·isn’t·personal.·There·are·a·lot·of·tickets·and·pull·requests·to·get197 This·isn’t·personal.·There·are·a·lot·of·tickets·and·pull·requests·to·get
Offset 224, 37 lines modifiedOffset 225, 37 lines modified
224 <li><a·class="reference·internal"·href="#guidelines">Guidelines</a></li>225 <li><a·class="reference·internal"·href="#guidelines">Guidelines</a></li>
225 </ul>226 </ul>
226 </li>227 </li>
227 </ul>228 </ul>
  
228 ··</div>229 ··</div>
229 ··<div>230 ··<div>
230 ····<h4>Previous·topic</h4>231 ····<h4>Argomento·precedente</h4>
231 ····<p·class="topless"><a·href="index.html"232 ····<p·class="topless"><a·href="index.html"
232 ··························title="previous·chapter">Contributing·to·Django</a></p>233 ··························title="capitolo·precedente">Contributing·to·Django</a></p>
233 ··</div>234 ··</div>
234 ··<div>235 ··<div>
235 ····<h4>Next·topic</h4>236 ····<h4>Argomento·successivo</h4>
236 ····<p·class="topless"><a·href="bugs-and-features.html"237 ····<p·class="topless"><a·href="bugs-and-features.html"
237 ··························title="next·chapter">Reporting·bugs·and·requesting·features</a></p>238 ··························title="capitolo·successivo">Reporting·bugs·and·requesting·features</a></p>
238 ··</div>239 ··</div>
239 <search·id="searchbox"·style="display:·none"·role="search">240 <search·id="searchbox"·style="display:·none"·role="search">
240 ··<h3·id="searchlabel">Quick·search</h3>241 ··<h3·id="searchlabel">Ricerca·veloce</h3>
241 ····<div·class="searchformwrapper">242 ····<div·class="searchformwrapper">
242 ····<form·class="search"·action="../../search.html"·method="get">243 ····<form·class="search"·action="../../search.html"·method="get">
Max diff block lines reached; 463/8325 bytes (5.56%) of diff not shown.
7.37 KB
html2text {}
Max HTML report size reached
42.2 KB
./usr/share/doc/python-django-doc/html/internals/contributing/triaging-tickets.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Triaging·tickets·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Triaging·tickets·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Writing·code"·href="writing-code/index.html"·/>15 ····<link·rel="next"·title="Writing·code"·href="writing-code/index.html"·/>
15 ····<link·rel="prev"·title="Reporting·bugs·and·requesting·features"·href="bugs-and-features.html"·/>16 ····<link·rel="prev"·title="Reporting·bugs·and·requesting·features"·href="bugs-and-features.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 91, 15 lines modifiedOffset 92, 15 lines modified
91 intentions··fertilize·the·weeds·and·poison·the·roses.·It’s·the·job·of·the92 intentions··fertilize·the·weeds·and·poison·the·roses.·It’s·the·job·of·the
92 community·as·a·whole·to·self-manage,·keep·the·problems·to·a·minimum,·and93 community·as·a·whole·to·self-manage,·keep·the·problems·to·a·minimum,·and
93 educate·those·coming·into·the·community·so·that·they·can·become·valuable94 educate·those·coming·into·the·community·so·that·they·can·become·valuable
94 contributing·members.</p>95 contributing·members.</p>
95 <p>Similarly,·while·we·aim·for·Trac·to·be·a·perfect·representation·of·the·state·of96 <p>Similarly,·while·we·aim·for·Trac·to·be·a·perfect·representation·of·the·state·of
96 Django’s·progress,·we·acknowledge·that·this·will·not·happen.·By·distributing97 Django’s·progress,·we·acknowledge·that·this·will·not·happen.·By·distributing
97 the·load·of·Trac·maintenance·to·the·community,·we·accept·that·there·will·be98 the·load·of·Trac·maintenance·to·the·community,·we·accept·that·there·will·be
98 mistakes.·Trac·is·mostly·accurate,·and·we·give·allowances·for·the·fact·that99 mistakes.·Trac·is·«mostly·accurate»,·and·we·give·allowances·for·the·fact·that
99 sometimes·it·will·be·wrong.·That’s·okay.·We’re·perfectionists·with·deadlines.</p>100 sometimes·it·will·be·wrong.·That’s·okay.·We’re·perfectionists·with·deadlines.</p>
100 <p>We·rely·on·the·community·to·keep·participating,·keep·tickets·as·accurate·as101 <p>We·rely·on·the·community·to·keep·participating,·keep·tickets·as·accurate·as
101 possible,·and·raise·issues·for·discussion·on·our·mailing·lists·when·there·is102 possible,·and·raise·issues·for·discussion·on·our·mailing·lists·when·there·is
102 confusion·or·disagreement.</p>103 confusion·or·disagreement.</p>
103 <p>Django·is·a·community·project,·and·every·contribution·helps.·We·can’t·do·this104 <p>Django·is·a·community·project,·and·every·contribution·helps.·We·can’t·do·this
104 without·<strong>you</strong>!</p>105 without·<strong>you</strong>!</p>
105 <section·id="s-triage-workflow">106 <section·id="s-triage-workflow">
Offset 127, 24 lines modifiedOffset 128, 24 lines modified
127 Django·is·a·community·project,·and·we·encourage·<a·class="reference·internal"·href="#how-can-i-help-with-triaging"><span·class="std·std-ref">triage·by·the128 Django·is·a·community·project,·and·we·encourage·<a·class="reference·internal"·href="#how-can-i-help-with-triaging"><span·class="std·std-ref">triage·by·the
128 community</span></a>.</p></li>129 community</span></a>.</p></li>
129 </ul>130 </ul>
130 <p>By·way·of·example,·here·we·see·the·lifecycle·of·an·average·ticket:</p>131 <p>By·way·of·example,·here·we·see·the·lifecycle·of·an·average·ticket:</p>
131 <ul·class="simple">132 <ul·class="simple">
132 <li><p>Alice·creates·a·ticket·and·sends·an·incomplete·pull·request·(no·tests,133 <li><p>Alice·creates·a·ticket·and·sends·an·incomplete·pull·request·(no·tests,
133 incorrect·implementation).</p></li>134 incorrect·implementation).</p></li>
134 <li><p>Bob·reviews·the·pull·request,·marks·the·ticket·as·Accepted,·needs·tests,135 <li><p>Bob·reviews·the·pull·request,·marks·the·ticket·as·«Accepted»,·«needs·tests»,
135 and·patch·needs·improvement,·and·leaves·a·comment·telling·Alice·how·the136 and·«patch·needs·improvement»,·and·leaves·a·comment·telling·Alice·how·the
136 patch·could·be·improved.</p></li>137 patch·could·be·improved.</p></li>
137 <li><p>Alice·updates·the·pull·request,·adding·tests·(but·not·changing·the138 <li><p>Alice·updates·the·pull·request,·adding·tests·(but·not·changing·the
138 implementation).·She·removes·the·two·flags.</p></li>139 implementation).·She·removes·the·two·flags.</p></li>
139 <li><p>Charlie·reviews·the·pull·request·and·resets·the·patch·needs·improvement140 <li><p>Charlie·reviews·the·pull·request·and·resets·the·«patch·needs·improvement»
140 flag·with·another·comment·about·improving·the·implementation.</p></li>141 flag·with·another·comment·about·improving·the·implementation.</p></li>
141 <li><p>Alice·updates·the·pull·request,·fixing·the·implementation.·She·removes·the142 <li><p>Alice·updates·the·pull·request,·fixing·the·implementation.·She·removes·the
142 patch·needs·improvement·flag.</p></li>143 «patch·needs·improvement»·flag.</p></li>
143 <li><p>Daisy·reviews·the·pull·request·and·marks·the·ticket·as·Ready·for·checkin.</p></li>144 <li><p>Daisy·reviews·the·pull·request·and·marks·the·ticket·as·«Ready·for·checkin».</p></li>
144 <li><p>Jacob,·a·<a·class="reference·internal"·href="../organization.html#mergers-team"><span·class="std·std-ref">merger</span></a>,·reviews·the·pull·request·and·merges145 <li><p>Jacob,·a·<a·class="reference·internal"·href="../organization.html#mergers-team"><span·class="std·std-ref">merger</span></a>,·reviews·the·pull·request·and·merges
145 it.</p></li>146 it.</p></li>
146 </ul>147 </ul>
147 <p>Some·tickets·require·much·less·feedback·than·this,·but·then·again·some·tickets148 <p>Some·tickets·require·much·less·feedback·than·this,·but·then·again·some·tickets
148 require·much·much·more.</p>149 require·much·much·more.</p>
149 </section>150 </section>
150 <section·id="s-triage-stages">151 <section·id="s-triage-stages">
Offset 155, 15 lines modifiedOffset 156, 15 lines modified
155 <span·id="unreviewed"></span><h3>Unreviewed<a·class="headerlink"·href="#unreviewed"·title="Link·to·this·heading">¶</a></h3>156 <span·id="unreviewed"></span><h3>Unreviewed<a·class="headerlink"·href="#unreviewed"·title="Link·to·this·heading">¶</a></h3>
156 <p>The·ticket·has·not·been·reviewed·by·anyone·who·felt·qualified·to·make·a157 <p>The·ticket·has·not·been·reviewed·by·anyone·who·felt·qualified·to·make·a
157 judgment·about·whether·the·ticket·contained·a·valid·issue,·a·viable·feature,158 judgment·about·whether·the·ticket·contained·a·valid·issue,·a·viable·feature,
158 or·ought·to·be·closed·for·any·of·the·various·reasons.</p>159 or·ought·to·be·closed·for·any·of·the·various·reasons.</p>
159 </section>160 </section>
160 <section·id="s-accepted">161 <section·id="s-accepted">
161 <span·id="accepted"></span><h3>Accepted<a·class="headerlink"·href="#accepted"·title="Link·to·this·heading">¶</a></h3>162 <span·id="accepted"></span><h3>Accepted<a·class="headerlink"·href="#accepted"·title="Link·to·this·heading">¶</a></h3>
162 <p>The·big·gray·area!·The·absolute·meaning·of·accepted·is·that·the·issue163 <p>The·big·gray·area!·The·absolute·meaning·of·«accepted»·is·that·the·issue
163 described·in·the·ticket·is·valid·and·is·in·some·stage·of·being·worked·on.164 described·in·the·ticket·is·valid·and·is·in·some·stage·of·being·worked·on.
164 Beyond·that·there·are·several·considerations:</p>165 Beyond·that·there·are·several·considerations:</p>
165 <ul>166 <ul>
166 <li><p><strong>Accepted·+·No·Flags</strong></p>167 <li><p><strong>Accepted·+·No·Flags</strong></p>
167 <p>The·ticket·is·valid,·but·no·one·has·submitted·a·patch·for·it·yet.·Often·this168 <p>The·ticket·is·valid,·but·no·one·has·submitted·a·patch·for·it·yet.·Often·this
168 means·you·could·safely·start·writing·a·patch·for·it.·This·is·generally·more169 means·you·could·safely·start·writing·a·patch·for·it.·This·is·generally·more
169 true·for·the·case·of·accepted·bugs·than·accepted·features.·A·ticket·for·a·bug170 true·for·the·case·of·accepted·bugs·than·accepted·features.·A·ticket·for·a·bug
Offset 178, 16 lines modifiedOffset 179, 16 lines modified
178 <p>The·ticket·is·waiting·for·people·to·review·the·supplied·patch.·This·means179 <p>The·ticket·is·waiting·for·people·to·review·the·supplied·patch.·This·means
179 downloading·the·patch·and·trying·it·out,·verifying·that·it·contains·tests180 downloading·the·patch·and·trying·it·out,·verifying·that·it·contains·tests
180 and·docs,·running·the·test·suite·with·the·included·patch,·and·leaving181 and·docs,·running·the·test·suite·with·the·included·patch,·and·leaving
181 feedback·on·the·ticket.</p>182 feedback·on·the·ticket.</p>
182 </li>183 </li>
183 <li><p><strong>Accepted·+·Has·Patch·+·Needs·…</strong></p>184 <li><p><strong>Accepted·+·Has·Patch·+·Needs·…</strong></p>
184 <p>This·means·the·ticket·has·been·reviewed,·and·has·been·found·to·need·further185 <p>This·means·the·ticket·has·been·reviewed,·and·has·been·found·to·need·further
185 work.·Needs·tests·and·Needs·documentation·are·self-explanatory.·Patch186 work.·«Needs·tests»·and·«Needs·documentation»·are·self-explanatory.·«Patch
186 needs·improvement·will·generally·be·accompanied·by·a·comment·on·the·ticket187 needs·improvement»·will·generally·be·accompanied·by·a·comment·on·the·ticket
187 explaining·what·is·needed·to·improve·the·code.</p>188 explaining·what·is·needed·to·improve·the·code.</p>
188 </li>189 </li>
189 </ul>190 </ul>
190 </section>191 </section>
191 <section·id="s-ready-for-checkin">192 <section·id="s-ready-for-checkin">
192 <span·id="ready-for-checkin"></span><h3>Ready·For·Checkin<a·class="headerlink"·href="#ready-for-checkin"·title="Link·to·this·heading">¶</a></h3>193 <span·id="ready-for-checkin"></span><h3>Ready·For·Checkin<a·class="headerlink"·href="#ready-for-checkin"·title="Link·to·this·heading">¶</a></h3>
193 <p>The·ticket·was·reviewed·by·any·member·of·the·community·other·than·the·person194 <p>The·ticket·was·reviewed·by·any·member·of·the·community·other·than·the·person
Offset 211, 15 lines modifiedOffset 212, 15 lines modified
211 <section·id="s-other-triage-attributes">212 <section·id="s-other-triage-attributes">
212 <span·id="other-triage-attributes"></span><h2>Other·triage·attributes<a·class="headerlink"·href="#other-triage-attributes"·title="Link·to·this·heading">¶</a></h2>213 <span·id="other-triage-attributes"></span><h2>Other·triage·attributes<a·class="headerlink"·href="#other-triage-attributes"·title="Link·to·this·heading">¶</a></h2>
213 <p>A·number·of·flags,·appearing·as·checkboxes·in·Trac,·can·be·set·on·a·ticket:</p>214 <p>A·number·of·flags,·appearing·as·checkboxes·in·Trac,·can·be·set·on·a·ticket:</p>
214 <section·id="s-has-patch">215 <section·id="s-has-patch">
215 <span·id="has-patch"></span><h3>Has·patch<a·class="headerlink"·href="#has-patch"·title="Link·to·this·heading">¶</a></h3>216 <span·id="has-patch"></span><h3>Has·patch<a·class="headerlink"·href="#has-patch"·title="Link·to·this·heading">¶</a></h3>
216 <p>This·means·the·ticket·has·an·associated217 <p>This·means·the·ticket·has·an·associated
217 <a·class="reference·internal"·href="writing-code/submitting-patches.html"><span·class="doc">patch</span></a>.·These·will·be·reviewed218 <a·class="reference·internal"·href="writing-code/submitting-patches.html"><span·class="doc">patch</span></a>.·These·will·be·reviewed
218 to·see·if·the·patch·is·good.</p>219 to·see·if·the·patch·is·«good».</p>
219 <p>The·following·three·fields·(Needs·documentation,·Needs·tests,220 <p>The·following·three·fields·(Needs·documentation,·Needs·tests,
220 Patch·needs·improvement)·apply·only·if·a·patch·has·been·supplied.</p>221 Patch·needs·improvement)·apply·only·if·a·patch·has·been·supplied.</p>
221 </section>222 </section>
222 <section·id="s-needs-documentation">223 <section·id="s-needs-documentation">
223 <span·id="needs-documentation"></span><h3>Needs·documentation<a·class="headerlink"·href="#needs-documentation"·title="Link·to·this·heading">¶</a></h3>224 <span·id="needs-documentation"></span><h3>Needs·documentation<a·class="headerlink"·href="#needs-documentation"·title="Link·to·this·heading">¶</a></h3>
Max diff block lines reached; 15239/23652 bytes (64.43%) of diff not shown.
18.9 KB
html2text {}
Max HTML report size reached
13.8 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/coding-style.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Coding·style·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Coding·style·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Unit·tests"·href="unit-tests.html"·/>15 ····<link·rel="next"·title="Unit·tests"·href="unit-tests.html"·/>
15 ····<link·rel="prev"·title="Writing·code"·href="index.html"·/>16 ····<link·rel="prev"·title="Writing·code"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 173, 15 lines modifiedOffset 174, 15 lines modified
173 </div>174 </div>
174 <p>f-strings·should·not·be·used·for·any·string·that·may·require·translation,175 <p>f-strings·should·not·be·used·for·any·string·that·may·require·translation,
175 including·error·and·logging·messages.·In·general·<code·class="docutils·literal·notranslate"><span·class="pre">format()</span></code>·is·more176 including·error·and·logging·messages.·In·general·<code·class="docutils·literal·notranslate"><span·class="pre">format()</span></code>·is·more
176 verbose,·so·the·other·formatting·methods·are·preferred.</p>177 verbose,·so·the·other·formatting·methods·are·preferred.</p>
177 <p>Don’t·waste·time·doing·unrelated·refactoring·of·existing·code·to·adjust·the178 <p>Don’t·waste·time·doing·unrelated·refactoring·of·existing·code·to·adjust·the
178 formatting·method.</p>179 formatting·method.</p>
179 </li>180 </li>
180 <li><p>Avoid·use·of·we·in·comments,·e.g.·Loop·over·rather·than·We·loop·over.</p></li>181 <li><p>Avoid·use·of·«we»·in·comments,·e.g.·«Loop·over»·rather·than·«We·loop·over».</p></li>
181 <li><p>Use·underscores,·not·camelCase,·for·variable,·function·and·method·names182 <li><p>Use·underscores,·not·camelCase,·for·variable,·function·and·method·names
182 (i.e.·<code·class="docutils·literal·notranslate"><span·class="pre">poll.get_unique_voters()</span></code>,·not·<code·class="docutils·literal·notranslate"><span·class="pre">poll.getUniqueVoters()</span></code>).</p></li>183 (i.e.·<code·class="docutils·literal·notranslate"><span·class="pre">poll.get_unique_voters()</span></code>,·not·<code·class="docutils·literal·notranslate"><span·class="pre">poll.getUniqueVoters()</span></code>).</p></li>
183 <li><p>Use·<code·class="docutils·literal·notranslate"><span·class="pre">InitialCaps</span></code>·for·class·names·(or·for·factory·functions·that184 <li><p>Use·<code·class="docutils·literal·notranslate"><span·class="pre">InitialCaps</span></code>·for·class·names·(or·for·factory·functions·that
184 return·classes).</p></li>185 return·classes).</p></li>
185 <li><p>In·docstrings,·follow·the·style·of·existing·docstrings·and·<span·class="target"·id="index-4"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0257/"><strong>PEP·257</strong></a>.</p></li>186 <li><p>In·docstrings,·follow·the·style·of·existing·docstrings·and·<span·class="target"·id="index-4"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0257/"><strong>PEP·257</strong></a>.</p></li>
186 <li><p>In·tests,·use187 <li><p>In·tests,·use
187 <a·class="reference·internal"·href="../../../topics/testing/tools.html#django.test.SimpleTestCase.assertRaisesMessage"·title="django.test.SimpleTestCase.assertRaisesMessage"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertRaisesMessage()</span></code></a>·and188 <a·class="reference·internal"·href="../../../topics/testing/tools.html#django.test.SimpleTestCase.assertRaisesMessage"·title="django.test.SimpleTestCase.assertRaisesMessage"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertRaisesMessage()</span></code></a>·and
Offset 193, 15 lines modifiedOffset 194, 15 lines modified
193 expression·matching.</p>194 expression·matching.</p>
194 <p>Use·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertIs"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertIs(…,</span>·<span·class="pre">True/False)</span></code></a>·for·testing195 <p>Use·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertIs"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertIs(…,</span>·<span·class="pre">True/False)</span></code></a>·for·testing
195 boolean·values,·rather·than·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertTrue"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertTrue()</span></code></a>·and196 boolean·values,·rather·than·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertTrue"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertTrue()</span></code></a>·and
196 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertFalse"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertFalse()</span></code></a>,·so·you·can·check·the·actual·boolean197 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertFalse"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertFalse()</span></code></a>,·so·you·can·check·the·actual·boolean
197 value,·not·the·truthiness·of·the·expression.</p>198 value,·not·the·truthiness·of·the·expression.</p>
198 </li>199 </li>
199 <li><p>In·test·docstrings,·state·the·expected·behavior·that·each·test·demonstrates.200 <li><p>In·test·docstrings,·state·the·expected·behavior·that·each·test·demonstrates.
200 Don’t·include·preambles·such·as·Tests·that·or·Ensures·that.</p>201 Don’t·include·preambles·such·as·«Tests·that»·or·«Ensures·that».</p>
201 <p>Reserve·ticket·references·for·obscure·issues·where·the·ticket·has·additional202 <p>Reserve·ticket·references·for·obscure·issues·where·the·ticket·has·additional
202 details·that·can’t·be·easily·described·in·docstrings·or·comments.·Include·the203 details·that·can’t·be·easily·described·in·docstrings·or·comments.·Include·the
203 ticket·number·at·the·end·of·a·sentence·like·this:</p>204 ticket·number·at·the·end·of·a·sentence·like·this:</p>
204 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">def</span>·<span·class="nf">test_foo</span><span·class="p">():</span>205 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">def</span>·<span·class="nf">test_foo</span><span·class="p">():</span>
205 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>206 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
206 <span·class="sd">····A·test·docstring·looks·like·this·(#123456).</span>207 <span·class="sd">····A·test·docstring·looks·like·this·(#123456).</span>
207 <span·class="sd">····&quot;&quot;&quot;</span>208 <span·class="sd">····&quot;&quot;&quot;</span>
Offset 448, 15 lines modifiedOffset 449, 15 lines modified
448 silence·the·flake8·warning.</p></li>449 silence·the·flake8·warning.</p></li>
449 <li><p>Systematically·remove·all·trailing·whitespaces·from·your·code·as·those450 <li><p>Systematically·remove·all·trailing·whitespaces·from·your·code·as·those
450 add·unnecessary·bytes,·add·visual·clutter·to·the·patches·and·can·also451 add·unnecessary·bytes,·add·visual·clutter·to·the·patches·and·can·also
451 occasionally·cause·unnecessary·merge·conflicts.·Some·IDE’s·can·be452 occasionally·cause·unnecessary·merge·conflicts.·Some·IDE’s·can·be
452 configured·to·automatically·remove·them·and·most·VCS·tools·can·be·set·to453 configured·to·automatically·remove·them·and·most·VCS·tools·can·be·set·to
453 highlight·them·in·diff·outputs.</p></li>454 highlight·them·in·diff·outputs.</p></li>
454 <li><p>Please·don’t·put·your·name·in·the·code·you·contribute.·Our·policy·is·to455 <li><p>Please·don’t·put·your·name·in·the·code·you·contribute.·Our·policy·is·to
455 keep·contributors·names·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHORS</span></code>·file·distributed·with·Django456 keep·contributors·names·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHORS</span></code>·file·distributed·with·Django
456 ·not·scattered·throughout·the·codebase·itself.·Feel·free·to·include·a457 ·not·scattered·throughout·the·codebase·itself.·Feel·free·to·include·a
457 change·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHORS</span></code>·file·in·your·patch·if·you·make·more·than·a458 change·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTHORS</span></code>·file·in·your·patch·if·you·make·more·than·a
458 single·trivial·change.</p></li>459 single·trivial·change.</p></li>
459 </ul>460 </ul>
460 </section>461 </section>
461 <section·id="s-javascript-style">462 <section·id="s-javascript-style">
462 <span·id="javascript-style"></span><h2>JavaScript·style<a·class="headerlink"·href="#javascript-style"·title="Link·to·this·heading">¶</a></h2>463 <span·id="javascript-style"></span><h2>JavaScript·style<a·class="headerlink"·href="#javascript-style"·title="Link·to·this·heading">¶</a></h2>
Offset 490, 37 lines modifiedOffset 491, 37 lines modified
490 <li><a·class="reference·internal"·href="#javascript-style">JavaScript·style</a></li>491 <li><a·class="reference·internal"·href="#javascript-style">JavaScript·style</a></li>
491 </ul>492 </ul>
492 </li>493 </li>
493 </ul>494 </ul>
  
494 ··</div>495 ··</div>
495 ··<div>496 ··<div>
496 ····<h4>Previous·topic</h4>497 ····<h4>Argomento·precedente</h4>
497 ····<p·class="topless"><a·href="index.html"498 ····<p·class="topless"><a·href="index.html"
498 ··························title="previous·chapter">Writing·code</a></p>499 ··························title="capitolo·precedente">Writing·code</a></p>
499 ··</div>500 ··</div>
500 ··<div>501 ··<div>
501 ····<h4>Next·topic</h4>502 ····<h4>Argomento·successivo</h4>
502 ····<p·class="topless"><a·href="unit-tests.html"503 ····<p·class="topless"><a·href="unit-tests.html"
503 ··························title="next·chapter">Unit·tests</a></p>504 ··························title="capitolo·successivo">Unit·tests</a></p>
504 ··</div>505 ··</div>
505 <search·id="searchbox"·style="display:·none"·role="search">506 <search·id="searchbox"·style="display:·none"·role="search">
506 ··<h3·id="searchlabel">Quick·search</h3>507 ··<h3·id="searchlabel">Ricerca·veloce</h3>
507 ····<div·class="searchformwrapper">508 ····<div·class="searchformwrapper">
508 ····<form·class="search"·action="../../../search.html"·method="get">509 ····<form·class="search"·action="../../../search.html"·method="get">
509 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>510 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
510 ······<input·type="submit"·value="Go"·/>511 ······<input·type="submit"·value="Vai"·/>
511 ····</form>512 ····</form>
512 ····</div>513 ····</div>
513 </search>514 </search>
514 <script>document.getElementById('searchbox').style.display·=·"block"</script>515 <script>document.getElementById('searchbox').style.display·=·"block"</script>
515 ········</div>516 ········</div>
516 ······</div>517 ······</div>
517 ··············<h3>Last·update:</h3>518 ··············<h3>Last·update:</h3>
518 ··············<p·class="topless">Sep·03,·2024</p>519 ··············<p·class="topless">set·03,·2024</p>
519 ··········</div>520 ··········</div>
520 ········521 ········
521 ······522 ······
522 ····</div>523 ····</div>
  
523 ····<div·id="ft">524 ····<div·id="ft">
524 ······<div·class="nav">525 ······<div·class="nav">
5.41 KB
html2text {}
Max HTML report size reached
5.96 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·code·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·code·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Coding·style"·href="coding-style.html"·/>15 ····<link·rel="next"·title="Coding·style"·href="coding-style.html"·/>
15 ····<link·rel="prev"·title="Triaging·tickets"·href="../triaging-tickets.html"·/>16 ····<link·rel="prev"·title="Triaging·tickets"·href="../triaging-tickets.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 ······118 ······
118 ········119 ········
119 ··········<div·class="yui-b"·id="sidebar">120 ··········<div·class="yui-b"·id="sidebar">
120 ············121 ············
121 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">122 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
122 ········<div·class="sphinxsidebarwrapper">123 ········<div·class="sphinxsidebarwrapper">
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="../triaging-tickets.html"126 ····<p·class="topless"><a·href="../triaging-tickets.html"
126 ··························title="previous·chapter">Triaging·tickets</a></p>127 ··························title="capitolo·precedente">Triaging·tickets</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="coding-style.html"131 ····<p·class="topless"><a·href="coding-style.html"
131 ··························title="next·chapter">Coding·style</a></p>132 ··························title="capitolo·successivo">Coding·style</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../../../search.html"·method="get">137 ····<form·class="search"·action="../../../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.01 KB
html2text {}
Max HTML report size reached
5.99 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/javascript.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>JavaScript·&#8212;·Django·4.2.16·documentation</title>6 ····<title>JavaScript·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Writing·documentation"·href="../writing-documentation.html"·/>15 ····<link·rel="next"·title="Writing·documentation"·href="../writing-documentation.html"·/>
15 ····<link·rel="prev"·title="Working·with·Git·and·GitHub"·href="working-with-git.html"·/>16 ····<link·rel="prev"·title="Working·with·Git·and·GitHub"·href="working-with-git.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 239, 37 lines modifiedOffset 240, 37 lines modified
239 </li>240 </li>
240 </ul>241 </ul>
241 </li>242 </li>
242 </ul>243 </ul>
  
243 ··</div>244 ··</div>
244 ··<div>245 ··<div>
245 ····<h4>Previous·topic</h4>246 ····<h4>Argomento·precedente</h4>
246 ····<p·class="topless"><a·href="working-with-git.html"247 ····<p·class="topless"><a·href="working-with-git.html"
247 ··························title="previous·chapter">Working·with·Git·and·GitHub</a></p>248 ··························title="capitolo·precedente">Working·with·Git·and·GitHub</a></p>
248 ··</div>249 ··</div>
249 ··<div>250 ··<div>
250 ····<h4>Next·topic</h4>251 ····<h4>Argomento·successivo</h4>
251 ····<p·class="topless"><a·href="../writing-documentation.html"252 ····<p·class="topless"><a·href="../writing-documentation.html"
252 ··························title="next·chapter">Writing·documentation</a></p>253 ··························title="capitolo·successivo">Writing·documentation</a></p>
253 ··</div>254 ··</div>
254 <search·id="searchbox"·style="display:·none"·role="search">255 <search·id="searchbox"·style="display:·none"·role="search">
255 ··<h3·id="searchlabel">Quick·search</h3>256 ··<h3·id="searchlabel">Ricerca·veloce</h3>
256 ····<div·class="searchformwrapper">257 ····<div·class="searchformwrapper">
257 ····<form·class="search"·action="../../../search.html"·method="get">258 ····<form·class="search"·action="../../../search.html"·method="get">
258 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>259 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
259 ······<input·type="submit"·value="Go"·/>260 ······<input·type="submit"·value="Vai"·/>
260 ····</form>261 ····</form>
261 ····</div>262 ····</div>
262 </search>263 </search>
263 <script>document.getElementById('searchbox').style.display·=·"block"</script>264 <script>document.getElementById('searchbox').style.display·=·"block"</script>
264 ········</div>265 ········</div>
265 ······</div>266 ······</div>
266 ··············<h3>Last·update:</h3>267 ··············<h3>Last·update:</h3>
267 ··············<p·class="topless">Sep·03,·2024</p>268 ··············<p·class="topless">set·03,·2024</p>
268 ··········</div>269 ··········</div>
269 ········270 ········
270 ······271 ······
271 ····</div>272 ····</div>
  
272 ····<div·id="ft">273 ····<div·id="ft">
273 ······<div·class="nav">274 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
32.3 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/submitting-patches.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Submitting·patches·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Submitting·patches·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Working·with·Git·and·GitHub"·href="working-with-git.html"·/>15 ····<link·rel="next"·title="Working·with·Git·and·GitHub"·href="working-with-git.html"·/>
15 ····<link·rel="prev"·title="Unit·tests"·href="unit-tests.html"·/>16 ····<link·rel="prev"·title="Unit·tests"·href="unit-tests.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 86, 50 lines modifiedOffset 87, 50 lines modified
86 <span·id="typo-fixes-and-trivial-documentation-changes"></span><h2>Typo·fixes·and·trivial·documentation·changes<a·class="headerlink"·href="#typo-fixes-and-trivial-documentation-changes"·title="Link·to·this·heading">¶</a></h2>87 <span·id="typo-fixes-and-trivial-documentation-changes"></span><h2>Typo·fixes·and·trivial·documentation·changes<a·class="headerlink"·href="#typo-fixes-and-trivial-documentation-changes"·title="Link·to·this·heading">¶</a></h2>
87 <p>If·you·are·fixing·a·really·trivial·issue,·for·example·changing·a·word·in·the88 <p>If·you·are·fixing·a·really·trivial·issue,·for·example·changing·a·word·in·the
88 documentation,·the·preferred·way·to·provide·the·patch·is·using·GitHub·pull89 documentation,·the·preferred·way·to·provide·the·patch·is·using·GitHub·pull
89 requests·without·a·Trac·ticket.</p>90 requests·without·a·Trac·ticket.</p>
90 <p>See·the·<a·class="reference·internal"·href="working-with-git.html"><span·class="doc">Working·with·Git·and·GitHub</span></a>·for·more·details·on·how·to·use·pull·requests.</p>91 <p>See·the·<a·class="reference·internal"·href="working-with-git.html"><span·class="doc">Working·with·Git·and·GitHub</span></a>·for·more·details·on·how·to·use·pull·requests.</p>
91 </section>92 </section>
92 <section·id="s-claiming-tickets">93 <section·id="s-claiming-tickets">
93 <span·id="claiming-tickets"></span><h2>Claiming·tickets<a·class="headerlink"·href="#claiming-tickets"·title="Link·to·this·heading">¶</a></h2>94 <span·id="claiming-tickets"></span><h2>«Claiming»·tickets<a·class="headerlink"·href="#claiming-tickets"·title="Link·to·this·heading">¶</a></h2>
94 <p>In·an·open-source·project·with·hundreds·of·contributors·around·the·world,·it’s95 <p>In·an·open-source·project·with·hundreds·of·contributors·around·the·world,·it’s
95 important·to·manage·communication·efficiently·so·that·work·doesn’t·get96 important·to·manage·communication·efficiently·so·that·work·doesn’t·get
96 duplicated·and·contributors·can·be·as·effective·as·possible.</p>97 duplicated·and·contributors·can·be·as·effective·as·possible.</p>
97 <p>Hence,·our·policy·is·for·contributors·to·claim·tickets·in·order·to·let·other98 <p>Hence,·our·policy·is·for·contributors·to·«claim»·tickets·in·order·to·let·other
98 developers·know·that·a·particular·bug·or·feature·is·being·worked·on.</p>99 developers·know·that·a·particular·bug·or·feature·is·being·worked·on.</p>
99 <p>If·you·have·identified·a·contribution·you·want·to·make·and·you’re·capable·of100 <p>If·you·have·identified·a·contribution·you·want·to·make·and·you’re·capable·of
100 fixing·it·(as·measured·by·your·coding·ability,·knowledge·of·Django·internals101 fixing·it·(as·measured·by·your·coding·ability,·knowledge·of·Django·internals
101 and·time·availability),·claim·it·by·following·these·steps:</p>102 and·time·availability),·claim·it·by·following·these·steps:</p>
102 <ul·class="simple">103 <ul·class="simple">
103 <li><p><a·class="reference·external"·href="https://code.djangoproject.com/github/login">Login·using·your·GitHub·account</a>·or·<a·class="reference·external"·href="https://www.djangoproject.com/accounts/register/">create·an·account</a>·in·our·ticket104 <li><p><a·class="reference·external"·href="https://code.djangoproject.com/github/login">Login·using·your·GitHub·account</a>·or·<a·class="reference·external"·href="https://www.djangoproject.com/accounts/register/">create·an·account</a>·in·our·ticket
104 system.·If·you·have·an·account·but·have·forgotten·your·password,·you·can105 system.·If·you·have·an·account·but·have·forgotten·your·password,·you·can
105 reset·it·using·the·<a·class="reference·external"·href="https://www.djangoproject.com/accounts/password/reset/">password·reset·page</a>.</p></li>106 reset·it·using·the·<a·class="reference·external"·href="https://www.djangoproject.com/accounts/password/reset/">password·reset·page</a>.</p></li>
106 <li><p>If·a·ticket·for·this·issue·doesn’t·exist·yet,·create·one·in·our107 <li><p>If·a·ticket·for·this·issue·doesn’t·exist·yet,·create·one·in·our
107 <a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>.</p></li>108 <a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>.</p></li>
108 <li><p>If·a·ticket·for·this·issue·already·exists,·make·sure·nobody·else·has109 <li><p>If·a·ticket·for·this·issue·already·exists,·make·sure·nobody·else·has
109 claimed·it.·To·do·this,·look·at·the·Owned·by·section·of·the·ticket.110 claimed·it.·To·do·this,·look·at·the·«Owned·by»·section·of·the·ticket.
110 If·it’s·assigned·to·nobody,·then·it’s·available·to·be·claimed.111 If·it’s·assigned·to·«nobody,»·then·it’s·available·to·be·claimed.
111 Otherwise,·somebody·else·may·be·working·on·this·ticket.·Either·find·another112 Otherwise,·somebody·else·may·be·working·on·this·ticket.·Either·find·another
112 bug/feature·to·work·on,·or·contact·the·developer·working·on·the·ticket·to113 bug/feature·to·work·on,·or·contact·the·developer·working·on·the·ticket·to
113 offer·your·help.·If·a·ticket·has·been·assigned·for·weeks·or·months·without114 offer·your·help.·If·a·ticket·has·been·assigned·for·weeks·or·months·without
114 any·activity,·it’s·probably·safe·to·reassign·it·to·yourself.</p></li>115 any·activity,·it’s·probably·safe·to·reassign·it·to·yourself.</p></li>
115 <li><p>Log·into·your·account,·if·you·haven’t·already,·by·clicking·GitHub·Login116 <li><p>Log·into·your·account,·if·you·haven’t·already,·by·clicking·«GitHub·Login»
116 or·DjangoProject·Login·in·the·upper·left·of·the·ticket·page.</p></li>117 or·«DjangoProject·Login»·in·the·upper·left·of·the·ticket·page.</p></li>
117 <li><p>Claim·the·ticket·by·clicking·the·assign·to·myself·radio·button·under118 <li><p>Claim·the·ticket·by·clicking·the·«assign·to·myself»·radio·button·under
118 Action·near·the·bottom·of·the·page,·then·click·Submit·changes.</p></li>119 «Action»·near·the·bottom·of·the·page,·then·click·«Submit·changes.»</p></li>
119 </ul>120 </ul>
120 <div·class="admonition·note">121 <div·class="admonition·note">
121 <p·class="admonition-title">Note</p>122 <p·class="admonition-title">Nota</p>
122 <p>The·Django·software·foundation·requests·that·anyone·contributing·more·than123 <p>The·Django·software·foundation·requests·that·anyone·contributing·more·than
123 a·trivial·patch·to·Django·sign·and·submit·a·<a·class="reference·external"·href="https://www.djangoproject.com/foundation/cla/">Contributor·License124 a·trivial·patch·to·Django·sign·and·submit·a·<a·class="reference·external"·href="https://www.djangoproject.com/foundation/cla/">Contributor·License
124 Agreement</a>,·this·ensures·that·the·Django·Software·Foundation·has·clear125 Agreement</a>,·this·ensures·that·the·Django·Software·Foundation·has·clear
125 license·to·all·contributions·allowing·for·a·clear·license·for·all·users.</p>126 license·to·all·contributions·allowing·for·a·clear·license·for·all·users.</p>
126 </div>127 </div>
127 <section·id="s-ticket-claimers-responsibility">128 <section·id="s-ticket-claimers-responsibility">
128 <span·id="ticket-claimers-responsibility"></span><h3>Ticket·claimers·responsibility<a·class="headerlink"·href="#ticket-claimers-responsibility"·title="Link·to·this·heading">¶</a></h3>129 <span·id="ticket-claimers-responsibility"></span><h3>Ticket·claimers·responsibility<a·class="headerlink"·href="#ticket-claimers-responsibility"·title="Link·to·this·heading">¶</a></h3>
129 <p>Once·you’ve·claimed·a·ticket,·you·have·a·responsibility·to·work·on·that·ticket130 <p>Once·you’ve·claimed·a·ticket,·you·have·a·responsibility·to·work·on·that·ticket
130 in·a·reasonably·timely·fashion.·If·you·don’t·have·time·to·work·on·it,·either131 in·a·reasonably·timely·fashion.·If·you·don’t·have·time·to·work·on·it,·either
131 unclaim·it·or·don’t·claim·it·in·the·first·place!</p>132 unclaim·it·or·don’t·claim·it·in·the·first·place!</p>
132 <p>If·there’s·no·sign·of·progress·on·a·particular·claimed·ticket·for·a·week·or133 <p>If·there’s·no·sign·of·progress·on·a·particular·claimed·ticket·for·a·week·or
133 two,·another·developer·may·ask·you·to·relinquish·the·ticket·claim·so·that·it’s134 two,·another·developer·may·ask·you·to·relinquish·the·ticket·claim·so·that·it’s
134 no·longer·monopolized·and·somebody·else·can·claim·it.</p>135 no·longer·monopolized·and·somebody·else·can·claim·it.</p>
135 <p>If·you’ve·claimed·a·ticket·and·it’s·taking·a·long·time·(days·or·weeks)·to·code,136 <p>If·you’ve·claimed·a·ticket·and·it’s·taking·a·long·time·(days·or·weeks)·to·code,
Offset 167, 33 lines modifiedOffset 168, 33 lines modified
167 <p>When·you·think·your·work·is·ready·to·be·reviewed,·send·<a·class="reference·internal"·href="working-with-git.html"><span·class="doc">a·GitHub·pull168 <p>When·you·think·your·work·is·ready·to·be·reviewed,·send·<a·class="reference·internal"·href="working-with-git.html"><span·class="doc">a·GitHub·pull
168 request</span></a>.·Please·review·the·patch·yourself·using·our169 request</span></a>.·Please·review·the·patch·yourself·using·our
169 <a·class="reference·internal"·href="#patch-review-checklist"><span·class="std·std-ref">patch·review·checklist</span></a>·first.</p>170 <a·class="reference·internal"·href="#patch-review-checklist"><span·class="std·std-ref">patch·review·checklist</span></a>·first.</p>
170 <p>If·you·can’t·send·a·pull·request·for·some·reason,·you·can·also·use·patches·in171 <p>If·you·can’t·send·a·pull·request·for·some·reason,·you·can·also·use·patches·in
171 Trac.·When·using·this·style,·follow·these·guidelines.</p>172 Trac.·When·using·this·style,·follow·these·guidelines.</p>
172 <ul·class="simple">173 <ul·class="simple">
173 <li><p>Submit·patches·in·the·format·returned·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">diff</span></code>·command.</p></li>174 <li><p>Submit·patches·in·the·format·returned·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">diff</span></code>·command.</p></li>
174 <li><p>Attach·patches·to·a·ticket·in·the·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·using·the·attach175 <li><p>Attach·patches·to·a·ticket·in·the·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·tracker</a>,·using·the·«attach
175 file·button.·Please·<em>don’t</em>·put·the·patch·in·the·ticket·description176 file»·button.·Please·<em>don’t</em>·put·the·patch·in·the·ticket·description
176 or·comment·unless·it’s·a·single·line·patch.</p></li>177 or·comment·unless·it’s·a·single·line·patch.</p></li>
177 <li><p>Name·the·patch·file·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">.diff</span></code>·extension;·this·will·let·the·ticket178 <li><p>Name·the·patch·file·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">.diff</span></code>·extension;·this·will·let·the·ticket
178 tracker·apply·correct·syntax·highlighting,·which·is·quite·helpful.</p></li>179 tracker·apply·correct·syntax·highlighting,·which·is·quite·helpful.</p></li>
179 </ul>180 </ul>
180 <p>Regardless·of·the·way·you·submit·your·work,·follow·these·steps.</p>181 <p>Regardless·of·the·way·you·submit·your·work,·follow·these·steps.</p>
181 <ul·class="simple">182 <ul·class="simple">
182 <li><p>Make·sure·your·code·fulfills·the·requirements·in·our·<a·class="reference·internal"·href="#patch-review-checklist"><span·class="std·std-ref">patch·review183 <li><p>Make·sure·your·code·fulfills·the·requirements·in·our·<a·class="reference·internal"·href="#patch-review-checklist"><span·class="std·std-ref">patch·review
183 checklist</span></a>.</p></li>184 checklist</span></a>.</p></li>
184 <li><p>Check·the·Has·patch·box·on·the·ticket·and·make·sure·the·Needs185 <li><p>Check·the·«Has·patch»·box·on·the·ticket·and·make·sure·the·«Needs
185 documentation,·Needs·tests,·and·Patch·needs·improvement·boxes·aren’t186 documentation»,·«Needs·tests»,·and·«Patch·needs·improvement»·boxes·aren’t
186 checked.·This·makes·the·ticket·appear·in·the·Patches·needing·review·queue187 checked.·This·makes·the·ticket·appear·in·the·«Patches·needing·review»·queue
187 on·the·<a·class="reference·external"·href="https://dashboard.djangoproject.com/">Development·dashboard</a>.</p></li>188 on·the·<a·class="reference·external"·href="https://dashboard.djangoproject.com/">Development·dashboard</a>.</p></li>
188 </ul>189 </ul>
189 </section>190 </section>
190 <section·id="s-non-trivial-patches">191 <section·id="s-non-trivial-patches">
191 <span·id="non-trivial-patches"></span><h2>Non-trivial·patches<a·class="headerlink"·href="#non-trivial-patches"·title="Link·to·this·heading">¶</a></h2>192 <span·id="non-trivial-patches"></span><h2>Non-trivial·patches<a·class="headerlink"·href="#non-trivial-patches"·title="Link·to·this·heading">¶</a></h2>
192 <p>A·non-trivial·patch·is·one·that·is·more·than·a·small·bug·fix.·It’s·a·patch193 <p>A·«non-trivial»·patch·is·one·that·is·more·than·a·small·bug·fix.·It’s·a·patch
193 that·introduces·Django·functionality·and·makes·some·sort·of·design·decision.</p>194 that·introduces·Django·functionality·and·makes·some·sort·of·design·decision.</p>
194 <p>If·you·provide·a·non-trivial·patch,·include·evidence·that·alternatives·have195 <p>If·you·provide·a·non-trivial·patch,·include·evidence·that·alternatives·have
195 been·discussed·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p>196 been·discussed·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/">Django·Forum</a>·or·<a·class="reference·internal"·href="../../mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>·list.</p>
196 <p>If·you’re·not·sure·whether·your·patch·should·be·considered·non-trivial,·ask·on197 <p>If·you’re·not·sure·whether·your·patch·should·be·considered·non-trivial,·ask·on
197 the·ticket·for·opinions.</p>198 the·ticket·for·opinions.</p>
198 </section>199 </section>
199 <section·id="s-deprecating-a-feature">200 <section·id="s-deprecating-a-feature">
Offset 281, 15 lines modifiedOffset 282, 15 lines modified
281 <p>Finally,·there·are·a·couple·of·updates·to·Django’s·documentation·to·make:</p>282 <p>Finally,·there·are·a·couple·of·updates·to·Django’s·documentation·to·make:</p>
282 <ol·class="arabic·simple">283 <ol·class="arabic·simple">
Max diff block lines reached; 7637/18382 bytes (41.55%) of diff not shown.
14.1 KB
html2text {}
Max HTML report size reached
6.35 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/unit-tests.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Unit·tests·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Unit·tests·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Submitting·patches"·href="submitting-patches.html"·/>15 ····<link·rel="next"·title="Submitting·patches"·href="submitting-patches.html"·/>
15 ····<link·rel="prev"·title="Coding·style"·href="coding-style.html"·/>16 ····<link·rel="prev"·title="Coding·style"·href="coding-style.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 825, 37 lines modifiedOffset 826, 37 lines modified
825 </li>826 </li>
826 </ul>827 </ul>
827 </li>828 </li>
828 </ul>829 </ul>
  
829 ··</div>830 ··</div>
830 ··<div>831 ··<div>
831 ····<h4>Previous·topic</h4>832 ····<h4>Argomento·precedente</h4>
832 ····<p·class="topless"><a·href="coding-style.html"833 ····<p·class="topless"><a·href="coding-style.html"
833 ··························title="previous·chapter">Coding·style</a></p>834 ··························title="capitolo·precedente">Coding·style</a></p>
834 ··</div>835 ··</div>
835 ··<div>836 ··<div>
836 ····<h4>Next·topic</h4>837 ····<h4>Argomento·successivo</h4>
837 ····<p·class="topless"><a·href="submitting-patches.html"838 ····<p·class="topless"><a·href="submitting-patches.html"
838 ··························title="next·chapter">Submitting·patches</a></p>839 ··························title="capitolo·successivo">Submitting·patches</a></p>
839 ··</div>840 ··</div>
840 <search·id="searchbox"·style="display:·none"·role="search">841 <search·id="searchbox"·style="display:·none"·role="search">
841 ··<h3·id="searchlabel">Quick·search</h3>842 ··<h3·id="searchlabel">Ricerca·veloce</h3>
842 ····<div·class="searchformwrapper">843 ····<div·class="searchformwrapper">
843 ····<form·class="search"·action="../../../search.html"·method="get">844 ····<form·class="search"·action="../../../search.html"·method="get">
844 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>845 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
845 ······<input·type="submit"·value="Go"·/>846 ······<input·type="submit"·value="Vai"·/>
846 ····</form>847 ····</form>
847 ····</div>848 ····</div>
848 </search>849 </search>
849 <script>document.getElementById('searchbox').style.display·=·"block"</script>850 <script>document.getElementById('searchbox').style.display·=·"block"</script>
850 ········</div>851 ········</div>
851 ······</div>852 ······</div>
852 ··············<h3>Last·update:</h3>853 ··············<h3>Last·update:</h3>
853 ··············<p·class="topless">Sep·03,·2024</p>854 ··············<p·class="topless">set·03,·2024</p>
854 ··········</div>855 ··········</div>
855 ········856 ········
856 ······857 ······
857 ····</div>858 ····</div>
  
858 ····<div·id="ft">859 ····<div·id="ft">
859 ······<div·class="nav">860 ······<div·class="nav">
2.48 KB
html2text {}
Max HTML report size reached
19.8 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-code/working-with-git.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Working·with·Git·and·GitHub·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Working·with·Git·and·GitHub·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="JavaScript"·href="javascript.html"·/>15 ····<link·rel="next"·title="JavaScript"·href="javascript.html"·/>
15 ····<link·rel="prev"·title="Submitting·patches"·href="submitting-patches.html"·/>16 ····<link·rel="prev"·title="Submitting·patches"·href="submitting-patches.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 102, 28 lines modifiedOffset 103, 28 lines modified
102 </div>103 </div>
103 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">user.name</span></code>·should·be·your·real·name,·not·your·GitHub·nick.·GitHub104 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">user.name</span></code>·should·be·your·real·name,·not·your·GitHub·nick.·GitHub
104 should·know·the·email·you·use·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">user.email</span></code>·field,·as·this·will·be105 should·know·the·email·you·use·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">user.email</span></code>·field,·as·this·will·be
105 used·to·associate·your·commits·with·your·GitHub·account.</p>106 used·to·associate·your·commits·with·your·GitHub·account.</p>
106 </section>107 </section>
107 <section·id="s-setting-up-local-repository">108 <section·id="s-setting-up-local-repository">
108 <span·id="setting-up-local-repository"></span><h2>Setting·up·local·repository<a·class="headerlink"·href="#setting-up-local-repository"·title="Link·to·this·heading">¶</a></h2>109 <span·id="setting-up-local-repository"></span><h2>Setting·up·local·repository<a·class="headerlink"·href="#setting-up-local-repository"·title="Link·to·this·heading">¶</a></h2>
109 <p>When·you·have·created·your·GitHub·account,·with·the·nick·GitHub_nick,·and110 <p>When·you·have·created·your·GitHub·account,·with·the·nick·«GitHub_nick»,·and
110 <a·class="reference·external"·href="https://github.com/django/django/fork">forked·Django’s·repository</a>,111 <a·class="reference·external"·href="https://github.com/django/django/fork">forked·Django’s·repository</a>,
111 create·a·local·copy·of·your·fork:</p>112 create·a·local·copy·of·your·fork:</p>
112 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>clone<span·class="w">·</span>https://github.com/GitHub_nick/django.git113 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>clone<span·class="w">·</span>https://github.com/GitHub_nick/django.git
113 </pre></div>114 </pre></div>
114 </div>115 </div>
115 <p>This·will·create·a·new·directory·django,·containing·a·clone·of·your·GitHub116 <p>This·will·create·a·new·directory·«django»,·containing·a·clone·of·your·GitHub
116 repository.·The·rest·of·the·git·commands·on·this·page·need·to·be·run·within·the117 repository.·The·rest·of·the·git·commands·on·this·page·need·to·be·run·within·the
117 cloned·directory,·so·switch·to·it·now:</p>118 cloned·directory,·so·switch·to·it·now:</p>
118 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">cd</span><span·class="w">·</span>django119 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">cd</span><span·class="w">·</span>django
119 </pre></div>120 </pre></div>
120 </div>121 </div>
121 <p>Your·GitHub·repository·will·be·called·origin·in·Git.</p>122 <p>Your·GitHub·repository·will·be·called·«origin»·in·Git.</p>
122 <p>You·should·also·set·up·<code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·as·an·upstream·remote·(that·is,·tell123 <p>You·should·also·set·up·<code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·as·an·«upstream»·remote·(that·is,·tell
123 git·that·the·reference·Django·repository·was·the·source·of·your·fork·of·it):</p>124 git·that·the·reference·Django·repository·was·the·source·of·your·fork·of·it):</p>
124 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>remote<span·class="w">·</span>add<span·class="w">·</span>upstream<span·class="w">·</span>https://github.com/django/django.git125 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>remote<span·class="w">·</span>add<span·class="w">·</span>upstream<span·class="w">·</span>https://github.com/django/django.git
125 git<span·class="w">·</span>fetch<span·class="w">·</span>upstream126 git<span·class="w">·</span>fetch<span·class="w">·</span>upstream
126 </pre></div>127 </pre></div>
127 </div>128 </div>
128 <p>You·can·add·other·remotes·similarly,·for·example:</p>129 <p>You·can·add·other·remotes·similarly,·for·example:</p>
129 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>remote<span·class="w">·</span>add<span·class="w">·</span>akaariai<span·class="w">·</span>https://github.com/akaariai/django.git130 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>remote<span·class="w">·</span>add<span·class="w">·</span>akaariai<span·class="w">·</span>https://github.com/akaariai/django.git
Offset 163, 19 lines modifiedOffset 164, 19 lines modified
163 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>push<span·class="w">·</span>origin<span·class="w">·</span>ticket_xxxxx164 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>push<span·class="w">·</span>origin<span·class="w">·</span>ticket_xxxxx
164 </pre></div>165 </pre></div>
165 </div>166 </div>
166 <p>When·you·go·to·your·GitHub·page,·you·will·notice·a·new·branch·has·been·created.</p>167 <p>When·you·go·to·your·GitHub·page,·you·will·notice·a·new·branch·has·been·created.</p>
167 <p>If·you·are·working·on·a·Trac·ticket,·you·should·mention·in·the·ticket·that168 <p>If·you·are·working·on·a·Trac·ticket,·you·should·mention·in·the·ticket·that
168 your·work·is·available·from·branch·ticket_xxxxx·of·your·GitHub·repo.·Include·a169 your·work·is·available·from·branch·ticket_xxxxx·of·your·GitHub·repo.·Include·a
169 link·to·your·branch.</p>170 link·to·your·branch.</p>
170 <p>Note·that·the·above·branch·is·called·a·topic·branch·in·Git·parlance.·You·are171 <p>Note·that·the·above·branch·is·called·a·«topic·branch»·in·Git·parlance.·You·are
171 free·to·rewrite·the·history·of·this·branch,·by·using·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">rebase</span></code>·for172 free·to·rewrite·the·history·of·this·branch,·by·using·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">rebase</span></code>·for
172 example.·Other·people·shouldn’t·base·their·work·on·such·a·branch,·because173 example.·Other·people·shouldn’t·base·their·work·on·such·a·branch,·because
173 their·clone·would·become·corrupt·when·you·edit·commits.</p>174 their·clone·would·become·corrupt·when·you·edit·commits.</p>
174 <p>There·are·also·public·branches.·These·are·branches·other·people·are·supposed175 <p>There·are·also·«public·branches».·These·are·branches·other·people·are·supposed
175 to·fork,·so·the·history·of·these·branches·should·never·change.·Good·examples176 to·fork,·so·the·history·of·these·branches·should·never·change.·Good·examples
176 of·public·branches·are·the·<code·class="docutils·literal·notranslate"><span·class="pre">main</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">stable/A.B.x</span></code>·branches·in·the177 of·public·branches·are·the·<code·class="docutils·literal·notranslate"><span·class="pre">main</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">stable/A.B.x</span></code>·branches·in·the
177 <code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·repository.</p>178 <code·class="docutils·literal·notranslate"><span·class="pre">django/django</span></code>·repository.</p>
178 <p>When·you·think·your·work·is·ready·to·be·pulled·into·Django,·you·should·create179 <p>When·you·think·your·work·is·ready·to·be·pulled·into·Django,·you·should·create
179 a·pull·request·at·GitHub.·A·good·pull·request·means:</p>180 a·pull·request·at·GitHub.·A·good·pull·request·means:</p>
180 <ul·class="simple">181 <ul·class="simple">
181 <li><p>commits·with·one·logical·change·in·each,·following·the182 <li><p>commits·with·one·logical·change·in·each,·following·the
Offset 184, 40 lines modifiedOffset 185, 40 lines modified
184 wrapped·at·72·characters·thereafter··see·the·<a·class="reference·internal"·href="../committing-code.html#committing-guidelines"><span·class="std·std-ref">committing·guidelines</span></a>·for·more·details,</p></li>185 wrapped·at·72·characters·thereafter··see·the·<a·class="reference·internal"·href="../committing-code.html#committing-guidelines"><span·class="std·std-ref">committing·guidelines</span></a>·for·more·details,</p></li>
185 <li><p>documentation·and·tests,·if·needed··actually·tests·are·always·needed,186 <li><p>documentation·and·tests,·if·needed··actually·tests·are·always·needed,
186 except·for·documentation·changes.</p></li>187 except·for·documentation·changes.</p></li>
187 </ul>188 </ul>
188 <p>The·test·suite·must·pass·and·the·documentation·must·build·without·warnings.</p>189 <p>The·test·suite·must·pass·and·the·documentation·must·build·without·warnings.</p>
189 <p>Once·you·have·created·your·pull·request,·you·should·add·a·comment·in·the190 <p>Once·you·have·created·your·pull·request,·you·should·add·a·comment·in·the
190 related·Trac·ticket·explaining·what·you’ve·done.·In·particular,·you·should·note191 related·Trac·ticket·explaining·what·you’ve·done.·In·particular,·you·should·note
191 the·environment·in·which·you·ran·the·tests,·for·instance:·all·tests·pass192 the·environment·in·which·you·ran·the·tests,·for·instance:·«all·tests·pass
192 under·SQLite·and·MySQL.</p>193 under·SQLite·and·MySQL».</p>
193 <p>Pull·requests·at·GitHub·have·only·two·states:·open·and·closed.·The·merger·who194 <p>Pull·requests·at·GitHub·have·only·two·states:·open·and·closed.·The·merger·who
194 will·deal·with·your·pull·request·has·only·two·options:·merge·it·or·close·it.195 will·deal·with·your·pull·request·has·only·two·options:·merge·it·or·close·it.
195 For·this·reason,·it·isn’t·useful·to·make·a·pull·request·until·the·code·is·ready196 For·this·reason,·it·isn’t·useful·to·make·a·pull·request·until·the·code·is·ready
196 for·merging··or·sufficiently·close·that·a·merger·will·finish·it·themselves.</p>197 for·merging··or·sufficiently·close·that·a·merger·will·finish·it·themselves.</p>
197 </section>198 </section>
198 <section·id="s-rebasing-branches">199 <section·id="s-rebasing-branches">
199 <span·id="rebasing-branches"></span><h3>Rebasing·branches<a·class="headerlink"·href="#rebasing-branches"·title="Link·to·this·heading">¶</a></h3>200 <span·id="rebasing-branches"></span><h3>Rebasing·branches<a·class="headerlink"·href="#rebasing-branches"·title="Link·to·this·heading">¶</a></h3>
200 <p>In·the·example·above,·you·created·two·commits,·the·Fixed·ticket_xxxxx·commit201 <p>In·the·example·above,·you·created·two·commits,·the·«Fixed·ticket_xxxxx»·commit
201 and·Added·two·more·tests·commit.</p>202 and·«Added·two·more·tests»·commit.</p>
202 <p>We·do·not·want·to·have·the·entire·history·of·your·working·process·in·your203 <p>We·do·not·want·to·have·the·entire·history·of·your·working·process·in·your
203 repository.·Your·commit·Added·two·more·tests·would·be·unhelpful·noise.204 repository.·Your·commit·«Added·two·more·tests»·would·be·unhelpful·noise.
204 Instead,·we·would·rather·only·have·one·commit·containing·all·your·work.</p>205 Instead,·we·would·rather·only·have·one·commit·containing·all·your·work.</p>
205 <p>To·rework·the·history·of·your·branch·you·can·squash·the·commits·into·one·by206 <p>To·rework·the·history·of·your·branch·you·can·squash·the·commits·into·one·by
206 using·interactive·rebase:</p>207 using·interactive·rebase:</p>
207 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>rebase<span·class="w">·</span>-i<span·class="w">·</span>HEAD~2208 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>rebase<span·class="w">·</span>-i<span·class="w">·</span>HEAD~2
208 </pre></div>209 </pre></div>
209 </div>210 </div>
210 <p>The·HEAD~2·above·is·shorthand·for·two·latest·commits.·The·above·command211 <p>The·HEAD~2·above·is·shorthand·for·two·latest·commits.·The·above·command
211 will·open·an·editor·showing·the·two·commits,·prefixed·with·the·word·pick.</p>212 will·open·an·editor·showing·the·two·commits,·prefixed·with·the·word·«pick».</p>
212 <p>Change·pick·on·the·second·line·to·squash·instead.·This·will·keep·the213 <p>Change·«pick»·on·the·second·line·to·«squash»·instead.·This·will·keep·the
213 first·commit,·and·squash·the·second·commit·into·the·first·one.·Save·and·quit214 first·commit,·and·squash·the·second·commit·into·the·first·one.·Save·and·quit
214 the·editor.·A·second·editor·window·should·open,·so·you·can·reword·the215 the·editor.·A·second·editor·window·should·open,·so·you·can·reword·the
215 commit·message·for·the·commit·now·that·it·includes·both·your·steps.</p>216 commit·message·for·the·commit·now·that·it·includes·both·your·steps.</p>
216 <p>You·can·also·use·the·edit·option·in·rebase.·This·way·you·can·change·a·single217 <p>You·can·also·use·the·«edit»·option·in·rebase.·This·way·you·can·change·a·single
217 commit,·for·example·to·fix·a·typo·in·a·docstring:</p>218 commit,·for·example·to·fix·a·typo·in·a·docstring:</p>
218 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>rebase<span·class="w">·</span>-i<span·class="w">·</span>HEAD~3219 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>git<span·class="w">·</span>rebase<span·class="w">·</span>-i<span·class="w">·</span>HEAD~3
219 <span·class="c1">#·Choose·edit,·pick,·pick·for·the·commits</span>220 <span·class="c1">#·Choose·edit,·pick,·pick·for·the·commits</span>
220 <span·class="c1">#·Now·you·are·able·to·rework·the·commit·(use·git·add·normally·to·add·changes)</span>221 <span·class="c1">#·Now·you·are·able·to·rework·the·commit·(use·git·add·normally·to·add·changes)</span>
221 <span·class="c1">#·When·finished,·commit·work·with·&quot;--amend&quot;·and·continue</span>222 <span·class="c1">#·When·finished,·commit·work·with·&quot;--amend&quot;·and·continue</span>
Max diff block lines reached; 1619/11880 bytes (13.63%) of diff not shown.
8.04 KB
html2text {}
Max HTML report size reached
31.1 KB
./usr/share/doc/python-django-doc/html/internals/contributing/writing-documentation.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·documentation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·documentation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Localizing·Django"·href="localizing.html"·/>15 ····<link·rel="next"·title="Localizing·Django"·href="localizing.html"·/>
15 ····<link·rel="prev"·title="JavaScript"·href="writing-code/javascript.html"·/>16 ····<link·rel="prev"·title="JavaScript"·href="writing-code/javascript.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 207, 60 lines modifiedOffset 208, 60 lines modified
207 hesitate·to·refer·the·reader·back·to·the·appropriate·tutorial·rather·than208 hesitate·to·refer·the·reader·back·to·the·appropriate·tutorial·rather·than
208 repeat·the·same·material.</p>209 repeat·the·same·material.</p>
209 </li>210 </li>
210 </ul>211 </ul>
211 </section>212 </section>
212 <section·id="s-writing-style">213 <section·id="s-writing-style">
213 <span·id="writing-style"></span><h2>Writing·style<a·class="headerlink"·href="#writing-style"·title="Link·to·this·heading">¶</a></h2>214 <span·id="writing-style"></span><h2>Writing·style<a·class="headerlink"·href="#writing-style"·title="Link·to·this·heading">¶</a></h2>
214 <p>When·using·pronouns·in·reference·to·a·hypothetical·person,·such·as·a·user·with215 <p>When·using·pronouns·in·reference·to·a·hypothetical·person,·such·as·«a·user·with
215 a·session·cookie,·gender-neutral·pronouns·(they/their/them)·should·be·used.216 a·session·cookie»,·gender-neutral·pronouns·(they/their/them)·should·be·used.
216 Instead·of:</p>217 Instead·of:</p>
217 <ul·class="simple">218 <ul·class="simple">
218 <li><p>he·or·she…·use·they.</p></li>219 <li><p>he·or·she…·use·they.</p></li>
219 <li><p>him·or·her…·use·them.</p></li>220 <li><p>him·or·her…·use·them.</p></li>
220 <li><p>his·or·her…·use·their.</p></li>221 <li><p>his·or·her…·use·their.</p></li>
221 <li><p>his·or·hers…·use·theirs.</p></li>222 <li><p>his·or·hers…·use·theirs.</p></li>
222 <li><p>himself·or·herself…·use·themselves.</p></li>223 <li><p>himself·or·herself…·use·themselves.</p></li>
223 </ul>224 </ul>
224 <p>Try·to·avoid·using·words·that·minimize·the·difficulty·involved·in·a·task·or225 <p>Try·to·avoid·using·words·that·minimize·the·difficulty·involved·in·a·task·or
225 operation,·such·as·easily,·simply,·just,·merely,·straightforward,·and226 operation,·such·as·«easily»,·«simply»,·«just»,·«merely»,·«straightforward»,·and
226 so·on.·People’s·experience·may·not·match·your·expectations,·and·they·may·become227 so·on.·People’s·experience·may·not·match·your·expectations,·and·they·may·become
227 frustrated·when·they·do·not·find·a·step·as·straightforward·or·simple·as·it228 frustrated·when·they·do·not·find·a·step·as·«straightforward»·or·«simple»·as·it
228 is·implied·to·be.</p>229 is·implied·to·be.</p>
229 </section>230 </section>
230 <section·id="s-commonly-used-terms">231 <section·id="s-commonly-used-terms">
231 <span·id="commonly-used-terms"></span><h2>Commonly·used·terms<a·class="headerlink"·href="#commonly-used-terms"·title="Link·to·this·heading">¶</a></h2>232 <span·id="commonly-used-terms"></span><h2>Commonly·used·terms<a·class="headerlink"·href="#commonly-used-terms"·title="Link·to·this·heading">¶</a></h2>
232 <p>Here·are·some·style·guidelines·on·commonly·used·terms·throughout·the233 <p>Here·are·some·style·guidelines·on·commonly·used·terms·throughout·the
233 documentation:</p>234 documentation:</p>
234 <ul·class="simple">235 <ul·class="simple">
235 <li><p><strong>Django</strong>··when·referring·to·the·framework,·capitalize·Django.·It·is236 <li><p><strong>Django</strong>··when·referring·to·the·framework,·capitalize·Django.·It·is
236 lowercase·only·in·Python·code·and·in·the·djangoproject.com·logo.</p></li>237 lowercase·only·in·Python·code·and·in·the·djangoproject.com·logo.</p></li>
237 <li><p><strong>email</strong>··no·hyphen.</p></li>238 <li><p><strong>email</strong>··no·hyphen.</p></li>
238 <li><p><strong>HTTP</strong>··the·expected·pronunciation·is·Aitch·Tee·Tee·Pee·and·therefore239 <li><p><strong>HTTP</strong>··the·expected·pronunciation·is·«Aitch·Tee·Tee·Pee»·and·therefore
239 should·be·preceded·by·an·and·not·a.</p></li>240 should·be·preceded·by·«an»·and·not·«a».</p></li>
240 <li><p><strong>MySQL</strong>,·<strong>PostgreSQL</strong>,·<strong>SQLite</strong></p></li>241 <li><p><strong>MySQL</strong>,·<strong>PostgreSQL</strong>,·<strong>SQLite</strong></p></li>
241 <li><p><strong>SQL</strong>··when·referring·to·SQL,·the·expected·pronunciation·should·be242 <li><p><strong>SQL</strong>··when·referring·to·SQL,·the·expected·pronunciation·should·be
242 Ess·Queue·Ell·and·not·sequel.·Thus·in·a·phrase·like·Returns·an243 «Ess·Queue·Ell»·and·not·«sequel».·Thus·in·a·phrase·like·«Returns·an
243 SQL·expression,·SQL·should·be·preceded·by·an·and·not·a.</p></li>244 SQL·expression»,·«SQL»·should·be·preceded·by·«an»·and·not·«a».</p></li>
244 <li><p><strong>Python</strong>··when·referring·to·the·language,·capitalize·Python.</p></li>245 <li><p><strong>Python</strong>··when·referring·to·the·language,·capitalize·Python.</p></li>
245 <li><p><strong>realize</strong>,·<strong>customize</strong>,·<strong>initialize</strong>,·etc.··use·the·American246 <li><p><strong>realize</strong>,·<strong>customize</strong>,·<strong>initialize</strong>,·etc.··use·the·American
246 ize·suffix,·not·ise.</p></li>247 «ize»·suffix,·not·«ise.»</p></li>
247 <li><p><strong>subclass</strong>··it’s·a·single·word·without·a·hyphen,·both·as·a·verb248 <li><p><strong>subclass</strong>··it’s·a·single·word·without·a·hyphen,·both·as·a·verb
248 (subclass·that·model)·and·as·a·noun·(create·a·subclass).</p></li>249 («subclass·that·model»)·and·as·a·noun·(«create·a·subclass»).</p></li>
249 <li><p><strong>the·web</strong>,·<strong>web·framework</strong>··it’s·not·capitalized.</p></li>250 <li><p><strong>the·web</strong>,·<strong>web·framework</strong>··it’s·not·capitalized.</p></li>
250 <li><p><strong>website</strong>··use·one·word,·without·capitalization.</p></li>251 <li><p><strong>website</strong>··use·one·word,·without·capitalization.</p></li>
251 </ul>252 </ul>
252 </section>253 </section>
253 <section·id="s-django-specific-terminology">254 <section·id="s-django-specific-terminology">
254 <span·id="django-specific-terminology"></span><h2>Django-specific·terminology<a·class="headerlink"·href="#django-specific-terminology"·title="Link·to·this·heading">¶</a></h2>255 <span·id="django-specific-terminology"></span><h2>Django-specific·terminology<a·class="headerlink"·href="#django-specific-terminology"·title="Link·to·this·heading">¶</a></h2>
255 <ul·class="simple">256 <ul·class="simple">
256 <li><p><strong>model</strong>··it’s·not·capitalized.</p></li>257 <li><p><strong>model</strong>··it’s·not·capitalized.</p></li>
257 <li><p><strong>template</strong>··it’s·not·capitalized.</p></li>258 <li><p><strong>template</strong>··it’s·not·capitalized.</p></li>
258 <li><p><strong>URLconf</strong>··use·three·capitalized·letters,·with·no·space·before259 <li><p><strong>URLconf</strong>··use·three·capitalized·letters,·with·no·space·before
259 conf.</p></li>260 «conf.»</p></li>
260 <li><p><strong>view</strong>··it’s·not·capitalized.</p></li>261 <li><p><strong>view</strong>··it’s·not·capitalized.</p></li>
261 </ul>262 </ul>
262 </section>263 </section>
263 <section·id="s-guidelines-for-restructuredtext-files">264 <section·id="s-guidelines-for-restructuredtext-files">
264 <span·id="guidelines-for-restructuredtext-files"></span><h2>Guidelines·for·reStructuredText·files<a·class="headerlink"·href="#guidelines-for-restructuredtext-files"·title="Link·to·this·heading">¶</a></h2>265 <span·id="guidelines-for-restructuredtext-files"></span><h2>Guidelines·for·reStructuredText·files<a·class="headerlink"·href="#guidelines-for-restructuredtext-files"·title="Link·to·this·heading">¶</a></h2>
265 <p>These·guidelines·regulate·the·format·of·our·reST·(reStructuredText)266 <p>These·guidelines·regulate·the·format·of·our·reST·(reStructuredText)
266 documentation:</p>267 documentation:</p>
Offset 277, 20 lines modifiedOffset 278, 20 lines modified
277 <p>Isn’t·nearly·as·helpful·as:</p>278 <p>Isn’t·nearly·as·helpful·as:</p>
278 <div·class="highlight-rst·notranslate"><div·class="highlight"><pre><span></span>Add·<span·class="na">:mod:</span><span·class="nv">`django.contrib.auth`</span>·to·your·<span·class="na">:setting:</span><span·class="nv">`INSTALLED_APPS`</span>...279 <div·class="highlight-rst·notranslate"><div·class="highlight"><pre><span></span>Add·<span·class="na">:mod:</span><span·class="nv">`django.contrib.auth`</span>·to·your·<span·class="na">:setting:</span><span·class="nv">`INSTALLED_APPS`</span>...
279 </pre></div>280 </pre></div>
280 </div>281 </div>
281 <p>This·is·because·Sphinx·will·generate·proper·links·for·the·latter,·which282 <p>This·is·because·Sphinx·will·generate·proper·links·for·the·latter,·which
282 greatly·helps·readers.</p>283 greatly·helps·readers.</p>
283 <p>You·can·prefix·the·target·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">~</span></code>·(that’s·a·tilde)·to·get·only·the284 <p>You·can·prefix·the·target·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">~</span></code>·(that’s·a·tilde)·to·get·only·the
284 last·bit·of·that·path.·So·<code·class="docutils·literal·notranslate"><span·class="pre">:mod:`~django.contrib.auth`</span></code>·will285 «last·bit»·of·that·path.·So·<code·class="docutils·literal·notranslate"><span·class="pre">:mod:`~django.contrib.auth`</span></code>·will
285 display·a·link·with·the·title·auth.</p>286 display·a·link·with·the·title·«auth».</p>
286 </li>287 </li>
287 <li><p>All·Python·code·blocks·should·be·formatted·using·the·<a·class="extlink-pypi·reference·external"·href="https://pypi.org/project/blacken-docs/">blacken-docs</a>288 <li><p>All·Python·code·blocks·should·be·formatted·using·the·<a·class="extlink-pypi·reference·external"·href="https://pypi.org/project/blacken-docs/">blacken-docs</a>
288 auto-formatter.·This·will·be·run·by·<code·class="docutils·literal·notranslate"><span·class="pre">pre-commit</span></code>·if·that·is·configured.</p></li>289 auto-formatter.·This·will·be·run·by·<code·class="docutils·literal·notranslate"><span·class="pre">pre-commit</span></code>·if·that·is·configured.</p></li>
289 <li><p>Use·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">intersphinx</span></code>·to·reference·Python’s·and·Sphinx290 <li><p>Use·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">intersphinx</span></code>·to·reference·Python’s·and·Sphinx
290 documentation.</p></li>291 documentation.</p></li>
291 <li><p>Add·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">code-block::</span>·<span·class="pre">&lt;lang&gt;</span></code>·to·literal·blocks·so·that·they·get292 <li><p>Add·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">code-block::</span>·<span·class="pre">&lt;lang&gt;</span></code>·to·literal·blocks·so·that·they·get
292 highlighted.·Prefer·relying·on·automatic·highlighting·using·<code·class="docutils·literal·notranslate"><span·class="pre">::</span></code>293 highlighted.·Prefer·relying·on·automatic·highlighting·using·<code·class="docutils·literal·notranslate"><span·class="pre">::</span></code>
293 (two·colons).·This·has·the·benefit·that·if·the·code·contains·some·invalid294 (two·colons).·This·has·the·benefit·that·if·the·code·contains·some·invalid
294 syntax,·it·won’t·be·highlighted.·Adding·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">code-block::</span>·<span·class="pre">python</span></code>,·for295 syntax,·it·won’t·be·highlighted.·Adding·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">code-block::</span>·<span·class="pre">python</span></code>,·for
295 example,·will·force·highlighting·despite·invalid·syntax.</p></li>296 example,·will·force·highlighting·despite·invalid·syntax.</p></li>
296 <li><p>To·improve·readability,·use·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">admonition::</span>·<span·class="pre">Descriptive</span>·<span·class="pre">title</span></code>·rather·than297 <li><p>To·improve·readability,·use·<code·class="docutils·literal·notranslate"><span·class="pre">..</span>·<span·class="pre">admonition::</span>·<span·class="pre">Descriptive</span>·<span·class="pre">title</span></code>·rather·than
Offset 423, 21 lines modifiedOffset 424, 21 lines modified
423 <p>Our·policy·for·new·features·is:</p>424 <p>Our·policy·for·new·features·is:</p>
424 <blockquote>425 <blockquote>
425 <div><p>All·documentation·of·new·features·should·be·written·in·a·way·that426 <div><p>All·documentation·of·new·features·should·be·written·in·a·way·that
426 clearly·designates·the·features·that·are·only·available·in·the·Django427 clearly·designates·the·features·that·are·only·available·in·the·Django
427 development·version.·Assume·documentation·readers·are·using·the·latest428 development·version.·Assume·documentation·readers·are·using·the·latest
Max diff block lines reached; 8804/18223 bytes (48.31%) of diff not shown.
13.1 KB
html2text {}
Max HTML report size reached
11.9 KB
./usr/share/doc/python-django-doc/html/internals/deprecation.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·Deprecation·Timeline·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·Deprecation·Timeline·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="The·Django·source·code·repository"·href="git.html"·/>15 ····<link·rel="next"·title="The·Django·source·code·repository"·href="git.html"·/>
15 ····<link·rel="prev"·title="Django’s·release·process"·href="release-process.html"·/>16 ····<link·rel="prev"·title="Django’s·release·process"·href="release-process.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 338, 15 lines modifiedOffset 339, 15 lines modified
338 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">DatabaseIntrospection.get_indexes()</span></code>·will·be·removed.</p></li>339 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">DatabaseIntrospection.get_indexes()</span></code>·will·be·removed.</p></li>
339 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">authenticate()</span></code>·method·of·authentication·backends·will·require340 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">authenticate()</span></code>·method·of·authentication·backends·will·require
340 <code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·as·the·first·positional·argument.</p></li>341 <code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·as·the·first·positional·argument.</p></li>
341 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.permalink()</span></code>·decorator·will·be·removed.</p></li>342 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.permalink()</span></code>·decorator·will·be·removed.</p></li>
342 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">USE_ETAGS</span></code>·setting·will·be·removed.·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code>·and343 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">USE_ETAGS</span></code>·setting·will·be·removed.·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code>·and
343 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.cache.patch_response_headers()</span></code>·will·no·longer·set·ETags.</p></li>344 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.cache.patch_response_headers()</span></code>·will·no·longer·set·ETags.</p></li>
344 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.has_auto_field</span></code>·attribute·will·be·removed.</p></li>345 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.has_auto_field</span></code>·attribute·will·be·removed.</p></li>
345 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">url()</span></code>s·support·for·inline·flags·in·regular·expression·groups·(<code·class="docutils·literal·notranslate"><span·class="pre">(?i)</span></code>,346 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">url()</span></code>s·support·for·inline·flags·in·regular·expression·groups·(<code·class="docutils·literal·notranslate"><span·class="pre">(?i)</span></code>,
346 <code·class="docutils·literal·notranslate"><span·class="pre">(?L)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">(?m)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">(?s)</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">(?u)</span></code>)·will·be·removed.</p></li>347 <code·class="docutils·literal·notranslate"><span·class="pre">(?L)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">(?m)</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">(?s)</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">(?u)</span></code>)·will·be·removed.</p></li>
347 <li><p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">Widget.render()</span></code>·methods·without·the·<code·class="docutils·literal·notranslate"><span·class="pre">renderer</span></code>·argument348 <li><p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">Widget.render()</span></code>·methods·without·the·<code·class="docutils·literal·notranslate"><span·class="pre">renderer</span></code>·argument
348 will·be·removed.</p></li>349 will·be·removed.</p></li>
349 </ul>350 </ul>
350 </section>351 </section>
351 <section·id="s-deprecation-removed-in-2-0">352 <section·id="s-deprecation-removed-in-2-0">
352 <span·id="s-id8"></span><span·id="deprecation-removed-in-2-0"></span><span·id="id8"></span><h2>2.0<a·class="headerlink"·href="#deprecation-removed-in-2-0"·title="Link·to·this·heading">¶</a></h2>353 <span·id="s-id8"></span><span·id="deprecation-removed-in-2-0"></span><span·id="id8"></span><h2>2.0<a·class="headerlink"·href="#deprecation-removed-in-2-0"·title="Link·to·this·heading">¶</a></h2>
Offset 759, 15 lines modifiedOffset 760, 15 lines modified
759 <code·class="docutils·literal·notranslate"><span·class="pre">django.forms.widgets.RadioChoiceInput</span></code>.</p></li>760 <code·class="docutils·literal·notranslate"><span·class="pre">django.forms.widgets.RadioChoiceInput</span></code>.</p></li>
760 <li><p>The·module·<code·class="docutils·literal·notranslate"><span·class="pre">django.test.simple</span></code>·and·the·class761 <li><p>The·module·<code·class="docutils·literal·notranslate"><span·class="pre">django.test.simple</span></code>·and·the·class
761 <code·class="docutils·literal·notranslate"><span·class="pre">django.test.simple.DjangoTestSuiteRunner</span></code>·will·be·removed.·Instead·use762 <code·class="docutils·literal·notranslate"><span·class="pre">django.test.simple.DjangoTestSuiteRunner</span></code>·will·be·removed.·Instead·use
762 <code·class="docutils·literal·notranslate"><span·class="pre">django.test.runner.DiscoverRunner</span></code>.</p></li>763 <code·class="docutils·literal·notranslate"><span·class="pre">django.test.runner.DiscoverRunner</span></code>.</p></li>
763 <li><p>The·module·<code·class="docutils·literal·notranslate"><span·class="pre">django.test._doctest</span></code>·will·be·removed.·Instead·use·the·doctest764 <li><p>The·module·<code·class="docutils·literal·notranslate"><span·class="pre">django.test._doctest</span></code>·will·be·removed.·Instead·use·the·doctest
764 module·from·the·Python·standard·library.</p></li>765 module·from·the·Python·standard·library.</p></li>
765 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">CACHE_MIDDLEWARE_ANONYMOUS_ONLY</span></code>·setting·will·be·removed.</p></li>766 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">CACHE_MIDDLEWARE_ANONYMOUS_ONLY</span></code>·setting·will·be·removed.</p></li>
766 <li><p>Usage·of·the·hard-coded·<em>Hold·down·Control,·or·Command·on·a·Mac,·to·select767 <li><p>Usage·of·the·hard-coded·<em>Hold·down·«Control»,·or·«Command»·on·a·Mac,·to·select
767 more·than·one.</em>·string·to·override·or·append·to·user-provided·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·in768 more·than·one.</em>·string·to·override·or·append·to·user-provided·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·in
768 forms·for·ManyToMany·model·fields·will·not·be·performed·by·Django·anymore769 forms·for·ManyToMany·model·fields·will·not·be·performed·by·Django·anymore
769 either·at·the·model·or·forms·layer.</p></li>770 either·at·the·model·or·forms·layer.</p></li>
770 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.get_(add|change|delete)_permission</span></code>·methods·will771 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.get_(add|change|delete)_permission</span></code>·methods·will
771 be·removed.</p></li>772 be·removed.</p></li>
772 <li><p>The·session·key·<code·class="docutils·literal·notranslate"><span·class="pre">django_language</span></code>·will·no·longer·be·read·for·backwards773 <li><p>The·session·key·<code·class="docutils·literal·notranslate"><span·class="pre">django_language</span></code>·will·no·longer·be·read·for·backwards
773 compatibility.</p></li>774 compatibility.</p></li>
Offset 1081, 37 lines modifiedOffset 1082, 37 lines modified
1081 <li><a·class="reference·internal"·href="#deprecation-removed-in-1-3">1.3</a></li>1082 <li><a·class="reference·internal"·href="#deprecation-removed-in-1-3">1.3</a></li>
1082 </ul>1083 </ul>
1083 </li>1084 </li>
1084 </ul>1085 </ul>
  
1085 ··</div>1086 ··</div>
1086 ··<div>1087 ··<div>
1087 ····<h4>Previous·topic</h4>1088 ····<h4>Argomento·precedente</h4>
1088 ····<p·class="topless"><a·href="release-process.html"1089 ····<p·class="topless"><a·href="release-process.html"
1089 ··························title="previous·chapter">Django’s·release·process</a></p>1090 ··························title="capitolo·precedente">Django’s·release·process</a></p>
1090 ··</div>1091 ··</div>
1091 ··<div>1092 ··<div>
1092 ····<h4>Next·topic</h4>1093 ····<h4>Argomento·successivo</h4>
1093 ····<p·class="topless"><a·href="git.html"1094 ····<p·class="topless"><a·href="git.html"
1094 ··························title="next·chapter">The·Django·source·code·repository</a></p>1095 ··························title="capitolo·successivo">The·Django·source·code·repository</a></p>
1095 ··</div>1096 ··</div>
1096 <search·id="searchbox"·style="display:·none"·role="search">1097 <search·id="searchbox"·style="display:·none"·role="search">
1097 ··<h3·id="searchlabel">Quick·search</h3>1098 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1098 ····<div·class="searchformwrapper">1099 ····<div·class="searchformwrapper">
1099 ····<form·class="search"·action="../search.html"·method="get">1100 ····<form·class="search"·action="../search.html"·method="get">
1100 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1101 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1101 ······<input·type="submit"·value="Go"·/>1102 ······<input·type="submit"·value="Vai"·/>
1102 ····</form>1103 ····</form>
1103 ····</div>1104 ····</div>
1104 </search>1105 </search>
1105 <script>document.getElementById('searchbox').style.display·=·"block"</script>1106 <script>document.getElementById('searchbox').style.display·=·"block"</script>
1106 ········</div>1107 ········</div>
1107 ······</div>1108 ······</div>
1108 ··············<h3>Last·update:</h3>1109 ··············<h3>Last·update:</h3>
1109 ··············<p·class="topless">Sep·03,·2024</p>1110 ··············<p·class="topless">set·03,·2024</p>
1110 ··········</div>1111 ··········</div>
1111 ········1112 ········
1112 ······1113 ······
1113 ····</div>1114 ····</div>
  
1114 ····<div·id="ft">1115 ····<div·id="ft">
1115 ······<div·class="nav">1116 ······<div·class="nav">
4.06 KB
html2text {}
Max HTML report size reached
8.29 KB
./usr/share/doc/python-django-doc/html/internals/git.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·Django·source·code·repository·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·Django·source·code·repository·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·is·Django·Formed?"·href="howto-release-django.html"·/>15 ····<link·rel="next"·title="How·is·Django·Formed?"·href="howto-release-django.html"·/>
15 ····<link·rel="prev"·title="Django·Deprecation·Timeline"·href="deprecation.html"·/>16 ····<link·rel="prev"·title="Django·Deprecation·Timeline"·href="deprecation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 114, 15 lines modifiedOffset 115, 15 lines modified
114 </section>115 </section>
115 <section·id="s-the-main-branch">116 <section·id="s-the-main-branch">
116 <span·id="the-main-branch"></span><h2>The·main·branch<a·class="headerlink"·href="#the-main-branch"·title="Link·to·this·heading">¶</a></h2>117 <span·id="the-main-branch"></span><h2>The·main·branch<a·class="headerlink"·href="#the-main-branch"·title="Link·to·this·heading">¶</a></h2>
117 <p>If·you’d·like·to·try·out·the·in-development·code·for·the·next·release·of118 <p>If·you’d·like·to·try·out·the·in-development·code·for·the·next·release·of
118 Django,·or·if·you’d·like·to·contribute·to·Django·by·fixing·bugs·or·developing119 Django,·or·if·you’d·like·to·contribute·to·Django·by·fixing·bugs·or·developing
119 new·features,·you’ll·want·to·get·the·code·from·the·main·branch.</p>120 new·features,·you’ll·want·to·get·the·code·from·the·main·branch.</p>
120 <div·class="admonition·note">121 <div·class="admonition·note">
121 <p·class="admonition-title">Note</p>122 <p·class="admonition-title">Nota</p>
122 <p>Prior·to·March·2021,·the·main·branch·was·called·<code·class="docutils·literal·notranslate"><span·class="pre">master</span></code>.</p>123 <p>Prior·to·March·2021,·the·main·branch·was·called·<code·class="docutils·literal·notranslate"><span·class="pre">master</span></code>.</p>
123 </div>124 </div>
124 <p>Note·that·this·will·get·<em>all</em>·of·Django:·in·addition·to·the·top-level125 <p>Note·that·this·will·get·<em>all</em>·of·Django:·in·addition·to·the·top-level
125 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>·module·containing·Python·code,·you’ll·also·get·a·copy·of·Django’s126 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>·module·containing·Python·code,·you’ll·also·get·a·copy·of·Django’s
126 documentation,·test·suite,·packaging·scripts·and·other·miscellaneous·bits.127 documentation,·test·suite,·packaging·scripts·and·other·miscellaneous·bits.
127 Django’s·code·will·be·present·in·your·clone·as·a·directory·named128 Django’s·code·will·be·present·in·your·clone·as·a·directory·named
128 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>.</p>129 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>.</p>
Offset 269, 37 lines modifiedOffset 270, 37 lines modified
269 </li>270 </li>
270 </ul>271 </ul>
271 </li>272 </li>
272 </ul>273 </ul>
  
273 ··</div>274 ··</div>
274 ··<div>275 ··<div>
275 ····<h4>Previous·topic</h4>276 ····<h4>Argomento·precedente</h4>
276 ····<p·class="topless"><a·href="deprecation.html"277 ····<p·class="topless"><a·href="deprecation.html"
277 ··························title="previous·chapter">Django·Deprecation·Timeline</a></p>278 ··························title="capitolo·precedente">Django·Deprecation·Timeline</a></p>
278 ··</div>279 ··</div>
279 ··<div>280 ··<div>
280 ····<h4>Next·topic</h4>281 ····<h4>Argomento·successivo</h4>
281 ····<p·class="topless"><a·href="howto-release-django.html"282 ····<p·class="topless"><a·href="howto-release-django.html"
282 ··························title="next·chapter">How·is·Django·Formed?</a></p>283 ··························title="capitolo·successivo">How·is·Django·Formed?</a></p>
283 ··</div>284 ··</div>
284 <search·id="searchbox"·style="display:·none"·role="search">285 <search·id="searchbox"·style="display:·none"·role="search">
285 ··<h3·id="searchlabel">Quick·search</h3>286 ··<h3·id="searchlabel">Ricerca·veloce</h3>
286 ····<div·class="searchformwrapper">287 ····<div·class="searchformwrapper">
287 ····<form·class="search"·action="../search.html"·method="get">288 ····<form·class="search"·action="../search.html"·method="get">
288 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>289 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
289 ······<input·type="submit"·value="Go"·/>290 ······<input·type="submit"·value="Vai"·/>
290 ····</form>291 ····</form>
291 ····</div>292 ····</div>
292 </search>293 </search>
293 <script>document.getElementById('searchbox').style.display·=·"block"</script>294 <script>document.getElementById('searchbox').style.display·=·"block"</script>
294 ········</div>295 ········</div>
295 ······</div>296 ······</div>
296 ··············<h3>Last·update:</h3>297 ··············<h3>Last·update:</h3>
297 ··············<p·class="topless">Sep·03,·2024</p>298 ··············<p·class="topless">set·03,·2024</p>
298 ··········</div>299 ··········</div>
299 ········300 ········
300 ······301 ······
301 ····</div>302 ····</div>
  
302 ····<div·id="ft">303 ····<div·id="ft">
303 ······<div·class="nav">304 ······<div·class="nav">
3.45 KB
html2text {}
Max HTML report size reached
31.9 KB
./usr/share/doc/python-django-doc/html/internals/howto-release-django.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·is·Django·Formed?·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·is·Django·Formed?·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="prev"·title="The·Django·source·code·repository"·href="git.html"·/>15 ····<link·rel="prev"·title="The·Django·source·code·repository"·href="git.html"·/>
  
  
  
15 ·16 ·
16 <script·src="../templatebuiltins.js"></script>17 <script·src="../templatebuiltins.js"></script>
17 <script>18 <script>
Offset 52, 15 lines modifiedOffset 53, 15 lines modified
52 })(jQuery);</script>53 })(jQuery);</script>
  
53 ··</head><body>54 ··</head><body>
  
54 ····<div·class="document">55 ····<div·class="document">
55 ··<div·id="custom-doc"·class="yui-t6">56 ··<div·id="custom-doc"·class="yui-t6">
56 ····<div·id="hd">57 ····<div·id="hd">
57 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>58 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
58 ······<div·id="global-nav">59 ······<div·id="global-nav">
59 ········<a·title="Home·page"·href="../index.html">Home</a>··|60 ········<a·title="Home·page"·href="../index.html">Home</a>··|
60 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
61 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
62 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
63 ······</div>64 ······</div>
64 ······<div·class="nav">65 ······<div·class="nav">
Offset 126, 15 lines modifiedOffset 127, 15 lines modified
126 <span·class="na">username</span><span·class="o">:</span><span·class="s">YourUsername</span>127 <span·class="na">username</span><span·class="o">:</span><span·class="s">YourUsername</span>
127 <span·class="na">password</span><span·class="o">:</span><span·class="s">YourPassword</span>128 <span·class="na">password</span><span·class="o">:</span><span·class="s">YourPassword</span>
128 </pre></div>129 </pre></div>
129 </div>130 </div>
130 </div>131 </div>
131 </li>132 </li>
132 <li><p>Access·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">djangoproject.com</span></code>·server·to·upload·files.</p></li>133 <li><p>Access·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">djangoproject.com</span></code>·server·to·upload·files.</p></li>
133 <li><p>Access·to·the·admin·on·<code·class="docutils·literal·notranslate"><span·class="pre">djangoproject.com</span></code>·as·a·Site·maintainer.</p></li>134 <li><p>Access·to·the·admin·on·<code·class="docutils·literal·notranslate"><span·class="pre">djangoproject.com</span></code>·as·a·«Site·maintainer».</p></li>
134 <li><p>Access·to·post·to·<code·class="docutils·literal·notranslate"><span·class="pre">django-announce</span></code>.</p></li>135 <li><p>Access·to·post·to·<code·class="docutils·literal·notranslate"><span·class="pre">django-announce</span></code>.</p></li>
135 <li><p>If·this·is·a·security·release,·access·to·the·pre-notification·distribution136 <li><p>If·this·is·a·security·release,·access·to·the·pre-notification·distribution
136 list.</p></li>137 list.</p></li>
137 </ul>138 </ul>
138 <p>If·this·is·your·first·release,·you’ll·need·to·coordinate·with·another·releaser139 <p>If·this·is·your·first·release,·you’ll·need·to·coordinate·with·another·releaser
139 to·get·all·these·things·lined·up.</p>140 to·get·all·these·things·lined·up.</p>
140 </section>141 </section>
Offset 191, 15 lines modifiedOffset 192, 15 lines modified
191 </pre></div>192 </pre></div>
192 </div>193 </div>
193 <p>At·the·same·time,·update·the·<code·class="docutils·literal·notranslate"><span·class="pre">django_next_version</span></code>·variable·in194 <p>At·the·same·time,·update·the·<code·class="docutils·literal·notranslate"><span·class="pre">django_next_version</span></code>·variable·in
194 <code·class="docutils·literal·notranslate"><span·class="pre">docs/conf.py</span></code>·on·the·stable·release·branch·to·point·to·the·new195 <code·class="docutils·literal·notranslate"><span·class="pre">docs/conf.py</span></code>·on·the·stable·release·branch·to·point·to·the·new
195 development·version.·For·example,·when·creating·<code·class="docutils·literal·notranslate"><span·class="pre">stable/4.2.x</span></code>,·set196 development·version.·For·example,·when·creating·<code·class="docutils·literal·notranslate"><span·class="pre">stable/4.2.x</span></code>,·set
196 <code·class="docutils·literal·notranslate"><span·class="pre">django_next_version</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">'5.0'</span></code>·on·the·new·branch.</p>197 <code·class="docutils·literal·notranslate"><span·class="pre">django_next_version</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">'5.0'</span></code>·on·the·new·branch.</p>
197 </li>198 </li>
198 <li><p>If·this·is·the·dot·zero·release·of·a·new·series,·create·a·new·branch·from199 <li><p>If·this·is·the·«dot·zero»·release·of·a·new·series,·create·a·new·branch·from
199 the·current·stable·branch·in·the·<a·class="reference·external"·href="https://github.com/django/django-docs-translations">django-docs-translations</a>·repository.·For200 the·current·stable·branch·in·the·<a·class="reference·external"·href="https://github.com/django/django-docs-translations">django-docs-translations</a>·repository.·For
200 example,·when·releasing·Django·4.2:</p>201 example,·when·releasing·Django·4.2:</p>
201 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>git<span·class="w">·</span>checkout<span·class="w">·</span>-b<span·class="w">·</span>stable/4.2.x<span·class="w">·</span>origin/stable/4.1.x202 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>git<span·class="w">·</span>checkout<span·class="w">·</span>-b<span·class="w">·</span>stable/4.2.x<span·class="w">·</span>origin/stable/4.1.x
202 $<span·class="w">·</span>git<span·class="w">·</span>push<span·class="w">·</span>origin<span·class="w">·</span>stable/4.2.x:stable/4.2.x203 $<span·class="w">·</span>git<span·class="w">·</span>push<span·class="w">·</span>origin<span·class="w">·</span>stable/4.2.x:stable/4.2.x
203 </pre></div>204 </pre></div>
204 </div>205 </div>
205 </li>206 </li>
Offset 248, 15 lines modifiedOffset 249, 15 lines modified
248 top·of·the·release·notes·and·add·the·release·date·on·the·next·line.·For·a249 top·of·the·release·notes·and·add·the·release·date·on·the·next·line.·For·a
249 patch·release,·remove·the·<code·class="docutils·literal·notranslate"><span·class="pre">Expected</span></code>·prefix·and·update·the·release·date,250 patch·release,·remove·the·<code·class="docutils·literal·notranslate"><span·class="pre">Expected</span></code>·prefix·and·update·the·release·date,
250 if·necessary.·Make·this·change·on·all·branches·where·the·release·notes·for·a251 if·necessary.·Make·this·change·on·all·branches·where·the·release·notes·for·a
251 particular·version·are·located.</p></li>252 particular·version·are·located.</p></li>
252 <li><p>Update·the·version·number·in·<code·class="docutils·literal·notranslate"><span·class="pre">django/__init__.py</span></code>·for·the·release.253 <li><p>Update·the·version·number·in·<code·class="docutils·literal·notranslate"><span·class="pre">django/__init__.py</span></code>·for·the·release.
253 Please·see·<a·class="reference·internal"·href="#notes-on-setting-the-version-tuple">notes·on·setting·the·VERSION·tuple</a>·below·for·details254 Please·see·<a·class="reference·internal"·href="#notes-on-setting-the-version-tuple">notes·on·setting·the·VERSION·tuple</a>·below·for·details
254 on·<code·class="docutils·literal·notranslate"><span·class="pre">VERSION</span></code>.</p></li>255 on·<code·class="docutils·literal·notranslate"><span·class="pre">VERSION</span></code>.</p></li>
255 <li><p>If·this·is·a·pre-release·package,·update·the·Development·Status·trove256 <li><p>If·this·is·a·pre-release·package,·update·the·«Development·Status»·trove
256 classifier·in·<code·class="docutils·literal·notranslate"><span·class="pre">setup.cfg</span></code>·to·reflect·this.·Otherwise,·make·sure·the257 classifier·in·<code·class="docutils·literal·notranslate"><span·class="pre">setup.cfg</span></code>·to·reflect·this.·Otherwise,·make·sure·the
257 classifier·is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">Development</span>·<span·class="pre">Status</span>·<span·class="pre">::</span>·<span·class="pre">5</span>·<span·class="pre">-</span>·<span·class="pre">Production/Stable</span></code>.</p></li>258 classifier·is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">Development</span>·<span·class="pre">Status</span>·<span·class="pre">::</span>·<span·class="pre">5</span>·<span·class="pre">-</span>·<span·class="pre">Production/Stable</span></code>.</p></li>
258 <li><p>Tag·the·release·using·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">tag</span></code>.·For·example:</p>259 <li><p>Tag·the·release·using·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">tag</span></code>.·For·example:</p>
259 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>git<span·class="w">·</span>tag<span·class="w">·</span>--sign<span·class="w">·</span>--message<span·class="o">=</span><span·class="s2">&quot;Tag·4.1.1&quot;</span><span·class="w">·</span><span·class="m">4</span>.1.1260 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>git<span·class="w">·</span>tag<span·class="w">·</span>--sign<span·class="w">·</span>--message<span·class="o">=</span><span·class="s2">&quot;Tag·4.1.1&quot;</span><span·class="w">·</span><span·class="m">4</span>.1.1
260 </pre></div>261 </pre></div>
261 </div>262 </div>
262 <p>You·can·check·your·work·by·running·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">tag</span>·<span·class="pre">--verify</span>·<span·class="pre">&lt;tag&gt;</span></code>.</p>263 <p>You·can·check·your·work·by·running·<code·class="docutils·literal·notranslate"><span·class="pre">git</span>·<span·class="pre">tag</span>·<span·class="pre">--verify</span>·<span·class="pre">&lt;tag&gt;</span></code>.</p>
Offset 269, 15 lines modifiedOffset 270, 15 lines modified
269 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span><span·class="nb">cd</span><span·class="w">·</span>dist270 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span><span·class="nb">cd</span><span·class="w">·</span>dist
270 $<span·class="w">·</span>md5sum<span·class="w">·</span>*271 $<span·class="w">·</span>md5sum<span·class="w">·</span>*
271 $<span·class="w">·</span>sha1sum<span·class="w">·</span>*272 $<span·class="w">·</span>sha1sum<span·class="w">·</span>*
272 $<span·class="w">·</span>sha256sum<span·class="w">·</span>*273 $<span·class="w">·</span>sha256sum<span·class="w">·</span>*
273 </pre></div>274 </pre></div>
274 </div>275 </div>
275 </li>276 </li>
276 <li><p>Create·a·checksums·file,·<code·class="docutils·literal·notranslate"><span·class="pre">Django-&lt;&lt;VERSION&gt;&gt;.checksum.txt</span></code>·containing277 <li><p>Create·a·«checksums»·file,·<code·class="docutils·literal·notranslate"><span·class="pre">Django-&lt;&lt;VERSION&gt;&gt;.checksum.txt</span></code>·containing
277 the·hashes·and·release·information.·Start·with·this·template·and·insert·the278 the·hashes·and·release·information.·Start·with·this·template·and·insert·the
278 correct·version,·date,·GPG·key·ID·(from279 correct·version,·date,·GPG·key·ID·(from
279 <code·class="docutils·literal·notranslate"><span·class="pre">gpg</span>·<span·class="pre">--list-keys</span>·<span·class="pre">--keyid-format</span>·<span·class="pre">LONG</span></code>),·release·manager’s·GitHub·username,280 <code·class="docutils·literal·notranslate"><span·class="pre">gpg</span>·<span·class="pre">--list-keys</span>·<span·class="pre">--keyid-format</span>·<span·class="pre">LONG</span></code>),·release·manager’s·GitHub·username,
280 release·URL,·and·checksums:</p>281 release·URL,·and·checksums:</p>
281 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>This·file·contains·MD5,·SHA1,·and·SHA256·checksums·for·the·source-code282 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>This·file·contains·MD5,·SHA1,·and·SHA256·checksums·for·the·source-code
282 tarball·and·wheel·files·of·Django·&lt;&lt;VERSION&gt;&gt;,·released·&lt;&lt;DATE&gt;&gt;.283 tarball·and·wheel·files·of·Django·&lt;&lt;VERSION&gt;&gt;,·released·&lt;&lt;DATE&gt;&gt;.
  
Offset 378, 15 lines modifiedOffset 379, 15 lines modified
378 file):</p>379 file):</p>
379 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>twine<span·class="w">·</span>upload<span·class="w">·</span>-s<span·class="w">·</span>dist/*380 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>twine<span·class="w">·</span>upload<span·class="w">·</span>-s<span·class="w">·</span>dist/*
380 </pre></div>381 </pre></div>
381 </div>382 </div>
382 </li>383 </li>
383 <li><p>Go·to·the·<a·class="reference·external"·href="https://www.djangoproject.com/admin/releases/release/add/">Add·release·page·in·the·admin</a>,·enter·the·new·release·number384 <li><p>Go·to·the·<a·class="reference·external"·href="https://www.djangoproject.com/admin/releases/release/add/">Add·release·page·in·the·admin</a>,·enter·the·new·release·number
384 exactly·as·it·appears·in·the·name·of·the·tarball385 exactly·as·it·appears·in·the·name·of·the·tarball
385 (<code·class="docutils·literal·notranslate"><span·class="pre">Django-&lt;version&gt;.tar.gz</span></code>).·So·for·example·enter·4.1.1·or·4.2rc1,386 (<code·class="docutils·literal·notranslate"><span·class="pre">Django-&lt;version&gt;.tar.gz</span></code>).·So·for·example·enter·«4.1.1»·or·«4.2rc1»,
386 etc.·If·the·release·is·part·of·an·LTS·branch,·mark·it·so.</p>387 etc.·If·the·release·is·part·of·an·LTS·branch,·mark·it·so.</p>
387 <p>If·this·is·the·alpha·release·of·a·new·series,·also·create·a·Release·object388 <p>If·this·is·the·alpha·release·of·a·new·series,·also·create·a·Release·object
388 for·the·<em>final</em>·release,·ensuring·that·the·<em>Release·date</em>·field·is·blank,389 for·the·<em>final</em>·release,·ensuring·that·the·<em>Release·date</em>·field·is·blank,
389 thus·marking·it·as·<em>unreleased</em>.·For·example,·when·creating·the·Release390 thus·marking·it·as·<em>unreleased</em>.·For·example,·when·creating·the·Release
390 object·for·<code·class="docutils·literal·notranslate"><span·class="pre">4.2a1</span></code>,·also·create·<code·class="docutils·literal·notranslate"><span·class="pre">4.2</span></code>·with·the·Release·date·field·blank.</p>391 object·for·<code·class="docutils·literal·notranslate"><span·class="pre">4.2a1</span></code>,·also·create·<code·class="docutils·literal·notranslate"><span·class="pre">4.2</span></code>·with·the·Release·date·field·blank.</p>
391 </li>392 </li>
392 <li><p>Make·the·blog·post·announcing·the·release·live.</p></li>393 <li><p>Make·the·blog·post·announcing·the·release·live.</p></li>
Offset 407, 15 lines modifiedOffset 408, 15 lines modified
407 </div>408 </div>
408 </li>409 </li>
409 <li><p>Post·the·release·announcement·to·the·<a·class="reference·internal"·href="mailing-lists.html#django-announce-mailing-list"><span·class="std·std-ref">django-announce</span></a>,·<a·class="reference·internal"·href="mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>,410 <li><p>Post·the·release·announcement·to·the·<a·class="reference·internal"·href="mailing-lists.html#django-announce-mailing-list"><span·class="std·std-ref">django-announce</span></a>,·<a·class="reference·internal"·href="mailing-lists.html#django-developers-mailing-list"><span·class="std·std-ref">django-developers</span></a>,
410 <a·class="reference·internal"·href="mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·mailing·lists,·and·the·Django·Forum.·This·should·include·a411 <a·class="reference·internal"·href="mailing-lists.html#django-users-mailing-list"><span·class="std·std-ref">django-users</span></a>·mailing·lists,·and·the·Django·Forum.·This·should·include·a
411 link·to·the·announcement·blog·post.</p></li>412 link·to·the·announcement·blog·post.</p></li>
412 <li><p>If·this·is·a·security·release,·send·a·separate·email·to413 <li><p>If·this·is·a·security·release,·send·a·separate·email·to
413 <a·class="reference·external"·href="mailto:oss-security&#37;&#52;&#48;lists&#46;openwall&#46;com">oss-security<span>&#64;</span>lists<span>&#46;</span>openwall<span>&#46;</span>com</a>.·Provide·a·descriptive·subject,·for·example,414 <a·class="reference·external"·href="mailto:oss-security&#37;&#52;&#48;lists&#46;openwall&#46;com">oss-security<span>&#64;</span>lists<span>&#46;</span>openwall<span>&#46;</span>com</a>.·Provide·a·descriptive·subject,·for·example,
Max diff block lines reached; 8750/19271 bytes (45.41%) of diff not shown.
13.0 KB
html2text {}
Max HTML report size reached
7.07 KB
./usr/share/doc/python-django-doc/html/internals/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·internals·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·internals·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Contributing·to·Django"·href="contributing/index.html"·/>15 ····<link·rel="next"·title="Contributing·to·Django"·href="contributing/index.html"·/>
15 ····<link·rel="prev"·title="Archive·of·security·issues"·href="../releases/security.html"·/>16 ····<link·rel="prev"·title="Archive·of·security·issues"·href="../releases/security.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../releases/security.html"·title="Archive·of·security·issues">previous</a>67 ····&laquo;·<a·href="../releases/security.html"·title="Archive·of·security·issues">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="contributing/index.html"·title="Contributing·to·Django">next</a>·&raquo;</div>71 ····<a·href="contributing/index.html"·title="Contributing·to·Django">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 169, 47 lines modifiedOffset 170, 47 lines modified
169 ······170 ······
170 ········171 ········
171 ··········<div·class="yui-b"·id="sidebar">172 ··········<div·class="yui-b"·id="sidebar">
172 ············173 ············
173 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">174 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
174 ········<div·class="sphinxsidebarwrapper">175 ········<div·class="sphinxsidebarwrapper">
175 ··<div>176 ··<div>
176 ····<h4>Previous·topic</h4>177 ····<h4>Argomento·precedente</h4>
177 ····<p·class="topless"><a·href="../releases/security.html"178 ····<p·class="topless"><a·href="../releases/security.html"
178 ··························title="previous·chapter">Archive·of·security·issues</a></p>179 ··························title="capitolo·precedente">Archive·of·security·issues</a></p>
179 ··</div>180 ··</div>
180 ··<div>181 ··<div>
181 ····<h4>Next·topic</h4>182 ····<h4>Argomento·successivo</h4>
182 ····<p·class="topless"><a·href="contributing/index.html"183 ····<p·class="topless"><a·href="contributing/index.html"
183 ··························title="next·chapter">Contributing·to·Django</a></p>184 ··························title="capitolo·successivo">Contributing·to·Django</a></p>
184 ··</div>185 ··</div>
185 <search·id="searchbox"·style="display:·none"·role="search">186 <search·id="searchbox"·style="display:·none"·role="search">
186 ··<h3·id="searchlabel">Quick·search</h3>187 ··<h3·id="searchlabel">Ricerca·veloce</h3>
187 ····<div·class="searchformwrapper">188 ····<div·class="searchformwrapper">
188 ····<form·class="search"·action="../search.html"·method="get">189 ····<form·class="search"·action="../search.html"·method="get">
189 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
190 ······<input·type="submit"·value="Go"·/>191 ······<input·type="submit"·value="Vai"·/>
191 ····</form>192 ····</form>
192 ····</div>193 ····</div>
193 </search>194 </search>
194 <script>document.getElementById('searchbox').style.display·=·"block"</script>195 <script>document.getElementById('searchbox').style.display·=·"block"</script>
195 ········</div>196 ········</div>
196 ······</div>197 ······</div>
197 ··············<h3>Last·update:</h3>198 ··············<h3>Last·update:</h3>
198 ··············<p·class="topless">Sep·03,·2024</p>199 ··············<p·class="topless">set·03,·2024</p>
199 ··········</div>200 ··········</div>
200 ········201 ········
201 ······202 ······
202 ····</div>203 ····</div>
  
203 ····<div·id="ft">204 ····<div·id="ft">
204 ······<div·class="nav">205 ······<div·class="nav">
205 ····&laquo;·<a·href="../releases/security.html"·title="Archive·of·security·issues">previous</a>206 ····&laquo;·<a·href="../releases/security.html"·title="Archive·of·security·issues">previous</a>
206 ·····|207 ·····|
207 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>208 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
208 ···|209 ···|
209 ····<a·href="contributing/index.html"·title="Contributing·to·Django">next</a>·&raquo;</div>210 ····<a·href="contributing/index.html"·title="Contributing·to·Django">next</a>·&raquo;</div>
210 ····</div>211 ····</div>
211 ··</div>212 ··</div>
  
212 ······<div·class="clearer"></div>213 ······<div·class="clearer"></div>
213 ····</div>214 ····</div>
2.32 KB
html2text {}
Max HTML report size reached
13.2 KB
./usr/share/doc/python-django-doc/html/internals/mailing-lists.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Mailing·lists·and·Forum·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Mailing·lists·and·Forum·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Organization·of·the·Django·Project"·href="organization.html"·/>15 ····<link·rel="next"·title="Organization·of·the·Django·Project"·href="organization.html"·/>
15 ····<link·rel="prev"·title="Committing·code"·href="contributing/committing-code.html"·/>16 ····<link·rel="prev"·title="Committing·code"·href="contributing/committing-code.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="internals-mailing-lists">79 ··········<div·class="yui-g"·id="internals-mailing-lists">
79 ············80 ············
80 ··<section·id="s-mailing-lists-and-forum">81 ··<section·id="s-mailing-lists-and-forum">
81 <span·id="mailing-lists-and-forum"></span><h1>Mailing·lists·and·Forum<a·class="headerlink"·href="#mailing-lists-and-forum"·title="Link·to·this·heading">¶</a></h1>82 <span·id="mailing-lists-and-forum"></span><h1>Mailing·lists·and·Forum<a·class="headerlink"·href="#mailing-lists-and-forum"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·important">83 <div·class="admonition·important">
83 <p·class="admonition-title">Important</p>84 <p·class="admonition-title">Importante</p>
84 <p>Please·report·security·issues·<strong>only</strong>·to85 <p>Please·report·security·issues·<strong>only</strong>·to
85 <a·class="reference·external"·href="mailto:security&#37;&#52;&#48;djangoproject&#46;com">security<span>&#64;</span>djangoproject<span>&#46;</span>com</a>.··This·is·a·private·list·only·open·to86 <a·class="reference·external"·href="mailto:security&#37;&#52;&#48;djangoproject&#46;com">security<span>&#64;</span>djangoproject<span>&#46;</span>com</a>.··This·is·a·private·list·only·open·to
86 long-time,·highly·trusted·Django·developers,·and·its·archives·are87 long-time,·highly·trusted·Django·developers,·and·its·archives·are
87 not·public.·For·further·details,·please·see·<a·class="reference·internal"·href="security.html"><span·class="doc">our·security88 not·public.·For·further·details,·please·see·<a·class="reference·internal"·href="security.html"><span·class="doc">our·security
88 policies</span></a>.</p>89 policies</span></a>.</p>
89 </div>90 </div>
90 <section·id="s-django-forum">91 <section·id="s-django-forum">
Offset 98, 44 lines modifiedOffset 99, 44 lines modified
98 </ul>99 </ul>
99 <p>In·addition,·Django·has·several·official·mailing·lists·on·Google·Groups·that100 <p>In·addition,·Django·has·several·official·mailing·lists·on·Google·Groups·that
100 are·open·to·anyone.</p>101 are·open·to·anyone.</p>
101 </section>102 </section>
102 <section·id="s-django-users">103 <section·id="s-django-users">
103 <span·id="s-django-users-mailing-list"></span><span·id="django-users"></span><span·id="django-users-mailing-list"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">django-users</span></code><a·class="headerlink"·href="#django-users"·title="Link·to·this·heading">¶</a></h2>104 <span·id="s-django-users-mailing-list"></span><span·id="django-users"></span><span·id="django-users-mailing-list"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">django-users</span></code><a·class="headerlink"·href="#django-users"·title="Link·to·this·heading">¶</a></h2>
104 <div·class="admonition·note">105 <div·class="admonition·note">
105 <p·class="admonition-title">Note</p>106 <p·class="admonition-title">Nota</p>
106 <p>The·<a·class="reference·external"·href="https://forum.djangoproject.com/c/users/6">Using·Django</a>·category·of·the·<a·class="reference·external"·href="https://forum.djangoproject.com">official·Forum</a>·is·now·the·preferred107 <p>The·<a·class="reference·external"·href="https://forum.djangoproject.com/c/users/6">Using·Django</a>·category·of·the·<a·class="reference·external"·href="https://forum.djangoproject.com">official·Forum</a>·is·now·the·preferred
107 venue·for·asking·usage·questions.</p>108 venue·for·asking·usage·questions.</p>
108 </div>109 </div>
109 <p>This·is·the·right·place·if·you·are·looking·to·ask·any·question·regarding·the110 <p>This·is·the·right·place·if·you·are·looking·to·ask·any·question·regarding·the
110 installation,·usage,·or·debugging·of·Django.</p>111 installation,·usage,·or·debugging·of·Django.</p>
111 <div·class="admonition·note">112 <div·class="admonition·note">
112 <p·class="admonition-title">Note</p>113 <p·class="admonition-title">Nota</p>
113 <p>If·it’s·the·first·time·you·send·an·email·to·this·list,·your·email·must·be114 <p>If·it’s·the·first·time·you·send·an·email·to·this·list,·your·email·must·be
114 accepted·first·so·don’t·worry·if·<a·class="reference·internal"·href="../faq/help.html#message-does-not-appear-on-django-users"><span·class="std·std-ref">your·message·does·not·appear</span></a>·instantly.</p>115 accepted·first·so·don’t·worry·if·<a·class="reference·internal"·href="../faq/help.html#message-does-not-appear-on-django-users"><span·class="std·std-ref">your·message·does·not·appear</span></a>·instantly.</p>
115 </div>116 </div>
116 <ul·class="simple">117 <ul·class="simple">
117 <li><p><a·class="reference·external"·href="https://groups.google.com/g/django-users">django-users·mailing·archive</a></p></li>118 <li><p><a·class="reference·external"·href="https://groups.google.com/g/django-users">django-users·mailing·archive</a></p></li>
118 <li><p><a·class="reference·external"·href="mailto:django-users+subscribe&#37;&#52;&#48;googlegroups&#46;com">django-users·subscription·email·address</a></p></li>119 <li><p><a·class="reference·external"·href="mailto:django-users+subscribe&#37;&#52;&#48;googlegroups&#46;com">django-users·subscription·email·address</a></p></li>
119 <li><p><a·class="reference·external"·href="mailto:django-users&#37;&#52;&#48;googlegroups&#46;com">django-users·posting·email</a></p></li>120 <li><p><a·class="reference·external"·href="mailto:django-users&#37;&#52;&#48;googlegroups&#46;com">django-users·posting·email</a></p></li>
120 </ul>121 </ul>
121 </section>122 </section>
122 <section·id="s-django-developers">123 <section·id="s-django-developers">
123 <span·id="s-django-developers-mailing-list"></span><span·id="django-developers"></span><span·id="django-developers-mailing-list"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">django-developers</span></code><a·class="headerlink"·href="#django-developers"·title="Link·to·this·heading">¶</a></h2>124 <span·id="s-django-developers-mailing-list"></span><span·id="django-developers"></span><span·id="django-developers-mailing-list"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">django-developers</span></code><a·class="headerlink"·href="#django-developers"·title="Link·to·this·heading">¶</a></h2>
124 <div·class="admonition·note">125 <div·class="admonition·note">
125 <p·class="admonition-title">Note</p>126 <p·class="admonition-title">Nota</p>
126 <p>The·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/5">Internals</a>·category·of·the·<a·class="reference·external"·href="https://forum.djangoproject.com">official·Forum</a>·is·now·the·preferred127 <p>The·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/5">Internals</a>·category·of·the·<a·class="reference·external"·href="https://forum.djangoproject.com">official·Forum</a>·is·now·the·preferred
127 venue·for·discussing·the·development·of·Django.</p>128 venue·for·discussing·the·development·of·Django.</p>
128 </div>129 </div>
129 <p>The·discussion·about·the·development·of·Django·itself·takes·place·here.</p>130 <p>The·discussion·about·the·development·of·Django·itself·takes·place·here.</p>
130 <p>Before·asking·a·question·about·how·to·contribute,·read131 <p>Before·asking·a·question·about·how·to·contribute,·read
131 <a·class="reference·internal"·href="contributing/index.html"><span·class="doc">Contributing·to·Django</span></a>.·Many·frequently·asked·questions·are132 <a·class="reference·internal"·href="contributing/index.html"><span·class="doc">Contributing·to·Django</span></a>.·Many·frequently·asked·questions·are
132 answered·there.</p>133 answered·there.</p>
133 <div·class="admonition·note">134 <div·class="admonition·note">
134 <p·class="admonition-title">Note</p>135 <p·class="admonition-title">Nota</p>
135 <p>Please·make·use·of136 <p>Please·make·use·of
136 <a·class="reference·internal"·href="#django-users-mailing-list"><span·class="std·std-ref">django-users·mailing·list</span></a>·if·you·want137 <a·class="reference·internal"·href="#django-users-mailing-list"><span·class="std·std-ref">django-users·mailing·list</span></a>·if·you·want
137 to·ask·for·tech·support,·doing·so·in·this·list·is·inappropriate.</p>138 to·ask·for·tech·support,·doing·so·in·this·list·is·inappropriate.</p>
138 </div>139 </div>
139 <ul·class="simple">140 <ul·class="simple">
140 <li><p><a·class="reference·external"·href="https://groups.google.com/g/django-developers">django-developers·mailing·archive</a></p></li>141 <li><p><a·class="reference·external"·href="https://groups.google.com/g/django-developers">django-developers·mailing·archive</a></p></li>
141 <li><p><a·class="reference·external"·href="mailto:django-developers+subscribe&#37;&#52;&#48;googlegroups&#46;com">django-developers·subscription·email·address</a></p></li>142 <li><p><a·class="reference·external"·href="mailto:django-developers+subscribe&#37;&#52;&#48;googlegroups&#46;com">django-developers·subscription·email·address</a></p></li>
Offset 184, 37 lines modifiedOffset 185, 37 lines modified
184 <li><a·class="reference·internal"·href="#django-updates"><code·class="docutils·literal·notranslate"><span·class="pre">django-updates</span></code></a></li>185 <li><a·class="reference·internal"·href="#django-updates"><code·class="docutils·literal·notranslate"><span·class="pre">django-updates</span></code></a></li>
185 </ul>186 </ul>
186 </li>187 </li>
187 </ul>188 </ul>
  
188 ··</div>189 ··</div>
189 ··<div>190 ··<div>
190 ····<h4>Previous·topic</h4>191 ····<h4>Argomento·precedente</h4>
191 ····<p·class="topless"><a·href="contributing/committing-code.html"192 ····<p·class="topless"><a·href="contributing/committing-code.html"
192 ··························title="previous·chapter">Committing·code</a></p>193 ··························title="capitolo·precedente">Committing·code</a></p>
193 ··</div>194 ··</div>
194 ··<div>195 ··<div>
195 ····<h4>Next·topic</h4>196 ····<h4>Argomento·successivo</h4>
196 ····<p·class="topless"><a·href="organization.html"197 ····<p·class="topless"><a·href="organization.html"
197 ··························title="next·chapter">Organization·of·the·Django·Project</a></p>198 ··························title="capitolo·successivo">Organization·of·the·Django·Project</a></p>
198 ··</div>199 ··</div>
199 <search·id="searchbox"·style="display:·none"·role="search">200 <search·id="searchbox"·style="display:·none"·role="search">
200 ··<h3·id="searchlabel">Quick·search</h3>201 ··<h3·id="searchlabel">Ricerca·veloce</h3>
201 ····<div·class="searchformwrapper">202 ····<div·class="searchformwrapper">
202 ····<form·class="search"·action="../search.html"·method="get">203 ····<form·class="search"·action="../search.html"·method="get">
203 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>204 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
204 ······<input·type="submit"·value="Go"·/>205 ······<input·type="submit"·value="Vai"·/>
205 ····</form>206 ····</form>
206 ····</div>207 ····</div>
207 </search>208 </search>
208 <script>document.getElementById('searchbox').style.display·=·"block"</script>209 <script>document.getElementById('searchbox').style.display·=·"block"</script>
Max diff block lines reached; 247/8445 bytes (2.92%) of diff not shown.
4.84 KB
html2text {}
Max HTML report size reached
8.41 KB
./usr/share/doc/python-django-doc/html/internals/organization.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Organization·of·the·Django·Project·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Organization·of·the·Django·Project·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django’s·security·policies"·href="security.html"·/>15 ····<link·rel="next"·title="Django’s·security·policies"·href="security.html"·/>
15 ····<link·rel="prev"·title="Mailing·lists·and·Forum"·href="mailing-lists.html"·/>16 ····<link·rel="prev"·title="Mailing·lists·and·Forum"·href="mailing-lists.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 317, 15 lines modifiedOffset 318, 15 lines modified
317 <li><p>Becoming·disqualified·due·to·actions·taken·by·the·Code·of·Conduct·committee318 <li><p>Becoming·disqualified·due·to·actions·taken·by·the·Code·of·Conduct·committee
318 of·the·Django·Software·Foundation.</p></li>319 of·the·Django·Software·Foundation.</p></li>
319 <li><p>Determining·that·they·did·not·possess·the·qualifications·of·a·member·of·the320 <li><p>Determining·that·they·did·not·possess·the·qualifications·of·a·member·of·the
320 steering·council.·This·determination·must·be·made·jointly·by·the·other·members321 steering·council.·This·determination·must·be·made·jointly·by·the·other·members
321 of·the·steering·council,·and·the·<a·class="reference·external"·href="https://www.djangoproject.com/foundation/#board">DSF·Board</a>.·A·valid·determination·of322 of·the·steering·council,·and·the·<a·class="reference·external"·href="https://www.djangoproject.com/foundation/#board">DSF·Board</a>.·A·valid·determination·of
322 ineligibility·requires·that·all·other·members·of·the·steering·council·and·all323 ineligibility·requires·that·all·other·members·of·the·steering·council·and·all
323 members·of·the·DSF·Board·vote·who·can·vote·on·the·issue·(the·affected·person,324 members·of·the·DSF·Board·vote·who·can·vote·on·the·issue·(the·affected·person,
324 if·a·DSF·Board·member,·must·not·vote)·vote·yes·on·a·motion·that·the·person325 if·a·DSF·Board·member,·must·not·vote)·vote·«yes»·on·a·motion·that·the·person
325 in·question·is·ineligible.</p></li>326 in·question·is·ineligible.</p></li>
326 </ul>327 </ul>
327 </section>328 </section>
328 </section>329 </section>
329 <section·id="s-changing-the-organization">330 <section·id="s-changing-the-organization">
330 <span·id="s-organization-change"></span><span·id="changing-the-organization"></span><span·id="organization-change"></span><h2>Changing·the·organization<a·class="headerlink"·href="#changing-the-organization"·title="Link·to·this·heading">¶</a></h2>331 <span·id="s-organization-change"></span><span·id="changing-the-organization"></span><span·id="organization-change"></span><h2>Changing·the·organization<a·class="headerlink"·href="#changing-the-organization"·title="Link·to·this·heading">¶</a></h2>
331 <p>Changes·to·this·document·require·the·use·of·the·<a·class="reference·external"·href="https://github.com/django/deps/blob/main/final/0001-dep-process.rst">DEP·process</a>,·with332 <p>Changes·to·this·document·require·the·use·of·the·<a·class="reference·external"·href="https://github.com/django/deps/blob/main/final/0001-dep-process.rst">DEP·process</a>,·with
Offset 369, 37 lines modifiedOffset 370, 37 lines modified
369 <li><a·class="reference·internal"·href="#changing-the-organization">Changing·the·organization</a></li>370 <li><a·class="reference·internal"·href="#changing-the-organization">Changing·the·organization</a></li>
370 </ul>371 </ul>
371 </li>372 </li>
372 </ul>373 </ul>
  
373 ··</div>374 ··</div>
374 ··<div>375 ··<div>
375 ····<h4>Previous·topic</h4>376 ····<h4>Argomento·precedente</h4>
376 ····<p·class="topless"><a·href="mailing-lists.html"377 ····<p·class="topless"><a·href="mailing-lists.html"
377 ··························title="previous·chapter">Mailing·lists·and·Forum</a></p>378 ··························title="capitolo·precedente">Mailing·lists·and·Forum</a></p>
378 ··</div>379 ··</div>
379 ··<div>380 ··<div>
380 ····<h4>Next·topic</h4>381 ····<h4>Argomento·successivo</h4>
381 ····<p·class="topless"><a·href="security.html"382 ····<p·class="topless"><a·href="security.html"
382 ··························title="next·chapter">Django’s·security·policies</a></p>383 ··························title="capitolo·successivo">Django’s·security·policies</a></p>
383 ··</div>384 ··</div>
384 <search·id="searchbox"·style="display:·none"·role="search">385 <search·id="searchbox"·style="display:·none"·role="search">
385 ··<h3·id="searchlabel">Quick·search</h3>386 ··<h3·id="searchlabel">Ricerca·veloce</h3>
386 ····<div·class="searchformwrapper">387 ····<div·class="searchformwrapper">
387 ····<form·class="search"·action="../search.html"·method="get">388 ····<form·class="search"·action="../search.html"·method="get">
388 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>389 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
389 ······<input·type="submit"·value="Go"·/>390 ······<input·type="submit"·value="Vai"·/>
390 ····</form>391 ····</form>
391 ····</div>392 ····</div>
392 </search>393 </search>
393 <script>document.getElementById('searchbox').style.display·=·"block"</script>394 <script>document.getElementById('searchbox').style.display·=·"block"</script>
394 ········</div>395 ········</div>
395 ······</div>396 ······</div>
396 ··············<h3>Last·update:</h3>397 ··············<h3>Last·update:</h3>
397 ··············<p·class="topless">Sep·03,·2024</p>398 ··············<p·class="topless">set·03,·2024</p>
398 ··········</div>399 ··········</div>
399 ········400 ········
400 ······401 ······
401 ····</div>402 ····</div>
  
402 ····<div·id="ft">403 ····<div·id="ft">
403 ······<div·class="nav">404 ······<div·class="nav">
3.3 KB
html2text {}
Max HTML report size reached
13.0 KB
./usr/share/doc/python-django-doc/html/internals/release-process.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django’s·release·process·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django’s·release·process·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·Deprecation·Timeline"·href="deprecation.html"·/>15 ····<link·rel="next"·title="Django·Deprecation·Timeline"·href="deprecation.html"·/>
15 ····<link·rel="prev"·title="Django’s·security·policies"·href="security.html"·/>16 ····<link·rel="prev"·title="Django’s·security·policies"·href="security.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 30 lines modifiedOffset 108, 30 lines modified
107 ·see·<a·class="reference·internal"·href="#id2">release·process</a>·for·details.·These·releases·will·contain·new108 ·see·<a·class="reference·internal"·href="#id2">release·process</a>·for·details.·These·releases·will·contain·new
108 features,·improvements·to·existing·features,·and·such.</p>109 features,·improvements·to·existing·features,·and·such.</p>
109 </dd>110 </dd>
110 <dt·id="term-Patch-release">Patch·release<a·class="headerlink"·href="#term-Patch-release"·title="Link·to·this·term">¶</a></dt><dd><p>Patch·releases·(A.B.C,·A.B.C+1,·etc.)·will·be·issued·as·needed,·to·fix111 <dt·id="term-Patch-release">Patch·release<a·class="headerlink"·href="#term-Patch-release"·title="Link·to·this·term">¶</a></dt><dd><p>Patch·releases·(A.B.C,·A.B.C+1,·etc.)·will·be·issued·as·needed,·to·fix
111 bugs·and/or·security·issues.</p>112 bugs·and/or·security·issues.</p>
112 <p>These·releases·will·be·100%·compatible·with·the·associated·feature·release,113 <p>These·releases·will·be·100%·compatible·with·the·associated·feature·release,
113 unless·this·is·impossible·for·security·reasons·or·to·prevent·data·loss.114 unless·this·is·impossible·for·security·reasons·or·to·prevent·data·loss.
114 So·the·answer·to·should·I·upgrade·to·the·latest·patch·release?·will·always115 So·the·answer·to·«should·I·upgrade·to·the·latest·patch·release?»·will·always
115 be·yes.</p>116 be·«yes.»</p>
116 </dd>117 </dd>
117 <dt·id="term-Long-term-support-release">Long-term·support·release<a·class="headerlink"·href="#term-Long-term-support-release"·title="Link·to·this·term">¶</a></dt><dd><p>Certain·feature·releases·will·be·designated·as·long-term·support·(LTS)118 <dt·id="term-Long-term-support-release">Long-term·support·release<a·class="headerlink"·href="#term-Long-term-support-release"·title="Link·to·this·term">¶</a></dt><dd><p>Certain·feature·releases·will·be·designated·as·long-term·support·(LTS)
118 releases.·These·releases·will·get·security·and·data·loss·fixes·applied·for119 releases.·These·releases·will·get·security·and·data·loss·fixes·applied·for
119 a·guaranteed·period·of·time,·typically·three·years.</p>120 a·guaranteed·period·of·time,·typically·three·years.</p>
120 <p>See·<a·class="reference·external"·href="https://www.djangoproject.com/download/">the·download·page</a>·for·the·releases·that·have·been·designated·for121 <p>See·<a·class="reference·external"·href="https://www.djangoproject.com/download/">the·download·page</a>·for·the·releases·that·have·been·designated·for
121 long-term·support.</p>122 long-term·support.</p>
122 </dd>123 </dd>
123 </dl>124 </dl>
124 </section>125 </section>
125 <section·id="s-release-cadence">126 <section·id="s-release-cadence">
126 <span·id="s-internal-release-cadence"></span><span·id="release-cadence"></span><span·id="internal-release-cadence"></span><h2>Release·cadence<a·class="headerlink"·href="#release-cadence"·title="Link·to·this·heading">¶</a></h2>127 <span·id="s-internal-release-cadence"></span><span·id="release-cadence"></span><span·id="internal-release-cadence"></span><h2>Release·cadence<a·class="headerlink"·href="#release-cadence"·title="Link·to·this·heading">¶</a></h2>
127 <p>Starting·with·Django·2.0,·version·numbers·will·use·a·loose·form·of·<a·class="reference·external"·href="https://semver.org/">semantic128 <p>Starting·with·Django·2.0,·version·numbers·will·use·a·loose·form·of·<a·class="reference·external"·href="https://semver.org/">semantic
128 versioning</a>·such·that·each·version·following·an·LTS·will129 versioning</a>·such·that·each·version·following·an·LTS·will
129 bump·to·the·next·dot·zero·version.·For·example:·2.0,·2.1,·2.2·(LTS),·3.0,130 bump·to·the·next·«dot·zero»·version.·For·example:·2.0,·2.1,·2.2·(LTS),·3.0,
130 3.1,·3.2·(LTS),·etc.</p>131 3.1,·3.2·(LTS),·etc.</p>
131 <p>SemVer·makes·it·easier·to·see·at·a·glance·how·compatible·releases·are·with·each132 <p>SemVer·makes·it·easier·to·see·at·a·glance·how·compatible·releases·are·with·each
132 other.·It·also·helps·to·anticipate·when·compatibility·shims·will·be·removed.133 other.·It·also·helps·to·anticipate·when·compatibility·shims·will·be·removed.
133 It’s·not·a·pure·form·of·SemVer·as·each·feature·release·will·continue·to·have·a134 It’s·not·a·pure·form·of·SemVer·as·each·feature·release·will·continue·to·have·a
134 few·documented·backwards·incompatibilities·where·a·deprecation·path·isn’t135 few·documented·backwards·incompatibilities·where·a·deprecation·path·isn’t
135 possible·or·not·worth·the·cost.·Also,·deprecations·started·in·an·LTS·release136 possible·or·not·worth·the·cost.·Also,·deprecations·started·in·an·LTS·release
136 (X.2)·will·be·dropped·in·a·non-dot-zero·release·(Y.1)·to·accommodate·our·policy137 (X.2)·will·be·dropped·in·a·non-dot-zero·release·(Y.1)·to·accommodate·our·policy
Offset 231, 15 lines modifiedOffset 232, 15 lines modified
231 features·to·include·in·the·next·version.·This·should·include·a·good·deal·of232 features·to·include·in·the·next·version.·This·should·include·a·good·deal·of
232 preliminary·work·on·those·features··working·code·trumps·grand·design.</p>233 preliminary·work·on·those·features··working·code·trumps·grand·design.</p>
233 <p>Major·features·for·an·upcoming·release·will·be·added·to·the·wiki·roadmap·page,234 <p>Major·features·for·an·upcoming·release·will·be·added·to·the·wiki·roadmap·page,
234 e.g.·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/Version1.11Roadmap">https://code.djangoproject.com/wiki/Version1.11Roadmap</a>.</p>235 e.g.·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/Version1.11Roadmap">https://code.djangoproject.com/wiki/Version1.11Roadmap</a>.</p>
235 </section>236 </section>
236 <section·id="s-phase-two-development">237 <section·id="s-phase-two-development">
237 <span·id="phase-two-development"></span><h4>Phase·two:·development<a·class="headerlink"·href="#phase-two-development"·title="Link·to·this·heading">¶</a></h4>238 <span·id="phase-two-development"></span><h4>Phase·two:·development<a·class="headerlink"·href="#phase-two-development"·title="Link·to·this·heading">¶</a></h4>
238 <p>The·second·part·of·the·release·schedule·is·the·heads-down·working·period.239 <p>The·second·part·of·the·release·schedule·is·the·«heads-down»·working·period.
239 Using·the·roadmap·produced·at·the·end·of·phase·one,·we’ll·all·work·very·hard·to240 Using·the·roadmap·produced·at·the·end·of·phase·one,·we’ll·all·work·very·hard·to
240 get·everything·on·it·done.</p>241 get·everything·on·it·done.</p>
241 <p>At·the·end·of·phase·two,·any·unfinished·features·will·be·postponed·until·the242 <p>At·the·end·of·phase·two,·any·unfinished·features·will·be·postponed·until·the
242 next·release.</p>243 next·release.</p>
243 <p>Phase·two·will·culminate·with·an·alpha·release.·At·this·point,·the244 <p>Phase·two·will·culminate·with·an·alpha·release.·At·this·point,·the
244 <code·class="docutils·literal·notranslate"><span·class="pre">stable/A.B.x</span></code>·branch·will·be·forked·from·<code·class="docutils·literal·notranslate"><span·class="pre">main</span></code>.</p>245 <code·class="docutils·literal·notranslate"><span·class="pre">stable/A.B.x</span></code>·branch·will·be·forked·from·<code·class="docutils·literal·notranslate"><span·class="pre">main</span></code>.</p>
245 </section>246 </section>
Offset 301, 37 lines modifiedOffset 302, 37 lines modified
301 </li>302 </li>
302 </ul>303 </ul>
303 </li>304 </li>
304 </ul>305 </ul>
  
305 ··</div>306 ··</div>
306 ··<div>307 ··<div>
307 ····<h4>Previous·topic</h4>308 ····<h4>Argomento·precedente</h4>
308 ····<p·class="topless"><a·href="security.html"309 ····<p·class="topless"><a·href="security.html"
309 ··························title="previous·chapter">Django’s·security·policies</a></p>310 ··························title="capitolo·precedente">Django’s·security·policies</a></p>
310 ··</div>311 ··</div>
311 ··<div>312 ··<div>
312 ····<h4>Next·topic</h4>313 ····<h4>Argomento·successivo</h4>
313 ····<p·class="topless"><a·href="deprecation.html"314 ····<p·class="topless"><a·href="deprecation.html"
314 ··························title="next·chapter">Django·Deprecation·Timeline</a></p>315 ··························title="capitolo·successivo">Django·Deprecation·Timeline</a></p>
315 ··</div>316 ··</div>
316 <search·id="searchbox"·style="display:·none"·role="search">317 <search·id="searchbox"·style="display:·none"·role="search">
317 ··<h3·id="searchlabel">Quick·search</h3>318 ··<h3·id="searchlabel">Ricerca·veloce</h3>
318 ····<div·class="searchformwrapper">319 ····<div·class="searchformwrapper">
319 ····<form·class="search"·action="../search.html"·method="get">320 ····<form·class="search"·action="../search.html"·method="get">
320 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>321 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
321 ······<input·type="submit"·value="Go"·/>322 ······<input·type="submit"·value="Vai"·/>
322 ····</form>323 ····</form>
323 ····</div>324 ····</div>
324 </search>325 </search>
325 <script>document.getElementById('searchbox').style.display·=·"block"</script>326 <script>document.getElementById('searchbox').style.display·=·"block"</script>
326 ········</div>327 ········</div>
327 ······</div>328 ······</div>
328 ··············<h3>Last·update:</h3>329 ··············<h3>Last·update:</h3>
329 ··············<p·class="topless">Sep·03,·2024</p>330 ··············<p·class="topless">set·03,·2024</p>
330 ··········</div>331 ··········</div>
331 ········332 ········
332 ······333 ······
333 ····</div>334 ····</div>
  
334 ····<div·id="ft">335 ····<div·id="ft">
335 ······<div·class="nav">336 ······<div·class="nav">
5.59 KB
html2text {}
Max HTML report size reached
8.56 KB
./usr/share/doc/python-django-doc/html/internals/security.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django’s·security·policies·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django’s·security·policies·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django’s·release·process"·href="release-process.html"·/>15 ····<link·rel="next"·title="Django’s·release·process"·href="release-process.html"·/>
15 ····<link·rel="prev"·title="Organization·of·the·Django·Project"·href="organization.html"·/>16 ····<link·rel="prev"·title="Organization·of·the·Django·Project"·href="organization.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 231, 16 lines modifiedOffset 232, 16 lines modified
231 </div>232 </div>
232 </section>233 </section>
233 <section·id="s-requesting-notifications">234 <section·id="s-requesting-notifications">
234 <span·id="requesting-notifications"></span><h2>Requesting·notifications<a·class="headerlink"·href="#requesting-notifications"·title="Link·to·this·heading">¶</a></h2>235 <span·id="requesting-notifications"></span><h2>Requesting·notifications<a·class="headerlink"·href="#requesting-notifications"·title="Link·to·this·heading">¶</a></h2>
235 <p>If·you·believe·that·you,·or·an·organization·you·are·authorized·to236 <p>If·you·believe·that·you,·or·an·organization·you·are·authorized·to
236 represent,·fall·into·one·of·the·groups·listed·above,·you·can·ask·to·be237 represent,·fall·into·one·of·the·groups·listed·above,·you·can·ask·to·be
237 added·to·Django’s·notification·list·by·emailing238 added·to·Django’s·notification·list·by·emailing
238 <code·class="docutils·literal·notranslate"><span·class="pre">security&#64;djangoproject.com</span></code>.·Please·use·the·subject·line·Security239 <code·class="docutils·literal·notranslate"><span·class="pre">security&#64;djangoproject.com</span></code>.·Please·use·the·subject·line·«Security
239 notification·request.</p>240 notification·request».</p>
240 <p>Your·request·<strong>must</strong>·include·the·following·information:</p>241 <p>Your·request·<strong>must</strong>·include·the·following·information:</p>
241 <ul·class="simple">242 <ul·class="simple">
242 <li><p>Your·full,·real·name·and·the·name·of·the·organization·you·represent,243 <li><p>Your·full,·real·name·and·the·name·of·the·organization·you·represent,
243 if·applicable,·as·well·as·your·role·within·that·organization.</p></li>244 if·applicable,·as·well·as·your·role·within·that·organization.</p></li>
244 <li><p>A·detailed·explanation·of·how·you·or·your·organization·fit·at·least245 <li><p>A·detailed·explanation·of·how·you·or·your·organization·fit·at·least
245 one·set·of·criteria·listed·above.</p></li>246 one·set·of·criteria·listed·above.</p></li>
246 <li><p>A·detailed·explanation·of·why·you·are·requesting·security·notifications.247 <li><p>A·detailed·explanation·of·why·you·are·requesting·security·notifications.
Offset 296, 37 lines modifiedOffset 297, 37 lines modified
296 <li><a·class="reference·internal"·href="#requesting-notifications">Requesting·notifications</a></li>297 <li><a·class="reference·internal"·href="#requesting-notifications">Requesting·notifications</a></li>
297 </ul>298 </ul>
298 </li>299 </li>
299 </ul>300 </ul>
  
300 ··</div>301 ··</div>
301 ··<div>302 ··<div>
302 ····<h4>Previous·topic</h4>303 ····<h4>Argomento·precedente</h4>
303 ····<p·class="topless"><a·href="organization.html"304 ····<p·class="topless"><a·href="organization.html"
304 ··························title="previous·chapter">Organization·of·the·Django·Project</a></p>305 ··························title="capitolo·precedente">Organization·of·the·Django·Project</a></p>
305 ··</div>306 ··</div>
306 ··<div>307 ··<div>
307 ····<h4>Next·topic</h4>308 ····<h4>Argomento·successivo</h4>
308 ····<p·class="topless"><a·href="release-process.html"309 ····<p·class="topless"><a·href="release-process.html"
309 ··························title="next·chapter">Django’s·release·process</a></p>310 ··························title="capitolo·successivo">Django’s·release·process</a></p>
310 ··</div>311 ··</div>
311 <search·id="searchbox"·style="display:·none"·role="search">312 <search·id="searchbox"·style="display:·none"·role="search">
312 ··<h3·id="searchlabel">Quick·search</h3>313 ··<h3·id="searchlabel">Ricerca·veloce</h3>
313 ····<div·class="searchformwrapper">314 ····<div·class="searchformwrapper">
314 ····<form·class="search"·action="../search.html"·method="get">315 ····<form·class="search"·action="../search.html"·method="get">
315 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>316 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
316 ······<input·type="submit"·value="Go"·/>317 ······<input·type="submit"·value="Vai"·/>
317 ····</form>318 ····</form>
318 ····</div>319 ····</div>
319 </search>320 </search>
320 <script>document.getElementById('searchbox').style.display·=·"block"</script>321 <script>document.getElementById('searchbox').style.display·=·"block"</script>
321 ········</div>322 ········</div>
322 ······</div>323 ······</div>
323 ··············<h3>Last·update:</h3>324 ··············<h3>Last·update:</h3>
324 ··············<p·class="topless">Sep·03,·2024</p>325 ··············<p·class="topless">set·03,·2024</p>
325 ··········</div>326 ··········</div>
326 ········327 ········
327 ······328 ······
328 ····</div>329 ····</div>
  
329 ····<div·id="ft">330 ····<div·id="ft">
330 ······<div·class="nav">331 ······<div·class="nav">
3.52 KB
html2text {}
Max HTML report size reached
27.2 KB
./usr/share/doc/python-django-doc/html/intro/contributing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·patch·for·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·patch·for·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Using·Django"·href="../topics/index.html"·/>15 ····<link·rel="next"·title="Using·Django"·href="../topics/index.html"·/>
15 ····<link·rel="prev"·title="What·to·read·next"·href="whatsnext.html"·/>16 ····<link·rel="prev"·title="What·to·read·next"·href="whatsnext.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 <p>Contributing·back·to·Django·itself·is·the·best·way·to·see·your·own·concerns101 <p>Contributing·back·to·Django·itself·is·the·best·way·to·see·your·own·concerns
101 addressed.·This·may·seem·daunting·at·first,·but·it’s·a·well-traveled·path·with102 addressed.·This·may·seem·daunting·at·first,·but·it’s·a·well-traveled·path·with
102 documentation,·tooling,·and·a·community·to·support·you.·We’ll·walk·you·through103 documentation,·tooling,·and·a·community·to·support·you.·We’ll·walk·you·through
103 the·entire·process,·so·you·can·learn·by·example.</p>104 the·entire·process,·so·you·can·learn·by·example.</p>
104 <section·id="s-who-s-this-tutorial-for">105 <section·id="s-who-s-this-tutorial-for">
105 <span·id="who-s-this-tutorial-for"></span><h3>Who’s·this·tutorial·for?<a·class="headerlink"·href="#who-s-this-tutorial-for"·title="Link·to·this·heading">¶</a></h3>106 <span·id="who-s-this-tutorial-for"></span><h3>Who’s·this·tutorial·for?<a·class="headerlink"·href="#who-s-this-tutorial-for"·title="Link·to·this·heading">¶</a></h3>
106 <div·class="admonition·seealso">107 <div·class="admonition·seealso">
107 <p·class="admonition-title">See·also</p>108 <p·class="admonition-title">Vedi·anche</p>
108 <p>If·you·are·looking·for·a·reference·on·the·details·of·making·code109 <p>If·you·are·looking·for·a·reference·on·the·details·of·making·code
109 contributions,·see·the·<a·class="reference·internal"·href="../internals/contributing/writing-code/index.html"><span·class="doc">Writing·code</span></a>110 contributions,·see·the·<a·class="reference·internal"·href="../internals/contributing/writing-code/index.html"><span·class="doc">Writing·code</span></a>
110 documentation.</p>111 documentation.</p>
111 </div>112 </div>
112 <p>For·this·tutorial,·we·expect·that·you·have·at·least·a·basic·understanding·of113 <p>For·this·tutorial,·we·expect·that·you·have·at·least·a·basic·understanding·of
113 how·Django·works.·This·means·you·should·be·comfortable·going·through·the114 how·Django·works.·This·means·you·should·be·comfortable·going·through·the
114 existing·tutorials·on·<a·class="reference·internal"·href="tutorial01.html"><span·class="doc">writing·your·first·Django·app</span></a>.115 existing·tutorials·on·<a·class="reference·internal"·href="tutorial01.html"><span·class="doc">writing·your·first·Django·app</span></a>.
Offset 346, 31 lines modifiedOffset 347, 31 lines modified
346 is·the·database·backend·for·the·default·settings.·To·run·the·tests·using·a347 is·the·database·backend·for·the·default·settings.·To·run·the·tests·using·a
347 different·backend,·see·<a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests-settings"><span·class="std·std-ref">Using·another·settings·module</span></a>.</p>348 different·backend,·see·<a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests-settings"><span·class="std·std-ref">Using·another·settings·module</span></a>.</p>
348 <p>Once·the·tests·complete,·you·should·be·greeted·with·a·message·informing·you349 <p>Once·the·tests·complete,·you·should·be·greeted·with·a·message·informing·you
349 whether·the·test·suite·passed·or·failed.·Since·you·haven’t·yet·made·any·changes350 whether·the·test·suite·passed·or·failed.·Since·you·haven’t·yet·made·any·changes
350 to·Django’s·code,·the·entire·test·suite·<strong>should</strong>·pass.·If·you·get·failures·or351 to·Django’s·code,·the·entire·test·suite·<strong>should</strong>·pass.·If·you·get·failures·or
351 errors·make·sure·you’ve·followed·all·of·the·previous·steps·properly.·See352 errors·make·sure·you’ve·followed·all·of·the·previous·steps·properly.·See
352 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests"><span·class="std·std-ref">Running·the·unit·tests</span></a>·for·more·information.</p>353 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests"><span·class="std·std-ref">Running·the·unit·tests</span></a>·for·more·information.</p>
353 <p>Note·that·the·latest·Django·main·branch·may·not·always·be·stable.·When354 <p>Note·that·the·latest·Django·«main»·branch·may·not·always·be·stable.·When
354 developing·against·main,·you·can·check·<a·class="reference·external"·href="https://djangoci.com">Django’s·continuous·integration355 developing·against·«main»,·you·can·check·<a·class="reference·external"·href="https://djangoci.com">Django’s·continuous·integration
355 builds</a>·to·determine·if·the·failures·are·specific·to·your·machine·or·if·they356 builds</a>·to·determine·if·the·failures·are·specific·to·your·machine·or·if·they
356 are·also·present·in·Django’s·official·builds.·If·you·click·to·view·a·particular357 are·also·present·in·Django’s·official·builds.·If·you·click·to·view·a·particular
357 build,·you·can·view·the·Configuration·Matrix·which·shows·failures·broken·down358 build,·you·can·view·the·«Configuration·Matrix»·which·shows·failures·broken·down
358 by·Python·version·and·database·backend.</p>359 by·Python·version·and·database·backend.</p>
359 <div·class="admonition·note">360 <div·class="admonition·note">
360 <p·class="admonition-title">Note</p>361 <p·class="admonition-title">Nota</p>
361 <p>For·this·tutorial·and·the·ticket·we’re·working·on,·testing·against·SQLite362 <p>For·this·tutorial·and·the·ticket·we’re·working·on,·testing·against·SQLite
362 is·sufficient,·however,·it’s·possible·(and·sometimes·necessary)·to363 is·sufficient,·however,·it’s·possible·(and·sometimes·necessary)·to
363 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests-settings"><span·class="std·std-ref">run·the·tests·using·a·different·database</span></a>.·When·making·UI·changes,·you·will·need·to364 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-unit-tests-settings"><span·class="std·std-ref">run·the·tests·using·a·different·database</span></a>.·When·making·UI·changes,·you·will·need·to
364 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-selenium-tests"><span·class="std·std-ref">run·the·Selenium·tests</span></a>.</p>365 <a·class="reference·internal"·href="../internals/contributing/writing-code/unit-tests.html#running-selenium-tests"><span·class="std·std-ref">run·the·Selenium·tests</span></a>.</p>
365 </div>366 </div>
366 </section>367 </section>
367 <section·id="s-working-on-a-feature">368 <section·id="s-working-on-a-feature">
368 <span·id="working-on-a-feature"></span><h2>Working·on·a·feature<a·class="headerlink"·href="#working-on-a-feature"·title="Link·to·this·heading">¶</a></h2>369 <span·id="working-on-a-feature"></span><h2>Working·on·a·feature<a·class="headerlink"·href="#working-on-a-feature"·title="Link·to·this·heading">¶</a></h2>
369 <p>For·this·tutorial,·we’ll·work·on·a·fake·ticket·as·a·case·study.·Here·are·the370 <p>For·this·tutorial,·we’ll·work·on·a·«fake·ticket»·as·a·case·study.·Here·are·the
370 imaginary·details:</p>371 imaginary·details:</p>
371 <div·class="admonition-ticket-99999-allow-making-toast·admonition">372 <div·class="admonition-ticket-99999-allow-making-toast·admonition">
372 <p·class="admonition-title">Ticket·#99999··Allow·making·toast</p>373 <p·class="admonition-title">Ticket·#99999··Allow·making·toast</p>
373 <p>Django·should·provide·a·function·<code·class="docutils·literal·notranslate"><span·class="pre">django.shortcuts.make_toast()</span></code>·that374 <p>Django·should·provide·a·function·<code·class="docutils·literal·notranslate"><span·class="pre">django.shortcuts.make_toast()</span></code>·that
374 returns·<code·class="docutils·literal·notranslate"><span·class="pre">'toast'</span></code>.</p>375 returns·<code·class="docutils·literal·notranslate"><span·class="pre">'toast'</span></code>.</p>
375 </div>376 </div>
376 <p>We’ll·now·implement·this·feature·and·associated·tests.</p>377 <p>We’ll·now·implement·this·feature·and·associated·tests.</p>
Offset 389, 15 lines modifiedOffset 390, 15 lines modified
389 </div>390 </div>
390 </section>391 </section>
391 <section·class="c-content-win"·id="c-content-5-win">392 <section·class="c-content-win"·id="c-content-5-win">
392 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·git·checkout·-b·ticket_99999393 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·git·checkout·-b·ticket_99999
393 </pre></div>394 </pre></div>
394 </section>395 </section>
395 </div>396 </div>
396 <p>You·can·choose·any·name·that·you·want·for·the·branch,·ticket_99999·is·an397 <p>You·can·choose·any·name·that·you·want·for·the·branch,·«ticket_99999»·is·an
397 example.·All·changes·made·in·this·branch·will·be·specific·to·the·ticket·and398 example.·All·changes·made·in·this·branch·will·be·specific·to·the·ticket·and
398 won’t·affect·the·main·copy·of·the·code·that·we·cloned·earlier.</p>399 won’t·affect·the·main·copy·of·the·code·that·we·cloned·earlier.</p>
399 </section>400 </section>
400 <section·id="s-writing-some-tests-for-your-ticket">401 <section·id="s-writing-some-tests-for-your-ticket">
401 <span·id="writing-some-tests-for-your-ticket"></span><h2>Writing·some·tests·for·your·ticket<a·class="headerlink"·href="#writing-some-tests-for-your-ticket"·title="Link·to·this·heading">¶</a></h2>402 <span·id="writing-some-tests-for-your-ticket"></span><h2>Writing·some·tests·for·your·ticket<a·class="headerlink"·href="#writing-some-tests-for-your-ticket"·title="Link·to·this·heading">¶</a></h2>
402 <p>In·most·cases,·for·a·patch·to·be·accepted·into·Django·it·has·to·include·tests.403 <p>In·most·cases,·for·a·patch·to·be·accepted·into·Django·it·has·to·include·tests.
403 For·bug·fix·patches,·this·means·writing·a·regression·test·to·ensure·that·the404 For·bug·fix·patches,·this·means·writing·a·regression·test·to·ensure·that·the
Offset 546, 15 lines modifiedOffset 547, 15 lines modified
  
546 Returns·<span·class="s">``&#39;toast&#39;``</span>.547 Returns·<span·class="s">``&#39;toast&#39;``</span>.
547 </pre></div>548 </pre></div>
548 </div>549 </div>
549 <p>Since·this·new·feature·will·be·in·an·upcoming·release·it·is·also·added·to·the550 <p>Since·this·new·feature·will·be·in·an·upcoming·release·it·is·also·added·to·the
550 release·notes·for·the·next·version·of·Django.·Open·the·release·notes·for·the551 release·notes·for·the·next·version·of·Django.·Open·the·release·notes·for·the
551 latest·version·in·<code·class="docutils·literal·notranslate"><span·class="pre">docs/releases/</span></code>,·which·at·time·of·writing·is·<code·class="docutils·literal·notranslate"><span·class="pre">2.2.txt</span></code>.552 latest·version·in·<code·class="docutils·literal·notranslate"><span·class="pre">docs/releases/</span></code>,·which·at·time·of·writing·is·<code·class="docutils·literal·notranslate"><span·class="pre">2.2.txt</span></code>.
552 Add·a·note·under·the·Minor·Features·header:</p>553 Add·a·note·under·the·«Minor·Features»·header:</p>
553 <div·class="highlight-rst·notranslate"><div·class="highlight"><pre><span></span><span·class="gh">:mod:`django.shortcuts`</span>554 <div·class="highlight-rst·notranslate"><div·class="highlight"><pre><span></span><span·class="gh">:mod:`django.shortcuts`</span>
554 <span·class="gh">~~~~~~~~~~~~~~~~~~~~~~~</span>555 <span·class="gh">~~~~~~~~~~~~~~~~~~~~~~~</span>
  
555 <span·class="m">*</span>·The·new·<span·class="na">:func:</span><span·class="nv">`django.shortcuts.make_toast`</span>·function·returns·<span·class="s">``&#39;toast&#39;``</span>.556 <span·class="m">*</span>·The·new·<span·class="na">:func:</span><span·class="nv">`django.shortcuts.make_toast`</span>·function·returns·<span·class="s">``&#39;toast&#39;``</span>.
556 </pre></div>557 </pre></div>
557 </div>558 </div>
558 <p>For·more·information·on·writing·documentation,·including·an·explanation·of·what559 <p>For·more·information·on·writing·documentation,·including·an·explanation·of·what
Offset 688, 15 lines modifiedOffset 689, 15 lines modified
688 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>Fixed·#99999·--·Added·a·shortcut·function·to·make·toast.689 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>Fixed·#99999·--·Added·a·shortcut·function·to·make·toast.
689 </pre></div>690 </pre></div>
690 </div>691 </div>
691 </section>692 </section>
692 <section·id="s-pushing-the-commit-and-making-a-pull-request">693 <section·id="s-pushing-the-commit-and-making-a-pull-request">
693 <span·id="pushing-the-commit-and-making-a-pull-request"></span><h2>Pushing·the·commit·and·making·a·pull·request<a·class="headerlink"·href="#pushing-the-commit-and-making-a-pull-request"·title="Link·to·this·heading">¶</a></h2>694 <span·id="pushing-the-commit-and-making-a-pull-request"></span><h2>Pushing·the·commit·and·making·a·pull·request<a·class="headerlink"·href="#pushing-the-commit-and-making-a-pull-request"·title="Link·to·this·heading">¶</a></h2>
694 <p>After·committing·the·patch,·send·it·to·your·fork·on·GitHub·(substitute695 <p>After·committing·the·patch,·send·it·to·your·fork·on·GitHub·(substitute
Max diff block lines reached; 6385/15686 bytes (40.71%) of diff not shown.
11.8 KB
html2text {}
Max HTML report size reached
9.05 KB
./usr/share/doc/python-django-doc/html/intro/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Getting·started·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Getting·started·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·at·a·glance"·href="overview.html"·/>15 ····<link·rel="next"·title="Django·at·a·glance"·href="overview.html"·/>
15 ····<link·rel="prev"·title="Django·documentation"·href="../index.html"·/>16 ····<link·rel="prev"·title="Django·documentation"·href="../index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../index.html"·title="Django·documentation">previous</a>67 ····&laquo;·<a·href="../index.html"·title="Django·documentation">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="overview.html"·title="Django·at·a·glance">next</a>·&raquo;</div>71 ····<a·href="overview.html"·title="Django·at·a·glance">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 95, 15 lines modifiedOffset 96, 15 lines modified
95 <li·class="toctree-l1"><a·class="reference·internal"·href="tutorial08.html">Writing·your·first·Django·app,·part·8</a></li>96 <li·class="toctree-l1"><a·class="reference·internal"·href="tutorial08.html">Writing·your·first·Django·app,·part·8</a></li>
96 <li·class="toctree-l1"><a·class="reference·internal"·href="reusable-apps.html">Advanced·tutorial:·How·to·write·reusable·apps</a></li>97 <li·class="toctree-l1"><a·class="reference·internal"·href="reusable-apps.html">Advanced·tutorial:·How·to·write·reusable·apps</a></li>
97 <li·class="toctree-l1"><a·class="reference·internal"·href="whatsnext.html">What·to·read·next</a></li>98 <li·class="toctree-l1"><a·class="reference·internal"·href="whatsnext.html">What·to·read·next</a></li>
98 <li·class="toctree-l1"><a·class="reference·internal"·href="contributing.html">Writing·your·first·patch·for·Django</a></li>99 <li·class="toctree-l1"><a·class="reference·internal"·href="contributing.html">Writing·your·first·patch·for·Django</a></li>
99 </ul>100 </ul>
100 </div>101 </div>
101 <div·class="admonition·seealso">102 <div·class="admonition·seealso">
102 <p·class="admonition-title">See·also</p>103 <p·class="admonition-title">Vedi·anche</p>
103 <p>If·you’re·new·to·<a·class="reference·external"·href="https://www.python.org/">Python</a>,·you·might·want·to·start·by·getting·an·idea·of·what104 <p>If·you’re·new·to·<a·class="reference·external"·href="https://www.python.org/">Python</a>,·you·might·want·to·start·by·getting·an·idea·of·what
104 the·language·is·like.·Django·is·100%·Python,·so·if·you’ve·got·minimal105 the·language·is·like.·Django·is·100%·Python,·so·if·you’ve·got·minimal
105 comfort·with·Python·you’ll·probably·get·a·lot·more·out·of·Django.</p>106 comfort·with·Python·you’ll·probably·get·a·lot·more·out·of·Django.</p>
106 <p>If·you’re·new·to·programming·entirely,·you·might·want·to·start·with·this107 <p>If·you’re·new·to·programming·entirely,·you·might·want·to·start·with·this
107 <a·class="reference·external"·href="https://wiki.python.org/moin/BeginnersGuide/NonProgrammers">list·of·Python·resources·for·non-programmers</a></p>108 <a·class="reference·external"·href="https://wiki.python.org/moin/BeginnersGuide/NonProgrammers">list·of·Python·resources·for·non-programmers</a></p>
108 <p>If·you·already·know·a·few·other·languages·and·want·to·get·up·to·speed·with109 <p>If·you·already·know·a·few·other·languages·and·want·to·get·up·to·speed·with
109 Python·quickly,·we·recommend·<a·class="reference·external"·href="https://diveinto.org/python3/table-of-contents.html">Dive·Into·Python</a>.·If·that’s·not·quite·your110 Python·quickly,·we·recommend·<a·class="reference·external"·href="https://diveinto.org/python3/table-of-contents.html">Dive·Into·Python</a>.·If·that’s·not·quite·your
Offset 118, 47 lines modifiedOffset 119, 47 lines modified
118 ······119 ······
119 ········120 ········
120 ··········<div·class="yui-b"·id="sidebar">121 ··········<div·class="yui-b"·id="sidebar">
121 ············122 ············
122 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">123 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
123 ········<div·class="sphinxsidebarwrapper">124 ········<div·class="sphinxsidebarwrapper">
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="../index.html"127 ····<p·class="topless"><a·href="../index.html"
127 ··························title="previous·chapter">Django·documentation</a></p>128 ··························title="capitolo·precedente">Django·documentation</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="overview.html"132 ····<p·class="topless"><a·href="overview.html"
132 ··························title="next·chapter">Django·at·a·glance</a></p>133 ··························title="capitolo·successivo">Django·at·a·glance</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
154 ····&laquo;·<a·href="../index.html"·title="Django·documentation">previous</a>155 ····&laquo;·<a·href="../index.html"·title="Django·documentation">previous</a>
155 ·····|156 ·····|
156 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>157 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
157 ···|158 ···|
158 ····<a·href="overview.html"·title="Django·at·a·glance">next</a>·&raquo;</div>159 ····<a·href="overview.html"·title="Django·at·a·glance">next</a>·&raquo;</div>
159 ····</div>160 ····</div>
160 ··</div>161 ··</div>
  
161 ······<div·class="clearer"></div>162 ······<div·class="clearer"></div>
162 ····</div>163 ····</div>
3.08 KB
html2text {}
Max HTML report size reached
8.08 KB
./usr/share/doc/python-django-doc/html/intro/install.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Quick·install·guide·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Quick·install·guide·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·1"·href="tutorial01.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·1"·href="tutorial01.html"·/>
15 ····<link·rel="prev"·title="Django·at·a·glance"·href="overview.html"·/>16 ····<link·rel="prev"·title="Django·at·a·glance"·href="overview.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 97, 15 lines modifiedOffset 98, 15 lines modified
97 <span·class="go">Type·&quot;help&quot;,·&quot;copyright&quot;,·&quot;credits&quot;·or·&quot;license&quot;·for·more·information.</span>98 <span·class="go">Type·&quot;help&quot;,·&quot;copyright&quot;,·&quot;credits&quot;·or·&quot;license&quot;·for·more·information.</span>
98 <span·class="gp">&gt;&gt;&gt;</span>99 <span·class="gp">&gt;&gt;&gt;</span>
99 </pre></div>100 </pre></div>
100 </div>101 </div>
101 </section>102 </section>
102 <section·id="s-set-up-a-database">103 <section·id="s-set-up-a-database">
103 <span·id="set-up-a-database"></span><h2>Set·up·a·database<a·class="headerlink"·href="#set-up-a-database"·title="Link·to·this·heading">¶</a></h2>104 <span·id="set-up-a-database"></span><h2>Set·up·a·database<a·class="headerlink"·href="#set-up-a-database"·title="Link·to·this·heading">¶</a></h2>
104 <p>This·step·is·only·necessary·if·you’d·like·to·work·with·a·large·database·engine105 <p>This·step·is·only·necessary·if·you’d·like·to·work·with·a·«large»·database·engine
105 like·PostgreSQL,·MariaDB,·MySQL,·or·Oracle.·To·install·such·a·database,·consult106 like·PostgreSQL,·MariaDB,·MySQL,·or·Oracle.·To·install·such·a·database,·consult
106 the·<a·class="reference·internal"·href="../topics/install.html#database-installation"><span·class="std·std-ref">database·installation·information</span></a>.</p>107 the·<a·class="reference·internal"·href="../topics/install.html#database-installation"><span·class="std·std-ref">database·installation·information</span></a>.</p>
107 </section>108 </section>
108 <section·id="s-install-django">109 <section·id="s-install-django">
109 <span·id="install-django"></span><h2>Install·Django<a·class="headerlink"·href="#install-django"·title="Link·to·this·heading">¶</a></h2>110 <span·id="install-django"></span><h2>Install·Django<a·class="headerlink"·href="#install-django"·title="Link·to·this·heading">¶</a></h2>
110 <p>You’ve·got·three·options·to·install·Django:</p>111 <p>You’ve·got·three·options·to·install·Django:</p>
111 <ul·class="simple">112 <ul·class="simple">
Offset 165, 37 lines modifiedOffset 166, 37 lines modified
165 <li><a·class="reference·internal"·href="#that-s-it">That’s·it!</a></li>166 <li><a·class="reference·internal"·href="#that-s-it">That’s·it!</a></li>
166 </ul>167 </ul>
167 </li>168 </li>
168 </ul>169 </ul>
  
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Previous·topic</h4>172 ····<h4>Argomento·precedente</h4>
172 ····<p·class="topless"><a·href="overview.html"173 ····<p·class="topless"><a·href="overview.html"
173 ··························title="previous·chapter">Django·at·a·glance</a></p>174 ··························title="capitolo·precedente">Django·at·a·glance</a></p>
174 ··</div>175 ··</div>
175 ··<div>176 ··<div>
176 ····<h4>Next·topic</h4>177 ····<h4>Argomento·successivo</h4>
177 ····<p·class="topless"><a·href="tutorial01.html"178 ····<p·class="topless"><a·href="tutorial01.html"
178 ··························title="next·chapter">Writing·your·first·Django·app,·part·1</a></p>179 ··························title="capitolo·successivo">Writing·your·first·Django·app,·part·1</a></p>
179 ··</div>180 ··</div>
180 <search·id="searchbox"·style="display:·none"·role="search">181 <search·id="searchbox"·style="display:·none"·role="search">
181 ··<h3·id="searchlabel">Quick·search</h3>182 ··<h3·id="searchlabel">Ricerca·veloce</h3>
182 ····<div·class="searchformwrapper">183 ····<div·class="searchformwrapper">
183 ····<form·class="search"·action="../search.html"·method="get">184 ····<form·class="search"·action="../search.html"·method="get">
184 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>185 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
185 ······<input·type="submit"·value="Go"·/>186 ······<input·type="submit"·value="Vai"·/>
186 ····</form>187 ····</form>
187 ····</div>188 ····</div>
188 </search>189 </search>
189 <script>document.getElementById('searchbox').style.display·=·"block"</script>190 <script>document.getElementById('searchbox').style.display·=·"block"</script>
190 ········</div>191 ········</div>
191 ······</div>192 ······</div>
192 ··············<h3>Last·update:</h3>193 ··············<h3>Last·update:</h3>
193 ··············<p·class="topless">Sep·03,·2024</p>194 ··············<p·class="topless">set·03,·2024</p>
194 ··········</div>195 ··········</div>
195 ········196 ········
196 ······197 ······
197 ····</div>198 ····</div>
  
198 ····<div·id="ft">199 ····<div·id="ft">
199 ······<div·class="nav">200 ······<div·class="nav">
3.27 KB
html2text {}
Max HTML report size reached
21.5 KB
./usr/share/doc/python-django-doc/html/intro/overview.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·at·a·glance·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·at·a·glance·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Quick·install·guide"·href="install.html"·/>15 ····<link·rel="next"·title="Quick·install·guide"·href="install.html"·/>
15 ····<link·rel="prev"·title="Getting·started"·href="index.html"·/>16 ····<link·rel="prev"·title="Getting·started"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 102, 15 lines modifiedOffset 103, 15 lines modified
102 detailed·documentation</span></a>.</p>103 detailed·documentation</span></a>.</p>
103 <section·id="s-design-your-model">104 <section·id="s-design-your-model">
104 <span·id="design-your-model"></span><h2>Design·your·model<a·class="headerlink"·href="#design-your-model"·title="Link·to·this·heading">¶</a></h2>105 <span·id="design-your-model"></span><h2>Design·your·model<a·class="headerlink"·href="#design-your-model"·title="Link·to·this·heading">¶</a></h2>
105 <p>Although·you·can·use·Django·without·a·database,·it·comes·with·an106 <p>Although·you·can·use·Django·without·a·database,·it·comes·with·an
106 <a·class="reference·external"·href="https://en.wikipedia.org/wiki/Object-relational_mapping">object-relational·mapper</a>·in·which·you·describe·your·database·layout·in·Python107 <a·class="reference·external"·href="https://en.wikipedia.org/wiki/Object-relational_mapping">object-relational·mapper</a>·in·which·you·describe·your·database·layout·in·Python
107 code.</p>108 code.</p>
108 <p>The·<a·class="reference·internal"·href="../topics/db/models.html"><span·class="doc">data-model·syntax</span></a>·offers·many·rich·ways·of109 <p>The·<a·class="reference·internal"·href="../topics/db/models.html"><span·class="doc">data-model·syntax</span></a>·offers·many·rich·ways·of
109 representing·your·models··so·far,·it’s·been·solving·many·years·worth·of110 representing·your·models··so·far,·it’s·been·solving·many·years·worth·of
110 database-schema·problems.·Here’s·a·quick·example:</p>111 database-schema·problems.·Here’s·a·quick·example:</p>
111 <div·class="literal-block-wrapper·docutils·container"·id="id1">112 <div·class="literal-block-wrapper·docutils·container"·id="id1">
112 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">mysite/news/models.py</span></code></span><a·class="headerlink"·href="#id1"·title="Link·to·this·code">¶</a></div>113 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">mysite/news/models.py</span></code></span><a·class="headerlink"·href="#id1"·title="Link·to·this·code">¶</a></div>
113 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>114 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
  
  
114 <span·class="k">class</span>·<span·class="nc">Reporter</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>115 <span·class="k">class</span>·<span·class="nc">Reporter</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
Offset 291, 24 lines modifiedOffset 292, 24 lines modified
291 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">year_archive</span><span·class="p">),</span>292 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">year_archive</span><span·class="p">),</span>
292 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&lt;int:month&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">month_archive</span><span·class="p">),</span>293 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&lt;int:month&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">month_archive</span><span·class="p">),</span>
293 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&lt;int:month&gt;/&lt;int:pk&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">article_detail</span><span·class="p">),</span>294 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;articles/&lt;int:year&gt;/&lt;int:month&gt;/&lt;int:pk&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">article_detail</span><span·class="p">),</span>
294 <span·class="p">]</span>295 <span·class="p">]</span>
295 </pre></div>296 </pre></div>
296 </div>297 </div>
297 </div>298 </div>
298 <p>The·code·above·maps·URL·paths·to·Python·callback·functions·(views).·The·path299 <p>The·code·above·maps·URL·paths·to·Python·callback·functions·(«views»).·The·path
299 strings·use·parameter·tags·to·capture·values·from·the·URLs.·When·a·user300 strings·use·parameter·tags·to·«capture»·values·from·the·URLs.·When·a·user
300 requests·a·page,·Django·runs·through·each·path,·in·order,·and·stops·at·the301 requests·a·page,·Django·runs·through·each·path,·in·order,·and·stops·at·the
301 first·one·that·matches·the·requested·URL.·(If·none·of·them·matches,·Django302 first·one·that·matches·the·requested·URL.·(If·none·of·them·matches,·Django
302 calls·a·special-case·404·view.)·This·is·blazingly·fast,·because·the·paths·are303 calls·a·special-case·404·view.)·This·is·blazingly·fast,·because·the·paths·are
303 compiled·into·regular·expressions·at·load·time.</p>304 compiled·into·regular·expressions·at·load·time.</p>
304 <p>Once·one·of·the·URL·patterns·matches,·Django·calls·the·given·view,·which·is·a305 <p>Once·one·of·the·URL·patterns·matches,·Django·calls·the·given·view,·which·is·a
305 Python·function.·Each·view·gets·passed·a·request·object··which·contains306 Python·function.·Each·view·gets·passed·a·request·object··which·contains
306 request·metadata··and·the·values·captured·in·the·pattern.</p>307 request·metadata··and·the·values·captured·in·the·pattern.</p>
307 <p>For·example,·if·a·user·requested·the·URL·/articles/2005/05/39323/,·Django308 <p>For·example,·if·a·user·requested·the·URL·«/articles/2005/05/39323/»,·Django
308 would·call·the·function·<code·class="docutils·literal·notranslate"><span·class="pre">news.views.article_detail(request,</span>309 would·call·the·function·<code·class="docutils·literal·notranslate"><span·class="pre">news.views.article_detail(request,</span>
309 <span·class="pre">year=2005,</span>·<span·class="pre">month=5,</span>·<span·class="pre">pk=39323)</span></code>.</p>310 <span·class="pre">year=2005,</span>·<span·class="pre">month=5,</span>·<span·class="pre">pk=39323)</span></code>.</p>
310 </section>311 </section>
311 <section·id="s-write-your-views">312 <section·id="s-write-your-views">
312 <span·id="write-your-views"></span><h2>Write·your·views<a·class="headerlink"·href="#write-your-views"·title="Link·to·this·heading">¶</a></h2>313 <span·id="write-your-views"></span><h2>Write·your·views<a·class="headerlink"·href="#write-your-views"·title="Link·to·this·heading">¶</a></h2>
313 <p>Each·view·is·responsible·for·doing·one·of·two·things:·Returning·an314 <p>Each·view·is·responsible·for·doing·one·of·two·things:·Returning·an
314 <a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object·containing·the·content·for·the315 <a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object·containing·the·content·for·the
Offset 359, 31 lines modifiedOffset 360, 31 lines modified
359 ····<span·class="p">&lt;</span><span·class="nt">p</span><span·class="p">&gt;</span>Published·<span·class="cp">{{</span>·<span·class="nv">article.pub_date</span><span·class="o">|</span><span·class="nf">date</span><span·class="s2">:&quot;F·j,·Y&quot;</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">p</span><span·class="p">&gt;</span>360 ····<span·class="p">&lt;</span><span·class="nt">p</span><span·class="p">&gt;</span>Published·<span·class="cp">{{</span>·<span·class="nv">article.pub_date</span><span·class="o">|</span><span·class="nf">date</span><span·class="s2">:&quot;F·j,·Y&quot;</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">p</span><span·class="p">&gt;</span>
360 <span·class="cp">{%</span>·<span·class="k">endfor</span>·<span·class="cp">%}</span>361 <span·class="cp">{%</span>·<span·class="k">endfor</span>·<span·class="cp">%}</span>
361 <span·class="cp">{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span>362 <span·class="cp">{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span>
362 </pre></div>363 </pre></div>
363 </div>364 </div>
364 </div>365 </div>
365 <p>Variables·are·surrounded·by·double-curly·braces.·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">article.headline</span>·<span·class="pre">}}</span></code>366 <p>Variables·are·surrounded·by·double-curly·braces.·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">article.headline</span>·<span·class="pre">}}</span></code>
366 means·Output·the·value·of·the·article’s·headline·attribute.·But·dots·aren’t367 means·«Output·the·value·of·the·article’s·headline·attribute.»·But·dots·aren’t
367 used·only·for·attribute·lookup.·They·also·can·do·dictionary-key·lookup,·index368 used·only·for·attribute·lookup.·They·also·can·do·dictionary-key·lookup,·index
368 lookup·and·function·calls.</p>369 lookup·and·function·calls.</p>
369 <p>Note·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">article.pub_date|date:&quot;F</span>·<span·class="pre">j,</span>·<span·class="pre">Y&quot;</span>·<span·class="pre">}}</span></code>·uses·a·Unix-style·pipe·(the·|370 <p>Note·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">article.pub_date|date:&quot;F</span>·<span·class="pre">j,</span>·<span·class="pre">Y&quot;</span>·<span·class="pre">}}</span></code>·uses·a·Unix-style·«pipe»·(the·«|»
370 character).·This·is·called·a·template·filter,·and·it’s·a·way·to·filter·the·value371 character).·This·is·called·a·template·filter,·and·it’s·a·way·to·filter·the·value
371 of·a·variable.·In·this·case,·the·date·filter·formats·a·Python·datetime·object·in372 of·a·variable.·In·this·case,·the·date·filter·formats·a·Python·datetime·object·in
372 the·given·format·(as·found·in·PHP’s·date·function).</p>373 the·given·format·(as·found·in·PHP’s·date·function).</p>
373 <p>You·can·chain·together·as·many·filters·as·you’d·like.·You·can·write·<a·class="reference·internal"·href="../howto/custom-template-tags.html#howto-writing-custom-template-filters"><span·class="std·std-ref">custom374 <p>You·can·chain·together·as·many·filters·as·you’d·like.·You·can·write·<a·class="reference·internal"·href="../howto/custom-template-tags.html#howto-writing-custom-template-filters"><span·class="std·std-ref">custom
374 template·filters</span></a>.·You·can·write375 template·filters</span></a>.·You·can·write
375 <a·class="reference·internal"·href="../howto/custom-template-tags.html"><span·class="doc">custom·template·tags</span></a>,·which·run·custom376 <a·class="reference·internal"·href="../howto/custom-template-tags.html"><span·class="doc">custom·template·tags</span></a>,·which·run·custom
376 Python·code·behind·the·scenes.</p>377 Python·code·behind·the·scenes.</p>
377 <p>Finally,·Django·uses·the·concept·of·template·inheritance.·That’s·what·the378 <p>Finally,·Django·uses·the·concept·of·«template·inheritance».·That’s·what·the
378 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">extends</span>·<span·class="pre">&quot;base.html&quot;</span>·<span·class="pre">%}</span></code>·does.·It·means·First·load·the·template·called379 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">extends</span>·<span·class="pre">&quot;base.html&quot;</span>·<span·class="pre">%}</span></code>·does.·It·means·«First·load·the·template·called
379 base,·which·has·defined·a·bunch·of·blocks,·and·fill·the·blocks·with·the380 base,·which·has·defined·a·bunch·of·blocks,·and·fill·the·blocks·with·the
380 following·blocks.·In·short,·that·lets·you·dramatically·cut·down·on·redundancy381 following·blocks.»·In·short,·that·lets·you·dramatically·cut·down·on·redundancy
381 in·templates:·each·template·has·to·define·only·what’s·unique·to·that·template.</p>382 in·templates:·each·template·has·to·define·only·what’s·unique·to·that·template.</p>
382 <p>Here’s·what·the·base.html·template,·including·the·use·of·<a·class="reference·internal"·href="../howto/static-files/index.html"><span·class="doc">static·files</span></a>,·might·look·like:</p>383 <p>Here’s·what·the·«base.html»·template,·including·the·use·of·<a·class="reference·internal"·href="../howto/static-files/index.html"><span·class="doc">static·files</span></a>,·might·look·like:</p>
383 <div·class="literal-block-wrapper·docutils·container"·id="id7">384 <div·class="literal-block-wrapper·docutils·container"·id="id7">
384 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">mysite/templates/base.html</span></code></span><a·class="headerlink"·href="#id7"·title="Link·to·this·code">¶</a></div>385 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">mysite/templates/base.html</span></code></span><a·class="headerlink"·href="#id7"·title="Link·to·this·code">¶</a></div>
385 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">load</span>·<span·class="nv">static</span>·<span·class="cp">%}</span>386 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">load</span>·<span·class="nv">static</span>·<span·class="cp">%}</span>
386 <span·class="p">&lt;</span><span·class="nt">html</span><span·class="p">&gt;</span>387 <span·class="p">&lt;</span><span·class="nt">html</span><span·class="p">&gt;</span>
387 <span·class="p">&lt;</span><span·class="nt">head</span><span·class="p">&gt;</span>388 <span·class="p">&lt;</span><span·class="nt">head</span><span·class="p">&gt;</span>
388 ····<span·class="p">&lt;</span><span·class="nt">title</span><span·class="p">&gt;</span><span·class="cp">{%</span>·<span·class="k">block</span>·<span·class="nv">title</span>·<span·class="cp">%}{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span><span·class="p">&lt;/</span><span·class="nt">title</span><span·class="p">&gt;</span>389 ····<span·class="p">&lt;</span><span·class="nt">title</span><span·class="p">&gt;</span><span·class="cp">{%</span>·<span·class="k">block</span>·<span·class="nv">title</span>·<span·class="cp">%}{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span><span·class="p">&lt;/</span><span·class="nt">title</span><span·class="p">&gt;</span>
389 <span·class="p">&lt;/</span><span·class="nt">head</span><span·class="p">&gt;</span>390 <span·class="p">&lt;/</span><span·class="nt">head</span><span·class="p">&gt;</span>
Offset 392, 15 lines modifiedOffset 393, 15 lines modified
392 ····<span·class="cp">{%</span>·<span·class="k">block</span>·<span·class="nv">content</span>·<span·class="cp">%}{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span>393 ····<span·class="cp">{%</span>·<span·class="k">block</span>·<span·class="nv">content</span>·<span·class="cp">%}{%</span>·<span·class="k">endblock</span>·<span·class="cp">%}</span>
393 <span·class="p">&lt;/</span><span·class="nt">body</span><span·class="p">&gt;</span>394 <span·class="p">&lt;/</span><span·class="nt">body</span><span·class="p">&gt;</span>
394 <span·class="p">&lt;/</span><span·class="nt">html</span><span·class="p">&gt;</span>395 <span·class="p">&lt;/</span><span·class="nt">html</span><span·class="p">&gt;</span>
395 </pre></div>396 </pre></div>
396 </div>397 </div>
397 </div>398 </div>
398 <p>Simplistically,·it·defines·the·look-and-feel·of·the·site·(with·the·site’s·logo),399 <p>Simplistically,·it·defines·the·look-and-feel·of·the·site·(with·the·site’s·logo),
399 and·provides·holes·for·child·templates·to·fill.·This·means·that·a·site·redesign400 and·provides·«holes»·for·child·templates·to·fill.·This·means·that·a·site·redesign
400 can·be·done·by·changing·a·single·file··the·base·template.</p>401 can·be·done·by·changing·a·single·file··the·base·template.</p>
401 <p>It·also·lets·you·create·multiple·versions·of·a·site,·with·different·base402 <p>It·also·lets·you·create·multiple·versions·of·a·site,·with·different·base
402 templates,·while·reusing·child·templates.·Django’s·creators·have·used·this403 templates,·while·reusing·child·templates.·Django’s·creators·have·used·this
403 technique·to·create·strikingly·different·mobile·versions·of·sites·by·only404 technique·to·create·strikingly·different·mobile·versions·of·sites·by·only
404 creating·a·new·base·template.</p>405 creating·a·new·base·template.</p>
405 <p>Note·that·you·don’t·have·to·use·Django’s·template·system·if·you·prefer·another406 <p>Note·that·you·don’t·have·to·use·Django’s·template·system·if·you·prefer·another
Max diff block lines reached; 1580/13859 bytes (11.40%) of diff not shown.
7.89 KB
html2text {}
Max HTML report size reached
9.31 KB
./usr/share/doc/python-django-doc/html/intro/reusable-apps.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Advanced·tutorial:·How·to·write·reusable·apps·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Advanced·tutorial:·How·to·write·reusable·apps·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="What·to·read·next"·href="whatsnext.html"·/>15 ····<link·rel="next"·title="What·to·read·next"·href="whatsnext.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·8"·href="tutorial08.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·8"·href="tutorial08.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 101, 15 lines modifiedOffset 102, 15 lines modified
101 could·decouple·polls·from·the·project-level·URLconf·using·an·<code·class="docutils·literal·notranslate"><span·class="pre">include</span></code>.102 could·decouple·polls·from·the·project-level·URLconf·using·an·<code·class="docutils·literal·notranslate"><span·class="pre">include</span></code>.
102 In·this·tutorial,·we’ll·take·further·steps·to·make·the·app·easy·to·use·in·new103 In·this·tutorial,·we’ll·take·further·steps·to·make·the·app·easy·to·use·in·new
103 projects·and·ready·to·publish·for·others·to·install·and·use.</p>104 projects·and·ready·to·publish·for·others·to·install·and·use.</p>
104 <div·class="admonition-package-app·admonition">105 <div·class="admonition-package-app·admonition">
105 <p·class="admonition-title">Package?·App?</p>106 <p·class="admonition-title">Package?·App?</p>
106 <p>A·Python·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-package"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">package</span></a>·provides·a·way·of·grouping·related·Python·code·for107 <p>A·Python·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-package"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">package</span></a>·provides·a·way·of·grouping·related·Python·code·for
107 easy·reuse.·A·package·contains·one·or·more·files·of·Python·code·(also·known108 easy·reuse.·A·package·contains·one·or·more·files·of·Python·code·(also·known
108 as·modules).</p>109 as·«modules»).</p>
109 <p>A·package·can·be·imported·with·<code·class="docutils·literal·notranslate"><span·class="pre">import</span>·<span·class="pre">foo.bar</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">from</span>·<span·class="pre">foo</span>·<span·class="pre">import</span>110 <p>A·package·can·be·imported·with·<code·class="docutils·literal·notranslate"><span·class="pre">import</span>·<span·class="pre">foo.bar</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">from</span>·<span·class="pre">foo</span>·<span·class="pre">import</span>
110 <span·class="pre">bar</span></code>.·For·a·directory·(like·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>)·to·form·a·package,·it·must·contain111 <span·class="pre">bar</span></code>.·For·a·directory·(like·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>)·to·form·a·package,·it·must·contain
111 a·special·file·<code·class="docutils·literal·notranslate"><span·class="pre">__init__.py</span></code>,·even·if·this·file·is·empty.</p>112 a·special·file·<code·class="docutils·literal·notranslate"><span·class="pre">__init__.py</span></code>,·even·if·this·file·is·empty.</p>
112 <p>A·Django·<em>application</em>·is·a·Python·package·that·is·specifically·intended113 <p>A·Django·<em>application</em>·is·a·Python·package·that·is·specifically·intended
113 for·use·in·a·Django·project.·An·application·may·use·common·Django114 for·use·in·a·Django·project.·An·application·may·use·common·Django
114 conventions,·such·as·having·<code·class="docutils·literal·notranslate"><span·class="pre">models</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">tests</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">urls</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">views</span></code>115 conventions,·such·as·having·<code·class="docutils·literal·notranslate"><span·class="pre">models</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">tests</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">urls</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">views</span></code>
115 submodules.</p>116 submodules.</p>
Offset 416, 37 lines modifiedOffset 417, 37 lines modified
416 <li><a·class="reference·internal"·href="#installing-python-packages-with-a-virtual-environment">Installing·Python·packages·with·a·virtual·environment</a></li>417 <li><a·class="reference·internal"·href="#installing-python-packages-with-a-virtual-environment">Installing·Python·packages·with·a·virtual·environment</a></li>
417 </ul>418 </ul>
418 </li>419 </li>
419 </ul>420 </ul>
  
420 ··</div>421 ··</div>
421 ··<div>422 ··<div>
422 ····<h4>Previous·topic</h4>423 ····<h4>Argomento·precedente</h4>
423 ····<p·class="topless"><a·href="tutorial08.html"424 ····<p·class="topless"><a·href="tutorial08.html"
424 ··························title="previous·chapter">Writing·your·first·Django·app,·part·8</a></p>425 ··························title="capitolo·precedente">Writing·your·first·Django·app,·part·8</a></p>
425 ··</div>426 ··</div>
426 ··<div>427 ··<div>
427 ····<h4>Next·topic</h4>428 ····<h4>Argomento·successivo</h4>
428 ····<p·class="topless"><a·href="whatsnext.html"429 ····<p·class="topless"><a·href="whatsnext.html"
429 ··························title="next·chapter">What·to·read·next</a></p>430 ··························title="capitolo·successivo">What·to·read·next</a></p>
430 ··</div>431 ··</div>
431 <search·id="searchbox"·style="display:·none"·role="search">432 <search·id="searchbox"·style="display:·none"·role="search">
432 ··<h3·id="searchlabel">Quick·search</h3>433 ··<h3·id="searchlabel">Ricerca·veloce</h3>
433 ····<div·class="searchformwrapper">434 ····<div·class="searchformwrapper">
434 ····<form·class="search"·action="../search.html"·method="get">435 ····<form·class="search"·action="../search.html"·method="get">
435 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>436 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
436 ······<input·type="submit"·value="Go"·/>437 ······<input·type="submit"·value="Vai"·/>
437 ····</form>438 ····</form>
438 ····</div>439 ····</div>
439 </search>440 </search>
440 <script>document.getElementById('searchbox').style.display·=·"block"</script>441 <script>document.getElementById('searchbox').style.display·=·"block"</script>
441 ········</div>442 ········</div>
442 ······</div>443 ······</div>
443 ··············<h3>Last·update:</h3>444 ··············<h3>Last·update:</h3>
444 ··············<p·class="topless">Sep·03,·2024</p>445 ··············<p·class="topless">set·03,·2024</p>
445 ··········</div>446 ··········</div>
446 ········447 ········
447 ······448 ······
448 ····</div>449 ····</div>
  
449 ····<div·id="ft">450 ····<div·id="ft">
450 ······<div·class="nav">451 ······<div·class="nav">
3.56 KB
html2text {}
Max HTML report size reached
27.7 KB
./usr/share/doc/python-django-doc/html/intro/tutorial01.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·1·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·1·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·2"·href="tutorial02.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·2"·href="tutorial02.html"·/>
15 ····<link·rel="prev"·title="Quick·install·guide"·href="install.html"·/>16 ····<link·rel="prev"·title="Quick·install·guide"·href="install.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 115, 15 lines modifiedOffset 116, 15 lines modified
115 </section>116 </section>
116 <section·class="c-content-win"·id="c-content-0-win">117 <section·class="c-content-win"·id="c-content-0-win">
117 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·-m·django·--version118 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·-m·django·--version
118 </pre></div>119 </pre></div>
119 </section>120 </section>
120 </div>121 </div>
121 <p>If·Django·is·installed,·you·should·see·the·version·of·your·installation.·If·it122 <p>If·Django·is·installed,·you·should·see·the·version·of·your·installation.·If·it
122 isn’t,·you’ll·get·an·error·telling·No·module·named·django.</p>123 isn’t,·you’ll·get·an·error·telling·«No·module·named·django».</p>
123 <p>This·tutorial·is·written·for·Django·4.2,·which·supports·Python·3.8·and124 <p>This·tutorial·is·written·for·Django·4.2,·which·supports·Python·3.8·and
124 later.·If·the·Django·version·doesn’t·match,·you·can·refer·to·the·tutorial·for125 later.·If·the·Django·version·doesn’t·match,·you·can·refer·to·the·tutorial·for
125 your·version·of·Django·by·using·the·version·switcher·at·the·bottom·right·corner126 your·version·of·Django·by·using·the·version·switcher·at·the·bottom·right·corner
126 of·this·page,·or·update·Django·to·the·newest·version.·If·you’re·using·an·older127 of·this·page,·or·update·Django·to·the·newest·version.·If·you’re·using·an·older
127 version·of·Python,·check·<a·class="reference·internal"·href="../faq/install.html#faq-python-version-support"><span·class="std·std-ref">What·Python·version·can·I·use·with·Django?</span></a>·to·find·a·compatible128 version·of·Python,·check·<a·class="reference·internal"·href="../faq/install.html#faq-python-version-support"><span·class="std·std-ref">What·Python·version·can·I·use·with·Django?</span></a>·to·find·a·compatible
128 version·of·Django.</p>129 version·of·Django.</p>
129 <p>See·<a·class="reference·internal"·href="../topics/install.html"><span·class="doc">How·to·install·Django</span></a>·for·advice·on·how·to·remove130 <p>See·<a·class="reference·internal"·href="../topics/install.html"><span·class="doc">How·to·install·Django</span></a>·for·advice·on·how·to·remove
Offset 156, 15 lines modifiedOffset 157, 15 lines modified
156 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·django-admin·startproject·mysite157 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·django-admin·startproject·mysite
157 </pre></div>158 </pre></div>
158 </section>159 </section>
159 </div>160 </div>
160 <p>This·will·create·a·<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·directory·in·your·current·directory.·If·it·didn’t161 <p>This·will·create·a·<code·class="docutils·literal·notranslate"><span·class="pre">mysite</span></code>·directory·in·your·current·directory.·If·it·didn’t
161 work,·see·<a·class="reference·internal"·href="../faq/troubleshooting.html#troubleshooting-django-admin"><span·class="std·std-ref">Problems·running·django-admin</span></a>.</p>162 work,·see·<a·class="reference·internal"·href="../faq/troubleshooting.html#troubleshooting-django-admin"><span·class="std·std-ref">Problems·running·django-admin</span></a>.</p>
162 <div·class="admonition·note">163 <div·class="admonition·note">
163 <p·class="admonition-title">Note</p>164 <p·class="admonition-title">Nota</p>
164 <p>You’ll·need·to·avoid·naming·projects·after·built-in·Python·or·Django165 <p>You’ll·need·to·avoid·naming·projects·after·built-in·Python·or·Django
165 components.·In·particular,·this·means·you·should·avoid·using·names·like166 components.·In·particular,·this·means·you·should·avoid·using·names·like
166 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>·(which·will·conflict·with·Django·itself)·or·<code·class="docutils·literal·notranslate"><span·class="pre">test</span></code>·(which167 <code·class="docutils·literal·notranslate"><span·class="pre">django</span></code>·(which·will·conflict·with·Django·itself)·or·<code·class="docutils·literal·notranslate"><span·class="pre">test</span></code>·(which
167 conflicts·with·a·built-in·Python·package).</p>168 conflicts·with·a·built-in·Python·package).</p>
168 </div>169 </div>
169 <div·class="admonition-where-should-this-code-live·admonition">170 <div·class="admonition-where-should-this-code-live·admonition">
170 <p·class="admonition-title">Where·should·this·code·live?</p>171 <p·class="admonition-title">Where·should·this·code·live?</p>
Offset 201, 15 lines modifiedOffset 202, 15 lines modified
201 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/__init__.py</span></code>:·An·empty·file·that·tells·Python·that·this202 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/__init__.py</span></code>:·An·empty·file·that·tells·Python·that·this
202 directory·should·be·considered·a·Python·package.·If·you’re·a·Python·beginner,203 directory·should·be·considered·a·Python·package.·If·you’re·a·Python·beginner,
203 read·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/tutorial/modules.html#tut-packages"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">more·about·packages</span></a>·in·the·official·Python·docs.</p></li>204 read·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/tutorial/modules.html#tut-packages"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">more·about·packages</span></a>·in·the·official·Python·docs.</p></li>
204 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>:·Settings/configuration·for·this·Django205 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>:·Settings/configuration·for·this·Django
205 project.··<a·class="reference·internal"·href="../topics/settings.html"><span·class="doc">Django·settings</span></a>·will·tell·you·all·about·how·settings206 project.··<a·class="reference·internal"·href="../topics/settings.html"><span·class="doc">Django·settings</span></a>·will·tell·you·all·about·how·settings
206 work.</p></li>207 work.</p></li>
207 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/urls.py</span></code>:·The·URL·declarations·for·this·Django·project;·a208 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/urls.py</span></code>:·The·URL·declarations·for·this·Django·project;·a
208 table·of·contents·of·your·Django-powered·site.·You·can·read·more·about209 «table·of·contents»·of·your·Django-powered·site.·You·can·read·more·about
209 URLs·in·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL·dispatcher</span></a>.</p></li>210 URLs·in·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL·dispatcher</span></a>.</p></li>
210 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/asgi.py</span></code>:·An·entry-point·for·ASGI-compatible·web·servers·to211 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/asgi.py</span></code>:·An·entry-point·for·ASGI-compatible·web·servers·to
211 serve·your·project.·See·<a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">How·to·deploy·with·ASGI</span></a>·for·more·details.</p></li>212 serve·your·project.·See·<a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">How·to·deploy·with·ASGI</span></a>·for·more·details.</p></li>
212 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/wsgi.py</span></code>:·An·entry-point·for·WSGI-compatible·web·servers·to213 <li><p><code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/wsgi.py</span></code>:·An·entry-point·for·WSGI-compatible·web·servers·to
213 serve·your·project.·See·<a·class="reference·internal"·href="../howto/deployment/wsgi/index.html"><span·class="doc">How·to·deploy·with·WSGI</span></a>·for·more·details.</p></li>214 serve·your·project.·See·<a·class="reference·internal"·href="../howto/deployment/wsgi/index.html"><span·class="doc">How·to·deploy·with·WSGI</span></a>·for·more·details.</p></li>
214 </ul>215 </ul>
215 </section>216 </section>
Offset 236, 32 lines modifiedOffset 237, 32 lines modified
236 <pre·class="literal-block">Performing·system·checks...237 <pre·class="literal-block">Performing·system·checks...
  
237 System·check·identified·no·issues·(0·silenced).238 System·check·identified·no·issues·(0·silenced).
  
238 You·have·unapplied·migrations;·your·app·may·not·work·properly·until·they·are·applied.239 You·have·unapplied·migrations;·your·app·may·not·work·properly·until·they·are·applied.
239 Run·'python·manage.py·migrate'·to·apply·them.240 Run·'python·manage.py·migrate'·to·apply·them.
  
240 September·03,·2024·-·15:50:53241 settembre·03,·2024·-·15:50:53
241 Django·version·4.2,·using·settings·'mysite.settings'242 Django·version·4.2,·using·settings·'mysite.settings'
242 Starting·development·server·at·<a·class="reference·external"·href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>243 Starting·development·server·at·<a·class="reference·external"·href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>
243 Quit·the·server·with·CONTROL-C.</pre>244 Quit·the·server·with·CONTROL-C.</pre>
244 <div·class="admonition·note">245 <div·class="admonition·note">
245 <p·class="admonition-title">Note</p>246 <p·class="admonition-title">Nota</p>
246 <p>Ignore·the·warning·about·unapplied·database·migrations·for·now;·we’ll·deal247 <p>Ignore·the·warning·about·unapplied·database·migrations·for·now;·we’ll·deal
247 with·the·database·shortly.</p>248 with·the·database·shortly.</p>
248 </div>249 </div>
249 <p>You’ve·started·the·Django·development·server,·a·lightweight·web·server·written250 <p>You’ve·started·the·Django·development·server,·a·lightweight·web·server·written
250 purely·in·Python.·We’ve·included·this·with·Django·so·you·can·develop·things251 purely·in·Python.·We’ve·included·this·with·Django·so·you·can·develop·things
251 rapidly,·without·having·to·deal·with·configuring·a·production·server··such·as252 rapidly,·without·having·to·deal·with·configuring·a·production·server··such·as
252 Apache··until·you’re·ready·for·production.</p>253 Apache··until·you’re·ready·for·production.</p>
253 <p>Now’s·a·good·time·to·note:·<strong>don’t</strong>·use·this·server·in·anything·resembling·a254 <p>Now’s·a·good·time·to·note:·<strong>don’t</strong>·use·this·server·in·anything·resembling·a
254 production·environment.·It’s·intended·only·for·use·while·developing.·(We’re·in255 production·environment.·It’s·intended·only·for·use·while·developing.·(We’re·in
255 the·business·of·making·web·frameworks,·not·web·servers.)</p>256 the·business·of·making·web·frameworks,·not·web·servers.)</p>
256 <p>Now·that·the·server’s·running,·visit·<a·class="reference·external"·href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>·with·your·web257 <p>Now·that·the·server’s·running,·visit·<a·class="reference·external"·href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a>·with·your·web
257 browser.·You’ll·see·a·Congratulations!·page,·with·a·rocket·taking·off.258 browser.·You’ll·see·a·«Congratulations!»·page,·with·a·rocket·taking·off.
258 It·worked!</p>259 It·worked!</p>
259 <div·class="admonition-changing-the-port·admonition">260 <div·class="admonition-changing-the-port·admonition">
260 <p·class="admonition-title">Changing·the·port</p>261 <p·class="admonition-title">Changing·the·port</p>
261 <p>By·default,·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-runserver"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">runserver</span></code></a>·command·starts·the·development·server262 <p>By·default,·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-runserver"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">runserver</span></code></a>·command·starts·the·development·server
262 on·the·internal·IP·at·port·8000.</p>263 on·the·internal·IP·at·port·8000.</p>
263 <p>If·you·want·to·change·the·server’s·port,·pass264 <p>If·you·want·to·change·the·server’s·port,·pass
264 it·as·a·command-line·argument.·For·instance,·this·command·starts·the·server265 it·as·a·command-line·argument.·For·instance,·this·command·starts·the·server
Offset 309, 15 lines modifiedOffset 310, 15 lines modified
309 as·needed.·You·don’t·need·to·restart·the·server·for·code·changes·to·take310 as·needed.·You·don’t·need·to·restart·the·server·for·code·changes·to·take
310 effect.·However,·some·actions·like·adding·files·don’t·trigger·a·restart,311 effect.·However,·some·actions·like·adding·files·don’t·trigger·a·restart,
311 so·you’ll·have·to·restart·the·server·in·these·cases.</p>312 so·you’ll·have·to·restart·the·server·in·these·cases.</p>
312 </div>313 </div>
313 </section>314 </section>
314 <section·id="s-creating-the-polls-app">315 <section·id="s-creating-the-polls-app">
Max diff block lines reached; 7533/16521 bytes (45.60%) of diff not shown.
11.4 KB
html2text {}
Max HTML report size reached
29.5 KB
./usr/share/doc/python-django-doc/html/intro/tutorial02.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·2·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·2·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·3"·href="tutorial03.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·3"·href="tutorial03.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·1"·href="tutorial01.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·1"·href="tutorial01.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 128, 18 lines modifiedOffset 129, 18 lines modified
128 </ul>129 </ul>
129 <p>If·you·are·not·using·SQLite·as·your·database,·additional·settings·such·as130 <p>If·you·are·not·using·SQLite·as·your·database,·additional·settings·such·as
130 <a·class="reference·internal"·href="../ref/settings.html#std-setting-USER"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USER</span></code></a>,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-PASSWORD"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">PASSWORD</span></code></a>,·and·<a·class="reference·internal"·href="../ref/settings.html#std-setting-HOST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">HOST</span></code></a>·must·be·added.131 <a·class="reference·internal"·href="../ref/settings.html#std-setting-USER"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USER</span></code></a>,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-PASSWORD"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">PASSWORD</span></code></a>,·and·<a·class="reference·internal"·href="../ref/settings.html#std-setting-HOST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">HOST</span></code></a>·must·be·added.
131 For·more·details,·see·the·reference·documentation·for·<a·class="reference·internal"·href="../ref/settings.html#std-setting-DATABASES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATABASES</span></code></a>.</p>132 For·more·details,·see·the·reference·documentation·for·<a·class="reference·internal"·href="../ref/settings.html#std-setting-DATABASES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATABASES</span></code></a>.</p>
132 <div·class="admonition-for-databases-other-than-sqlite·admonition">133 <div·class="admonition-for-databases-other-than-sqlite·admonition">
133 <p·class="admonition-title">For·databases·other·than·SQLite</p>134 <p·class="admonition-title">For·databases·other·than·SQLite</p>
134 <p>If·you’re·using·a·database·besides·SQLite,·make·sure·you’ve·created·a135 <p>If·you’re·using·a·database·besides·SQLite,·make·sure·you’ve·created·a
135 database·by·this·point.·Do·that·with·<code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">DATABASE</span>·<span·class="pre">database_name;</span></code>136 database·by·this·point.·Do·that·with·«<code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">DATABASE</span>·<span·class="pre">database_name;</span></code>»
136 within·your·database’s·interactive·prompt.</p>137 within·your·database’s·interactive·prompt.</p>
137 <p>Also·make·sure·that·the·database·user·provided·in·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>138 <p>Also·make·sure·that·the·database·user·provided·in·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>
138 has·create·database·privileges.·This·allows·automatic·creation·of·a139 has·«create·database»·privileges.·This·allows·automatic·creation·of·a
139 <a·class="reference·internal"·href="../topics/testing/overview.html#the-test-database"><span·class="std·std-ref">test·database</span></a>·which·will·be·needed·in·a·later140 <a·class="reference·internal"·href="../topics/testing/overview.html#the-test-database"><span·class="std·std-ref">test·database</span></a>·which·will·be·needed·in·a·later
140 tutorial.</p>141 tutorial.</p>
141 <p>If·you’re·using·SQLite,·you·don’t·need·to·create·anything·beforehand·-·the142 <p>If·you’re·using·SQLite,·you·don’t·need·to·create·anything·beforehand·-·the
142 database·file·will·be·created·automatically·when·it·is·needed.</p>143 database·file·will·be·created·automatically·when·it·is·needed.</p>
143 </div>144 </div>
144 <p>While·you’re·editing·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>,·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>·to145 <p>While·you’re·editing·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>,·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>·to
145 your·time·zone.</p>146 your·time·zone.</p>
Offset 270, 15 lines modifiedOffset 271, 15 lines modified
270 <ul·class="simple">271 <ul·class="simple">
271 <li><p>Create·a·database·schema·(<code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">TABLE</span></code>·statements)·for·this·app.</p></li>272 <li><p>Create·a·database·schema·(<code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">TABLE</span></code>·statements)·for·this·app.</p></li>
272 <li><p>Create·a·Python·database-access·API·for·accessing·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects.</p></li>273 <li><p>Create·a·Python·database-access·API·for·accessing·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects.</p></li>
273 </ul>274 </ul>
274 <p>But·first·we·need·to·tell·our·project·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·app·is·installed.</p>275 <p>But·first·we·need·to·tell·our·project·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·app·is·installed.</p>
275 <div·class="admonition-philosophy·admonition">276 <div·class="admonition-philosophy·admonition">
276 <p·class="admonition-title">Philosophy</p>277 <p·class="admonition-title">Philosophy</p>
277 <p>Django·apps·are·pluggable:·You·can·use·an·app·in·multiple·projects,·and278 <p>Django·apps·are·«pluggable»:·You·can·use·an·app·in·multiple·projects,·and
278 you·can·distribute·apps,·because·they·don’t·have·to·be·tied·to·a·given279 you·can·distribute·apps,·because·they·don’t·have·to·be·tied·to·a·given
279 Django·installation.</p>280 Django·installation.</p>
280 </div>281 </div>
281 <p>To·include·the·app·in·our·project,·we·need·to·add·a·reference·to·its282 <p>To·include·the·app·in·our·project,·we·need·to·add·a·reference·to·its
282 configuration·class·in·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·The283 configuration·class·in·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·The
283 <code·class="docutils·literal·notranslate"><span·class="pre">PollsConfig</span></code>·class·is·in·the·<code·class="file·docutils·literal·notranslate"><span·class="pre">polls/apps.py</span></code>·file,·so·its·dotted·path284 <code·class="docutils·literal·notranslate"><span·class="pre">PollsConfig</span></code>·class·is·in·the·<code·class="file·docutils·literal·notranslate"><span·class="pre">polls/apps.py</span></code>·file,·so·its·dotted·path
284 is·<code·class="docutils·literal·notranslate"><span·class="pre">'polls.apps.PollsConfig'</span></code>.·Edit·the·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>·file·and285 is·<code·class="docutils·literal·notranslate"><span·class="pre">'polls.apps.PollsConfig'</span></code>.·Edit·the·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>·file·and
Offset 471, 15 lines modifiedOffset 472, 15 lines modified
471 </div>472 </div>
472 </section>473 </section>
473 <section·class="c-content-win"·id="c-content-4-win">474 <section·class="c-content-win"·id="c-content-4-win">
474 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·manage.py·shell475 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·manage.py·shell
475 </pre></div>476 </pre></div>
476 </section>477 </section>
477 </div>478 </div>
478 <p>We’re·using·this·instead·of·simply·typing·python,·because·<code·class="file·docutils·literal·notranslate"><span·class="pre">manage.py</span></code>479 <p>We’re·using·this·instead·of·simply·typing·«python»,·because·<code·class="file·docutils·literal·notranslate"><span·class="pre">manage.py</span></code>
479 sets·the·<span·class="target"·id="index-0"></span><a·class="reference·internal"·href="../topics/settings.html#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>·environment·variable,·which·gives480 sets·the·<span·class="target"·id="index-0"></span><a·class="reference·internal"·href="../topics/settings.html#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>·environment·variable,·which·gives
480 Django·the·Python·import·path·to·your·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>·file.</p>481 Django·the·Python·import·path·to·your·<code·class="file·docutils·literal·notranslate"><span·class="pre">mysite/settings.py</span></code>·file.</p>
481 <p>Once·you’re·in·the·shell,·explore·the·<a·class="reference·internal"·href="../topics/db/queries.html"><span·class="doc">database·API</span></a>:</p>482 <p>Once·you’re·in·the·shell,·explore·the·<a·class="reference·internal"·href="../topics/db/queries.html"><span·class="doc">database·API</span></a>:</p>
482 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">polls.models</span>·<span·class="kn">import</span>·<span·class="n">Choice</span><span·class="p">,</span>·<span·class="n">Question</span>··<span·class="c1">#·Import·the·model·classes·we·just·wrote.</span>483 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">polls.models</span>·<span·class="kn">import</span>·<span·class="n">Choice</span><span·class="p">,</span>·<span·class="n">Question</span>··<span·class="c1">#·Import·the·model·classes·we·just·wrote.</span>
  
483 <span·class="go">#·No·questions·are·in·the·system·yet.</span>484 <span·class="go">#·No·questions·are·in·the·system·yet.</span>
484 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Question</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>485 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Question</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
Offset 535, 15 lines modifiedOffset 536, 15 lines modified
535 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>536 ····<span·class="k">def</span>·<span·class="fm">__str__</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
536 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">choice_text</span>537 ········<span·class="k">return</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">choice_text</span>
537 </pre></div>538 </pre></div>
538 </div>539 </div>
539 </div>540 </div>
540 <p>It’s·important·to·add·<a·class="reference·internal"·href="../ref/models/instances.html#django.db.models.Model.__str__"·title="django.db.models.Model.__str__"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">__str__()</span></code></a>·methods·to·your541 <p>It’s·important·to·add·<a·class="reference·internal"·href="../ref/models/instances.html#django.db.models.Model.__str__"·title="django.db.models.Model.__str__"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">__str__()</span></code></a>·methods·to·your
541 models,·not·only·for·your·own·convenience·when·dealing·with·the·interactive542 models,·not·only·for·your·own·convenience·when·dealing·with·the·interactive
542 prompt,·but·also·because·objects·representations·are·used·throughout·Django’s543 prompt,·but·also·because·objects·representations·are·used·throughout·Django’s
543 automatically-generated·admin.</p>544 automatically-generated·admin.</p>
544 <p·id="tutorial02-import-timezone">Let’s·also·add·a·custom·method·to·this·model:</p>545 <p·id="tutorial02-import-timezone">Let’s·also·add·a·custom·method·to·this·model:</p>
545 <div·class="literal-block-wrapper·docutils·container"·id="id5">546 <div·class="literal-block-wrapper·docutils·container"·id="id5">
546 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/models.py</span></code></span><a·class="headerlink"·href="#id5"·title="Link·to·this·code">¶</a></div>547 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/models.py</span></code></span><a·class="headerlink"·href="#id5"·title="Link·to·this·code">¶</a></div>
547 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>548 <div·class="highlight-python·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>
  
548 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>549 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
Offset 649, 15 lines modifiedOffset 650, 15 lines modified
649 <span·id="introducing-the-django-admin"></span><h2>Introducing·the·Django·Admin<a·class="headerlink"·href="#introducing-the-django-admin"·title="Link·to·this·heading">¶</a></h2>650 <span·id="introducing-the-django-admin"></span><h2>Introducing·the·Django·Admin<a·class="headerlink"·href="#introducing-the-django-admin"·title="Link·to·this·heading">¶</a></h2>
650 <div·class="admonition-philosophy·admonition">651 <div·class="admonition-philosophy·admonition">
651 <p·class="admonition-title">Philosophy</p>652 <p·class="admonition-title">Philosophy</p>
652 <p>Generating·admin·sites·for·your·staff·or·clients·to·add,·change,·and·delete653 <p>Generating·admin·sites·for·your·staff·or·clients·to·add,·change,·and·delete
653 content·is·tedious·work·that·doesn’t·require·much·creativity.·For·that654 content·is·tedious·work·that·doesn’t·require·much·creativity.·For·that
654 reason,·Django·entirely·automates·creation·of·admin·interfaces·for·models.</p>655 reason,·Django·entirely·automates·creation·of·admin·interfaces·for·models.</p>
655 <p>Django·was·written·in·a·newsroom·environment,·with·a·very·clear·separation656 <p>Django·was·written·in·a·newsroom·environment,·with·a·very·clear·separation
656 between·content·publishers·and·the·public·site.·Site·managers·use·the657 between·«content·publishers»·and·the·«public»·site.·Site·managers·use·the
657 system·to·add·news·stories,·events,·sports·scores,·etc.,·and·that·content·is658 system·to·add·news·stories,·events,·sports·scores,·etc.,·and·that·content·is
658 displayed·on·the·public·site.·Django·solves·the·problem·of·creating·a659 displayed·on·the·public·site.·Django·solves·the·problem·of·creating·a
659 unified·interface·for·site·administrators·to·edit·content.</p>660 unified·interface·for·site·administrators·to·edit·content.</p>
660 <p>The·admin·isn’t·intended·to·be·used·by·site·visitors.·It’s·for·site661 <p>The·admin·isn’t·intended·to·be·used·by·site·visitors.·It’s·for·site
661 managers.</p>662 managers.</p>
662 </div>663 </div>
663 <section·id="s-creating-an-admin-user">664 <section·id="s-creating-an-admin-user">
Offset 711, 15 lines modifiedOffset 712, 15 lines modified
711 </div>712 </div>
712 </section>713 </section>
713 <section·class="c-content-win"·id="c-content-6-win">714 <section·class="c-content-win"·id="c-content-6-win">
714 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·manage.py·runserver715 <div·class="highlight"><pre><span></span><span·class="gp">...\&gt;</span>·py·manage.py·runserver
Max diff block lines reached; 7036/18186 bytes (38.69%) of diff not shown.
11.6 KB
html2text {}
Max HTML report size reached
31.8 KB
./usr/share/doc/python-django-doc/html/intro/tutorial03.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·3·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·3·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·4"·href="tutorial04.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·4"·href="tutorial04.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·2"·href="tutorial02.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·2"·href="tutorial02.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 55 lines modifiedOffset 78, 55 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="intro-tutorial03">79 ··········<div·class="yui-g"·id="intro-tutorial03">
79 ············80 ············
80 ··<section·id="s-writing-your-first-django-app-part-3">81 ··<section·id="s-writing-your-first-django-app-part-3">
81 <span·id="writing-your-first-django-app-part-3"></span><h1>Writing·your·first·Django·app,·part·3<a·class="headerlink"·href="#writing-your-first-django-app-part-3"·title="Link·to·this·heading">¶</a></h1>82 <span·id="writing-your-first-django-app-part-3"></span><h1>Writing·your·first·Django·app,·part·3<a·class="headerlink"·href="#writing-your-first-django-app-part-3"·title="Link·to·this·heading">¶</a></h1>
82 <p>This·tutorial·begins·where·<a·class="reference·internal"·href="tutorial02.html"><span·class="doc">Tutorial·2</span></a>·left·off.·We’re83 <p>This·tutorial·begins·where·<a·class="reference·internal"·href="tutorial02.html"><span·class="doc">Tutorial·2</span></a>·left·off.·We’re
83 continuing·the·web-poll·application·and·will·focus·on·creating·the·public84 continuing·the·web-poll·application·and·will·focus·on·creating·the·public
84 interface··views.</p>85 interface··«views.»</p>
85 <div·class="admonition-where-to-get-help·admonition">86 <div·class="admonition-where-to-get-help·admonition">
86 <p·class="admonition-title">Where·to·get·help:</p>87 <p·class="admonition-title">Where·to·get·help:</p>
87 <p>If·you’re·having·trouble·going·through·this·tutorial,·please·head·over·to88 <p>If·you’re·having·trouble·going·through·this·tutorial,·please·head·over·to
88 the·<a·class="reference·internal"·href="../faq/help.html"><span·class="doc">Getting·Help</span></a>·section·of·the·FAQ.</p>89 the·<a·class="reference·internal"·href="../faq/help.html"><span·class="doc">Getting·Help</span></a>·section·of·the·FAQ.</p>
89 </div>90 </div>
90 <section·id="s-overview">91 <section·id="s-overview">
91 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>92 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>
92 <p>A·view·is·a·type·of·web·page·in·your·Django·application·that·generally·serves93 <p>A·view·is·a·«type»·of·web·page·in·your·Django·application·that·generally·serves
93 a·specific·function·and·has·a·specific·template.·For·example,·in·a·blog94 a·specific·function·and·has·a·specific·template.·For·example,·in·a·blog
94 application,·you·might·have·the·following·views:</p>95 application,·you·might·have·the·following·views:</p>
95 <ul·class="simple">96 <ul·class="simple">
96 <li><p>Blog·homepage··displays·the·latest·few·entries.</p></li>97 <li><p>Blog·homepage··displays·the·latest·few·entries.</p></li>
97 <li><p>Entry·detail·page··permalink·page·for·a·single·entry.</p></li>98 <li><p>Entry·«detail»·page··permalink·page·for·a·single·entry.</p></li>
98 <li><p>Year-based·archive·page··displays·all·months·with·entries·in·the99 <li><p>Year-based·archive·page··displays·all·months·with·entries·in·the
99 given·year.</p></li>100 given·year.</p></li>
100 <li><p>Month-based·archive·page··displays·all·days·with·entries·in·the101 <li><p>Month-based·archive·page··displays·all·days·with·entries·in·the
101 given·month.</p></li>102 given·month.</p></li>
102 <li><p>Day-based·archive·page··displays·all·entries·in·the·given·day.</p></li>103 <li><p>Day-based·archive·page··displays·all·entries·in·the·given·day.</p></li>
103 <li><p>Comment·action··handles·posting·comments·to·a·given·entry.</p></li>104 <li><p>Comment·action··handles·posting·comments·to·a·given·entry.</p></li>
104 </ul>105 </ul>
105 <p>In·our·poll·application,·we’ll·have·the·following·four·views:</p>106 <p>In·our·poll·application,·we’ll·have·the·following·four·views:</p>
106 <ul·class="simple">107 <ul·class="simple">
107 <li><p>Question·index·page··displays·the·latest·few·questions.</p></li>108 <li><p>Question·«index»·page··displays·the·latest·few·questions.</p></li>
108 <li><p>Question·detail·page··displays·a·question·text,·with·no·results·but109 <li><p>Question·«detail»·page··displays·a·question·text,·with·no·results·but
109 with·a·form·to·vote.</p></li>110 with·a·form·to·vote.</p></li>
110 <li><p>Question·results·page··displays·results·for·a·particular·question.</p></li>111 <li><p>Question·«results»·page··displays·results·for·a·particular·question.</p></li>
111 <li><p>Vote·action··handles·voting·for·a·particular·choice·in·a·particular112 <li><p>Vote·action··handles·voting·for·a·particular·choice·in·a·particular
112 question.</p></li>113 question.</p></li>
113 </ul>114 </ul>
114 <p>In·Django,·web·pages·and·other·content·are·delivered·by·views.·Each·view·is115 <p>In·Django,·web·pages·and·other·content·are·delivered·by·views.·Each·view·is
115 represented·by·a·Python·function·(or·method,·in·the·case·of·class-based·views).116 represented·by·a·Python·function·(or·method,·in·the·case·of·class-based·views).
116 Django·will·choose·a·view·by·examining·the·URL·that’s·requested·(to·be·precise,117 Django·will·choose·a·view·by·examining·the·URL·that’s·requested·(to·be·precise,
117 the·part·of·the·URL·after·the·domain·name).</p>118 the·part·of·the·URL·after·the·domain·name).</p>
118 <p>Now·in·your·time·on·the·web·you·may·have·come·across·such·beauties·as119 <p>Now·in·your·time·on·the·web·you·may·have·come·across·such·beauties·as
119 <code·class="docutils·literal·notranslate"><span·class="pre">ME2/Sites/dirmod.htm?sid=&amp;type=gen&amp;mod=Core+Pages&amp;gid=A6CD4967199A42D9B65B1B</span></code>.120 <code·class="docutils·literal·notranslate"><span·class="pre">ME2/Sites/dirmod.htm?sid=&amp;type=gen&amp;mod=Core+Pages&amp;gid=A6CD4967199A42D9B65B1B</span></code>.
120 You·will·be·pleased·to·know·that·Django·allows·us·much·more·elegant121 You·will·be·pleased·to·know·that·Django·allows·us·much·more·elegant
121 <em>URL·patterns</em>·than·that.</p>122 <em>URL·patterns</em>·than·that.</p>
122 <p>A·URL·pattern·is·the·general·form·of·a·URL·-·for·example:123 <p>A·URL·pattern·is·the·general·form·of·a·URL·-·for·example:
123 <code·class="docutils·literal·notranslate"><span·class="pre">/newsarchive/&lt;year&gt;/&lt;month&gt;/</span></code>.</p>124 <code·class="docutils·literal·notranslate"><span·class="pre">/newsarchive/&lt;year&gt;/&lt;month&gt;/</span></code>.</p>
124 <p>To·get·from·a·URL·to·a·view,·Django·uses·what·are·known·as·URLconfs.·A125 <p>To·get·from·a·URL·to·a·view,·Django·uses·what·are·known·as·URLconfs.·A
125 URLconf·maps·URL·patterns·to·views.</p>126 URLconf·maps·URL·patterns·to·views.</p>
126 <p>This·tutorial·provides·basic·instruction·in·the·use·of·URLconfs,·and·you·can127 <p>This·tutorial·provides·basic·instruction·in·the·use·of·URLconfs,·and·you·can
127 refer·to·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL·dispatcher</span></a>·for·more·information.</p>128 refer·to·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL·dispatcher</span></a>·for·more·information.</p>
128 </section>129 </section>
129 <section·id="s-writing-more-views">130 <section·id="s-writing-more-views">
130 <span·id="writing-more-views"></span><h2>Writing·more·views<a·class="headerlink"·href="#writing-more-views"·title="Link·to·this·heading">¶</a></h2>131 <span·id="writing-more-views"></span><h2>Writing·more·views<a·class="headerlink"·href="#writing-more-views"·title="Link·to·this·heading">¶</a></h2>
131 <p>Now·let’s·add·a·few·more·views·to·<code·class="docutils·literal·notranslate"><span·class="pre">polls/views.py</span></code>.·These·views·are132 <p>Now·let’s·add·a·few·more·views·to·<code·class="docutils·literal·notranslate"><span·class="pre">polls/views.py</span></code>.·These·views·are
Offset 163, 31 lines modifiedOffset 164, 31 lines modified
163 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;&lt;int:question_id&gt;/results/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">results</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;results&quot;</span><span·class="p">),</span>164 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;&lt;int:question_id&gt;/results/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">results</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;results&quot;</span><span·class="p">),</span>
164 ····<span·class="c1">#·ex:·/polls/5/vote/</span>165 ····<span·class="c1">#·ex:·/polls/5/vote/</span>
165 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;&lt;int:question_id&gt;/vote/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">vote</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;vote&quot;</span><span·class="p">),</span>166 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;&lt;int:question_id&gt;/vote/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">vote</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;vote&quot;</span><span·class="p">),</span>
166 <span·class="p">]</span>167 <span·class="p">]</span>
167 </pre></div>168 </pre></div>
168 </div>169 </div>
169 </div>170 </div>
170 <p>Take·a·look·in·your·browser,·at·/polls/34/.·It’ll·run·the·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>171 <p>Take·a·look·in·your·browser,·at·«/polls/34/».·It’ll·run·the·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>
171 method·and·display·whatever·ID·you·provide·in·the·URL.·Try172 method·and·display·whatever·ID·you·provide·in·the·URL.·Try
172 /polls/34/results/·and·/polls/34/vote/·too··these·will·display·the173 «/polls/34/results/»·and·«/polls/34/vote/»·too··these·will·display·the
173 placeholder·results·and·voting·pages.</p>174 placeholder·results·and·voting·pages.</p>
174 <p>When·somebody·requests·a·page·from·your·website··say,·/polls/34/,·Django175 <p>When·somebody·requests·a·page·from·your·website··say,·«/polls/34/»,·Django
175 will·load·the·<code·class="docutils·literal·notranslate"><span·class="pre">mysite.urls</span></code>·Python·module·because·it’s·pointed·to·by·the176 will·load·the·<code·class="docutils·literal·notranslate"><span·class="pre">mysite.urls</span></code>·Python·module·because·it’s·pointed·to·by·the
176 <a·class="reference·internal"·href="../ref/settings.html#std-setting-ROOT_URLCONF"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ROOT_URLCONF</span></code></a>·setting.·It·finds·the·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>177 <a·class="reference·internal"·href="../ref/settings.html#std-setting-ROOT_URLCONF"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ROOT_URLCONF</span></code></a>·setting.·It·finds·the·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>
177 and·traverses·the·patterns·in·order.·After·finding·the·match·at·<code·class="docutils·literal·notranslate"><span·class="pre">'polls/'</span></code>,178 and·traverses·the·patterns·in·order.·After·finding·the·match·at·<code·class="docutils·literal·notranslate"><span·class="pre">'polls/'</span></code>,
178 it·strips·off·the·matching·text·(<code·class="docutils·literal·notranslate"><span·class="pre">&quot;polls/&quot;</span></code>)·and·sends·the·remaining·text·179 it·strips·off·the·matching·text·(<code·class="docutils·literal·notranslate"><span·class="pre">&quot;polls/&quot;</span></code>)·and·sends·the·remaining·text·
179 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;34/&quot;</span></code>··to·the·polls.urls·URLconf·for·further·processing.·There·it180 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;34/&quot;</span></code>··to·the·polls.urls·URLconf·for·further·processing.·There·it
180 matches·<code·class="docutils·literal·notranslate"><span·class="pre">'&lt;int:question_id&gt;/'</span></code>,·resulting·in·a·call·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>·view181 matches·<code·class="docutils·literal·notranslate"><span·class="pre">'&lt;int:question_id&gt;/'</span></code>,·resulting·in·a·call·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>·view
181 like·so:</p>182 like·so:</p>
182 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="go">detail(request=&lt;HttpRequest·object&gt;,·question_id=34)</span>183 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="go">detail(request=&lt;HttpRequest·object&gt;,·question_id=34)</span>
183 </pre></div>184 </pre></div>
184 </div>185 </div>
185 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">question_id=34</span></code>·part·comes·from·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;int:question_id&gt;</span></code>.·Using·angle186 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">question_id=34</span></code>·part·comes·from·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;int:question_id&gt;</span></code>.·Using·angle
186 brackets·captures·part·of·the·URL·and·sends·it·as·a·keyword·argument·to·the187 brackets·«captures»·part·of·the·URL·and·sends·it·as·a·keyword·argument·to·the
187 view·function.·The·<code·class="docutils·literal·notranslate"><span·class="pre">question_id</span></code>·part·of·the·string·defines·the·name·that188 view·function.·The·<code·class="docutils·literal·notranslate"><span·class="pre">question_id</span></code>·part·of·the·string·defines·the·name·that
188 will·be·used·to·identify·the·matched·pattern,·and·the·<code·class="docutils·literal·notranslate"><span·class="pre">int</span></code>·part·is·a189 will·be·used·to·identify·the·matched·pattern,·and·the·<code·class="docutils·literal·notranslate"><span·class="pre">int</span></code>·part·is·a
189 converter·that·determines·what·patterns·should·match·this·part·of·the·URL·path.190 converter·that·determines·what·patterns·should·match·this·part·of·the·URL·path.
190 The·colon·(<code·class="docutils·literal·notranslate"><span·class="pre">:</span></code>)·separates·the·converter·and·pattern·name.</p>191 The·colon·(<code·class="docutils·literal·notranslate"><span·class="pre">:</span></code>)·separates·the·converter·and·pattern·name.</p>
191 </section>192 </section>
192 <section·id="s-write-views-that-actually-do-something">193 <section·id="s-write-views-that-actually-do-something">
193 <span·id="write-views-that-actually-do-something"></span><h2>Write·views·that·actually·do·something<a·class="headerlink"·href="#write-views-that-actually-do-something"·title="Link·to·this·heading">¶</a></h2>194 <span·id="write-views-that-actually-do-something"></span><h2>Write·views·that·actually·do·something<a·class="headerlink"·href="#write-views-that-actually-do-something"·title="Link·to·this·heading">¶</a></h2>
Max diff block lines reached; 10260/21023 bytes (48.80%) of diff not shown.
11.2 KB
html2text {}
Max HTML report size reached
16.5 KB
./usr/share/doc/python-django-doc/html/intro/tutorial04.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·4·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·4·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·5"·href="tutorial05.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·5"·href="tutorial05.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·3"·href="tutorial03.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·3"·href="tutorial03.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 <div·class="admonition-where-to-get-help·admonition">86 <div·class="admonition-where-to-get-help·admonition">
86 <p·class="admonition-title">Where·to·get·help:</p>87 <p·class="admonition-title">Where·to·get·help:</p>
87 <p>If·you’re·having·trouble·going·through·this·tutorial,·please·head·over·to88 <p>If·you’re·having·trouble·going·through·this·tutorial,·please·head·over·to
88 the·<a·class="reference·internal"·href="../faq/help.html"><span·class="doc">Getting·Help</span></a>·section·of·the·FAQ.</p>89 the·<a·class="reference·internal"·href="../faq/help.html"><span·class="doc">Getting·Help</span></a>·section·of·the·FAQ.</p>
89 </div>90 </div>
90 <section·id="s-write-a-minimal-form">91 <section·id="s-write-a-minimal-form">
91 <span·id="write-a-minimal-form"></span><h2>Write·a·minimal·form<a·class="headerlink"·href="#write-a-minimal-form"·title="Link·to·this·heading">¶</a></h2>92 <span·id="write-a-minimal-form"></span><h2>Write·a·minimal·form<a·class="headerlink"·href="#write-a-minimal-form"·title="Link·to·this·heading">¶</a></h2>
92 <p>Let’s·update·our·poll·detail·template·(polls/detail.html)·from·the·last93 <p>Let’s·update·our·poll·detail·template·(«polls/detail.html»)·from·the·last
93 tutorial,·so·that·the·template·contains·an·HTML·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>·element:</p>94 tutorial,·so·that·the·template·contains·an·HTML·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>·element:</p>
94 <div·class="literal-block-wrapper·docutils·container"·id="id1">95 <div·class="literal-block-wrapper·docutils·container"·id="id1">
95 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/templates/polls/detail.html</span></code></span><a·class="headerlink"·href="#id1"·title="Link·to·this·code">¶</a></div>96 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/templates/polls/detail.html</span></code></span><a·class="headerlink"·href="#id1"·title="Link·to·this·code">¶</a></div>
96 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="p">&lt;</span><span·class="nt">form</span>·<span·class="na">action</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{%</span>·<span·class="k">url</span>·<span·class="s1">&#39;polls:vote&#39;</span>·<span·class="nv">question.id</span>·<span·class="cp">%}</span><span·class="s">&quot;</span>·<span·class="na">method</span><span·class="o">=</span><span·class="s">&quot;post&quot;</span><span·class="p">&gt;</span>97 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="p">&lt;</span><span·class="nt">form</span>·<span·class="na">action</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{%</span>·<span·class="k">url</span>·<span·class="s1">&#39;polls:vote&#39;</span>·<span·class="nv">question.id</span>·<span·class="cp">%}</span><span·class="s">&quot;</span>·<span·class="na">method</span><span·class="o">=</span><span·class="s">&quot;post&quot;</span><span·class="p">&gt;</span>
97 <span·class="cp">{%</span>·<span·class="k">csrf_token</span>·<span·class="cp">%}</span>98 <span·class="cp">{%</span>·<span·class="k">csrf_token</span>·<span·class="cp">%}</span>
98 <span·class="p">&lt;</span><span·class="nt">fieldset</span><span·class="p">&gt;</span>99 <span·class="p">&lt;</span><span·class="nt">fieldset</span><span·class="p">&gt;</span>
99 ····<span·class="p">&lt;</span><span·class="nt">legend</span><span·class="p">&gt;&lt;</span><span·class="nt">h1</span><span·class="p">&gt;</span><span·class="cp">{{</span>·<span·class="nv">question.question_text</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">h1</span><span·class="p">&gt;&lt;/</span><span·class="nt">legend</span><span·class="p">&gt;</span>100 ····<span·class="p">&lt;</span><span·class="nt">legend</span><span·class="p">&gt;&lt;</span><span·class="nt">h1</span><span·class="p">&gt;</span><span·class="cp">{{</span>·<span·class="nv">question.question_text</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">h1</span><span·class="p">&gt;&lt;/</span><span·class="nt">legend</span><span·class="p">&gt;</span>
Offset 250, 15 lines modifiedOffset 251, 15 lines modified
250 </pre></div>251 </pre></div>
251 </div>252 </div>
252 </div>253 </div>
253 <p>Now,·go·to·<code·class="docutils·literal·notranslate"><span·class="pre">/polls/1/</span></code>·in·your·browser·and·vote·in·the·question.·You·should·see·a254 <p>Now,·go·to·<code·class="docutils·literal·notranslate"><span·class="pre">/polls/1/</span></code>·in·your·browser·and·vote·in·the·question.·You·should·see·a
254 results·page·that·gets·updated·each·time·you·vote.·If·you·submit·the·form255 results·page·that·gets·updated·each·time·you·vote.·If·you·submit·the·form
255 without·having·chosen·a·choice,·you·should·see·the·error·message.</p>256 without·having·chosen·a·choice,·you·should·see·the·error·message.</p>
256 <div·class="admonition·note">257 <div·class="admonition·note">
257 <p·class="admonition-title">Note</p>258 <p·class="admonition-title">Nota</p>
258 <p>The·code·for·our·<code·class="docutils·literal·notranslate"><span·class="pre">vote()</span></code>·view·does·have·a·small·problem.·It·first·gets259 <p>The·code·for·our·<code·class="docutils·literal·notranslate"><span·class="pre">vote()</span></code>·view·does·have·a·small·problem.·It·first·gets
259 the·<code·class="docutils·literal·notranslate"><span·class="pre">selected_choice</span></code>·object·from·the·database,·then·computes·the·new260 the·<code·class="docutils·literal·notranslate"><span·class="pre">selected_choice</span></code>·object·from·the·database,·then·computes·the·new
260 value·of·<code·class="docutils·literal·notranslate"><span·class="pre">votes</span></code>,·and·then·saves·it·back·to·the·database.·If·two·users·of261 value·of·<code·class="docutils·literal·notranslate"><span·class="pre">votes</span></code>,·and·then·saves·it·back·to·the·database.·If·two·users·of
261 your·website·try·to·vote·at·<em>exactly·the·same·time</em>,·this·might·go·wrong:262 your·website·try·to·vote·at·<em>exactly·the·same·time</em>,·this·might·go·wrong:
262 The·same·value,·let’s·say·42,·will·be·retrieved·for·<code·class="docutils·literal·notranslate"><span·class="pre">votes</span></code>.·Then,·for263 The·same·value,·let’s·say·42,·will·be·retrieved·for·<code·class="docutils·literal·notranslate"><span·class="pre">votes</span></code>.·Then,·for
263 both·users·the·new·value·of·43·is·computed·and·saved,·but·44·would·be·the264 both·users·the·new·value·of·43·is·computed·and·saved,·but·44·would·be·the
264 expected·value.</p>265 expected·value.</p>
Offset 271, 36 lines modifiedOffset 272, 36 lines modified
271 <span·id="use-generic-views-less-code-is-better"></span><h2>Use·generic·views:·Less·code·is·better<a·class="headerlink"·href="#use-generic-views-less-code-is-better"·title="Link·to·this·heading">¶</a></h2>272 <span·id="use-generic-views-less-code-is-better"></span><h2>Use·generic·views:·Less·code·is·better<a·class="headerlink"·href="#use-generic-views-less-code-is-better"·title="Link·to·this·heading">¶</a></h2>
272 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>·(from·<a·class="reference·internal"·href="tutorial03.html"><span·class="doc">Tutorial·3</span></a>)·and·<code·class="docutils·literal·notranslate"><span·class="pre">results()</span></code>273 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">detail()</span></code>·(from·<a·class="reference·internal"·href="tutorial03.html"><span·class="doc">Tutorial·3</span></a>)·and·<code·class="docutils·literal·notranslate"><span·class="pre">results()</span></code>
273 views·are·very·short··and,·as·mentioned·above,·redundant.·The·<code·class="docutils·literal·notranslate"><span·class="pre">index()</span></code>274 views·are·very·short··and,·as·mentioned·above,·redundant.·The·<code·class="docutils·literal·notranslate"><span·class="pre">index()</span></code>
274 view,·which·displays·a·list·of·polls,·is·similar.</p>275 view,·which·displays·a·list·of·polls,·is·similar.</p>
275 <p>These·views·represent·a·common·case·of·basic·web·development:·getting·data·from276 <p>These·views·represent·a·common·case·of·basic·web·development:·getting·data·from
276 the·database·according·to·a·parameter·passed·in·the·URL,·loading·a·template·and277 the·database·according·to·a·parameter·passed·in·the·URL,·loading·a·template·and
277 returning·the·rendered·template.·Because·this·is·so·common,·Django·provides·a278 returning·the·rendered·template.·Because·this·is·so·common,·Django·provides·a
278 shortcut,·called·the·generic·views·system.</p>279 shortcut,·called·the·«generic·views»·system.</p>
279 <p>Generic·views·abstract·common·patterns·to·the·point·where·you·don’t·even·need·to280 <p>Generic·views·abstract·common·patterns·to·the·point·where·you·don’t·even·need·to
280 write·Python·code·to·write·an·app.·For·example,·the281 write·Python·code·to·write·an·app.·For·example,·the
281 <a·class="reference·internal"·href="../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>·and282 <a·class="reference·internal"·href="../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>·and
282 <a·class="reference·internal"·href="../ref/class-based-views/generic-display.html#django.views.generic.detail.DetailView"·title="django.views.generic.detail.DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>·generic·views283 <a·class="reference·internal"·href="../ref/class-based-views/generic-display.html#django.views.generic.detail.DetailView"·title="django.views.generic.detail.DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>·generic·views
283 abstract·the·concepts·of·display·a·list·of·objects·and284 abstract·the·concepts·of·«display·a·list·of·objects»·and
284 display·a·detail·page·for·a·particular·type·of·object·respectively.</p>285 «display·a·detail·page·for·a·particular·type·of·object»·respectively.</p>
285 <p>Let’s·convert·our·poll·app·to·use·the·generic·views·system,·so·we·can·delete·a286 <p>Let’s·convert·our·poll·app·to·use·the·generic·views·system,·so·we·can·delete·a
286 bunch·of·our·own·code.·We’ll·have·to·take·a·few·steps·to·make·the·conversion.287 bunch·of·our·own·code.·We’ll·have·to·take·a·few·steps·to·make·the·conversion.
287 We·will:</p>288 We·will:</p>
288 <ol·class="arabic·simple">289 <ol·class="arabic·simple">
289 <li><p>Convert·the·URLconf.</p></li>290 <li><p>Convert·the·URLconf.</p></li>
290 <li><p>Delete·some·of·the·old,·unneeded·views.</p></li>291 <li><p>Delete·some·of·the·old,·unneeded·views.</p></li>
291 <li><p>Introduce·new·views·based·on·Django’s·generic·views.</p></li>292 <li><p>Introduce·new·views·based·on·Django’s·generic·views.</p></li>
292 </ol>293 </ol>
293 <p>Read·on·for·details.</p>294 <p>Read·on·for·details.</p>
294 <div·class="admonition-why-the-code-shuffle·admonition">295 <div·class="admonition-why-the-code-shuffle·admonition">
295 <p·class="admonition-title">Why·the·code-shuffle?</p>296 <p·class="admonition-title">Why·the·code-shuffle?</p>
296 <p>Generally,·when·writing·a·Django·app,·you’ll·evaluate·whether·generic·views297 <p>Generally,·when·writing·a·Django·app,·you’ll·evaluate·whether·generic·views
297 are·a·good·fit·for·your·problem,·and·you’ll·use·them·from·the·beginning,298 are·a·good·fit·for·your·problem,·and·you’ll·use·them·from·the·beginning,
298 rather·than·refactoring·your·code·halfway·through.·But·this·tutorial299 rather·than·refactoring·your·code·halfway·through.·But·this·tutorial
299 intentionally·has·focused·on·writing·the·views·the·hard·way·until·now,·to300 intentionally·has·focused·on·writing·the·views·«the·hard·way»·until·now,·to
300 focus·on·core·concepts.</p>301 focus·on·core·concepts.</p>
301 <p>You·should·know·basic·math·before·you·start·using·a·calculator.</p>302 <p>You·should·know·basic·math·before·you·start·using·a·calculator.</p>
302 </div>303 </div>
303 <section·id="s-amend-urlconf">304 <section·id="s-amend-urlconf">
304 <span·id="amend-urlconf"></span><h3>Amend·URLconf<a·class="headerlink"·href="#amend-urlconf"·title="Link·to·this·heading">¶</a></h3>305 <span·id="amend-urlconf"></span><h3>Amend·URLconf<a·class="headerlink"·href="#amend-urlconf"·title="Link·to·this·heading">¶</a></h3>
305 <p>First,·open·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls/urls.py</span></code>·URLconf·and·change·it·like·so:</p>306 <p>First,·open·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls/urls.py</span></code>·URLconf·and·change·it·like·so:</p>
306 <div·class="literal-block-wrapper·docutils·container"·id="id6">307 <div·class="literal-block-wrapper·docutils·container"·id="id6">
Offset 425, 37 lines modifiedOffset 426, 37 lines modified
425 </li>426 </li>
426 </ul>427 </ul>
427 </li>428 </li>
428 </ul>429 </ul>
  
429 ··</div>430 ··</div>
430 ··<div>431 ··<div>
431 ····<h4>Previous·topic</h4>432 ····<h4>Argomento·precedente</h4>
432 ····<p·class="topless"><a·href="tutorial03.html"433 ····<p·class="topless"><a·href="tutorial03.html"
433 ··························title="previous·chapter">Writing·your·first·Django·app,·part·3</a></p>434 ··························title="capitolo·precedente">Writing·your·first·Django·app,·part·3</a></p>
434 ··</div>435 ··</div>
435 ··<div>436 ··<div>
436 ····<h4>Next·topic</h4>437 ····<h4>Argomento·successivo</h4>
437 ····<p·class="topless"><a·href="tutorial05.html"438 ····<p·class="topless"><a·href="tutorial05.html"
438 ··························title="next·chapter">Writing·your·first·Django·app,·part·5</a></p>439 ··························title="capitolo·successivo">Writing·your·first·Django·app,·part·5</a></p>
439 ··</div>440 ··</div>
440 <search·id="searchbox"·style="display:·none"·role="search">441 <search·id="searchbox"·style="display:·none"·role="search">
441 ··<h3·id="searchlabel">Quick·search</h3>442 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 671/10648 bytes (6.30%) of diff not shown.
6.03 KB
html2text {}
Max HTML report size reached
22.5 KB
./usr/share/doc/python-django-doc/html/intro/tutorial05.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·5·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·5·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·6"·href="tutorial06.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·6"·href="tutorial06.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·4"·href="tutorial04.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·4"·href="tutorial04.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 126, 19 lines modifiedOffset 127, 19 lines modified
126 working·quite·happily·now;·going·through·the·trouble·of·creating·automated127 working·quite·happily·now;·going·through·the·trouble·of·creating·automated
127 tests·is·not·going·to·make·it·work·any·better.·If·creating·the·polls128 tests·is·not·going·to·make·it·work·any·better.·If·creating·the·polls
128 application·is·the·last·bit·of·Django·programming·you·will·ever·do,·then·true,129 application·is·the·last·bit·of·Django·programming·you·will·ever·do,·then·true,
129 you·don’t·need·to·know·how·to·create·automated·tests.·But,·if·that’s·not·the130 you·don’t·need·to·know·how·to·create·automated·tests.·But,·if·that’s·not·the
130 case,·now·is·an·excellent·time·to·learn.</p>131 case,·now·is·an·excellent·time·to·learn.</p>
131 <section·id="s-tests-will-save-you-time">132 <section·id="s-tests-will-save-you-time">
132 <span·id="tests-will-save-you-time"></span><h4>Tests·will·save·you·time<a·class="headerlink"·href="#tests-will-save-you-time"·title="Link·to·this·heading">¶</a></h4>133 <span·id="tests-will-save-you-time"></span><h4>Tests·will·save·you·time<a·class="headerlink"·href="#tests-will-save-you-time"·title="Link·to·this·heading">¶</a></h4>
133 <p>Up·to·a·certain·point,·checking·that·it·seems·to·work·will·be·a·satisfactory134 <p>Up·to·a·certain·point,·checking·that·it·seems·to·work·will·be·a·satisfactory
134 test.·In·a·more·sophisticated·application,·you·might·have·dozens·of·complex135 test.·In·a·more·sophisticated·application,·you·might·have·dozens·of·complex
135 interactions·between·components.</p>136 interactions·between·components.</p>
136 <p>A·change·in·any·of·those·components·could·have·unexpected·consequences·on·the137 <p>A·change·in·any·of·those·components·could·have·unexpected·consequences·on·the
137 application’s·behavior.·Checking·that·it·still·seems·to·work·could·mean138 application’s·behavior.·Checking·that·it·still·seems·to·work·could·mean
138 running·through·your·code’s·functionality·with·twenty·different·variations·of139 running·through·your·code’s·functionality·with·twenty·different·variations·of
139 your·test·data·to·make·sure·you·haven’t·broken·something·-·not·a·good·use140 your·test·data·to·make·sure·you·haven’t·broken·something·-·not·a·good·use
140 of·your·time.</p>141 of·your·time.</p>
141 <p>That’s·especially·true·when·automated·tests·could·do·this·for·you·in·seconds.142 <p>That’s·especially·true·when·automated·tests·could·do·this·for·you·in·seconds.
142 If·something’s·gone·wrong,·tests·will·also·assist·in·identifying·the·code143 If·something’s·gone·wrong,·tests·will·also·assist·in·identifying·the·code
143 that’s·causing·the·unexpected·behavior.</p>144 that’s·causing·the·unexpected·behavior.</p>
144 <p>Sometimes·it·may·seem·a·chore·to·tear·yourself·away·from·your·productive,145 <p>Sometimes·it·may·seem·a·chore·to·tear·yourself·away·from·your·productive,
Offset 159, 15 lines modifiedOffset 160, 15 lines modified
159 hadn’t·even·realized·it·had·gone·wrong</em>.</p>160 hadn’t·even·realized·it·had·gone·wrong</em>.</p>
160 </section>161 </section>
161 <section·id="s-tests-make-your-code-more-attractive">162 <section·id="s-tests-make-your-code-more-attractive">
162 <span·id="tests-make-your-code-more-attractive"></span><h4>Tests·make·your·code·more·attractive<a·class="headerlink"·href="#tests-make-your-code-more-attractive"·title="Link·to·this·heading">¶</a></h4>163 <span·id="tests-make-your-code-more-attractive"></span><h4>Tests·make·your·code·more·attractive<a·class="headerlink"·href="#tests-make-your-code-more-attractive"·title="Link·to·this·heading">¶</a></h4>
163 <p>You·might·have·created·a·brilliant·piece·of·software,·but·you·will·find·that164 <p>You·might·have·created·a·brilliant·piece·of·software,·but·you·will·find·that
164 many·other·developers·will·refuse·to·look·at·it·because·it·lacks·tests;·without165 many·other·developers·will·refuse·to·look·at·it·because·it·lacks·tests;·without
165 tests,·they·won’t·trust·it.·Jacob·Kaplan-Moss,·one·of·Django’s·original166 tests,·they·won’t·trust·it.·Jacob·Kaplan-Moss,·one·of·Django’s·original
166 developers,·says·Code·without·tests·is·broken·by·design.</p>167 developers,·says·«Code·without·tests·is·broken·by·design.»</p>
167 <p>That·other·developers·want·to·see·tests·in·your·software·before·they·take·it168 <p>That·other·developers·want·to·see·tests·in·your·software·before·they·take·it
168 seriously·is·yet·another·reason·for·you·to·start·writing·tests.</p>169 seriously·is·yet·another·reason·for·you·to·start·writing·tests.</p>
169 </section>170 </section>
170 <section·id="s-tests-help-teams-work-together">171 <section·id="s-tests-help-teams-work-together">
171 <span·id="tests-help-teams-work-together"></span><h4>Tests·help·teams·work·together<a·class="headerlink"·href="#tests-help-teams-work-together"·title="Link·to·this·heading">¶</a></h4>172 <span·id="tests-help-teams-work-together"></span><h4>Tests·help·teams·work·together<a·class="headerlink"·href="#tests-help-teams-work-together"·title="Link·to·this·heading">¶</a></h4>
172 <p>The·previous·points·are·written·from·the·point·of·view·of·a·single·developer173 <p>The·previous·points·are·written·from·the·point·of·view·of·a·single·developer
173 maintaining·an·application.·Complex·applications·will·be·maintained·by·teams.174 maintaining·an·application.·Complex·applications·will·be·maintained·by·teams.
Offset 176, 15 lines modifiedOffset 177, 15 lines modified
176 Django·programmer,·you·must·be·good·at·writing·tests!</p>177 Django·programmer,·you·must·be·good·at·writing·tests!</p>
177 </section>178 </section>
178 </section>179 </section>
179 </section>180 </section>
180 <section·id="s-basic-testing-strategies">181 <section·id="s-basic-testing-strategies">
181 <span·id="basic-testing-strategies"></span><h2>Basic·testing·strategies<a·class="headerlink"·href="#basic-testing-strategies"·title="Link·to·this·heading">¶</a></h2>182 <span·id="basic-testing-strategies"></span><h2>Basic·testing·strategies<a·class="headerlink"·href="#basic-testing-strategies"·title="Link·to·this·heading">¶</a></h2>
182 <p>There·are·many·ways·to·approach·writing·tests.</p>183 <p>There·are·many·ways·to·approach·writing·tests.</p>
183 <p>Some·programmers·follow·a·discipline·called·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Test-driven_development">test-driven·development</a>;·they184 <p>Some·programmers·follow·a·discipline·called·«<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Test-driven_development">test-driven·development</a>»;·they
184 actually·write·their·tests·before·they·write·their·code.·This·might·seem185 actually·write·their·tests·before·they·write·their·code.·This·might·seem
185 counter-intuitive,·but·in·fact·it’s·similar·to·what·most·people·will·often·do186 counter-intuitive,·but·in·fact·it’s·similar·to·what·most·people·will·often·do
186 anyway:·they·describe·a·problem,·then·create·some·code·to·solve·it.·Test-driven187 anyway:·they·describe·a·problem,·then·create·some·code·to·solve·it.·Test-driven
187 development·formalizes·the·problem·in·a·Python·test·case.</p>188 development·formalizes·the·problem·in·a·Python·test·case.</p>
188 <p>More·often,·a·newcomer·to·testing·will·create·some·code·and·later·decide·that189 <p>More·often,·a·newcomer·to·testing·will·create·some·code·and·later·decide·that
189 it·should·have·some·tests.·Perhaps·it·would·have·been·better·to·write·some190 it·should·have·some·tests.·Perhaps·it·would·have·been·better·to·write·some
190 tests·earlier,·but·it’s·never·too·late·to·get·started.</p>191 tests·earlier,·but·it’s·never·too·late·to·get·started.</p>
Offset 225, 15 lines modifiedOffset 226, 15 lines modified
225 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·create·a·Question·instance·with·pub_date·30·days·in·the·future</span>226 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·create·a·Question·instance·with·pub_date·30·days·in·the·future</span>
226 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">future_question</span>·<span·class="o">=</span>·<span·class="n">Question</span><span·class="p">(</span><span·class="n">pub_date</span><span·class="o">=</span><span·class="n">timezone</span><span·class="o">.</span><span·class="n">now</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">timedelta</span><span·class="p">(</span><span·class="n">days</span><span·class="o">=</span><span·class="mi">30</span><span·class="p">))</span>227 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">future_question</span>·<span·class="o">=</span>·<span·class="n">Question</span><span·class="p">(</span><span·class="n">pub_date</span><span·class="o">=</span><span·class="n">timezone</span><span·class="o">.</span><span·class="n">now</span><span·class="p">()</span>·<span·class="o">+</span>·<span·class="n">datetime</span><span·class="o">.</span><span·class="n">timedelta</span><span·class="p">(</span><span·class="n">days</span><span·class="o">=</span><span·class="mi">30</span><span·class="p">))</span>
227 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·was·it·published·recently?</span>228 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·was·it·published·recently?</span>
228 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">future_question</span><span·class="o">.</span><span·class="n">was_published_recently</span><span·class="p">()</span>229 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">future_question</span><span·class="o">.</span><span·class="n">was_published_recently</span><span·class="p">()</span>
229 <span·class="go">True</span>230 <span·class="go">True</span>
230 </pre></div>231 </pre></div>
231 </div>232 </div>
232 <p>Since·things·in·the·future·are·not·recent,·this·is·clearly·wrong.</p>233 <p>Since·things·in·the·future·are·not·recent,·this·is·clearly·wrong.</p>
233 </section>234 </section>
234 <section·id="s-create-a-test-to-expose-the-bug">235 <section·id="s-create-a-test-to-expose-the-bug">
235 <span·id="create-a-test-to-expose-the-bug"></span><h3>Create·a·test·to·expose·the·bug<a·class="headerlink"·href="#create-a-test-to-expose-the-bug"·title="Link·to·this·heading">¶</a></h3>236 <span·id="create-a-test-to-expose-the-bug"></span><h3>Create·a·test·to·expose·the·bug<a·class="headerlink"·href="#create-a-test-to-expose-the-bug"·title="Link·to·this·heading">¶</a></h3>
236 <p>What·we’ve·just·done·in·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-shell"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">shell</span></code></a>·to·test·for·the·problem·is·exactly237 <p>What·we’ve·just·done·in·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-shell"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">shell</span></code></a>·to·test·for·the·problem·is·exactly
237 what·we·can·do·in·an·automated·test,·so·let’s·turn·that·into·an·automated·test.</p>238 what·we·can·do·in·an·automated·test,·so·let’s·turn·that·into·an·automated·test.</p>
238 <p>A·conventional·place·for·an·application’s·tests·is·in·the·application’s239 <p>A·conventional·place·for·an·application’s·tests·is·in·the·application’s
239 <code·class="docutils·literal·notranslate"><span·class="pre">tests.py</span></code>·file;·the·testing·system·will·automatically·find·tests·in·any·file240 <code·class="docutils·literal·notranslate"><span·class="pre">tests.py</span></code>·file;·the·testing·system·will·automatically·find·tests·in·any·file
Offset 607, 15 lines modifiedOffset 608, 15 lines modified
607 </pre></div>608 </pre></div>
608 </div>609 </div>
609 </div>610 </div>
610 <p>Let’s·look·at·some·of·these·more·closely.</p>611 <p>Let’s·look·at·some·of·these·more·closely.</p>
611 <p>First·is·a·question·shortcut·function,·<code·class="docutils·literal·notranslate"><span·class="pre">create_question</span></code>,·to·take·some612 <p>First·is·a·question·shortcut·function,·<code·class="docutils·literal·notranslate"><span·class="pre">create_question</span></code>,·to·take·some
612 repetition·out·of·the·process·of·creating·questions.</p>613 repetition·out·of·the·process·of·creating·questions.</p>
613 <p><code·class="docutils·literal·notranslate"><span·class="pre">test_no_questions</span></code>·doesn’t·create·any·questions,·but·checks·the·message:614 <p><code·class="docutils·literal·notranslate"><span·class="pre">test_no_questions</span></code>·doesn’t·create·any·questions,·but·checks·the·message:
614 No·polls·are·available.·and·verifies·the·<code·class="docutils·literal·notranslate"><span·class="pre">latest_question_list</span></code>·is·empty.615 «No·polls·are·available.»·and·verifies·the·<code·class="docutils·literal·notranslate"><span·class="pre">latest_question_list</span></code>·is·empty.
615 Note·that·the·<a·class="reference·internal"·href="../topics/testing/tools.html#django.test.TestCase"·title="django.test.TestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.TestCase</span></code></a>·class·provides·some·additional616 Note·that·the·<a·class="reference·internal"·href="../topics/testing/tools.html#django.test.TestCase"·title="django.test.TestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.TestCase</span></code></a>·class·provides·some·additional
616 assertion·methods.·In·these·examples,·we·use617 assertion·methods.·In·these·examples,·we·use
617 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.SimpleTestCase.assertContains"·title="django.test.SimpleTestCase.assertContains"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertContains()</span></code></a>·and618 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.SimpleTestCase.assertContains"·title="django.test.SimpleTestCase.assertContains"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertContains()</span></code></a>·and
618 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.TransactionTestCase.assertQuerySetEqual"·title="django.test.TransactionTestCase.assertQuerySetEqual"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertQuerySetEqual()</span></code></a>.</p>619 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.TransactionTestCase.assertQuerySetEqual"·title="django.test.TransactionTestCase.assertQuerySetEqual"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">assertQuerySetEqual()</span></code></a>.</p>
619 <p>In·<code·class="docutils·literal·notranslate"><span·class="pre">test_past_question</span></code>,·we·create·a·question·and·verify·that·it·appears·in620 <p>In·<code·class="docutils·literal·notranslate"><span·class="pre">test_past_question</span></code>,·we·create·a·question·and·verify·that·it·appears·in
620 the·list.</p>621 the·list.</p>
621 <p>In·<code·class="docutils·literal·notranslate"><span·class="pre">test_future_question</span></code>,·we·create·a·question·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·in·the622 <p>In·<code·class="docutils·literal·notranslate"><span·class="pre">test_future_question</span></code>,·we·create·a·question·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·in·the
Offset 717, 15 lines modifiedOffset 718, 15 lines modified
717 </section>718 </section>
718 <section·id="s-further-testing">719 <section·id="s-further-testing">
719 <span·id="further-testing"></span><h2>Further·testing<a·class="headerlink"·href="#further-testing"·title="Link·to·this·heading">¶</a></h2>720 <span·id="further-testing"></span><h2>Further·testing<a·class="headerlink"·href="#further-testing"·title="Link·to·this·heading">¶</a></h2>
Max diff block lines reached; 2804/13436 bytes (20.87%) of diff not shown.
9.25 KB
html2text {}
Max HTML report size reached
14.3 KB
./usr/share/doc/python-django-doc/html/intro/tutorial06.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·6·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·6·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·7"·href="tutorial07.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·7"·href="tutorial07.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·5"·href="tutorial05.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·5"·href="tutorial05.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 93, 16 lines modifiedOffset 94, 16 lines modified
93 ··<section·id="s-writing-your-first-django-app-part-6">94 ··<section·id="s-writing-your-first-django-app-part-6">
94 <span·id="writing-your-first-django-app-part-6"></span><h1>Writing·your·first·Django·app,·part·6<a·class="headerlink"·href="#writing-your-first-django-app-part-6"·title="Link·to·this·heading">¶</a></h1>95 <span·id="writing-your-first-django-app-part-6"></span><h1>Writing·your·first·Django·app,·part·6<a·class="headerlink"·href="#writing-your-first-django-app-part-6"·title="Link·to·this·heading">¶</a></h1>
95 <p>This·tutorial·begins·where·<a·class="reference·internal"·href="tutorial05.html"><span·class="doc">Tutorial·5</span></a>·left·off.96 <p>This·tutorial·begins·where·<a·class="reference·internal"·href="tutorial05.html"><span·class="doc">Tutorial·5</span></a>·left·off.
96 We’ve·built·a·tested·web-poll·application,·and·we’ll·now·add·a·stylesheet·and97 We’ve·built·a·tested·web-poll·application,·and·we’ll·now·add·a·stylesheet·and
97 an·image.</p>98 an·image.</p>
98 <p>Aside·from·the·HTML·generated·by·the·server,·web·applications·generally·need99 <p>Aside·from·the·HTML·generated·by·the·server,·web·applications·generally·need
99 to·serve·additional·files··such·as·images,·JavaScript,·or·CSS··necessary·to100 to·serve·additional·files··such·as·images,·JavaScript,·or·CSS··necessary·to
100 render·the·complete·web·page.·In·Django,·we·refer·to·these·files·as·static101 render·the·complete·web·page.·In·Django,·we·refer·to·these·files·as·«static
101 files.</p>102 files».</p>
102 <p>For·small·projects,·this·isn’t·a·big·deal,·because·you·can·keep·the·static103 <p>For·small·projects,·this·isn’t·a·big·deal,·because·you·can·keep·the·static
103 files·somewhere·your·web·server·can·find·it.·However,·in·bigger·projects·104 files·somewhere·your·web·server·can·find·it.·However,·in·bigger·projects·
104 especially·those·comprised·of·multiple·apps··dealing·with·the·multiple·sets105 especially·those·comprised·of·multiple·apps··dealing·with·the·multiple·sets
105 of·static·files·provided·by·each·application·starts·to·get·tricky.</p>106 of·static·files·provided·by·each·application·starts·to·get·tricky.</p>
106 <p>That’s·what·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·is·for:·it·collects·static·files107 <p>That’s·what·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·is·for:·it·collects·static·files
107 from·each·of·your·applications·(and·any·other·places·you·specify)·into·a108 from·each·of·your·applications·(and·any·other·places·you·specify)·into·a
108 single·location·that·can·easily·be·served·in·production.</p>109 single·location·that·can·easily·be·served·in·production.</p>
Offset 115, 15 lines modifiedOffset 116, 15 lines modified
115 <span·id="customize-your-app-s-look-and-feel"></span><h2>Customize·your·<em>app’s</em>·look·and·feel<a·class="headerlink"·href="#customize-your-app-s-look-and-feel"·title="Link·to·this·heading">¶</a></h2>116 <span·id="customize-your-app-s-look-and-feel"></span><h2>Customize·your·<em>app’s</em>·look·and·feel<a·class="headerlink"·href="#customize-your-app-s-look-and-feel"·title="Link·to·this·heading">¶</a></h2>
116 <p>First,·create·a·directory·called·<code·class="docutils·literal·notranslate"><span·class="pre">static</span></code>·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·directory.·Django117 <p>First,·create·a·directory·called·<code·class="docutils·literal·notranslate"><span·class="pre">static</span></code>·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·directory.·Django
117 will·look·for·static·files·there,·similarly·to·how·Django·finds·templates118 will·look·for·static·files·there,·similarly·to·how·Django·finds·templates
118 inside·<code·class="docutils·literal·notranslate"><span·class="pre">polls/templates/</span></code>.</p>119 inside·<code·class="docutils·literal·notranslate"><span·class="pre">polls/templates/</span></code>.</p>
119 <p>Django’s·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATICFILES_FINDERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_FINDERS</span></code></a>·setting·contains·a·list120 <p>Django’s·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATICFILES_FINDERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_FINDERS</span></code></a>·setting·contains·a·list
120 of·finders·that·know·how·to·discover·static·files·from·various121 of·finders·that·know·how·to·discover·static·files·from·various
121 sources.·One·of·the·defaults·is·<code·class="docutils·literal·notranslate"><span·class="pre">AppDirectoriesFinder</span></code>·which122 sources.·One·of·the·defaults·is·<code·class="docutils·literal·notranslate"><span·class="pre">AppDirectoriesFinder</span></code>·which
122 looks·for·a·static·subdirectory·in·each·of·the123 looks·for·a·«static»·subdirectory·in·each·of·the
123 <a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>,·like·the·one·in·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·we·just·created.·The·admin124 <a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>,·like·the·one·in·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·we·just·created.·The·admin
124 site·uses·the·same·directory·structure·for·its·static·files.</p>125 site·uses·the·same·directory·structure·for·its·static·files.</p>
125 <p>Within·the·<code·class="docutils·literal·notranslate"><span·class="pre">static</span></code>·directory·you·have·just·created,·create·another·directory126 <p>Within·the·<code·class="docutils·literal·notranslate"><span·class="pre">static</span></code>·directory·you·have·just·created,·create·another·directory
126 called·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·and·within·that·create·a·file·called·<code·class="docutils·literal·notranslate"><span·class="pre">style.css</span></code>.·In·other127 called·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·and·within·that·create·a·file·called·<code·class="docutils·literal·notranslate"><span·class="pre">style.css</span></code>.·In·other
127 words,·your·stylesheet·should·be·at·<code·class="docutils·literal·notranslate"><span·class="pre">polls/static/polls/style.css</span></code>.·Because128 words,·your·stylesheet·should·be·at·<code·class="docutils·literal·notranslate"><span·class="pre">polls/static/polls/style.css</span></code>.·Because
128 of·how·the·<code·class="docutils·literal·notranslate"><span·class="pre">AppDirectoriesFinder</span></code>·staticfile·finder·works,·you·can·refer·to129 of·how·the·<code·class="docutils·literal·notranslate"><span·class="pre">AppDirectoriesFinder</span></code>·staticfile·finder·works,·you·can·refer·to
129 this·static·file·in·Django·as·<code·class="docutils·literal·notranslate"><span·class="pre">polls/style.css</span></code>,·similar·to·how·you·reference130 this·static·file·in·Django·as·<code·class="docutils·literal·notranslate"><span·class="pre">polls/style.css</span></code>,·similar·to·how·you·reference
Offset 196, 15 lines modifiedOffset 197, 15 lines modified
196 <span·class="p">}</span>197 <span·class="p">}</span>
197 </pre></div>198 </pre></div>
198 </div>199 </div>
199 </div>200 </div>
200 <p>Reload·<code·class="docutils·literal·notranslate"><span·class="pre">http://localhost:8000/polls/</span></code>·and·you·should·see·the·background201 <p>Reload·<code·class="docutils·literal·notranslate"><span·class="pre">http://localhost:8000/polls/</span></code>·and·you·should·see·the·background
201 loaded·in·the·top·left·of·the·screen.</p>202 loaded·in·the·top·left·of·the·screen.</p>
202 <div·class="admonition·warning">203 <div·class="admonition·warning">
203 <p·class="admonition-title">Warning</p>204 <p·class="admonition-title">Avvertimento</p>
204 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">static</span>·<span·class="pre">%}</span></code>·template·tag·is·not·available·for·use·in·static·files205 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">static</span>·<span·class="pre">%}</span></code>·template·tag·is·not·available·for·use·in·static·files
205 which·aren’t·generated·by·Django,·like·your·stylesheet.·You·should·always206 which·aren’t·generated·by·Django,·like·your·stylesheet.·You·should·always
206 use·<strong>relative·paths</strong>·to·link·your·static·files·between·each·other,207 use·<strong>relative·paths</strong>·to·link·your·static·files·between·each·other,
207 because·then·you·can·change·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·(used·by·the208 because·then·you·can·change·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·(used·by·the
208 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-static"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">static</span></code></a>·template·tag·to·generate·its·URLs)·without·having·to·modify209 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-static"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">static</span></code></a>·template·tag·to·generate·its·URLs)·without·having·to·modify
209 a·bunch·of·paths·in·your·static·files·as·well.</p>210 a·bunch·of·paths·in·your·static·files·as·well.</p>
210 </div>211 </div>
Offset 238, 37 lines modifiedOffset 239, 37 lines modified
238 <li><a·class="reference·internal"·href="#adding-a-background-image">Adding·a·background-image</a></li>239 <li><a·class="reference·internal"·href="#adding-a-background-image">Adding·a·background-image</a></li>
239 </ul>240 </ul>
240 </li>241 </li>
241 </ul>242 </ul>
  
242 ··</div>243 ··</div>
243 ··<div>244 ··<div>
244 ····<h4>Previous·topic</h4>245 ····<h4>Argomento·precedente</h4>
245 ····<p·class="topless"><a·href="tutorial05.html"246 ····<p·class="topless"><a·href="tutorial05.html"
246 ··························title="previous·chapter">Writing·your·first·Django·app,·part·5</a></p>247 ··························title="capitolo·precedente">Writing·your·first·Django·app,·part·5</a></p>
247 ··</div>248 ··</div>
248 ··<div>249 ··<div>
249 ····<h4>Next·topic</h4>250 ····<h4>Argomento·successivo</h4>
250 ····<p·class="topless"><a·href="tutorial07.html"251 ····<p·class="topless"><a·href="tutorial07.html"
251 ··························title="next·chapter">Writing·your·first·Django·app,·part·7</a></p>252 ··························title="capitolo·successivo">Writing·your·first·Django·app,·part·7</a></p>
252 ··</div>253 ··</div>
253 <search·id="searchbox"·style="display:·none"·role="search">254 <search·id="searchbox"·style="display:·none"·role="search">
254 ··<h3·id="searchlabel">Quick·search</h3>255 ··<h3·id="searchlabel">Ricerca·veloce</h3>
255 ····<div·class="searchformwrapper">256 ····<div·class="searchformwrapper">
256 ····<form·class="search"·action="../search.html"·method="get">257 ····<form·class="search"·action="../search.html"·method="get">
257 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>258 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
258 ······<input·type="submit"·value="Go"·/>259 ······<input·type="submit"·value="Vai"·/>
259 ····</form>260 ····</form>
260 ····</div>261 ····</div>
261 </search>262 </search>
262 <script>document.getElementById('searchbox').style.display·=·"block"</script>263 <script>document.getElementById('searchbox').style.display·=·"block"</script>
263 ········</div>264 ········</div>
264 ······</div>265 ······</div>
265 ··············<h3>Last·update:</h3>266 ··············<h3>Last·update:</h3>
266 ··············<p·class="topless">Sep·03,·2024</p>267 ··············<p·class="topless">set·03,·2024</p>
267 ··········</div>268 ··········</div>
268 ········269 ········
269 ······270 ······
270 ····</div>271 ····</div>
  
271 ····<div·id="ft">272 ····<div·id="ft">
272 ······<div·class="nav">273 ······<div·class="nav">
5.39 KB
html2text {}
Max HTML report size reached
28.8 KB
./usr/share/doc/python-django-doc/html/intro/tutorial07.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·7·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·7·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·8"·href="tutorial08.html"·/>15 ····<link·rel="next"·title="Writing·your·first·Django·app,·part·8"·href="tutorial08.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·6"·href="tutorial06.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·6"·href="tutorial06.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 122, 16 lines modifiedOffset 123, 16 lines modified
122 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Question</span><span·class="p">,</span>·<span·class="n">QuestionAdmin</span><span·class="p">)</span>123 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Question</span><span·class="p">,</span>·<span·class="n">QuestionAdmin</span><span·class="p">)</span>
123 </pre></div>124 </pre></div>
124 </div>125 </div>
125 </div>126 </div>
126 <p>You’ll·follow·this·pattern··create·a·model·admin·class,·then·pass·it·as·the127 <p>You’ll·follow·this·pattern··create·a·model·admin·class,·then·pass·it·as·the
127 second·argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.register()</span></code>··any·time·you·need·to·change·the128 second·argument·to·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.register()</span></code>··any·time·you·need·to·change·the
128 admin·options·for·a·model.</p>129 admin·options·for·a·model.</p>
129 <p>This·particular·change·above·makes·the·Publication·date·come·before·the130 <p>This·particular·change·above·makes·the·«Publication·date»·come·before·the
130 Question·field:</p>131 «Question»·field:</p>
131 <img·alt="Fields·have·been·reordered"·src="../_images/admin07.png"·/>132 <img·alt="Fields·have·been·reordered"·src="../_images/admin07.png"·/>
132 <p>This·isn’t·impressive·with·only·two·fields,·but·for·admin·forms·with·dozens133 <p>This·isn’t·impressive·with·only·two·fields,·but·for·admin·forms·with·dozens
133 of·fields,·choosing·an·intuitive·order·is·an·important·usability·detail.</p>134 of·fields,·choosing·an·intuitive·order·is·an·important·usability·detail.</p>
134 <p>And·speaking·of·forms·with·dozens·of·fields,·you·might·want·to·split·the·form135 <p>And·speaking·of·forms·with·dozens·of·fields,·you·might·want·to·split·the·form
135 up·into·fieldsets:</p>136 up·into·fieldsets:</p>
136 <div·class="literal-block-wrapper·docutils·container"·id="id2">137 <div·class="literal-block-wrapper·docutils·container"·id="id2">
137 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/admin.py</span></code></span><a·class="headerlink"·href="#id2"·title="Link·to·this·code">¶</a></div>138 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/admin.py</span></code></span><a·class="headerlink"·href="#id2"·title="Link·to·this·code">¶</a></div>
Offset 170, 27 lines modifiedOffset 171, 27 lines modified
170 <span·class="kn">from</span>·<span·class="nn">.models</span>·<span·class="kn">import</span>·<span·class="n">Choice</span><span·class="p">,</span>·<span·class="n">Question</span>171 <span·class="kn">from</span>·<span·class="nn">.models</span>·<span·class="kn">import</span>·<span·class="n">Choice</span><span·class="p">,</span>·<span·class="n">Question</span>
  
171 <span·class="c1">#·...</span>172 <span·class="c1">#·...</span>
172 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Choice</span><span·class="p">)</span>173 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Choice</span><span·class="p">)</span>
173 </pre></div>174 </pre></div>
174 </div>175 </div>
175 </div>176 </div>
176 <p>Now·Choices·is·an·available·option·in·the·Django·admin.·The·Add·choice·form177 <p>Now·«Choices»·is·an·available·option·in·the·Django·admin.·The·«Add·choice»·form
177 looks·like·this:</p>178 looks·like·this:</p>
178 <img·alt="Choice·admin·page"·src="../_images/admin09.png"·/>179 <img·alt="Choice·admin·page"·src="../_images/admin09.png"·/>
179 <p>In·that·form,·the·Question·field·is·a·select·box·containing·every·question·in·the180 <p>In·that·form,·the·«Question»·field·is·a·select·box·containing·every·question·in·the
180 database.·Django·knows·that·a·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·should·be181 database.·Django·knows·that·a·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·should·be
181 represented·in·the·admin·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;select&gt;</span></code>·box.·In·our·case,·only·one·question182 represented·in·the·admin·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;select&gt;</span></code>·box.·In·our·case,·only·one·question
182 exists·at·this·point.</p>183 exists·at·this·point.</p>
183 <p>Also·note·the·Add·another·question·link·next·to·Question.·Every·object·with184 <p>Also·note·the·«Add·another·question»·link·next·to·«Question.»·Every·object·with
184 a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·relationship·to·another·gets·this·for·free.·When·you·click185 a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·relationship·to·another·gets·this·for·free.·When·you·click
185 Add·another·question,·you’ll·get·a·popup·window·with·the·Add·question·form.186 «Add·another·question»,·you’ll·get·a·popup·window·with·the·«Add·question»·form.
186 If·you·add·a·question·in·that·window·and·click·Save,·Django·will·save·the187 If·you·add·a·question·in·that·window·and·click·«Save»,·Django·will·save·the
187 question·to·the·database·and·dynamically·add·it·as·the·selected·choice·on·the188 question·to·the·database·and·dynamically·add·it·as·the·selected·choice·on·the
188 Add·choice·form·you’re·looking·at.</p>189 «Add·choice»·form·you’re·looking·at.</p>
189 <p>But,·really,·this·is·an·inefficient·way·of·adding·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects·to·the·system.190 <p>But,·really,·this·is·an·inefficient·way·of·adding·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects·to·the·system.
190 It’d·be·better·if·you·could·add·a·bunch·of·Choices·directly·when·you·create·the191 It’d·be·better·if·you·could·add·a·bunch·of·Choices·directly·when·you·create·the
191 <code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·object.·Let’s·make·that·happen.</p>192 <code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·object.·Let’s·make·that·happen.</p>
192 <p>Remove·the·<code·class="docutils·literal·notranslate"><span·class="pre">register()</span></code>·call·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·model.·Then,·edit·the·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>193 <p>Remove·the·<code·class="docutils·literal·notranslate"><span·class="pre">register()</span></code>·call·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·model.·Then,·edit·the·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>
193 registration·code·to·read:</p>194 registration·code·to·read:</p>
194 <div·class="literal-block-wrapper·docutils·container"·id="id4">195 <div·class="literal-block-wrapper·docutils·container"·id="id4">
195 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/admin.py</span></code></span><a·class="headerlink"·href="#id4"·title="Link·to·this·code">¶</a></div>196 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">polls/admin.py</span></code></span><a·class="headerlink"·href="#id4"·title="Link·to·this·code">¶</a></div>
Offset 212, 22 lines modifiedOffset 213, 22 lines modified
212 ····<span·class="n">inlines</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">ChoiceInline</span><span·class="p">]</span>213 ····<span·class="n">inlines</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">ChoiceInline</span><span·class="p">]</span>
  
  
213 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Question</span><span·class="p">,</span>·<span·class="n">QuestionAdmin</span><span·class="p">)</span>214 <span·class="n">admin</span><span·class="o">.</span><span·class="n">site</span><span·class="o">.</span><span·class="n">register</span><span·class="p">(</span><span·class="n">Question</span><span·class="p">,</span>·<span·class="n">QuestionAdmin</span><span·class="p">)</span>
214 </pre></div>215 </pre></div>
215 </div>216 </div>
216 </div>217 </div>
217 <p>This·tells·Django:·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects·are·edited·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·admin·page.·By218 <p>This·tells·Django:·«<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects·are·edited·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·admin·page.·By
218 default,·provide·enough·fields·for·3·choices.</p>219 default,·provide·enough·fields·for·3·choices.»</p>
219 <p>Load·the·Add·question·page·to·see·how·that·looks:</p>220 <p>Load·the·«Add·question»·page·to·see·how·that·looks:</p>
220 <img·alt="Add·question·page·now·has·choices·on·it"·src="../_images/admin10t.png"·/>221 <img·alt="Add·question·page·now·has·choices·on·it"·src="../_images/admin10t.png"·/>
221 <p>It·works·like·this:·There·are·three·slots·for·related·Choices··as·specified222 <p>It·works·like·this:·There·are·three·slots·for·related·Choices··as·specified
222 by·<code·class="docutils·literal·notranslate"><span·class="pre">extra</span></code>··and·each·time·you·come·back·to·the·Change·page·for·an223 by·<code·class="docutils·literal·notranslate"><span·class="pre">extra</span></code>··and·each·time·you·come·back·to·the·«Change»·page·for·an
223 already-created·object,·you·get·another·three·extra·slots.</p>224 already-created·object,·you·get·another·three·extra·slots.</p>
224 <p>At·the·end·of·the·three·current·slots·you·will·find·an·Add·another·Choice225 <p>At·the·end·of·the·three·current·slots·you·will·find·an·«Add·another·Choice»
225 link.··If·you·click·on·it,·a·new·slot·will·be·added.·If·you·want·to·remove·the226 link.··If·you·click·on·it,·a·new·slot·will·be·added.·If·you·want·to·remove·the
226 added·slot,·you·can·click·on·the·X·to·the·top·right·of·the·added·slot.·This227 added·slot,·you·can·click·on·the·X·to·the·top·right·of·the·added·slot.·This
227 image·shows·an·added·slot:</p>228 image·shows·an·added·slot:</p>
228 <img·alt="Additional·slot·added·dynamically"·src="../_images/admin14t.png"·/>229 <img·alt="Additional·slot·added·dynamically"·src="../_images/admin14t.png"·/>
229 <p>One·small·problem,·though.·It·takes·a·lot·of·screen·space·to·display·all·the230 <p>One·small·problem,·though.·It·takes·a·lot·of·screen·space·to·display·all·the
230 fields·for·entering·related·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects.·For·that·reason,·Django·offers·a231 fields·for·entering·related·<code·class="docutils·literal·notranslate"><span·class="pre">Choice</span></code>·objects.·For·that·reason,·Django·offers·a
231 tabular·way·of·displaying·inline·related·objects.·To·use·it,·change·the232 tabular·way·of·displaying·inline·related·objects.·To·use·it,·change·the
Offset 238, 21 lines modifiedOffset 239, 21 lines modified
238 ····<span·class="o">...</span>239 ····<span·class="o">...</span>
239 </pre></div>240 </pre></div>
240 </div>241 </div>
241 </div>242 </div>
242 <p>With·that·<code·class="docutils·literal·notranslate"><span·class="pre">TabularInline</span></code>·(instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">StackedInline</span></code>),·the243 <p>With·that·<code·class="docutils·literal·notranslate"><span·class="pre">TabularInline</span></code>·(instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">StackedInline</span></code>),·the
243 related·objects·are·displayed·in·a·more·compact,·table-based·format:</p>244 related·objects·are·displayed·in·a·more·compact,·table-based·format:</p>
244 <img·alt="Add·question·page·now·has·more·compact·choices"·src="../_images/admin11t.png"·/>245 <img·alt="Add·question·page·now·has·more·compact·choices"·src="../_images/admin11t.png"·/>
245 <p>Note·that·there·is·an·extra·Delete?·column·that·allows·removing·rows·added246 <p>Note·that·there·is·an·extra·«Delete?»·column·that·allows·removing·rows·added
246 using·the·Add·another·Choice·button·and·rows·that·have·already·been·saved.</p>247 using·the·«Add·another·Choice»·button·and·rows·that·have·already·been·saved.</p>
247 </section>248 </section>
248 <section·id="s-customize-the-admin-change-list">249 <section·id="s-customize-the-admin-change-list">
249 <span·id="customize-the-admin-change-list"></span><h2>Customize·the·admin·change·list<a·class="headerlink"·href="#customize-the-admin-change-list"·title="Link·to·this·heading">¶</a></h2>250 <span·id="customize-the-admin-change-list"></span><h2>Customize·the·admin·change·list<a·class="headerlink"·href="#customize-the-admin-change-list"·title="Link·to·this·heading">¶</a></h2>
250 <p>Now·that·the·Question·admin·page·is·looking·good,·let’s·make·some·tweaks·to·the251 <p>Now·that·the·Question·admin·page·is·looking·good,·let’s·make·some·tweaks·to·the
251 change·list·page··the·one·that·displays·all·the·questions·in·the·system.</p>252 «change·list»·page··the·one·that·displays·all·the·questions·in·the·system.</p>
252 <p>Here’s·what·it·looks·like·at·this·point:</p>253 <p>Here’s·what·it·looks·like·at·this·point:</p>
253 <img·alt="Polls·change·list·page"·src="../_images/admin04t.png"·/>254 <img·alt="Polls·change·list·page"·src="../_images/admin04t.png"·/>
254 <p>By·default,·Django·displays·the·<code·class="docutils·literal·notranslate"><span·class="pre">str()</span></code>·of·each·object.·But·sometimes·it’d·be255 <p>By·default,·Django·displays·the·<code·class="docutils·literal·notranslate"><span·class="pre">str()</span></code>·of·each·object.·But·sometimes·it’d·be
255 more·helpful·if·we·could·display·individual·fields.·To·do·that,·use·the256 more·helpful·if·we·could·display·individual·fields.·To·do·that,·use·the
256 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">list_display</span></code></a>·admin·option,·which·is·a257 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">list_display</span></code></a>·admin·option,·which·is·a
Max diff block lines reached; 7332/18567 bytes (39.49%) of diff not shown.
10.5 KB
html2text {}
Max HTML report size reached
12.8 KB
./usr/share/doc/python-django-doc/html/intro/tutorial08.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·your·first·Django·app,·part·8·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·your·first·Django·app,·part·8·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Advanced·tutorial:·How·to·write·reusable·apps"·href="reusable-apps.html"·/>15 ····<link·rel="next"·title="Advanced·tutorial:·How·to·write·reusable·apps"·href="reusable-apps.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·7"·href="tutorial07.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·Django·app,·part·7"·href="tutorial07.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 133, 15 lines modifiedOffset 134, 15 lines modified
133 setup·to·integrate·them·with·your·project.·Often·you·will·need·to·add·the134 setup·to·integrate·them·with·your·project.·Often·you·will·need·to·add·the
134 package’s·Django·app·to·your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·Some·packages135 package’s·Django·app·to·your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·Some·packages
135 need·other·changes,·like·additions·to·your·URLconf·(<code·class="docutils·literal·notranslate"><span·class="pre">urls.py</span></code>).</p>136 need·other·changes,·like·additions·to·your·URLconf·(<code·class="docutils·literal·notranslate"><span·class="pre">urls.py</span></code>).</p>
136 <p>Django·Debug·Toolbar·requires·several·setup·steps.·Follow·them·in·<a·class="reference·external"·href="https://django-debug-toolbar.readthedocs.io/en/latest/installation.html">its137 <p>Django·Debug·Toolbar·requires·several·setup·steps.·Follow·them·in·<a·class="reference·external"·href="https://django-debug-toolbar.readthedocs.io/en/latest/installation.html">its
137 installation·guide</a>.138 installation·guide</a>.
138 The·steps·are·not·duplicated·in·this·tutorial,·because·as·a·third-party139 The·steps·are·not·duplicated·in·this·tutorial,·because·as·a·third-party
139 package,·it·may·change·separately·to·Django’s·schedule.</p>140 package,·it·may·change·separately·to·Django’s·schedule.</p>
140 <p>Once·installed,·you·should·be·able·to·see·the·DjDT·handle·on·the·right·side141 <p>Once·installed,·you·should·be·able·to·see·the·DjDT·«handle»·on·the·right·side
141 of·the·browser·window·when·you·refresh·the·polls·application.·Click·it·to·open142 of·the·browser·window·when·you·refresh·the·polls·application.·Click·it·to·open
142 the·debug·toolbar·and·use·the·tools·in·each·panel.·See·the·<a·class="reference·external"·href="https://django-debug-toolbar.readthedocs.io/en/latest/panels.html">panels143 the·debug·toolbar·and·use·the·tools·in·each·panel.·See·the·<a·class="reference·external"·href="https://django-debug-toolbar.readthedocs.io/en/latest/panels.html">panels
143 documentation·page</a>·for·more144 documentation·page</a>·for·more
144 information·on·what·the·panels·show.</p>145 information·on·what·the·panels·show.</p>
145 </section>146 </section>
146 <section·id="s-getting-help-from-others">147 <section·id="s-getting-help-from-others">
147 <span·id="getting-help-from-others"></span><h2>Getting·help·from·others<a·class="headerlink"·href="#getting-help-from-others"·title="Link·to·this·heading">¶</a></h2>148 <span·id="getting-help-from-others"></span><h2>Getting·help·from·others<a·class="headerlink"·href="#getting-help-from-others"·title="Link·to·this·heading">¶</a></h2>
Offset 164, 26 lines modifiedOffset 165, 26 lines modified
164 <span·id="installing-other-third-party-packages"></span><h2>Installing·other·third-party·packages<a·class="headerlink"·href="#installing-other-third-party-packages"·title="Link·to·this·heading">¶</a></h2>165 <span·id="installing-other-third-party-packages"></span><h2>Installing·other·third-party·packages<a·class="headerlink"·href="#installing-other-third-party-packages"·title="Link·to·this·heading">¶</a></h2>
165 <p>There·are·many·more·third-party·packages,·which·you·can·find·using·the166 <p>There·are·many·more·third-party·packages,·which·you·can·find·using·the
166 fantastic·Django·resource,·<a·class="reference·external"·href="https://djangopackages.org/">Django·Packages</a>.</p>167 fantastic·Django·resource,·<a·class="reference·external"·href="https://djangopackages.org/">Django·Packages</a>.</p>
167 <p>It·can·be·difficult·to·know·what·third-party·packages·you·should·use.·This168 <p>It·can·be·difficult·to·know·what·third-party·packages·you·should·use.·This
168 depends·on·your·needs·and·goals.·Sometimes·it’s·fine·to·use·a·package·that’s169 depends·on·your·needs·and·goals.·Sometimes·it’s·fine·to·use·a·package·that’s
169 in·its·alpha·state.·Other·times,·you·need·to·know·it’s·production·ready.170 in·its·alpha·state.·Other·times,·you·need·to·know·it’s·production·ready.
170 <a·class="reference·external"·href="https://adamj.eu/tech/2021/11/04/the-well-maintained-test/">Adam·Johnson·has·a·blog·post</a>·that·outlines171 <a·class="reference·external"·href="https://adamj.eu/tech/2021/11/04/the-well-maintained-test/">Adam·Johnson·has·a·blog·post</a>·that·outlines
171 a·set·of·characteristics·that·qualifies·a·package·as·well·maintained.172 a·set·of·characteristics·that·qualifies·a·package·as·«well·maintained».
172 Django·Packages·shows·data·for·some·of·these·characteristics,·such·as·when·the173 Django·Packages·shows·data·for·some·of·these·characteristics,·such·as·when·the
173 package·was·last·updated.</p>174 package·was·last·updated.</p>
174 <p>As·Adam·points·out·in·his·post,·when·the·answer·to·one·of·the·questions·is175 <p>As·Adam·points·out·in·his·post,·when·the·answer·to·one·of·the·questions·is
175 no,·that’s·an·opportunity·to·contribute.</p>176 «no»,·that’s·an·opportunity·to·contribute.</p>
176 </section>177 </section>
177 <section·id="s-what-s-next">178 <section·id="s-what-s-next">
178 <span·id="what-s-next"></span><h2>What’s·next?<a·class="headerlink"·href="#what-s-next"·title="Link·to·this·heading">¶</a></h2>179 <span·id="what-s-next"></span><h2>What’s·next?<a·class="headerlink"·href="#what-s-next"·title="Link·to·this·heading">¶</a></h2>
179 <p>The·beginner·tutorial·ends·here.·In·the·meantime,·you·might·want·to·check·out180 <p>The·beginner·tutorial·ends·here.·In·the·meantime,·you·might·want·to·check·out
180 some·pointers·on·<a·class="reference·internal"·href="whatsnext.html"><span·class="doc">where·to·go·from·here</span></a>.</p>181 some·pointers·on·<a·class="reference·internal"·href="whatsnext.html"><span·class="doc">where·to·go·from·here</span></a>.</p>
181 <p>If·you·are·familiar·with·Python·packaging·and·interested·in·learning·how·to182 <p>If·you·are·familiar·with·Python·packaging·and·interested·in·learning·how·to
182 turn·polls·into·a·reusable·app,·check·out·<a·class="reference·internal"·href="reusable-apps.html"><span·class="doc">Advanced·tutorial:·How·to183 turn·polls·into·a·«reusable·app»,·check·out·<a·class="reference·internal"·href="reusable-apps.html"><span·class="doc">Advanced·tutorial:·How·to
183 write·reusable·apps</span></a>.</p>184 write·reusable·apps</span></a>.</p>
184 </section>185 </section>
185 </section>186 </section>
  
  
186 ··········</div>187 ··········</div>
187 ········</div>188 ········</div>
Offset 204, 37 lines modifiedOffset 205, 37 lines modified
204 <li><a·class="reference·internal"·href="#what-s-next">What’s·next?</a></li>205 <li><a·class="reference·internal"·href="#what-s-next">What’s·next?</a></li>
205 </ul>206 </ul>
206 </li>207 </li>
207 </ul>208 </ul>
  
208 ··</div>209 ··</div>
209 ··<div>210 ··<div>
210 ····<h4>Previous·topic</h4>211 ····<h4>Argomento·precedente</h4>
211 ····<p·class="topless"><a·href="tutorial07.html"212 ····<p·class="topless"><a·href="tutorial07.html"
212 ··························title="previous·chapter">Writing·your·first·Django·app,·part·7</a></p>213 ··························title="capitolo·precedente">Writing·your·first·Django·app,·part·7</a></p>
213 ··</div>214 ··</div>
214 ··<div>215 ··<div>
215 ····<h4>Next·topic</h4>216 ····<h4>Argomento·successivo</h4>
216 ····<p·class="topless"><a·href="reusable-apps.html"217 ····<p·class="topless"><a·href="reusable-apps.html"
217 ··························title="next·chapter">Advanced·tutorial:·How·to·write·reusable·apps</a></p>218 ··························title="capitolo·successivo">Advanced·tutorial:·How·to·write·reusable·apps</a></p>
218 ··</div>219 ··</div>
219 <search·id="searchbox"·style="display:·none"·role="search">220 <search·id="searchbox"·style="display:·none"·role="search">
220 ··<h3·id="searchlabel">Quick·search</h3>221 ··<h3·id="searchlabel">Ricerca·veloce</h3>
221 ····<div·class="searchformwrapper">222 ····<div·class="searchformwrapper">
222 ····<form·class="search"·action="../search.html"·method="get">223 ····<form·class="search"·action="../search.html"·method="get">
223 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>224 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
224 ······<input·type="submit"·value="Go"·/>225 ······<input·type="submit"·value="Vai"·/>
225 ····</form>226 ····</form>
226 ····</div>227 ····</div>
227 </search>228 </search>
228 <script>document.getElementById('searchbox').style.display·=·"block"</script>229 <script>document.getElementById('searchbox').style.display·=·"block"</script>
229 ········</div>230 ········</div>
230 ······</div>231 ······</div>
231 ··············<h3>Last·update:</h3>232 ··············<h3>Last·update:</h3>
232 ··············<p·class="topless">Sep·03,·2024</p>233 ··············<p·class="topless">set·03,·2024</p>
233 ··········</div>234 ··········</div>
234 ········235 ········
235 ······236 ······
236 ····</div>237 ····</div>
  
237 ····<div·id="ft">238 ····<div·id="ft">
238 ······<div·class="nav">239 ······<div·class="nav">
5.33 KB
html2text {}
Max HTML report size reached
24.7 KB
./usr/share/doc/python-django-doc/html/intro/whatsnext.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>What·to·read·next·&#8212;·Django·4.2.16·documentation</title>6 ····<title>What·to·read·next·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Writing·your·first·patch·for·Django"·href="contributing.html"·/>15 ····<link·rel="next"·title="Writing·your·first·patch·for·Django"·href="contributing.html"·/>
15 ····<link·rel="prev"·title="Advanced·tutorial:·How·to·write·reusable·apps"·href="reusable-apps.html"·/>16 ····<link·rel="prev"·title="Advanced·tutorial:·How·to·write·reusable·apps"·href="reusable-apps.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 105, 52 lines modifiedOffset 106, 52 lines modified
105 documentation·works·so·that·you·can·get·the·most·out·of·it.</p>106 documentation·works·so·that·you·can·get·the·most·out·of·it.</p>
106 <p>(Yes,·this·is·documentation·about·documentation.·Rest·assured·we·have·no·plans107 <p>(Yes,·this·is·documentation·about·documentation.·Rest·assured·we·have·no·plans
107 to·write·a·document·about·how·to·read·the·document·about·documentation.)</p>108 to·write·a·document·about·how·to·read·the·document·about·documentation.)</p>
108 <section·id="s-finding-documentation">109 <section·id="s-finding-documentation">
109 <span·id="finding-documentation"></span><h2>Finding·documentation<a·class="headerlink"·href="#finding-documentation"·title="Link·to·this·heading">¶</a></h2>110 <span·id="finding-documentation"></span><h2>Finding·documentation<a·class="headerlink"·href="#finding-documentation"·title="Link·to·this·heading">¶</a></h2>
110 <p>Django’s·got·a·<em>lot</em>·of·documentation··almost·450,000·words·and·counting·111 <p>Django’s·got·a·<em>lot</em>·of·documentation··almost·450,000·words·and·counting·
111 so·finding·what·you·need·can·sometimes·be·tricky.·A·good·place·to·start112 so·finding·what·you·need·can·sometimes·be·tricky.·A·good·place·to·start
112 is·the·<a·class="reference·internal"·href="../genindex.html"><span·class="std·std-ref">Index</span></a>.·We·also·recommend·using·the·builtin·search·feature.</p>113 is·the·<a·class="reference·internal"·href="../genindex.html"><span·class="std·std-ref">Indice</span></a>.·We·also·recommend·using·the·builtin·search·feature.</p>
113 <p>Or·you·can·just·browse·around!</p>114 <p>Or·you·can·just·browse·around!</p>
114 </section>115 </section>
115 <section·id="s-how-the-documentation-is-organized">116 <section·id="s-how-the-documentation-is-organized">
116 <span·id="how-the-documentation-is-organized"></span><h2>How·the·documentation·is·organized<a·class="headerlink"·href="#how-the-documentation-is-organized"·title="Link·to·this·heading">¶</a></h2>117 <span·id="how-the-documentation-is-organized"></span><h2>How·the·documentation·is·organized<a·class="headerlink"·href="#how-the-documentation-is-organized"·title="Link·to·this·heading">¶</a></h2>
117 <p>Django’s·main·documentation·is·broken·up·into·chunks·designed·to·fill118 <p>Django’s·main·documentation·is·broken·up·into·«chunks»·designed·to·fill
118 different·needs:</p>119 different·needs:</p>
119 <ul>120 <ul>
120 <li><p>The·<a·class="reference·internal"·href="index.html"><span·class="doc">introductory·material</span></a>·is·designed·for·people·new121 <li><p>The·<a·class="reference·internal"·href="index.html"><span·class="doc">introductory·material</span></a>·is·designed·for·people·new
121 to·Django··or·to·web·development·in·general.·It·doesn’t·cover·anything122 to·Django··or·to·web·development·in·general.·It·doesn’t·cover·anything
122 in·depth,·but·instead·gives·a·high-level·overview·of·how·developing·in123 in·depth,·but·instead·gives·a·high-level·overview·of·how·developing·in
123 Django·feels.</p></li>124 Django·«feels».</p></li>
124 <li><p>The·<a·class="reference·internal"·href="../topics/index.html"><span·class="doc">topic·guides</span></a>,·on·the·other·hand,·dive·deep·into125 <li><p>The·<a·class="reference·internal"·href="../topics/index.html"><span·class="doc">topic·guides</span></a>,·on·the·other·hand,·dive·deep·into
125 individual·parts·of·Django.·There·are·complete·guides·to·Django’s126 individual·parts·of·Django.·There·are·complete·guides·to·Django’s
126 <a·class="reference·internal"·href="../topics/db/index.html"><span·class="doc">model·system</span></a>,·<a·class="reference·internal"·href="../topics/templates.html"><span·class="doc">template·engine</span></a>,·<a·class="reference·internal"·href="../topics/forms/index.html"><span·class="doc">forms·framework</span></a>,·and·much127 <a·class="reference·internal"·href="../topics/db/index.html"><span·class="doc">model·system</span></a>,·<a·class="reference·internal"·href="../topics/templates.html"><span·class="doc">template·engine</span></a>,·<a·class="reference·internal"·href="../topics/forms/index.html"><span·class="doc">forms·framework</span></a>,·and·much
127 more.</p>128 more.</p>
128 <p>This·is·probably·where·you’ll·want·to·spend·most·of·your·time;·if·you·work129 <p>This·is·probably·where·you’ll·want·to·spend·most·of·your·time;·if·you·work
129 your·way·through·these·guides·you·should·come·out·knowing·pretty·much130 your·way·through·these·guides·you·should·come·out·knowing·pretty·much
130 everything·there·is·to·know·about·Django.</p>131 everything·there·is·to·know·about·Django.</p>
131 </li>132 </li>
132 <li><p>Web·development·is·often·broad,·not·deep··problems·span·many·domains.133 <li><p>Web·development·is·often·broad,·not·deep··problems·span·many·domains.
133 We’ve·written·a·set·of·<a·class="reference·internal"·href="../howto/index.html"><span·class="doc">how-to·guides</span></a>·that·answer134 We’ve·written·a·set·of·<a·class="reference·internal"·href="../howto/index.html"><span·class="doc">how-to·guides</span></a>·that·answer
134 common·How·do·I·…?·questions.·Here·you’ll·find·information·about135 common·«How·do·I·…?»·questions.·Here·you’ll·find·information·about
135 <a·class="reference·internal"·href="../howto/outputting-pdf.html"><span·class="doc">generating·PDFs·with·Django</span></a>,·<a·class="reference·internal"·href="../howto/custom-template-tags.html"><span·class="doc">writing136 <a·class="reference·internal"·href="../howto/outputting-pdf.html"><span·class="doc">generating·PDFs·with·Django</span></a>,·<a·class="reference·internal"·href="../howto/custom-template-tags.html"><span·class="doc">writing
136 custom·template·tags</span></a>,·and·more.</p>137 custom·template·tags</span></a>,·and·more.</p>
137 <p>Answers·to·really·common·questions·can·also·be·found·in·the·<a·class="reference·internal"·href="../faq/index.html"><span·class="doc">FAQ</span></a>.</p>138 <p>Answers·to·really·common·questions·can·also·be·found·in·the·<a·class="reference·internal"·href="../faq/index.html"><span·class="doc">FAQ</span></a>.</p>
138 </li>139 </li>
139 <li><p>The·guides·and·how-to’s·don’t·cover·every·single·class,·function,·and140 <li><p>The·guides·and·how-to’s·don’t·cover·every·single·class,·function,·and
140 method·available·in·Django··that·would·be·overwhelming·when·you’re141 method·available·in·Django··that·would·be·overwhelming·when·you’re
141 trying·to·learn.·Instead,·details·about·individual·classes,·functions,142 trying·to·learn.·Instead,·details·about·individual·classes,·functions,
142 methods,·and·modules·are·kept·in·the·<a·class="reference·internal"·href="../ref/index.html"><span·class="doc">reference</span></a>.·This·is143 methods,·and·modules·are·kept·in·the·<a·class="reference·internal"·href="../ref/index.html"><span·class="doc">reference</span></a>.·This·is
143 where·you’ll·turn·to·find·the·details·of·a·particular·function·or144 where·you’ll·turn·to·find·the·details·of·a·particular·function·or
144 whatever·you·need.</p></li>145 whatever·you·need.</p></li>
145 <li><p>If·you·are·interested·in·deploying·a·project·for·public·use,·our·docs·have146 <li><p>If·you·are·interested·in·deploying·a·project·for·public·use,·our·docs·have
146 <a·class="reference·internal"·href="../howto/deployment/index.html"><span·class="doc">several·guides</span></a>·for·various·deployment147 <a·class="reference·internal"·href="../howto/deployment/index.html"><span·class="doc">several·guides</span></a>·for·various·deployment
147 setups·as·well·as·a·<a·class="reference·internal"·href="../howto/deployment/checklist.html"><span·class="doc">deployment·checklist</span></a>148 setups·as·well·as·a·<a·class="reference·internal"·href="../howto/deployment/checklist.html"><span·class="doc">deployment·checklist</span></a>
148 for·some·things·you’ll·need·to·think·about.</p></li>149 for·some·things·you’ll·need·to·think·about.</p></li>
149 <li><p>Finally,·there’s·some·specialized·documentation·not·usually·relevant·to150 <li><p>Finally,·there’s·some·«specialized»·documentation·not·usually·relevant·to
150 most·developers.·This·includes·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·notes</span></a>·and151 most·developers.·This·includes·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·notes</span></a>·and
151 <a·class="reference·internal"·href="../internals/index.html"><span·class="doc">internals·documentation</span></a>·for·those·who·want·to·add152 <a·class="reference·internal"·href="../internals/index.html"><span·class="doc">internals·documentation</span></a>·for·those·who·want·to·add
152 code·to·Django·itself,·and·a·<a·class="reference·internal"·href="../misc/index.html"><span·class="doc">few·other·things·that·don’t·fit·elsewhere</span></a>.</p></li>153 code·to·Django·itself,·and·a·<a·class="reference·internal"·href="../misc/index.html"><span·class="doc">few·other·things·that·don’t·fit·elsewhere</span></a>.</p></li>
153 </ul>154 </ul>
154 </section>155 </section>
155 <section·id="s-how-documentation-is-updated">156 <section·id="s-how-documentation-is-updated">
156 <span·id="how-documentation-is-updated"></span><h2>How·documentation·is·updated<a·class="headerlink"·href="#how-documentation-is-updated"·title="Link·to·this·heading">¶</a></h2>157 <span·id="how-documentation-is-updated"></span><h2>How·documentation·is·updated<a·class="headerlink"·href="#how-documentation-is-updated"·title="Link·to·this·heading">¶</a></h2>
Offset 175, 15 lines modifiedOffset 176, 15 lines modified
175 <p>You·can·read·Django·documentation·in·several·ways.·They·are,·in·order·of176 <p>You·can·read·Django·documentation·in·several·ways.·They·are,·in·order·of
176 preference:</p>177 preference:</p>
177 <section·id="s-on-the-web">178 <section·id="s-on-the-web">
178 <span·id="on-the-web"></span><h3>On·the·web<a·class="headerlink"·href="#on-the-web"·title="Link·to·this·heading">¶</a></h3>179 <span·id="on-the-web"></span><h3>On·the·web<a·class="headerlink"·href="#on-the-web"·title="Link·to·this·heading">¶</a></h3>
179 <p>The·most·recent·version·of·the·Django·documentation·lives·at180 <p>The·most·recent·version·of·the·Django·documentation·lives·at
180 <a·class="reference·external"·href="https://docs.djangoproject.com/en/dev/">https://docs.djangoproject.com/en/dev/</a>.·These·HTML·pages·are·generated181 <a·class="reference·external"·href="https://docs.djangoproject.com/en/dev/">https://docs.djangoproject.com/en/dev/</a>.·These·HTML·pages·are·generated
181 automatically·from·the·text·files·in·source·control.·That·means·they·reflect·the182 automatically·from·the·text·files·in·source·control.·That·means·they·reflect·the
182 latest·and·greatest·in·Django··they·include·the·very·latest·corrections·and183 «latest·and·greatest»·in·Django··they·include·the·very·latest·corrections·and
183 additions,·and·they·discuss·the·latest·Django·features,·which·may·only·be184 additions,·and·they·discuss·the·latest·Django·features,·which·may·only·be
184 available·to·users·of·the·Django·development·version.·(See185 available·to·users·of·the·Django·development·version.·(See
185 <a·class="reference·internal"·href="#differences-between-doc-versions"><span·class="std·std-ref">Differences·between·versions</span></a>·below.)</p>186 <a·class="reference·internal"·href="#differences-between-doc-versions"><span·class="std·std-ref">Differences·between·versions</span></a>·below.)</p>
186 <p>We·encourage·you·to·help·improve·the·docs·by·submitting·changes,·corrections·and187 <p>We·encourage·you·to·help·improve·the·docs·by·submitting·changes,·corrections·and
187 suggestions·in·the·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·system</a>.·The·Django·developers·actively·monitor·the188 suggestions·in·the·<a·class="reference·external"·href="https://code.djangoproject.com/">ticket·system</a>.·The·Django·developers·actively·monitor·the
188 ticket·system·and·use·your·feedback·to·improve·the·documentation·for·everybody.</p>189 ticket·system·and·use·your·feedback·to·improve·the·documentation·for·everybody.</p>
189 <p>Note,·however,·that·tickets·should·explicitly·relate·to·the·documentation,190 <p>Note,·however,·that·tickets·should·explicitly·relate·to·the·documentation,
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 the·code·includes·a·<code·class="docutils·literal·notranslate"><span·class="pre">docs/</span></code>·directory,·which·contains·all·the·documentation200 the·code·includes·a·<code·class="docutils·literal·notranslate"><span·class="pre">docs/</span></code>·directory,·which·contains·all·the·documentation
200 for·that·release.</p>201 for·that·release.</p>
201 <p>If·you’re·using·the·development·version·of·Django·(aka·the·main·branch),·the202 <p>If·you’re·using·the·development·version·of·Django·(aka·the·main·branch),·the
202 <code·class="docutils·literal·notranslate"><span·class="pre">docs/</span></code>·directory·contains·all·of·the·documentation.·You·can·update·your203 <code·class="docutils·literal·notranslate"><span·class="pre">docs/</span></code>·directory·contains·all·of·the·documentation.·You·can·update·your
203 Git·checkout·to·get·the·latest·changes.</p>204 Git·checkout·to·get·the·latest·changes.</p>
204 <p>One·low-tech·way·of·taking·advantage·of·the·text·documentation·is·by·using·the205 <p>One·low-tech·way·of·taking·advantage·of·the·text·documentation·is·by·using·the
205 Unix·<code·class="docutils·literal·notranslate"><span·class="pre">grep</span></code>·utility·to·search·for·a·phrase·in·all·of·the·documentation.·For206 Unix·<code·class="docutils·literal·notranslate"><span·class="pre">grep</span></code>·utility·to·search·for·a·phrase·in·all·of·the·documentation.·For
206 example,·this·will·show·you·each·mention·of·the·phrase·max_length·in·any207 example,·this·will·show·you·each·mention·of·the·phrase·«max_length»·in·any
207 Django·document:</p>208 Django·document:</p>
208 <div·class="console-block"·id="console-block-0">209 <div·class="console-block"·id="console-block-0">
209 <input·class="c-tab-unix"·id="c-tab-0-unix"·type="radio"·name="console-0"·checked>210 <input·class="c-tab-unix"·id="c-tab-0-unix"·type="radio"·name="console-0"·checked>
210 <label·for="c-tab-0-unix"·title="Linux/macOS">&#xf17c/&#xf179</label>211 <label·for="c-tab-0-unix"·title="Linux/macOS">&#xf17c/&#xf179</label>
211 <input·class="c-tab-win"·id="c-tab-0-win"·type="radio"·name="console-0">212 <input·class="c-tab-win"·id="c-tab-0-win"·type="radio"·name="console-0">
212 <label·for="c-tab-0-win"·title="Windows">&#xf17a</label>213 <label·for="c-tab-0-win"·title="Windows">&#xf17a</label>
213 <section·class="c-content-unix"·id="c-content-0-unix">214 <section·class="c-content-unix"·id="c-content-0-unix">
Offset 259, 28 lines modifiedOffset 260, 28 lines modified
259 <li><p>The·HTML·documentation·will·be·placed·in·<code·class="docutils·literal·notranslate"><span·class="pre">docs/_build/html</span></code>.</p></li>260 <li><p>The·HTML·documentation·will·be·placed·in·<code·class="docutils·literal·notranslate"><span·class="pre">docs/_build/html</span></code>.</p></li>
260 </ul>261 </ul>
Max diff block lines reached; 4137/14254 bytes (29.02%) of diff not shown.
10.6 KB
html2text {}
Max HTML report size reached
13.9 KB
./usr/share/doc/python-django-doc/html/misc/api-stability.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>API·stability·&#8212;·Django·4.2.16·documentation</title>6 ····<title>API·stability·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Design·philosophies"·href="design-philosophies.html"·/>15 ····<link·rel="next"·title="Design·philosophies"·href="design-philosophies.html"·/>
15 ····<link·rel="prev"·title="Meta-documentation·and·miscellany"·href="index.html"·/>16 ····<link·rel="prev"·title="Meta-documentation·and·miscellany"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 78, 34 lines modifiedOffset 79, 34 lines modified
78 ··········<div·class="yui-g"·id="misc-api-stability">79 ··········<div·class="yui-g"·id="misc-api-stability">
79 ············80 ············
80 ··<section·id="s-api-stability">81 ··<section·id="s-api-stability">
81 <span·id="api-stability"></span><h1>API·stability<a·class="headerlink"·href="#api-stability"·title="Link·to·this·heading">¶</a></h1>82 <span·id="api-stability"></span><h1>API·stability<a·class="headerlink"·href="#api-stability"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·is·committed·to·API·stability·and·forwards-compatibility.·In·a·nutshell,83 <p>Django·is·committed·to·API·stability·and·forwards-compatibility.·In·a·nutshell,
83 this·means·that·code·you·develop·against·a·version·of·Django·will·continue·to84 this·means·that·code·you·develop·against·a·version·of·Django·will·continue·to
84 work·with·future·releases.·You·may·need·to·make·minor·changes·when·upgrading85 work·with·future·releases.·You·may·need·to·make·minor·changes·when·upgrading
85 the·version·of·Django·your·project·uses:·see·the·Backwards·incompatible86 the·version·of·Django·your·project·uses:·see·the·«Backwards·incompatible
86 changes·section·of·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·note</span></a>·for·the·version87 changes»·section·of·the·<a·class="reference·internal"·href="../releases/index.html"><span·class="doc">release·note</span></a>·for·the·version
87 or·versions·to·which·you·are·upgrading.</p>88 or·versions·to·which·you·are·upgrading.</p>
88 <p>At·the·same·time·as·making·API·stability·a·very·high·priority,·Django·is·also89 <p>At·the·same·time·as·making·API·stability·a·very·high·priority,·Django·is·also
89 committed·to·continual·improvement,·along·with·aiming·for·one·way·to·do·it90 committed·to·continual·improvement,·along·with·aiming·for·«one·way·to·do·it»
90 (eventually)·in·the·APIs·we·provide.·This·means·that·when·we·discover·clearly91 (eventually)·in·the·APIs·we·provide.·This·means·that·when·we·discover·clearly
91 superior·ways·to·do·things,·we·will·deprecate·and·eventually·remove·the·old92 superior·ways·to·do·things,·we·will·deprecate·and·eventually·remove·the·old
92 ways.·Our·aim·is·to·provide·a·modern,·dependable·web·framework·of·the·highest93 ways.·Our·aim·is·to·provide·a·modern,·dependable·web·framework·of·the·highest
93 quality·that·encourages·best·practices·in·all·projects·that·use·it.·By·using94 quality·that·encourages·best·practices·in·all·projects·that·use·it.·By·using
94 incremental·improvements,·we·try·to·avoid·both·stagnation·and·large·breaking95 incremental·improvements,·we·try·to·avoid·both·stagnation·and·large·breaking
95 upgrades.</p>96 upgrades.</p>
96 <section·id="s-what-stable-means">97 <section·id="s-what-stable-means">
97 <span·id="what-stable-means"></span><h2>What·stable·means<a·class="headerlink"·href="#what-stable-means"·title="Link·to·this·heading">¶</a></h2>98 <span·id="what-stable-means"></span><h2>What·«stable»·means<a·class="headerlink"·href="#what-stable-means"·title="Link·to·this·heading">¶</a></h2>
98 <p>In·this·context,·stable·means:</p>99 <p>In·this·context,·stable·means:</p>
99 <ul>100 <ul>
100 <li><p>All·the·public·APIs·(everything·in·this·documentation)·will·not·be·moved101 <li><p>All·the·public·APIs·(everything·in·this·documentation)·will·not·be·moved
101 or·renamed·without·providing·backwards-compatible·aliases.</p></li>102 or·renamed·without·providing·backwards-compatible·aliases.</p></li>
102 <li><p>If·new·features·are·added·to·these·APIs··which·is·quite·possible·103 <li><p>If·new·features·are·added·to·these·APIs··which·is·quite·possible·
103 they·will·not·break·or·change·the·meaning·of·existing·methods.·In·other104 they·will·not·break·or·change·the·meaning·of·existing·methods.·In·other
104 words,·stable·does·not·(necessarily)·mean·complete.</p></li>105 words,·«stable»·does·not·(necessarily)·mean·«complete.»</p></li>
105 <li><p>If,·for·some·reason,·an·API·declared·stable·must·be·removed·or·replaced,·it106 <li><p>If,·for·some·reason,·an·API·declared·stable·must·be·removed·or·replaced,·it
106 will·be·declared·deprecated·but·will·remain·in·the·API·for·at·least·two107 will·be·declared·deprecated·but·will·remain·in·the·API·for·at·least·two
107 feature·releases.·Warnings·will·be·issued·when·the·deprecated·method·is108 feature·releases.·Warnings·will·be·issued·when·the·deprecated·method·is
108 called.</p>109 called.</p>
109 <p>See·<a·class="reference·internal"·href="../internals/release-process.html#official-releases"><span·class="std·std-ref">Official·releases</span></a>·for·more·details·on·how·Django’s·version110 <p>See·<a·class="reference·internal"·href="../internals/release-process.html#official-releases"><span·class="std·std-ref">Official·releases</span></a>·for·more·details·on·how·Django’s·version
110 numbering·scheme·works,·and·how·features·will·be·deprecated.</p>111 numbering·scheme·works,·and·how·features·will·be·deprecated.</p>
111 </li>112 </li>
Offset 127, 15 lines modifiedOffset 128, 15 lines modified
127 <p>If·we·become·aware·of·a·security·problem··hopefully·by·someone·following·our128 <p>If·we·become·aware·of·a·security·problem··hopefully·by·someone·following·our
128 <a·class="reference·internal"·href="../internals/security.html#reporting-security-issues"><span·class="std·std-ref">security·reporting·policy</span></a>··we’ll·do129 <a·class="reference·internal"·href="../internals/security.html#reporting-security-issues"><span·class="std·std-ref">security·reporting·policy</span></a>··we’ll·do
129 everything·necessary·to·fix·it.·This·might·mean·breaking·backwards130 everything·necessary·to·fix·it.·This·might·mean·breaking·backwards
130 compatibility;·security·trumps·the·compatibility·guarantee.</p>131 compatibility;·security·trumps·the·compatibility·guarantee.</p>
131 </section>132 </section>
132 <section·id="s-apis-marked-as-internal">133 <section·id="s-apis-marked-as-internal">
133 <span·id="apis-marked-as-internal"></span><h3>APIs·marked·as·internal<a·class="headerlink"·href="#apis-marked-as-internal"·title="Link·to·this·heading">¶</a></h3>134 <span·id="apis-marked-as-internal"></span><h3>APIs·marked·as·internal<a·class="headerlink"·href="#apis-marked-as-internal"·title="Link·to·this·heading">¶</a></h3>
134 <p>Certain·APIs·are·explicitly·marked·as·internal·in·a·couple·of·ways:</p>135 <p>Certain·APIs·are·explicitly·marked·as·«internal»·in·a·couple·of·ways:</p>
135 <ul·class="simple">136 <ul·class="simple">
136 <li><p>Some·documentation·refers·to·internals·and·mentions·them·as·such.·If·the137 <li><p>Some·documentation·refers·to·internals·and·mentions·them·as·such.·If·the
137 documentation·says·that·something·is·internal,·we·reserve·the·right·to138 documentation·says·that·something·is·internal,·we·reserve·the·right·to
138 change·it.</p></li>139 change·it.</p></li>
139 <li><p>Functions,·methods,·and·other·objects·prefixed·by·a·leading·underscore140 <li><p>Functions,·methods,·and·other·objects·prefixed·by·a·leading·underscore
140 (<code·class="docutils·literal·notranslate"><span·class="pre">_</span></code>).·This·is·the·standard·Python·way·of·indicating·that·something·is141 (<code·class="docutils·literal·notranslate"><span·class="pre">_</span></code>).·This·is·the·standard·Python·way·of·indicating·that·something·is
141 private;·if·any·method·starts·with·a·single·<code·class="docutils·literal·notranslate"><span·class="pre">_</span></code>,·it’s·an·internal·API.</p></li>142 private;·if·any·method·starts·with·a·single·<code·class="docutils·literal·notranslate"><span·class="pre">_</span></code>,·it’s·an·internal·API.</p></li>
Offset 154, 50 lines modifiedOffset 155, 50 lines modified
154 ············155 ············
155 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">156 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
156 ········<div·class="sphinxsidebarwrapper">157 ········<div·class="sphinxsidebarwrapper">
157 ··<div>158 ··<div>
158 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>159 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>
159 ····<ul>160 ····<ul>
160 <li><a·class="reference·internal"·href="#">API·stability</a><ul>161 <li><a·class="reference·internal"·href="#">API·stability</a><ul>
161 <li><a·class="reference·internal"·href="#what-stable-means">What·stable·means</a></li>162 <li><a·class="reference·internal"·href="#what-stable-means">What·«stable»·means</a></li>
162 <li><a·class="reference·internal"·href="#stable-apis">Stable·APIs</a></li>163 <li><a·class="reference·internal"·href="#stable-apis">Stable·APIs</a></li>
163 <li><a·class="reference·internal"·href="#exceptions">Exceptions</a><ul>164 <li><a·class="reference·internal"·href="#exceptions">Exceptions</a><ul>
164 <li><a·class="reference·internal"·href="#security-fixes">Security·fixes</a></li>165 <li><a·class="reference·internal"·href="#security-fixes">Security·fixes</a></li>
165 <li><a·class="reference·internal"·href="#apis-marked-as-internal">APIs·marked·as·internal</a></li>166 <li><a·class="reference·internal"·href="#apis-marked-as-internal">APIs·marked·as·internal</a></li>
166 </ul>167 </ul>
167 </li>168 </li>
168 </ul>169 </ul>
169 </li>170 </li>
170 </ul>171 </ul>
  
171 ··</div>172 ··</div>
172 ··<div>173 ··<div>
173 ····<h4>Previous·topic</h4>174 ····<h4>Argomento·precedente</h4>
174 ····<p·class="topless"><a·href="index.html"175 ····<p·class="topless"><a·href="index.html"
175 ··························title="previous·chapter">Meta-documentation·and·miscellany</a></p>176 ··························title="capitolo·precedente">Meta-documentation·and·miscellany</a></p>
176 ··</div>177 ··</div>
177 ··<div>178 ··<div>
178 ····<h4>Next·topic</h4>179 ····<h4>Argomento·successivo</h4>
179 ····<p·class="topless"><a·href="design-philosophies.html"180 ····<p·class="topless"><a·href="design-philosophies.html"
180 ··························title="next·chapter">Design·philosophies</a></p>181 ··························title="capitolo·successivo">Design·philosophies</a></p>
181 ··</div>182 ··</div>
182 <search·id="searchbox"·style="display:·none"·role="search">183 <search·id="searchbox"·style="display:·none"·role="search">
183 ··<h3·id="searchlabel">Quick·search</h3>184 ··<h3·id="searchlabel">Ricerca·veloce</h3>
184 ····<div·class="searchformwrapper">185 ····<div·class="searchformwrapper">
185 ····<form·class="search"·action="../search.html"·method="get">186 ····<form·class="search"·action="../search.html"·method="get">
186 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
187 ······<input·type="submit"·value="Go"·/>188 ······<input·type="submit"·value="Vai"·/>
188 ····</form>189 ····</form>
Max diff block lines reached; 353/8737 bytes (4.04%) of diff not shown.
5.24 KB
html2text {}
Max HTML report size reached
20.9 KB
./usr/share/doc/python-django-doc/html/misc/design-philosophies.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Design·philosophies·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Design·philosophies·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Third-party·distributions·of·Django"·href="distributions.html"·/>15 ····<link·rel="next"·title="Third-party·distributions·of·Django"·href="distributions.html"·/>
15 ····<link·rel="prev"·title="API·stability"·href="api-stability.html"·/>16 ····<link·rel="prev"·title="API·stability"·href="api-stability.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 have·used·in·creating·the·framework.·Its·goal·is·to·explain·the·past·and·guide84 have·used·in·creating·the·framework.·Its·goal·is·to·explain·the·past·and·guide
84 the·future.</p>85 the·future.</p>
85 <section·id="s-overall">86 <section·id="s-overall">
86 <span·id="overall"></span><h2>Overall<a·class="headerlink"·href="#overall"·title="Link·to·this·heading">¶</a></h2>87 <span·id="overall"></span><h2>Overall<a·class="headerlink"·href="#overall"·title="Link·to·this·heading">¶</a></h2>
87 <section·id="s-loose-coupling">88 <section·id="s-loose-coupling">
88 <span·id="s-id1"></span><span·id="loose-coupling"></span><span·id="id1"></span><h3>Loose·coupling<a·class="headerlink"·href="#loose-coupling"·title="Link·to·this·heading">¶</a></h3>89 <span·id="s-id1"></span><span·id="loose-coupling"></span><span·id="id1"></span><h3>Loose·coupling<a·class="headerlink"·href="#loose-coupling"·title="Link·to·this·heading">¶</a></h3>
89 <p·id="index-0">A·fundamental·goal·of·Django’s·stack·is·<a·class="reference·external"·href="http://wiki.c2.com/?CouplingAndCohesion">loose·coupling·and·tight·cohesion</a>.90 <p·id="index-0">A·fundamental·goal·of·Django’s·stack·is·<a·class="reference·external"·href="http://wiki.c2.com/?CouplingAndCohesion">loose·coupling·and·tight·cohesion</a>.
90 The·various·layers·of·the·framework·shouldn’t·know·about·each·other·unless91 The·various·layers·of·the·framework·shouldn’t·«know»·about·each·other·unless
91 absolutely·necessary.</p>92 absolutely·necessary.</p>
92 <p>For·example,·the·template·system·knows·nothing·about·web·requests,·the·database93 <p>For·example,·the·template·system·knows·nothing·about·web·requests,·the·database
93 layer·knows·nothing·about·data·display·and·the·view·system·doesn’t·care·which94 layer·knows·nothing·about·data·display·and·the·view·system·doesn’t·care·which
94 template·system·a·programmer·uses.</p>95 template·system·a·programmer·uses.</p>
95 <p>Although·Django·comes·with·a·full·stack·for·convenience,·the·pieces·of·the96 <p>Although·Django·comes·with·a·full·stack·for·convenience,·the·pieces·of·the
96 stack·are·independent·of·another·wherever·possible.</p>97 stack·are·independent·of·another·wherever·possible.</p>
97 </section>98 </section>
Offset 110, 45 lines modifiedOffset 111, 45 lines modified
110 <section·id="s-don-t-repeat-yourself-dry">111 <section·id="s-don-t-repeat-yourself-dry">
111 <span·id="s-dry"></span><span·id="don-t-repeat-yourself-dry"></span><span·id="dry"></span><h3>Don’t·repeat·yourself·(DRY)<a·class="headerlink"·href="#don-t-repeat-yourself-dry"·title="Link·to·this·heading">¶</a></h3>112 <span·id="s-dry"></span><span·id="don-t-repeat-yourself-dry"></span><span·id="dry"></span><h3>Don’t·repeat·yourself·(DRY)<a·class="headerlink"·href="#don-t-repeat-yourself-dry"·title="Link·to·this·heading">¶</a></h3>
112 <p·id="index-1">Every·distinct·concept·and/or·piece·of·data·should·live·in·one,·and·only·one,113 <p·id="index-1">Every·distinct·concept·and/or·piece·of·data·should·live·in·one,·and·only·one,
113 place.·Redundancy·is·bad.·Normalization·is·good.</p>114 place.·Redundancy·is·bad.·Normalization·is·good.</p>
114 <p>The·framework,·within·reason,·should·deduce·as·much·as·possible·from·as·little115 <p>The·framework,·within·reason,·should·deduce·as·much·as·possible·from·as·little
115 as·possible.</p>116 as·possible.</p>
116 <div·class="admonition·seealso">117 <div·class="admonition·seealso">
117 <p·class="admonition-title">See·also</p>118 <p·class="admonition-title">Vedi·anche</p>
118 <p>The·<a·class="reference·external"·href="http://wiki.c2.com/?DontRepeatYourself">discussion·of·DRY·on·the·Portland·Pattern·Repository</a></p>119 <p>The·<a·class="reference·external"·href="http://wiki.c2.com/?DontRepeatYourself">discussion·of·DRY·on·the·Portland·Pattern·Repository</a></p>
119 </div>120 </div>
120 </section>121 </section>
121 <section·id="s-explicit-is-better-than-implicit">122 <section·id="s-explicit-is-better-than-implicit">
122 <span·id="s-id5"></span><span·id="explicit-is-better-than-implicit"></span><span·id="id5"></span><h3>Explicit·is·better·than·implicit<a·class="headerlink"·href="#explicit-is-better-than-implicit"·title="Link·to·this·heading">¶</a></h3>123 <span·id="s-id5"></span><span·id="explicit-is-better-than-implicit"></span><span·id="id5"></span><h3>Explicit·is·better·than·implicit<a·class="headerlink"·href="#explicit-is-better-than-implicit"·title="Link·to·this·heading">¶</a></h3>
123 <p>This·is·a·core·Python·principle·listed·in·<span·class="target"·id="index-2"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0020/"><strong>PEP·20</strong></a>,·and·it·means·Django124 <p>This·is·a·core·Python·principle·listed·in·<span·class="target"·id="index-2"></span><a·class="pep·reference·external"·href="https://peps.python.org/pep-0020/"><strong>PEP·20</strong></a>,·and·it·means·Django
124 shouldn’t·do·too·much·magic.·Magic·shouldn’t·happen·unless·there’s·a·really125 shouldn’t·do·too·much·«magic.»·Magic·shouldn’t·happen·unless·there’s·a·really
125 good·reason·for·it.·Magic·is·worth·using·only·if·it·creates·a·huge·convenience126 good·reason·for·it.·Magic·is·worth·using·only·if·it·creates·a·huge·convenience
126 unattainable·in·other·ways,·and·it·isn’t·implemented·in·a·way·that·confuses127 unattainable·in·other·ways,·and·it·isn’t·implemented·in·a·way·that·confuses
127 developers·who·are·trying·to·learn·how·to·use·the·feature.</p>128 developers·who·are·trying·to·learn·how·to·use·the·feature.</p>
128 </section>129 </section>
129 <section·id="s-consistency">130 <section·id="s-consistency">
130 <span·id="s-id6"></span><span·id="consistency"></span><span·id="id6"></span><h3>Consistency<a·class="headerlink"·href="#consistency"·title="Link·to·this·heading">¶</a></h3>131 <span·id="s-id6"></span><span·id="consistency"></span><span·id="id6"></span><h3>Consistency<a·class="headerlink"·href="#consistency"·title="Link·to·this·heading">¶</a></h3>
131 <p>The·framework·should·be·consistent·at·all·levels.·Consistency·applies·to132 <p>The·framework·should·be·consistent·at·all·levels.·Consistency·applies·to
132 everything·from·low-level·(the·Python·coding·style·used)·to·high-level·(the133 everything·from·low-level·(the·Python·coding·style·used)·to·high-level·(the
133 experience·of·using·Django).</p>134 «experience»·of·using·Django).</p>
134 </section>135 </section>
135 </section>136 </section>
136 <section·id="s-models">137 <section·id="s-models">
137 <span·id="models"></span><h2>Models<a·class="headerlink"·href="#models"·title="Link·to·this·heading">¶</a></h2>138 <span·id="models"></span><h2>Models<a·class="headerlink"·href="#models"·title="Link·to·this·heading">¶</a></h2>
138 <section·id="s-id7">139 <section·id="s-id7">
139 <span·id="id7"></span><h3>Explicit·is·better·than·implicit<a·class="headerlink"·href="#id7"·title="Link·to·this·heading">¶</a></h3>140 <span·id="id7"></span><h3>Explicit·is·better·than·implicit<a·class="headerlink"·href="#id7"·title="Link·to·this·heading">¶</a></h3>
140 <p>Fields·shouldn’t·assume·certain·behaviors·based·solely·on·the·name·of·the141 <p>Fields·shouldn’t·assume·certain·behaviors·based·solely·on·the·name·of·the
141 field.·This·requires·too·much·knowledge·of·the·system·and·is·prone·to·errors.142 field.·This·requires·too·much·knowledge·of·the·system·and·is·prone·to·errors.
142 Instead,·behaviors·should·be·based·on·keyword·arguments·and,·in·some·cases,·on143 Instead,·behaviors·should·be·based·on·keyword·arguments·and,·in·some·cases,·on
143 the·type·of·the·field.</p>144 the·type·of·the·field.</p>
144 </section>145 </section>
145 <section·id="s-include-all-relevant-domain-logic">146 <section·id="s-include-all-relevant-domain-logic">
146 <span·id="include-all-relevant-domain-logic"></span><h3>Include·all·relevant·domain·logic<a·class="headerlink"·href="#include-all-relevant-domain-logic"·title="Link·to·this·heading">¶</a></h3>147 <span·id="include-all-relevant-domain-logic"></span><h3>Include·all·relevant·domain·logic<a·class="headerlink"·href="#include-all-relevant-domain-logic"·title="Link·to·this·heading">¶</a></h3>
147 <p>Models·should·encapsulate·every·aspect·of·an·object,·following·Martin148 <p>Models·should·encapsulate·every·aspect·of·an·«object,»·following·Martin
148 Fowler’s·<a·class="reference·external"·href="https://www.martinfowler.com/eaaCatalog/activeRecord.html">Active·Record</a>·design·pattern.</p>149 Fowler’s·<a·class="reference·external"·href="https://www.martinfowler.com/eaaCatalog/activeRecord.html">Active·Record</a>·design·pattern.</p>
149 <p>This·is·why·both·the·data·represented·by·a·model·and·information·about150 <p>This·is·why·both·the·data·represented·by·a·model·and·information·about
150 it·(its·human-readable·name,·options·like·default·ordering,·etc.)·are151 it·(its·human-readable·name,·options·like·default·ordering,·etc.)·are
151 defined·in·the·model·class;·all·the·information·needed·to·understand·a152 defined·in·the·model·class;·all·the·information·needed·to·understand·a
152 given·model·should·be·stored·<em>in</em>·the·model.</p>153 given·model·should·be·stored·<em>in</em>·the·model.</p>
153 </section>154 </section>
154 </section>155 </section>
Offset 158, 16 lines modifiedOffset 159, 16 lines modified
158 <section·id="s-sql-efficiency">159 <section·id="s-sql-efficiency">
159 <span·id="sql-efficiency"></span><h3>SQL·efficiency<a·class="headerlink"·href="#sql-efficiency"·title="Link·to·this·heading">¶</a></h3>160 <span·id="sql-efficiency"></span><h3>SQL·efficiency<a·class="headerlink"·href="#sql-efficiency"·title="Link·to·this·heading">¶</a></h3>
160 <p>It·should·execute·SQL·statements·as·few·times·as·possible,·and·it·should161 <p>It·should·execute·SQL·statements·as·few·times·as·possible,·and·it·should
161 optimize·statements·internally.</p>162 optimize·statements·internally.</p>
162 <p>This·is·why·developers·need·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·explicitly,·rather·than·the163 <p>This·is·why·developers·need·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·explicitly,·rather·than·the
163 framework·saving·things·behind·the·scenes·silently.</p>164 framework·saving·things·behind·the·scenes·silently.</p>
164 <p>This·is·also·why·the·<code·class="docutils·literal·notranslate"><span·class="pre">select_related()</span></code>·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·method·exists.·It’s·an165 <p>This·is·also·why·the·<code·class="docutils·literal·notranslate"><span·class="pre">select_related()</span></code>·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·method·exists.·It’s·an
165 optional·performance·booster·for·the·common·case·of·selecting·every·related166 optional·performance·booster·for·the·common·case·of·selecting·«every·related
166 object.</p>167 object.»</p>
167 </section>168 </section>
168 <section·id="s-terse-powerful-syntax">169 <section·id="s-terse-powerful-syntax">
169 <span·id="terse-powerful-syntax"></span><h3>Terse,·powerful·syntax<a·class="headerlink"·href="#terse-powerful-syntax"·title="Link·to·this·heading">¶</a></h3>170 <span·id="terse-powerful-syntax"></span><h3>Terse,·powerful·syntax<a·class="headerlink"·href="#terse-powerful-syntax"·title="Link·to·this·heading">¶</a></h3>
170 <p>The·database·API·should·allow·rich,·expressive·statements·in·as·little·syntax171 <p>The·database·API·should·allow·rich,·expressive·statements·in·as·little·syntax
171 as·possible.·It·should·not·rely·on·importing·other·modules·or·helper·objects.</p>172 as·possible.·It·should·not·rely·on·importing·other·modules·or·helper·objects.</p>
172 <p>Joins·should·be·performed·automatically,·behind·the·scenes,·when·necessary.</p>173 <p>Joins·should·be·performed·automatically,·behind·the·scenes,·when·necessary.</p>
173 <p>Every·object·should·be·able·to·access·every·related·object,·systemwide.·This174 <p>Every·object·should·be·able·to·access·every·related·object,·systemwide.·This
Offset 202, 15 lines modifiedOffset 203, 15 lines modified
202 <p>File·extensions·in·web-page·URLs·should·be·avoided.</p>203 <p>File·extensions·in·web-page·URLs·should·be·avoided.</p>
203 <p>Vignette-style·commas·in·URLs·deserve·severe·punishment.</p>204 <p>Vignette-style·commas·in·URLs·deserve·severe·punishment.</p>
204 </section>205 </section>
205 <section·id="s-definitive-urls">206 <section·id="s-definitive-urls">
206 <span·id="s-id9"></span><span·id="definitive-urls"></span><span·id="id9"></span><h3>Definitive·URLs<a·class="headerlink"·href="#definitive-urls"·title="Link·to·this·heading">¶</a></h3>207 <span·id="s-id9"></span><span·id="definitive-urls"></span><span·id="id9"></span><h3>Definitive·URLs<a·class="headerlink"·href="#definitive-urls"·title="Link·to·this·heading">¶</a></h3>
207 <p·id="index-3">Technically,·<code·class="docutils·literal·notranslate"><span·class="pre">foo.com/bar</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">foo.com/bar/</span></code>·are·two·different·URLs,·and208 <p·id="index-3">Technically,·<code·class="docutils·literal·notranslate"><span·class="pre">foo.com/bar</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">foo.com/bar/</span></code>·are·two·different·URLs,·and
208 search-engine·robots·(and·some·web·traffic-analyzing·tools)·would·treat·them·as209 search-engine·robots·(and·some·web·traffic-analyzing·tools)·would·treat·them·as
209 separate·pages.·Django·should·make·an·effort·to·normalize·URLs·so·that210 separate·pages.·Django·should·make·an·effort·to·«normalize»·URLs·so·that
Max diff block lines reached; 2975/12215 bytes (24.36%) of diff not shown.
8.81 KB
html2text {}
Max HTML report size reached
6.01 KB
./usr/share/doc/python-django-doc/html/misc/distributions.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Third-party·distributions·of·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Third-party·distributions·of·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Glossary"·href="../glossary.html"·/>15 ····<link·rel="next"·title="Glossary"·href="../glossary.html"·/>
15 ····<link·rel="prev"·title="Design·philosophies"·href="design-philosophies.html"·/>16 ····<link·rel="prev"·title="Design·philosophies"·href="design-philosophies.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 119, 37 lines modifiedOffset 120, 37 lines modified
119 <li><a·class="reference·internal"·href="#for-distributors">For·distributors</a></li>120 <li><a·class="reference·internal"·href="#for-distributors">For·distributors</a></li>
120 </ul>121 </ul>
121 </li>122 </li>
122 </ul>123 </ul>
  
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="design-philosophies.html"127 ····<p·class="topless"><a·href="design-philosophies.html"
127 ··························title="previous·chapter">Design·philosophies</a></p>128 ··························title="capitolo·precedente">Design·philosophies</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="../glossary.html"132 ····<p·class="topless"><a·href="../glossary.html"
132 ··························title="next·chapter">Glossary</a></p>133 ··························title="capitolo·successivo">Glossary</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
2.26 KB
html2text {}
Max HTML report size reached
8.29 KB
./usr/share/doc/python-django-doc/html/misc/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Meta-documentation·and·miscellany·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Meta-documentation·and·miscellany·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="API·stability"·href="api-stability.html"·/>15 ····<link·rel="next"·title="API·stability"·href="api-stability.html"·/>
15 ····<link·rel="prev"·title="Built-in·Views"·href="../ref/views.html"·/>16 ····<link·rel="prev"·title="Built-in·Views"·href="../ref/views.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../ref/views.html"·title="Built-in·Views">previous</a>67 ····&laquo;·<a·href="../ref/views.html"·title="Built-in·Views">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="api-stability.html"·title="API·stability">next</a>·&raquo;</div>71 ····<a·href="api-stability.html"·title="API·stability">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-meta-documentation-and-miscellany">81 ··<section·id="s-meta-documentation-and-miscellany">
81 <span·id="meta-documentation-and-miscellany"></span><h1>Meta-documentation·and·miscellany<a·class="headerlink"·href="#meta-documentation-and-miscellany"·title="Link·to·this·heading">¶</a></h1>82 <span·id="meta-documentation-and-miscellany"></span><h1>Meta-documentation·and·miscellany<a·class="headerlink"·href="#meta-documentation-and-miscellany"·title="Link·to·this·heading">¶</a></h1>
82 <p>Documentation·that·we·can’t·find·a·more·organized·place·for.·Like·that·drawer·in83 <p>Documentation·that·we·can’t·find·a·more·organized·place·for.·Like·that·drawer·in
83 your·kitchen·with·the·scissors,·batteries,·duct·tape,·and·other·junk.</p>84 your·kitchen·with·the·scissors,·batteries,·duct·tape,·and·other·junk.</p>
84 <div·class="toctree-wrapper·compound">85 <div·class="toctree-wrapper·compound">
85 <ul>86 <ul>
86 <li·class="toctree-l1"><a·class="reference·internal"·href="api-stability.html">API·stability</a><ul>87 <li·class="toctree-l1"><a·class="reference·internal"·href="api-stability.html">API·stability</a><ul>
87 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#what-stable-means">What·stable·means</a></li>88 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#what-stable-means">What·«stable»·means</a></li>
88 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#stable-apis">Stable·APIs</a></li>89 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#stable-apis">Stable·APIs</a></li>
89 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#exceptions">Exceptions</a></li>90 <li·class="toctree-l2"><a·class="reference·internal"·href="api-stability.html#exceptions">Exceptions</a></li>
90 </ul>91 </ul>
91 </li>92 </li>
92 <li·class="toctree-l1"><a·class="reference·internal"·href="design-philosophies.html">Design·philosophies</a><ul>93 <li·class="toctree-l1"><a·class="reference·internal"·href="design-philosophies.html">Design·philosophies</a><ul>
93 <li·class="toctree-l2"><a·class="reference·internal"·href="design-philosophies.html#overall">Overall</a></li>94 <li·class="toctree-l2"><a·class="reference·internal"·href="design-philosophies.html#overall">Overall</a></li>
94 <li·class="toctree-l2"><a·class="reference·internal"·href="design-philosophies.html#models">Models</a></li>95 <li·class="toctree-l2"><a·class="reference·internal"·href="design-philosophies.html#models">Models</a></li>
Offset 114, 47 lines modifiedOffset 115, 47 lines modified
114 ······115 ······
115 ········116 ········
116 ··········<div·class="yui-b"·id="sidebar">117 ··········<div·class="yui-b"·id="sidebar">
117 ············118 ············
118 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">119 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
119 ········<div·class="sphinxsidebarwrapper">120 ········<div·class="sphinxsidebarwrapper">
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="../ref/views.html"123 ····<p·class="topless"><a·href="../ref/views.html"
123 ··························title="previous·chapter">Built-in·Views</a></p>124 ··························title="capitolo·precedente">Built-in·Views</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="api-stability.html"128 ····<p·class="topless"><a·href="api-stability.html"
128 ··························title="next·chapter">API·stability</a></p>129 ··························title="capitolo·successivo">API·stability</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
150 ····&laquo;·<a·href="../ref/views.html"·title="Built-in·Views">previous</a>151 ····&laquo;·<a·href="../ref/views.html"·title="Built-in·Views">previous</a>
151 ·····|152 ·····|
152 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>153 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
153 ···|154 ···|
154 ····<a·href="api-stability.html"·title="API·stability">next</a>·&raquo;</div>155 ····<a·href="api-stability.html"·title="API·stability">next</a>·&raquo;</div>
155 ····</div>156 ····</div>
156 ··</div>157 ··</div>
  
157 ······<div·class="clearer"></div>158 ······<div·class="clearer"></div>
158 ····</div>159 ····</div>
2.31 KB
html2text {}
Max HTML report size reached
106 KB
./usr/share/doc/python-django-doc/html/objects.inv
106 KB
Sphinx inventory
Max HTML report size reached
5.61 KB
./usr/share/doc/python-django-doc/html/py-modindex.html
    
Offset 1, 21 lines modifiedOffset 1, 22 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="./">2 <html·lang="it"·data-content_root="./">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>Python·Module·Index·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Indice·del·modulo·Python·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>
9 ····<script·src="_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="search.html"·/>
  
  
  
  
14 ·15 ·
15 <script·src="templatebuiltins.js"></script>16 <script·src="templatebuiltins.js"></script>
16 <script>17 <script>
Offset 53, 32 lines modifiedOffset 54, 32 lines modified
  
  
53 ··</head><body>54 ··</head><body>
  
54 ····<div·class="document">55 ····<div·class="document">
55 ··<div·id="custom-doc"·class="yui-t6">56 ··<div·id="custom-doc"·class="yui-t6">
56 ····<div·id="hd">57 ····<div·id="hd">
57 ······<h1><a·href="index.html">Django·4.2.16·documentation</a></h1>58 ······<h1><a·href="index.html">Documentazione·Django·4.2.16·</a></h1>
58 ······<div·id="global-nav">59 ······<div·id="global-nav">
59 ········<a·title="Home·page"·href="index.html">Home</a>··|60 ········<a·title="Home·page"·href="index.html">Home</a>··|
60 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|61 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|
61 ········<a·title="Global·index"·href="genindex.html">Index</a>··|62 ········<a·title="Global·index"·href="genindex.html">Index</a>··|
62 ········<a·title="Module·index"·href="#">Modules</a>63 ········<a·title="Module·index"·href="#">Modules</a>
63 ······</div>64 ······</div>
64 ······<div·class="nav">65 ······<div·class="nav">
65 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a></div>66 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a></div>
66 ····</div>67 ····</div>
  
67 ····<div·id="bd">68 ····<div·id="bd">
68 ······<div·id="yui-main">69 ······<div·id="yui-main">
69 ········<div·class="yui-b">70 ········<div·class="yui-b">
70 ··········<div·class="yui-g"·id="py-modindex">71 ··········<div·class="yui-g"·id="py-modindex">
71 ············72 ············
  
72 ···<h1>Python·Module·Index</h1>73 ···<h1>Indice·del·modulo·Python</h1>
  
73 ···<div·class="modindex-jumpbox">74 ···<div·class="modindex-jumpbox">
74 ···<a·href="#cap-a"><strong>a</strong></a>·|·75 ···<a·href="#cap-a"><strong>a</strong></a>·|·
75 ···<a·href="#cap-c"><strong>c</strong></a>·|·76 ···<a·href="#cap-c"><strong>c</strong></a>·|·
76 ···<a·href="#cap-d"><strong>d</strong></a>·|·77 ···<a·href="#cap-d"><strong>d</strong></a>·|·
77 ···<a·href="#cap-f"><strong>f</strong></a>·|·78 ···<a·href="#cap-f"><strong>f</strong></a>·|·
78 ···<a·href="#cap-h"><strong>h</strong></a>·|·79 ···<a·href="#cap-h"><strong>h</strong></a>·|·
Offset 818, 35 lines modifiedOffset 819, 35 lines modified
818 ······819 ······
819 ········820 ········
820 ··········<div·class="yui-b"·id="sidebar">821 ··········<div·class="yui-b"·id="sidebar">
821 ············822 ············
822 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">823 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
823 ········<div·class="sphinxsidebarwrapper">824 ········<div·class="sphinxsidebarwrapper">
824 <search·id="searchbox"·style="display:·none"·role="search">825 <search·id="searchbox"·style="display:·none"·role="search">
825 ··<h3·id="searchlabel">Quick·search</h3>826 ··<h3·id="searchlabel">Ricerca·veloce</h3>
826 ····<div·class="searchformwrapper">827 ····<div·class="searchformwrapper">
827 ····<form·class="search"·action="search.html"·method="get">828 ····<form·class="search"·action="search.html"·method="get">
828 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>829 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
829 ······<input·type="submit"·value="Go"·/>830 ······<input·type="submit"·value="Vai"·/>
830 ····</form>831 ····</form>
831 ····</div>832 ····</div>
832 </search>833 </search>
833 <script>document.getElementById('searchbox').style.display·=·"block"</script>834 <script>document.getElementById('searchbox').style.display·=·"block"</script>
834 ········</div>835 ········</div>
835 ······</div>836 ······</div>
836 ··············<h3>Last·update:</h3>837 ··············<h3>Last·update:</h3>
837 ··············<p·class="topless">Sep·03,·2024</p>838 ··············<p·class="topless">set·03,·2024</p>
838 ··········</div>839 ··········</div>
839 ········840 ········
840 ······841 ······
841 ····</div>842 ····</div>
  
842 ····<div·id="ft">843 ····<div·id="ft">
843 ······<div·class="nav">844 ······<div·class="nav">
844 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a></div>845 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a></div>
845 ····</div>846 ····</div>
846 ··</div>847 ··</div>
  
847 ······<div·class="clearer"></div>848 ······<div·class="clearer"></div>
848 ····</div>849 ····</div>
849 ··</body>850 ··</body>
850 </html>851 </html>
1.76 KB
html2text {}
Max HTML report size reached
40.9 KB
./usr/share/doc/python-django-doc/html/ref/applications.html
Max HTML report size reached
26.3 KB
./usr/share/doc/python-django-doc/html/ref/checks.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>System·check·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>System·check·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Built-in·class-based·views·API"·href="class-based-views/index.html"·/>15 ····<link·rel="next"·title="Built-in·class-based·views·API"·href="class-based-views/index.html"·/>
15 ····<link·rel="prev"·title="Applications"·href="applications.html"·/>16 ····<link·rel="prev"·title="Applications"·href="applications.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 system·checks,·see·the·<a·class="reference·internal"·href="../topics/checks.html"><span·class="doc">System·check·topic·guide</span></a>.</p>87 system·checks,·see·the·<a·class="reference·internal"·href="../topics/checks.html"><span·class="doc">System·check·topic·guide</span></a>.</p>
87 <section·id="s-api-reference">88 <section·id="s-api-reference">
88 <span·id="api-reference"></span><h2>API·reference<a·class="headerlink"·href="#api-reference"·title="Link·to·this·heading">¶</a></h2>89 <span·id="api-reference"></span><h2>API·reference<a·class="headerlink"·href="#api-reference"·title="Link·to·this·heading">¶</a></h2>
89 <section·id="s-checkmessage">90 <section·id="s-checkmessage">
90 <span·id="checkmessage"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">CheckMessage</span></code><a·class="headerlink"·href="#checkmessage"·title="Link·to·this·heading">¶</a></h3>91 <span·id="checkmessage"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">CheckMessage</span></code><a·class="headerlink"·href="#checkmessage"·title="Link·to·this·heading">¶</a></h3>
91 <dl·class="py·class">92 <dl·class="py·class">
92 <dt·class="sig·sig-object·py"·id="django.core.checks.CheckMessage">93 <dt·class="sig·sig-object·py"·id="django.core.checks.CheckMessage">
93 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CheckMessage</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">level</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#CheckMessage"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.CheckMessage"·title="Link·to·this·definition">¶</a></dt>94 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CheckMessage</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">level</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#CheckMessage"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.CheckMessage"·title="Link·to·this·definition">¶</a></dt>
94 <dd></dd></dl>95 <dd></dd></dl>
  
95 <p>The·warnings·and·errors·raised·by·system·checks·must·be·instances·of96 <p>The·warnings·and·errors·raised·by·system·checks·must·be·instances·of
96 <code·class="docutils·literal·notranslate"><span·class="pre">CheckMessage</span></code>.·An·instance·encapsulates·a·single·reportable·error·or97 <code·class="docutils·literal·notranslate"><span·class="pre">CheckMessage</span></code>.·An·instance·encapsulates·a·single·reportable·error·or
97 warning.·It·also·provides·context·and·hints·applicable·to·the·message,·and·a98 warning.·It·also·provides·context·and·hints·applicable·to·the·message,·and·a
98 unique·identifier·that·is·used·for·filtering·purposes.</p>99 unique·identifier·that·is·used·for·filtering·purposes.</p>
99 <p>Constructor·arguments·are:</p>100 <p>Constructor·arguments·are:</p>
Offset 126, 35 lines modifiedOffset 127, 35 lines modified
126 </dd>127 </dd>
127 </dl>128 </dl>
128 <p>There·are·subclasses·to·make·creating·messages·with·common·levels·easier.·When129 <p>There·are·subclasses·to·make·creating·messages·with·common·levels·easier.·When
129 using·them·you·can·omit·the·<code·class="docutils·literal·notranslate"><span·class="pre">level</span></code>·argument·because·it·is·implied·by·the130 using·them·you·can·omit·the·<code·class="docutils·literal·notranslate"><span·class="pre">level</span></code>·argument·because·it·is·implied·by·the
130 class·name.</p>131 class·name.</p>
131 <dl·class="py·class">132 <dl·class="py·class">
132 <dt·class="sig·sig-object·py"·id="django.core.checks.Debug">133 <dt·class="sig·sig-object·py"·id="django.core.checks.Debug">
133 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Debug</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Debug"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.Debug"·title="Link·to·this·definition">¶</a></dt>134 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Debug</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Debug"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.Debug"·title="Link·to·this·definition">¶</a></dt>
134 <dd></dd></dl>135 <dd></dd></dl>
  
135 <dl·class="py·class">136 <dl·class="py·class">
136 <dt·class="sig·sig-object·py"·id="django.core.checks.Info">137 <dt·class="sig·sig-object·py"·id="django.core.checks.Info">
137 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Info</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Info"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.Info"·title="Link·to·this·definition">¶</a></dt>138 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Info</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Info"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.Info"·title="Link·to·this·definition">¶</a></dt>
138 <dd></dd></dl>139 <dd></dd></dl>
  
139 <dl·class="py·class">140 <dl·class="py·class">
140 <dt·class="sig·sig-object·py"·id="django.core.checks.Warning">141 <dt·class="sig·sig-object·py"·id="django.core.checks.Warning">
141 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Warning</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint=None</span>·<span·class="pre">obj=None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id=None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Warning"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.Warning"·title="Link·to·this·definition">¶</a></dt>142 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Warning</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint=None</span>·<span·class="pre">obj=None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id=None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Warning"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.Warning"·title="Link·to·this·definition">¶</a></dt>
142 <dd></dd></dl>143 <dd></dd></dl>
  
143 <dl·class="py·class">144 <dl·class="py·class">
144 <dt·class="sig·sig-object·py"·id="django.core.checks.Error">145 <dt·class="sig·sig-object·py"·id="django.core.checks.Error">
145 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Error</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Error"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.Error"·title="Link·to·this·definition">¶</a></dt>146 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Error</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Error"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.Error"·title="Link·to·this·definition">¶</a></dt>
146 <dd></dd></dl>147 <dd></dd></dl>
  
147 <dl·class="py·class">148 <dl·class="py·class">
148 <dt·class="sig·sig-object·py"·id="django.core.checks.Critical">149 <dt·class="sig·sig-object·py"·id="django.core.checks.Critical">
149 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Critical</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Critical"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.checks.Critical"·title="Link·to·this·definition">¶</a></dt>150 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Critical</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">msg</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">hint</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">obj</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">id</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/core/checks/messages.html#Critical"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.checks.Critical"·title="Link·to·this·definition">¶</a></dt>
150 <dd></dd></dl>151 <dd></dd></dl>
  
151 </section>152 </section>
152 </section>153 </section>
153 <section·id="s-builtin-tags">154 <section·id="s-builtin-tags">
154 <span·id="s-system-check-builtin-tags"></span><span·id="builtin-tags"></span><span·id="system-check-builtin-tags"></span><h2>Builtin·tags<a·class="headerlink"·href="#builtin-tags"·title="Link·to·this·heading">¶</a></h2>155 <span·id="s-system-check-builtin-tags"></span><span·id="builtin-tags"></span><span·id="system-check-builtin-tags"></span><h2>Builtin·tags<a·class="headerlink"·href="#builtin-tags"·title="Link·to·this·heading">¶</a></h2>
155 <p>Django’s·system·checks·are·organized·using·the·following·tags:</p>156 <p>Django’s·system·checks·are·organized·using·the·following·tags:</p>
Offset 398, 15 lines modifiedOffset 399, 15 lines modified
398 <li><p><strong>fields.W342</strong>:·Setting·<code·class="docutils·literal·notranslate"><span·class="pre">unique=True</span></code>·on·a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·has·the·same399 <li><p><strong>fields.W342</strong>:·Setting·<code·class="docutils·literal·notranslate"><span·class="pre">unique=True</span></code>·on·a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·has·the·same
399 effect·as·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">OneToOneField</span></code>.</p></li>400 effect·as·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">OneToOneField</span></code>.</p></li>
400 <li><p><strong>fields.W343</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">limit_choices_to</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>401 <li><p><strong>fields.W343</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">limit_choices_to</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>
401 with·a·<code·class="docutils·literal·notranslate"><span·class="pre">through</span></code>·model.·<em>This·check·appeared·before·Django·4.0.</em></p></li>402 with·a·<code·class="docutils·literal·notranslate"><span·class="pre">through</span></code>·model.·<em>This·check·appeared·before·Django·4.0.</em></p></li>
402 <li><p><strong>fields.W344</strong>:·The·field’s·intermediary·table·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;table</span>·<span·class="pre">name&gt;</span></code>·clashes·with403 <li><p><strong>fields.W344</strong>:·The·field’s·intermediary·table·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;table</span>·<span·class="pre">name&gt;</span></code>·clashes·with
403 the·table·name·of·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;model&gt;</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">&lt;model&gt;.&lt;field</span>·<span·class="pre">name&gt;</span></code>.</p></li>404 the·table·name·of·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;model&gt;</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">&lt;model&gt;.&lt;field</span>·<span·class="pre">name&gt;</span></code>.</p></li>
404 <li><p><strong>fields.W345</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·with·a405 <li><p><strong>fields.W345</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·with·a
405 symmetrical·relationship,·e.g.·to·self.</p></li>406 symmetrical·relationship,·e.g.·to·«self».</p></li>
406 <li><p><strong>fields.W346</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">db_comment</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>.</p></li>407 <li><p><strong>fields.W346</strong>:·<code·class="docutils·literal·notranslate"><span·class="pre">db_comment</span></code>·has·no·effect·on·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>.</p></li>
407 </ul>408 </ul>
408 </section>409 </section>
409 </section>410 </section>
410 <section·id="s-models">411 <section·id="s-models">
411 <span·id="models"></span><h3>Models<a·class="headerlink"·href="#models"·title="Link·to·this·heading">¶</a></h3>412 <span·id="models"></span><h3>Models<a·class="headerlink"·href="#models"·title="Link·to·this·heading">¶</a></h3>
412 <ul·class="simple">413 <ul·class="simple">
Offset 1049, 37 lines modifiedOffset 1050, 37 lines modified
1049 </li>1050 </li>
1050 </ul>1051 </ul>
1051 </li>1052 </li>
1052 </ul>1053 </ul>
  
1053 ··</div>1054 ··</div>
1054 ··<div>1055 ··<div>
1055 ····<h4>Previous·topic</h4>1056 ····<h4>Argomento·precedente</h4>
1056 ····<p·class="topless"><a·href="applications.html"1057 ····<p·class="topless"><a·href="applications.html"
1057 ··························title="previous·chapter">Applications</a></p>1058 ··························title="capitolo·precedente">Applications</a></p>
1058 ··</div>1059 ··</div>
1059 ··<div>1060 ··<div>
1060 ····<h4>Next·topic</h4>1061 ····<h4>Argomento·successivo</h4>
1061 ····<p·class="topless"><a·href="class-based-views/index.html"1062 ····<p·class="topless"><a·href="class-based-views/index.html"
1062 ··························title="next·chapter">Built-in·class-based·views·API</a></p>1063 ··························title="capitolo·successivo">Built-in·class-based·views·API</a></p>
1063 ··</div>1064 ··</div>
1064 <search·id="searchbox"·style="display:·none"·role="search">1065 <search·id="searchbox"·style="display:·none"·role="search">
1065 ··<h3·id="searchlabel">Quick·search</h3>1066 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1066 ····<div·class="searchformwrapper">1067 ····<div·class="searchformwrapper">
Max diff block lines reached; 607/20177 bytes (3.01%) of diff not shown.
6.48 KB
html2text {}
Max HTML report size reached
6.0 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/base.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Base·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Base·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Generic·display·views"·href="generic-display.html"·/>15 ····<link·rel="next"·title="Generic·display·views"·href="generic-display.html"·/>
15 ····<link·rel="prev"·title="Built-in·class-based·views·API"·href="index.html"·/>16 ····<link·rel="prev"·title="Built-in·class-based·views·API"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 405, 37 lines modifiedOffset 406, 37 lines modified
405 <li><a·class="reference·internal"·href="#redirectview"><code·class="docutils·literal·notranslate"><span·class="pre">RedirectView</span></code></a></li>406 <li><a·class="reference·internal"·href="#redirectview"><code·class="docutils·literal·notranslate"><span·class="pre">RedirectView</span></code></a></li>
406 </ul>407 </ul>
407 </li>408 </li>
408 </ul>409 </ul>
  
409 ··</div>410 ··</div>
410 ··<div>411 ··<div>
411 ····<h4>Previous·topic</h4>412 ····<h4>Argomento·precedente</h4>
412 ····<p·class="topless"><a·href="index.html"413 ····<p·class="topless"><a·href="index.html"
413 ··························title="previous·chapter">Built-in·class-based·views·API</a></p>414 ··························title="capitolo·precedente">Built-in·class-based·views·API</a></p>
414 ··</div>415 ··</div>
415 ··<div>416 ··<div>
416 ····<h4>Next·topic</h4>417 ····<h4>Argomento·successivo</h4>
417 ····<p·class="topless"><a·href="generic-display.html"418 ····<p·class="topless"><a·href="generic-display.html"
418 ··························title="next·chapter">Generic·display·views</a></p>419 ··························title="capitolo·successivo">Generic·display·views</a></p>
419 ··</div>420 ··</div>
420 <search·id="searchbox"·style="display:·none"·role="search">421 <search·id="searchbox"·style="display:·none"·role="search">
421 ··<h3·id="searchlabel">Quick·search</h3>422 ··<h3·id="searchlabel">Ricerca·veloce</h3>
422 ····<div·class="searchformwrapper">423 ····<div·class="searchformwrapper">
423 ····<form·class="search"·action="../../search.html"·method="get">424 ····<form·class="search"·action="../../search.html"·method="get">
424 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>425 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
425 ······<input·type="submit"·value="Go"·/>426 ······<input·type="submit"·value="Vai"·/>
426 ····</form>427 ····</form>
427 ····</div>428 ····</div>
428 </search>429 </search>
429 <script>document.getElementById('searchbox').style.display·=·"block"</script>430 <script>document.getElementById('searchbox').style.display·=·"block"</script>
430 ········</div>431 ········</div>
431 ······</div>432 ······</div>
432 ··············<h3>Last·update:</h3>433 ··············<h3>Last·update:</h3>
433 ··············<p·class="topless">Sep·03,·2024</p>434 ··············<p·class="topless">set·03,·2024</p>
434 ··········</div>435 ··········</div>
435 ········436 ········
436 ······437 ······
437 ····</div>438 ····</div>
  
438 ····<div·id="ft">439 ····<div·id="ft">
439 ······<div·class="nav">440 ······<div·class="nav">
2.1 KB
html2text {}
Max HTML report size reached
7.83 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/flattened-index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Class-based·generic·views·-·flattened·index·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Class-based·generic·views·-·flattened·index·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Clickjacking·Protection"·href="../clickjacking.html"·/>15 ····<link·rel="next"·title="Clickjacking·Protection"·href="../clickjacking.html"·/>
15 ····<link·rel="prev"·title="Date-based·mixins"·href="mixins-date-based.html"·/>16 ····<link·rel="prev"·title="Date-based·mixins"·href="mixins-date-based.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="class-based-generic-views-flattened-index"></span><h1>Class-based·generic·views·-·flattened·index<a·class="headerlink"·href="#class-based-generic-views-flattened-index"·title="Link·to·this·heading">¶</a></h1>82 <span·id="class-based-generic-views-flattened-index"></span><h1>Class-based·generic·views·-·flattened·index<a·class="headerlink"·href="#class-based-generic-views-flattened-index"·title="Link·to·this·heading">¶</a></h1>
82 <p>This·index·provides·an·alternate·organization·of·the·reference·documentation83 <p>This·index·provides·an·alternate·organization·of·the·reference·documentation
83 for·class-based·views.·For·each·view,·the·effective·attributes·and·methods·from84 for·class-based·views.·For·each·view,·the·effective·attributes·and·methods·from
84 the·class·tree·are·represented·under·that·view.·For·the·reference85 the·class·tree·are·represented·under·that·view.·For·the·reference
85 documentation·organized·by·the·class·which·defines·the·behavior,·see86 documentation·organized·by·the·class·which·defines·the·behavior,·see
86 <a·class="reference·internal"·href="index.html"><span·class="doc">Class-based·views</span></a>.</p>87 <a·class="reference·internal"·href="index.html"><span·class="doc">Class-based·views</span></a>.</p>
87 <div·class="admonition·seealso">88 <div·class="admonition·seealso">
88 <p·class="admonition-title">See·also</p>89 <p·class="admonition-title">Vedi·anche</p>
89 <p><a·class="reference·external"·href="https://ccbv.co.uk/">Classy·Class-Based·Views</a>·provides·a·nice·interface90 <p><a·class="reference·external"·href="https://ccbv.co.uk/">Classy·Class-Based·Views</a>·provides·a·nice·interface
90 to·navigate·the·class·hierarchy·of·the·built-in·class-based·views.</p>91 to·navigate·the·class·hierarchy·of·the·built-in·class-based·views.</p>
91 </div>92 </div>
92 <section·id="s-simple-generic-views">93 <section·id="s-simple-generic-views">
93 <span·id="simple-generic-views"></span><h2>Simple·generic·views<a·class="headerlink"·href="#simple-generic-views"·title="Link·to·this·heading">¶</a></h2>94 <span·id="simple-generic-views"></span><h2>Simple·generic·views<a·class="headerlink"·href="#simple-generic-views"·title="Link·to·this·heading">¶</a></h2>
94 <section·id="s-view">95 <section·id="s-view">
95 <span·id="view"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">View</span></code><a·class="headerlink"·href="#view"·title="Link·to·this·heading">¶</a></h3>96 <span·id="view"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">View</span></code><a·class="headerlink"·href="#view"·title="Link·to·this·heading">¶</a></h3>
Offset 829, 37 lines modifiedOffset 830, 37 lines modified
829 </li>830 </li>
830 </ul>831 </ul>
831 </li>832 </li>
832 </ul>833 </ul>
  
833 ··</div>834 ··</div>
834 ··<div>835 ··<div>
835 ····<h4>Previous·topic</h4>836 ····<h4>Argomento·precedente</h4>
836 ····<p·class="topless"><a·href="mixins-date-based.html"837 ····<p·class="topless"><a·href="mixins-date-based.html"
837 ··························title="previous·chapter">Date-based·mixins</a></p>838 ··························title="capitolo·precedente">Date-based·mixins</a></p>
838 ··</div>839 ··</div>
839 ··<div>840 ··<div>
840 ····<h4>Next·topic</h4>841 ····<h4>Argomento·successivo</h4>
841 ····<p·class="topless"><a·href="../clickjacking.html"842 ····<p·class="topless"><a·href="../clickjacking.html"
842 ··························title="next·chapter">Clickjacking·Protection</a></p>843 ··························title="capitolo·successivo">Clickjacking·Protection</a></p>
843 ··</div>844 ··</div>
844 <search·id="searchbox"·style="display:·none"·role="search">845 <search·id="searchbox"·style="display:·none"·role="search">
845 ··<h3·id="searchlabel">Quick·search</h3>846 ··<h3·id="searchlabel">Ricerca·veloce</h3>
846 ····<div·class="searchformwrapper">847 ····<div·class="searchformwrapper">
847 ····<form·class="search"·action="../../search.html"·method="get">848 ····<form·class="search"·action="../../search.html"·method="get">
848 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>849 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
849 ······<input·type="submit"·value="Go"·/>850 ······<input·type="submit"·value="Vai"·/>
850 ····</form>851 ····</form>
851 ····</div>852 ····</div>
852 </search>853 </search>
853 <script>document.getElementById('searchbox').style.display·=·"block"</script>854 <script>document.getElementById('searchbox').style.display·=·"block"</script>
854 ········</div>855 ········</div>
855 ······</div>856 ······</div>
856 ··············<h3>Last·update:</h3>857 ··············<h3>Last·update:</h3>
857 ··············<p·class="topless">Sep·03,·2024</p>858 ··············<p·class="topless">set·03,·2024</p>
858 ··········</div>859 ··········</div>
859 ········860 ········
860 ······861 ······
861 ····</div>862 ····</div>
  
862 ····<div·id="ft">863 ····<div·id="ft">
863 ······<div·class="nav">864 ······<div·class="nav">
2.68 KB
html2text {}
Max HTML report size reached
44.3 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/generic-date-based.html
Max HTML report size reached
5.94 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/generic-display.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Generic·display·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Generic·display·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Generic·editing·views"·href="generic-editing.html"·/>15 ····<link·rel="next"·title="Generic·editing·views"·href="generic-editing.html"·/>
15 ····<link·rel="prev"·title="Base·views"·href="base.html"·/>16 ····<link·rel="prev"·title="Base·views"·href="base.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 289, 37 lines modifiedOffset 290, 37 lines modified
289 <li><a·class="reference·internal"·href="#listview"><code·class="docutils·literal·notranslate"><span·class="pre">ListView</span></code></a></li>290 <li><a·class="reference·internal"·href="#listview"><code·class="docutils·literal·notranslate"><span·class="pre">ListView</span></code></a></li>
290 </ul>291 </ul>
291 </li>292 </li>
292 </ul>293 </ul>
  
293 ··</div>294 ··</div>
294 ··<div>295 ··<div>
295 ····<h4>Previous·topic</h4>296 ····<h4>Argomento·precedente</h4>
296 ····<p·class="topless"><a·href="base.html"297 ····<p·class="topless"><a·href="base.html"
297 ··························title="previous·chapter">Base·views</a></p>298 ··························title="capitolo·precedente">Base·views</a></p>
298 ··</div>299 ··</div>
299 ··<div>300 ··<div>
300 ····<h4>Next·topic</h4>301 ····<h4>Argomento·successivo</h4>
301 ····<p·class="topless"><a·href="generic-editing.html"302 ····<p·class="topless"><a·href="generic-editing.html"
302 ··························title="next·chapter">Generic·editing·views</a></p>303 ··························title="capitolo·successivo">Generic·editing·views</a></p>
303 ··</div>304 ··</div>
304 <search·id="searchbox"·style="display:·none"·role="search">305 <search·id="searchbox"·style="display:·none"·role="search">
305 ··<h3·id="searchlabel">Quick·search</h3>306 ··<h3·id="searchlabel">Ricerca·veloce</h3>
306 ····<div·class="searchformwrapper">307 ····<div·class="searchformwrapper">
307 ····<form·class="search"·action="../../search.html"·method="get">308 ····<form·class="search"·action="../../search.html"·method="get">
308 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>309 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
309 ······<input·type="submit"·value="Go"·/>310 ······<input·type="submit"·value="Vai"·/>
310 ····</form>311 ····</form>
311 ····</div>312 ····</div>
312 </search>313 </search>
313 <script>document.getElementById('searchbox').style.display·=·"block"</script>314 <script>document.getElementById('searchbox').style.display·=·"block"</script>
314 ········</div>315 ········</div>
315 ······</div>316 ······</div>
316 ··············<h3>Last·update:</h3>317 ··············<h3>Last·update:</h3>
317 ··············<p·class="topless">Sep·03,·2024</p>318 ··············<p·class="topless">set·03,·2024</p>
318 ··········</div>319 ··········</div>
319 ········320 ········
320 ······321 ······
321 ····</div>322 ····</div>
  
322 ····<div·id="ft">323 ····<div·id="ft">
323 ······<div·class="nav">324 ······<div·class="nav">
2.08 KB
html2text {}
Max HTML report size reached
9.33 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/generic-editing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Generic·editing·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Generic·editing·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Generic·date·views"·href="generic-date-based.html"·/>15 ····<link·rel="next"·title="Generic·date·views"·href="generic-date-based.html"·/>
15 ····<link·rel="prev"·title="Generic·display·views"·href="generic-display.html"·/>16 ····<link·rel="prev"·title="Generic·display·views"·href="generic-display.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 21 lines modifiedOffset 85, 21 lines modified
84 <ul·class="simple">85 <ul·class="simple">
85 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.FormView"·title="django.views.generic.edit.FormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.FormView</span></code></a></p></li>86 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.FormView"·title="django.views.generic.edit.FormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.FormView</span></code></a></p></li>
86 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.CreateView"·title="django.views.generic.edit.CreateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.CreateView</span></code></a></p></li>87 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.CreateView"·title="django.views.generic.edit.CreateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.CreateView</span></code></a></p></li>
87 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.UpdateView"·title="django.views.generic.edit.UpdateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.UpdateView</span></code></a></p></li>88 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.UpdateView"·title="django.views.generic.edit.UpdateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.UpdateView</span></code></a></p></li>
88 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.DeleteView"·title="django.views.generic.edit.DeleteView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.DeleteView</span></code></a></p></li>89 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.DeleteView"·title="django.views.generic.edit.DeleteView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.DeleteView</span></code></a></p></li>
89 </ul>90 </ul>
90 <div·class="admonition·seealso">91 <div·class="admonition·seealso">
91 <p·class="admonition-title">See·also</p>92 <p·class="admonition-title">Vedi·anche</p>
92 <p>The·<a·class="reference·internal"·href="../contrib/messages.html"><span·class="doc">messages·framework</span></a>·contains93 <p>The·<a·class="reference·internal"·href="../contrib/messages.html"><span·class="doc">messages·framework</span></a>·contains
93 <a·class="reference·internal"·href="../contrib/messages.html#django.contrib.messages.views.SuccessMessageMixin"·title="django.contrib.messages.views.SuccessMessageMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SuccessMessageMixin</span></code></a>,·which94 <a·class="reference·internal"·href="../contrib/messages.html#django.contrib.messages.views.SuccessMessageMixin"·title="django.contrib.messages.views.SuccessMessageMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SuccessMessageMixin</span></code></a>,·which
94 facilitates·presenting·messages·about·successful·form·submissions.</p>95 facilitates·presenting·messages·about·successful·form·submissions.</p>
95 </div>96 </div>
96 <div·class="admonition·note">97 <div·class="admonition·note">
97 <p·class="admonition-title">Note</p>98 <p·class="admonition-title">Nota</p>
98 <p>Some·of·the·examples·on·this·page·assume·that·an·<code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·model·has·been99 <p>Some·of·the·examples·on·this·page·assume·that·an·<code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·model·has·been
99 defined·as·follows·in·<code·class="docutils·literal·notranslate"><span·class="pre">myapp/models.py</span></code>:</p>100 defined·as·follows·in·<code·class="docutils·literal·notranslate"><span·class="pre">myapp/models.py</span></code>:</p>
100 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>101 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
101 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">reverse</span>102 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">reverse</span>
  
  
102 <span·class="k">class</span>·<span·class="nc">Author</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>103 <span·class="k">class</span>·<span·class="nc">Author</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
Offset 455, 37 lines modifiedOffset 456, 37 lines modified
455 <li><a·class="reference·internal"·href="#deleteview"><code·class="docutils·literal·notranslate"><span·class="pre">DeleteView</span></code></a></li>456 <li><a·class="reference·internal"·href="#deleteview"><code·class="docutils·literal·notranslate"><span·class="pre">DeleteView</span></code></a></li>
456 </ul>457 </ul>
457 </li>458 </li>
458 </ul>459 </ul>
  
459 ··</div>460 ··</div>
460 ··<div>461 ··<div>
461 ····<h4>Previous·topic</h4>462 ····<h4>Argomento·precedente</h4>
462 ····<p·class="topless"><a·href="generic-display.html"463 ····<p·class="topless"><a·href="generic-display.html"
463 ··························title="previous·chapter">Generic·display·views</a></p>464 ··························title="capitolo·precedente">Generic·display·views</a></p>
464 ··</div>465 ··</div>
465 ··<div>466 ··<div>
466 ····<h4>Next·topic</h4>467 ····<h4>Argomento·successivo</h4>
467 ····<p·class="topless"><a·href="generic-date-based.html"468 ····<p·class="topless"><a·href="generic-date-based.html"
468 ··························title="next·chapter">Generic·date·views</a></p>469 ··························title="capitolo·successivo">Generic·date·views</a></p>
469 ··</div>470 ··</div>
470 <search·id="searchbox"·style="display:·none"·role="search">471 <search·id="searchbox"·style="display:·none"·role="search">
471 ··<h3·id="searchlabel">Quick·search</h3>472 ··<h3·id="searchlabel">Ricerca·veloce</h3>
472 ····<div·class="searchformwrapper">473 ····<div·class="searchformwrapper">
473 ····<form·class="search"·action="../../search.html"·method="get">474 ····<form·class="search"·action="../../search.html"·method="get">
474 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>475 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
475 ······<input·type="submit"·value="Go"·/>476 ······<input·type="submit"·value="Vai"·/>
476 ····</form>477 ····</form>
477 ····</div>478 ····</div>
478 </search>479 </search>
479 <script>document.getElementById('searchbox').style.display·=·"block"</script>480 <script>document.getElementById('searchbox').style.display·=·"block"</script>
480 ········</div>481 ········</div>
481 ······</div>482 ······</div>
482 ··············<h3>Last·update:</h3>483 ··············<h3>Last·update:</h3>
483 ··············<p·class="topless">Sep·03,·2024</p>484 ··············<p·class="topless">set·03,·2024</p>
484 ··········</div>485 ··········</div>
485 ········486 ········
486 ······487 ······
487 ····</div>488 ····</div>
  
488 ····<div·id="ft">489 ····<div·id="ft">
489 ······<div·class="nav">490 ······<div·class="nav">
2.82 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Built-in·class-based·views·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Built-in·class-based·views·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Base·views"·href="base.html"·/>15 ····<link·rel="next"·title="Base·views"·href="base.html"·/>
15 ····<link·rel="prev"·title="System·check·framework"·href="../checks.html"·/>16 ····<link·rel="prev"·title="System·check·framework"·href="../checks.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 242, 37 lines modifiedOffset 243, 37 lines modified
242 <li><a·class="reference·internal"·href="#base-vs-generic-views">Base·vs·Generic·views</a></li>243 <li><a·class="reference·internal"·href="#base-vs-generic-views">Base·vs·Generic·views</a></li>
243 </ul>244 </ul>
244 </li>245 </li>
245 </ul>246 </ul>
  
246 ··</div>247 ··</div>
247 ··<div>248 ··<div>
248 ····<h4>Previous·topic</h4>249 ····<h4>Argomento·precedente</h4>
249 ····<p·class="topless"><a·href="../checks.html"250 ····<p·class="topless"><a·href="../checks.html"
250 ··························title="previous·chapter">System·check·framework</a></p>251 ··························title="capitolo·precedente">System·check·framework</a></p>
251 ··</div>252 ··</div>
252 ··<div>253 ··<div>
253 ····<h4>Next·topic</h4>254 ····<h4>Argomento·successivo</h4>
254 ····<p·class="topless"><a·href="base.html"255 ····<p·class="topless"><a·href="base.html"
255 ··························title="next·chapter">Base·views</a></p>256 ··························title="capitolo·successivo">Base·views</a></p>
256 ··</div>257 ··</div>
257 <search·id="searchbox"·style="display:·none"·role="search">258 <search·id="searchbox"·style="display:·none"·role="search">
258 ··<h3·id="searchlabel">Quick·search</h3>259 ··<h3·id="searchlabel">Ricerca·veloce</h3>
259 ····<div·class="searchformwrapper">260 ····<div·class="searchformwrapper">
260 ····<form·class="search"·action="../../search.html"·method="get">261 ····<form·class="search"·action="../../search.html"·method="get">
261 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>262 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
262 ······<input·type="submit"·value="Go"·/>263 ······<input·type="submit"·value="Vai"·/>
263 ····</form>264 ····</form>
264 ····</div>265 ····</div>
265 </search>266 </search>
266 <script>document.getElementById('searchbox').style.display·=·"block"</script>267 <script>document.getElementById('searchbox').style.display·=·"block"</script>
267 ········</div>268 ········</div>
268 ······</div>269 ······</div>
269 ··············<h3>Last·update:</h3>270 ··············<h3>Last·update:</h3>
270 ··············<p·class="topless">Sep·03,·2024</p>271 ··············<p·class="topless">set·03,·2024</p>
271 ··········</div>272 ··········</div>
272 ········273 ········
273 ······274 ······
274 ····</div>275 ····</div>
  
275 ····<div·id="ft">276 ····<div·id="ft">
276 ······<div·class="nav">277 ······<div·class="nav">
2.08 KB
html2text {}
Max HTML report size reached
75.3 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins-date-based.html
Max HTML report size reached
13.7 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins-editing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Editing·mixins·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Editing·mixins·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Date-based·mixins"·href="mixins-date-based.html"·/>15 ····<link·rel="next"·title="Date-based·mixins"·href="mixins-date-based.html"·/>
15 ····<link·rel="prev"·title="Multiple·object·mixins"·href="mixins-multiple-object.html"·/>16 ····<link·rel="prev"·title="Multiple·object·mixins"·href="mixins-multiple-object.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 <ul·class="simple">84 <ul·class="simple">
84 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.FormMixin"·title="django.views.generic.edit.FormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.FormMixin</span></code></a></p></li>85 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.FormMixin"·title="django.views.generic.edit.FormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.FormMixin</span></code></a></p></li>
85 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.ModelFormMixin"·title="django.views.generic.edit.ModelFormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.ModelFormMixin</span></code></a></p></li>86 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.ModelFormMixin"·title="django.views.generic.edit.ModelFormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.ModelFormMixin</span></code></a></p></li>
86 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.ProcessFormView"·title="django.views.generic.edit.ProcessFormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.ProcessFormView</span></code></a></p></li>87 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.ProcessFormView"·title="django.views.generic.edit.ProcessFormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.ProcessFormView</span></code></a></p></li>
87 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.DeletionMixin"·title="django.views.generic.edit.DeletionMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.DeletionMixin</span></code></a></p></li>88 <li><p><a·class="reference·internal"·href="#django.views.generic.edit.DeletionMixin"·title="django.views.generic.edit.DeletionMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.edit.DeletionMixin</span></code></a></p></li>
88 </ul>89 </ul>
89 <div·class="admonition·note">90 <div·class="admonition·note">
90 <p·class="admonition-title">Note</p>91 <p·class="admonition-title">Nota</p>
91 <p>Examples·of·how·these·are·combined·into·editing·views·can·be·found·at92 <p>Examples·of·how·these·are·combined·into·editing·views·can·be·found·at
92 the·documentation·on·<a·class="reference·internal"·href="generic-editing.html"><span·class="doc">Generic·editing·views</span></a>.</p>93 the·documentation·on·<a·class="reference·internal"·href="generic-editing.html"><span·class="doc">Generic·editing·views</span></a>.</p>
93 </div>94 </div>
94 <section·id="s-formmixin">95 <section·id="s-formmixin">
95 <span·id="formmixin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">FormMixin</span></code><a·class="headerlink"·href="#formmixin"·title="Link·to·this·heading">¶</a></h2>96 <span·id="formmixin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">FormMixin</span></code><a·class="headerlink"·href="#formmixin"·title="Link·to·this·heading">¶</a></h2>
96 <dl·class="py·class">97 <dl·class="py·class">
97 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.FormMixin">98 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.FormMixin">
Offset 185, 15 lines modifiedOffset 186, 15 lines modified
185 <dd><p>Renders·a·response,·providing·the·invalid·form·as·context.</p>186 <dd><p>Renders·a·response,·providing·the·invalid·form·as·context.</p>
186 </dd></dl>187 </dd></dl>
  
187 <dl·class="py·method">188 <dl·class="py·method">
188 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.FormMixin.get_context_data">189 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.FormMixin.get_context_data">
189 <span·class="sig-name·descname"><span·class="pre">get_context_data</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="headerlink"·href="#django.views.generic.edit.FormMixin.get_context_data"·title="Link·to·this·definition">¶</a></dt>190 <span·class="sig-name·descname"><span·class="pre">get_context_data</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="headerlink"·href="#django.views.generic.edit.FormMixin.get_context_data"·title="Link·to·this·definition">¶</a></dt>
190 <dd><p>Calls·<a·class="reference·internal"·href="#django.views.generic.edit.FormMixin.get_form"·title="django.views.generic.edit.FormMixin.get_form"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_form()</span></code></a>·and·adds·the·result·to·the·context·data·with·the191 <dd><p>Calls·<a·class="reference·internal"·href="#django.views.generic.edit.FormMixin.get_form"·title="django.views.generic.edit.FormMixin.get_form"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_form()</span></code></a>·and·adds·the·result·to·the·context·data·with·the
191 name·form.</p>192 name·form.</p>
192 </dd></dl>193 </dd></dl>
  
193 </dd></dl>194 </dd></dl>
  
194 </section>195 </section>
195 <section·id="s-modelformmixin">196 <section·id="s-modelformmixin">
196 <span·id="modelformmixin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ModelFormMixin</span></code><a·class="headerlink"·href="#modelformmixin"·title="Link·to·this·heading">¶</a></h2>197 <span·id="modelformmixin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ModelFormMixin</span></code><a·class="headerlink"·href="#modelformmixin"·title="Link·to·this·heading">¶</a></h2>
Offset 296, 16 lines modifiedOffset 297, 16 lines modified
296 <section·id="s-processformview">297 <section·id="s-processformview">
297 <span·id="processformview"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ProcessFormView</span></code><a·class="headerlink"·href="#processformview"·title="Link·to·this·heading">¶</a></h2>298 <span·id="processformview"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ProcessFormView</span></code><a·class="headerlink"·href="#processformview"·title="Link·to·this·heading">¶</a></h2>
298 <dl·class="py·class">299 <dl·class="py·class">
299 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.ProcessFormView">300 <dt·class="sig·sig-object·py"·id="django.views.generic.edit.ProcessFormView">
300 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">django.views.generic.edit.</span></span><span·class="sig-name·descname"><span·class="pre">ProcessFormView</span></span><a·class="headerlink"·href="#django.views.generic.edit.ProcessFormView"·title="Link·to·this·definition">¶</a></dt>301 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">django.views.generic.edit.</span></span><span·class="sig-name·descname"><span·class="pre">ProcessFormView</span></span><a·class="headerlink"·href="#django.views.generic.edit.ProcessFormView"·title="Link·to·this·definition">¶</a></dt>
301 <dd><p>A·mixin·that·provides·basic·HTTP·GET·and·POST·workflow.</p>302 <dd><p>A·mixin·that·provides·basic·HTTP·GET·and·POST·workflow.</p>
302 <div·class="admonition·note">303 <div·class="admonition·note">
303 <p·class="admonition-title">Note</p>304 <p·class="admonition-title">Nota</p>
304 <p>This·is·named·ProcessFormView·and·inherits·directly·from305 <p>This·is·named·ProcessFormView·and·inherits·directly·from
305 <a·class="reference·internal"·href="base.html#django.views.generic.base.View"·title="django.views.generic.base.View"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.base.View</span></code></a>,·but·breaks·if·used306 <a·class="reference·internal"·href="base.html#django.views.generic.base.View"·title="django.views.generic.base.View"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.base.View</span></code></a>,·but·breaks·if·used
306 independently,·so·it·is·more·of·a·mixin.</p>307 independently,·so·it·is·more·of·a·mixin.</p>
307 </div>308 </div>
308 <p><strong>Extends</strong></p>309 <p><strong>Extends</strong></p>
309 <ul·class="simple">310 <ul·class="simple">
310 <li><p><a·class="reference·internal"·href="base.html#django.views.generic.base.View"·title="django.views.generic.base.View"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.base.View</span></code></a></p></li>311 <li><p><a·class="reference·internal"·href="base.html#django.views.generic.base.View"·title="django.views.generic.base.View"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.views.generic.base.View</span></code></a></p></li>
311 </ul>312 </ul>
Offset 393, 37 lines modifiedOffset 394, 37 lines modified
393 <li><a·class="reference·internal"·href="#deletionmixin"><code·class="docutils·literal·notranslate"><span·class="pre">DeletionMixin</span></code></a></li>394 <li><a·class="reference·internal"·href="#deletionmixin"><code·class="docutils·literal·notranslate"><span·class="pre">DeletionMixin</span></code></a></li>
394 </ul>395 </ul>
395 </li>396 </li>
396 </ul>397 </ul>
  
397 ··</div>398 ··</div>
398 ··<div>399 ··<div>
399 ····<h4>Previous·topic</h4>400 ····<h4>Argomento·precedente</h4>
400 ····<p·class="topless"><a·href="mixins-multiple-object.html"401 ····<p·class="topless"><a·href="mixins-multiple-object.html"
401 ··························title="previous·chapter">Multiple·object·mixins</a></p>402 ··························title="capitolo·precedente">Multiple·object·mixins</a></p>
402 ··</div>403 ··</div>
403 ··<div>404 ··<div>
404 ····<h4>Next·topic</h4>405 ····<h4>Argomento·successivo</h4>
405 ····<p·class="topless"><a·href="mixins-date-based.html"406 ····<p·class="topless"><a·href="mixins-date-based.html"
406 ··························title="next·chapter">Date-based·mixins</a></p>407 ··························title="capitolo·successivo">Date-based·mixins</a></p>
407 ··</div>408 ··</div>
408 <search·id="searchbox"·style="display:·none"·role="search">409 <search·id="searchbox"·style="display:·none"·role="search">
409 ··<h3·id="searchlabel">Quick·search</h3>410 ··<h3·id="searchlabel">Ricerca·veloce</h3>
410 ····<div·class="searchformwrapper">411 ····<div·class="searchformwrapper">
411 ····<form·class="search"·action="../../search.html"·method="get">412 ····<form·class="search"·action="../../search.html"·method="get">
412 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>413 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
413 ······<input·type="submit"·value="Go"·/>414 ······<input·type="submit"·value="Vai"·/>
414 ····</form>415 ····</form>
415 ····</div>416 ····</div>
416 </search>417 </search>
417 <script>document.getElementById('searchbox').style.display·=·"block"</script>418 <script>document.getElementById('searchbox').style.display·=·"block"</script>
418 ········</div>419 ········</div>
419 ······</div>420 ······</div>
420 ··············<h3>Last·update:</h3>421 ··············<h3>Last·update:</h3>
421 ··············<p·class="topless">Sep·03,·2024</p>422 ··············<p·class="topless">set·03,·2024</p>
422 ··········</div>423 ··········</div>
423 ········424 ········
424 ······425 ······
425 ····</div>426 ····</div>
  
426 ····<div·id="ft">427 ····<div·id="ft">
427 ······<div·class="nav">428 ······<div·class="nav">
5.16 KB
html2text {}
Max HTML report size reached
14.2 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins-multiple-object.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Multiple·object·mixins·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Multiple·object·mixins·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Editing·mixins"·href="mixins-editing.html"·/>15 ····<link·rel="next"·title="Editing·mixins"·href="mixins-editing.html"·/>
15 ····<link·rel="prev"·title="Single·object·mixins"·href="mixins-single-object.html"·/>16 ····<link·rel="prev"·title="Single·object·mixins"·href="mixins-single-object.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 138, 15 lines modifiedOffset 139, 15 lines modified
  
138 <dl·class="py·attribute">139 <dl·class="py·attribute">
139 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.queryset">140 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.queryset">
140 <span·class="sig-name·descname"><span·class="pre">queryset</span></span><a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.queryset"·title="Link·to·this·definition">¶</a></dt>141 <span·class="sig-name·descname"><span·class="pre">queryset</span></span><a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.queryset"·title="Link·to·this·definition">¶</a></dt>
141 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·represents·the·objects.·If·provided,·the·value·of142 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·represents·the·objects.·If·provided,·the·value·of
142 <code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·supersedes·the·value·provided·for·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.model"·title="django.views.generic.list.MultipleObjectMixin.model"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>.</p>143 <code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·supersedes·the·value·provided·for·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.model"·title="django.views.generic.list.MultipleObjectMixin.model"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>.</p>
143 <div·class="admonition·warning">144 <div·class="admonition·warning">
144 <p·class="admonition-title">Warning</p>145 <p·class="admonition-title">Avvertimento</p>
145 <p><code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·is·a·class·attribute·with·a·<em>mutable</em>·value·so·care146 <p><code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·is·a·class·attribute·with·a·<em>mutable</em>·value·so·care
146 must·be·taken·when·using·it·directly.·Before·using·it,·either·call147 must·be·taken·when·using·it·directly.·Before·using·it,·either·call
147 its·<a·class="reference·internal"·href="../models/querysets.html#django.db.models.query.QuerySet.all"·title="django.db.models.query.QuerySet.all"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">all()</span></code></a>·method·or148 its·<a·class="reference·internal"·href="../models/querysets.html#django.db.models.query.QuerySet.all"·title="django.db.models.query.QuerySet.all"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">all()</span></code></a>·method·or
148 retrieve·it·with·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.get_queryset"·title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·which·takes·care·of·the149 retrieve·it·with·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.get_queryset"·title="django.views.generic.list.MultipleObjectMixin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·which·takes·care·of·the
149 cloning·behind·the·scenes.</p>150 cloning·behind·the·scenes.</p>
150 </div>151 </div>
151 </dd></dl>152 </dd></dl>
Offset 167, 15 lines modifiedOffset 168, 15 lines modified
167 expect·either·a·<code·class="docutils·literal·notranslate"><span·class="pre">page</span></code>·query·string·parameter·(via·<code·class="docutils·literal·notranslate"><span·class="pre">request.GET</span></code>)168 expect·either·a·<code·class="docutils·literal·notranslate"><span·class="pre">page</span></code>·query·string·parameter·(via·<code·class="docutils·literal·notranslate"><span·class="pre">request.GET</span></code>)
168 or·a·<code·class="docutils·literal·notranslate"><span·class="pre">page</span></code>·variable·specified·in·the·URLconf.</p>169 or·a·<code·class="docutils·literal·notranslate"><span·class="pre">page</span></code>·variable·specified·in·the·URLconf.</p>
169 </dd></dl>170 </dd></dl>
  
170 <dl·class="py·attribute">171 <dl·class="py·attribute">
171 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.paginate_orphans">172 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.paginate_orphans">
172 <span·class="sig-name·descname"><span·class="pre">paginate_orphans</span></span><a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.paginate_orphans"·title="Link·to·this·definition">¶</a></dt>173 <span·class="sig-name·descname"><span·class="pre">paginate_orphans</span></span><a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.paginate_orphans"·title="Link·to·this·definition">¶</a></dt>
173 <dd><p>An·integer·specifying·the·number·of·overflow·objects·the·last·page174 <dd><p>An·integer·specifying·the·number·of·«overflow»·objects·the·last·page
174 can·contain.·This·extends·the·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginate_by"·title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginate_by</span></code></a>·limit·on·the·last175 can·contain.·This·extends·the·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginate_by"·title="django.views.generic.list.MultipleObjectMixin.paginate_by"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginate_by</span></code></a>·limit·on·the·last
175 page·by·up·to·<code·class="docutils·literal·notranslate"><span·class="pre">paginate_orphans</span></code>,·in·order·to·keep·the·last·page·from176 page·by·up·to·<code·class="docutils·literal·notranslate"><span·class="pre">paginate_orphans</span></code>,·in·order·to·keep·the·last·page·from
176 having·a·very·small·number·of·objects.</p>177 having·a·very·small·number·of·objects.</p>
177 </dd></dl>178 </dd></dl>
  
178 <dl·class="py·attribute">179 <dl·class="py·attribute">
179 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.page_kwarg">180 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.page_kwarg">
Offset 241, 15 lines modifiedOffset 242, 15 lines modified
241 <dd><p>Returns·an·instance·of·the·paginator·to·use·for·this·view.·By·default,242 <dd><p>Returns·an·instance·of·the·paginator·to·use·for·this·view.·By·default,
242 instantiates·an·instance·of·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginator_class"·title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginator_class</span></code></a>.</p>243 instantiates·an·instance·of·<a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginator_class"·title="django.views.generic.list.MultipleObjectMixin.paginator_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginator_class</span></code></a>.</p>
243 </dd></dl>244 </dd></dl>
  
244 <dl·class="py·method">245 <dl·class="py·method">
245 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans">246 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.get_paginate_orphans">
246 <span·class="sig-name·descname"><span·class="pre">get_paginate_orphans</span></span>()<a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"·title="Link·to·this·definition">¶</a></dt>247 <span·class="sig-name·descname"><span·class="pre">get_paginate_orphans</span></span>()<a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.get_paginate_orphans"·title="Link·to·this·definition">¶</a></dt>
247 <dd><p>An·integer·specifying·the·number·of·overflow·objects·the·last·page248 <dd><p>An·integer·specifying·the·number·of·«overflow»·objects·the·last·page
248 can·contain.·By·default·this·returns·the·value·of249 can·contain.·By·default·this·returns·the·value·of
249 <a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginate_orphans"·title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginate_orphans</span></code></a>.</p>250 <a·class="reference·internal"·href="#django.views.generic.list.MultipleObjectMixin.paginate_orphans"·title="django.views.generic.list.MultipleObjectMixin.paginate_orphans"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">paginate_orphans</span></code></a>.</p>
250 </dd></dl>251 </dd></dl>
  
251 <dl·class="py·method">252 <dl·class="py·method">
252 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.get_allow_empty">253 <dt·class="sig·sig-object·py"·id="django.views.generic.list.MultipleObjectMixin.get_allow_empty">
253 <span·class="sig-name·descname"><span·class="pre">get_allow_empty</span></span>()<a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.get_allow_empty"·title="Link·to·this·definition">¶</a></dt>254 <span·class="sig-name·descname"><span·class="pre">get_allow_empty</span></span>()<a·class="headerlink"·href="#django.views.generic.list.MultipleObjectMixin.get_allow_empty"·title="Link·to·this·definition">¶</a></dt>
Offset 352, 37 lines modifiedOffset 353, 37 lines modified
352 <li><a·class="reference·internal"·href="#multipleobjecttemplateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">MultipleObjectTemplateResponseMixin</span></code></a></li>353 <li><a·class="reference·internal"·href="#multipleobjecttemplateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">MultipleObjectTemplateResponseMixin</span></code></a></li>
353 </ul>354 </ul>
354 </li>355 </li>
355 </ul>356 </ul>
  
356 ··</div>357 ··</div>
357 ··<div>358 ··<div>
358 ····<h4>Previous·topic</h4>359 ····<h4>Argomento·precedente</h4>
359 ····<p·class="topless"><a·href="mixins-single-object.html"360 ····<p·class="topless"><a·href="mixins-single-object.html"
360 ··························title="previous·chapter">Single·object·mixins</a></p>361 ··························title="capitolo·precedente">Single·object·mixins</a></p>
361 ··</div>362 ··</div>
362 ··<div>363 ··<div>
363 ····<h4>Next·topic</h4>364 ····<h4>Argomento·successivo</h4>
364 ····<p·class="topless"><a·href="mixins-editing.html"365 ····<p·class="topless"><a·href="mixins-editing.html"
365 ··························title="next·chapter">Editing·mixins</a></p>366 ··························title="capitolo·successivo">Editing·mixins</a></p>
366 ··</div>367 ··</div>
367 <search·id="searchbox"·style="display:·none"·role="search">368 <search·id="searchbox"·style="display:·none"·role="search">
368 ··<h3·id="searchlabel">Quick·search</h3>369 ··<h3·id="searchlabel">Ricerca·veloce</h3>
369 ····<div·class="searchformwrapper">370 ····<div·class="searchformwrapper">
370 ····<form·class="search"·action="../../search.html"·method="get">371 ····<form·class="search"·action="../../search.html"·method="get">
371 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>372 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
372 ······<input·type="submit"·value="Go"·/>373 ······<input·type="submit"·value="Vai"·/>
373 ····</form>374 ····</form>
374 ····</div>375 ····</div>
375 </search>376 </search>
376 <script>document.getElementById('searchbox').style.display·=·"block"</script>377 <script>document.getElementById('searchbox').style.display·=·"block"</script>
377 ········</div>378 ········</div>
378 ······</div>379 ······</div>
379 ··············<h3>Last·update:</h3>380 ··············<h3>Last·update:</h3>
380 ··············<p·class="topless">Sep·03,·2024</p>381 ··············<p·class="topless">set·03,·2024</p>
381 ··········</div>382 ··········</div>
382 ········383 ········
383 ······384 ······
384 ····</div>385 ····</div>
  
385 ····<div·id="ft">386 ····<div·id="ft">
386 ······<div·class="nav">387 ······<div·class="nav">
5.38 KB
html2text {}
Max HTML report size reached
5.97 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins-simple.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Simple·mixins·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Simple·mixins·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Single·object·mixins"·href="mixins-single-object.html"·/>15 ····<link·rel="next"·title="Single·object·mixins"·href="mixins-single-object.html"·/>
15 ····<link·rel="prev"·title="Class-based·views·mixins"·href="mixins.html"·/>16 ····<link·rel="prev"·title="Class-based·views·mixins"·href="mixins.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 215, 37 lines modifiedOffset 216, 37 lines modified
215 <li><a·class="reference·internal"·href="#templateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">TemplateResponseMixin</span></code></a></li>216 <li><a·class="reference·internal"·href="#templateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">TemplateResponseMixin</span></code></a></li>
216 </ul>217 </ul>
217 </li>218 </li>
218 </ul>219 </ul>
  
219 ··</div>220 ··</div>
220 ··<div>221 ··<div>
221 ····<h4>Previous·topic</h4>222 ····<h4>Argomento·precedente</h4>
222 ····<p·class="topless"><a·href="mixins.html"223 ····<p·class="topless"><a·href="mixins.html"
223 ··························title="previous·chapter">Class-based·views·mixins</a></p>224 ··························title="capitolo·precedente">Class-based·views·mixins</a></p>
224 ··</div>225 ··</div>
225 ··<div>226 ··<div>
226 ····<h4>Next·topic</h4>227 ····<h4>Argomento·successivo</h4>
227 ····<p·class="topless"><a·href="mixins-single-object.html"228 ····<p·class="topless"><a·href="mixins-single-object.html"
228 ··························title="next·chapter">Single·object·mixins</a></p>229 ··························title="capitolo·successivo">Single·object·mixins</a></p>
229 ··</div>230 ··</div>
230 <search·id="searchbox"·style="display:·none"·role="search">231 <search·id="searchbox"·style="display:·none"·role="search">
231 ··<h3·id="searchlabel">Quick·search</h3>232 ··<h3·id="searchlabel">Ricerca·veloce</h3>
232 ····<div·class="searchformwrapper">233 ····<div·class="searchformwrapper">
233 ····<form·class="search"·action="../../search.html"·method="get">234 ····<form·class="search"·action="../../search.html"·method="get">
234 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>235 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
235 ······<input·type="submit"·value="Go"·/>236 ······<input·type="submit"·value="Vai"·/>
236 ····</form>237 ····</form>
237 ····</div>238 ····</div>
238 </search>239 </search>
239 <script>document.getElementById('searchbox').style.display·=·"block"</script>240 <script>document.getElementById('searchbox').style.display·=·"block"</script>
240 ········</div>241 ········</div>
241 ······</div>242 ······</div>
242 ··············<h3>Last·update:</h3>243 ··············<h3>Last·update:</h3>
243 ··············<p·class="topless">Sep·03,·2024</p>244 ··············<p·class="topless">set·03,·2024</p>
244 ··········</div>245 ··········</div>
245 ········246 ········
246 ······247 ······
247 ····</div>248 ····</div>
  
248 ····<div·id="ft">249 ····<div·id="ft">
249 ······<div·class="nav">250 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
8.89 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins-single-object.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Single·object·mixins·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Single·object·mixins·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Multiple·object·mixins"·href="mixins-multiple-object.html"·/>15 ····<link·rel="next"·title="Multiple·object·mixins"·href="mixins-multiple-object.html"·/>
15 ····<link·rel="prev"·title="Simple·mixins"·href="mixins-simple.html"·/>16 ····<link·rel="prev"·title="Simple·mixins"·href="mixins-simple.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 98, 15 lines modifiedOffset 99, 15 lines modified
  
98 <dl·class="py·attribute">99 <dl·class="py·attribute">
99 <dt·class="sig·sig-object·py"·id="django.views.generic.detail.SingleObjectMixin.queryset">100 <dt·class="sig·sig-object·py"·id="django.views.generic.detail.SingleObjectMixin.queryset">
100 <span·class="sig-name·descname"><span·class="pre">queryset</span></span><a·class="headerlink"·href="#django.views.generic.detail.SingleObjectMixin.queryset"·title="Link·to·this·definition">¶</a></dt>101 <span·class="sig-name·descname"><span·class="pre">queryset</span></span><a·class="headerlink"·href="#django.views.generic.detail.SingleObjectMixin.queryset"·title="Link·to·this·definition">¶</a></dt>
101 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·represents·the·objects.·If·provided,·the·value·of102 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·represents·the·objects.·If·provided,·the·value·of
102 <code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·supersedes·the·value·provided·for·<a·class="reference·internal"·href="#django.views.generic.detail.SingleObjectMixin.model"·title="django.views.generic.detail.SingleObjectMixin.model"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>.</p>103 <code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·supersedes·the·value·provided·for·<a·class="reference·internal"·href="#django.views.generic.detail.SingleObjectMixin.model"·title="django.views.generic.detail.SingleObjectMixin.model"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>.</p>
103 <div·class="admonition·warning">104 <div·class="admonition·warning">
104 <p·class="admonition-title">Warning</p>105 <p·class="admonition-title">Avvertimento</p>
105 <p><code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·is·a·class·attribute·with·a·<em>mutable</em>·value·so·care106 <p><code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·is·a·class·attribute·with·a·<em>mutable</em>·value·so·care
106 must·be·taken·when·using·it·directly.·Before·using·it,·either·call107 must·be·taken·when·using·it·directly.·Before·using·it,·either·call
107 its·<a·class="reference·internal"·href="../models/querysets.html#django.db.models.query.QuerySet.all"·title="django.db.models.query.QuerySet.all"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">all()</span></code></a>·method·or108 its·<a·class="reference·internal"·href="../models/querysets.html#django.db.models.query.QuerySet.all"·title="django.db.models.query.QuerySet.all"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">all()</span></code></a>·method·or
108 retrieve·it·with·<a·class="reference·internal"·href="#django.views.generic.detail.SingleObjectMixin.get_queryset"·title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·which·takes·care·of·the109 retrieve·it·with·<a·class="reference·internal"·href="#django.views.generic.detail.SingleObjectMixin.get_queryset"·title="django.views.generic.detail.SingleObjectMixin.get_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code></a>·which·takes·care·of·the
109 cloning·behind·the·scenes.</p>110 cloning·behind·the·scenes.</p>
110 </div>111 </div>
111 </dd></dl>112 </dd></dl>
Offset 294, 37 lines modifiedOffset 295, 37 lines modified
294 <li><a·class="reference·internal"·href="#singleobjecttemplateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectTemplateResponseMixin</span></code></a></li>295 <li><a·class="reference·internal"·href="#singleobjecttemplateresponsemixin"><code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectTemplateResponseMixin</span></code></a></li>
295 </ul>296 </ul>
296 </li>297 </li>
297 </ul>298 </ul>
  
298 ··</div>299 ··</div>
299 ··<div>300 ··<div>
300 ····<h4>Previous·topic</h4>301 ····<h4>Argomento·precedente</h4>
301 ····<p·class="topless"><a·href="mixins-simple.html"302 ····<p·class="topless"><a·href="mixins-simple.html"
302 ··························title="previous·chapter">Simple·mixins</a></p>303 ··························title="capitolo·precedente">Simple·mixins</a></p>
303 ··</div>304 ··</div>
304 ··<div>305 ··<div>
305 ····<h4>Next·topic</h4>306 ····<h4>Argomento·successivo</h4>
306 ····<p·class="topless"><a·href="mixins-multiple-object.html"307 ····<p·class="topless"><a·href="mixins-multiple-object.html"
307 ··························title="next·chapter">Multiple·object·mixins</a></p>308 ··························title="capitolo·successivo">Multiple·object·mixins</a></p>
308 ··</div>309 ··</div>
309 <search·id="searchbox"·style="display:·none"·role="search">310 <search·id="searchbox"·style="display:·none"·role="search">
310 ··<h3·id="searchlabel">Quick·search</h3>311 ··<h3·id="searchlabel">Ricerca·veloce</h3>
311 ····<div·class="searchformwrapper">312 ····<div·class="searchformwrapper">
312 ····<form·class="search"·action="../../search.html"·method="get">313 ····<form·class="search"·action="../../search.html"·method="get">
313 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>314 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
314 ······<input·type="submit"·value="Go"·/>315 ······<input·type="submit"·value="Vai"·/>
315 ····</form>316 ····</form>
316 ····</div>317 ····</div>
317 </search>318 </search>
318 <script>document.getElementById('searchbox').style.display·=·"block"</script>319 <script>document.getElementById('searchbox').style.display·=·"block"</script>
319 ········</div>320 ········</div>
320 ······</div>321 ······</div>
321 ··············<h3>Last·update:</h3>322 ··············<h3>Last·update:</h3>
322 ··············<p·class="topless">Sep·03,·2024</p>323 ··············<p·class="topless">set·03,·2024</p>
323 ··········</div>324 ··········</div>
324 ········325 ········
325 ······326 ······
326 ····</div>327 ····</div>
  
327 ····<div·id="ft">328 ····<div·id="ft">
328 ······<div·class="nav">329 ······<div·class="nav">
3.14 KB
html2text {}
Max HTML report size reached
5.68 KB
./usr/share/doc/python-django-doc/html/ref/class-based-views/mixins.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Class-based·views·mixins·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Class-based·views·mixins·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Simple·mixins"·href="mixins-simple.html"·/>15 ····<link·rel="next"·title="Simple·mixins"·href="mixins-simple.html"·/>
15 ····<link·rel="prev"·title="Generic·date·views"·href="generic-date-based.html"·/>16 ····<link·rel="prev"·title="Generic·date·views"·href="generic-date-based.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 98, 37 lines modifiedOffset 99, 37 lines modified
98 ······99 ······
99 ········100 ········
100 ··········<div·class="yui-b"·id="sidebar">101 ··········<div·class="yui-b"·id="sidebar">
101 ············102 ············
102 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">103 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
103 ········<div·class="sphinxsidebarwrapper">104 ········<div·class="sphinxsidebarwrapper">
104 ··<div>105 ··<div>
105 ····<h4>Previous·topic</h4>106 ····<h4>Argomento·precedente</h4>
106 ····<p·class="topless"><a·href="generic-date-based.html"107 ····<p·class="topless"><a·href="generic-date-based.html"
107 ··························title="previous·chapter">Generic·date·views</a></p>108 ··························title="capitolo·precedente">Generic·date·views</a></p>
108 ··</div>109 ··</div>
109 ··<div>110 ··<div>
110 ····<h4>Next·topic</h4>111 ····<h4>Argomento·successivo</h4>
111 ····<p·class="topless"><a·href="mixins-simple.html"112 ····<p·class="topless"><a·href="mixins-simple.html"
112 ··························title="next·chapter">Simple·mixins</a></p>113 ··························title="capitolo·successivo">Simple·mixins</a></p>
113 ··</div>114 ··</div>
114 <search·id="searchbox"·style="display:·none"·role="search">115 <search·id="searchbox"·style="display:·none"·role="search">
115 ··<h3·id="searchlabel">Quick·search</h3>116 ··<h3·id="searchlabel">Ricerca·veloce</h3>
116 ····<div·class="searchformwrapper">117 ····<div·class="searchformwrapper">
117 ····<form·class="search"·action="../../search.html"·method="get">118 ····<form·class="search"·action="../../search.html"·method="get">
118 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>119 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
119 ······<input·type="submit"·value="Go"·/>120 ······<input·type="submit"·value="Vai"·/>
120 ····</form>121 ····</form>
121 ····</div>122 ····</div>
122 </search>123 </search>
123 <script>document.getElementById('searchbox').style.display·=·"block"</script>124 <script>document.getElementById('searchbox').style.display·=·"block"</script>
124 ········</div>125 ········</div>
125 ······</div>126 ······</div>
126 ··············<h3>Last·update:</h3>127 ··············<h3>Last·update:</h3>
127 ··············<p·class="topless">Sep·03,·2024</p>128 ··············<p·class="topless">set·03,·2024</p>
128 ··········</div>129 ··········</div>
129 ········130 ········
130 ······131 ······
131 ····</div>132 ····</div>
  
132 ····<div·id="ft">133 ····<div·id="ft">
133 ······<div·class="nav">134 ······<div·class="nav">
1.79 KB
html2text {}
Max HTML report size reached
12.6 KB
./usr/share/doc/python-django-doc/html/ref/clickjacking.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Clickjacking·Protection·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Clickjacking·Protection·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="contrib·packages"·href="contrib/index.html"·/>15 ····<link·rel="next"·title="contrib·packages"·href="contrib/index.html"·/>
15 ····<link·rel="prev"·title="Class-based·generic·views·-·flattened·index"·href="class-based-views/flattened-index.html"·/>16 ····<link·rel="prev"·title="Class-based·generic·views·-·flattened·index"·href="class-based-views/flattened-index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 21 lines modifiedOffset 82, 21 lines modified
81 <span·id="s-clickjacking-protection"></span><span·id="module-django.middleware.clickjacking"></span><span·id="clickjacking-protection"></span><h1>Clickjacking·Protection<a·class="headerlink"·href="#module-django.middleware.clickjacking"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-clickjacking-protection"></span><span·id="module-django.middleware.clickjacking"></span><span·id="clickjacking-protection"></span><h1>Clickjacking·Protection<a·class="headerlink"·href="#module-django.middleware.clickjacking"·title="Link·to·this·heading">¶</a></h1>
82 <p>The·clickjacking·middleware·and·decorators·provide·easy-to-use·protection83 <p>The·clickjacking·middleware·and·decorators·provide·easy-to-use·protection
83 against·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Clickjacking">clickjacking</a>.··This·type·of·attack·occurs·when·a·malicious·site84 against·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Clickjacking">clickjacking</a>.··This·type·of·attack·occurs·when·a·malicious·site
84 tricks·a·user·into·clicking·on·a·concealed·element·of·another·site·which·they85 tricks·a·user·into·clicking·on·a·concealed·element·of·another·site·which·they
85 have·loaded·in·a·hidden·frame·or·iframe.</p>86 have·loaded·in·a·hidden·frame·or·iframe.</p>
86 <section·id="s-an-example-of-clickjacking">87 <section·id="s-an-example-of-clickjacking">
87 <span·id="an-example-of-clickjacking"></span><h2>An·example·of·clickjacking<a·class="headerlink"·href="#an-example-of-clickjacking"·title="Link·to·this·heading">¶</a></h2>88 <span·id="an-example-of-clickjacking"></span><h2>An·example·of·clickjacking<a·class="headerlink"·href="#an-example-of-clickjacking"·title="Link·to·this·heading">¶</a></h2>
88 <p>Suppose·an·online·store·has·a·page·where·a·logged·in·user·can·click·Buy·Now·to89 <p>Suppose·an·online·store·has·a·page·where·a·logged·in·user·can·click·«Buy·Now»·to
89 purchase·an·item.·A·user·has·chosen·to·stay·logged·into·the·store·all·the·time90 purchase·an·item.·A·user·has·chosen·to·stay·logged·into·the·store·all·the·time
90 for·convenience.·An·attacker·site·might·create·an·I·Like·Ponies·button·on·one91 for·convenience.·An·attacker·site·might·create·an·«I·Like·Ponies»·button·on·one
91 of·their·own·pages,·and·load·the·store’s·page·in·a·transparent·iframe·such·that92 of·their·own·pages,·and·load·the·store’s·page·in·a·transparent·iframe·such·that
92 the·Buy·Now·button·is·invisibly·overlaid·on·the·I·Like·Ponies·button.·If·the93 the·«Buy·Now»·button·is·invisibly·overlaid·on·the·«I·Like·Ponies»·button.·If·the
93 user·visits·the·attacker’s·site,·clicking·I·Like·Ponies·will·cause·an94 user·visits·the·attacker’s·site,·clicking·«I·Like·Ponies»·will·cause·an
94 inadvertent·click·on·the·Buy·Now·button·and·an·unknowing·purchase·of·the·item.</p>95 inadvertent·click·on·the·«Buy·Now»·button·and·an·unknowing·purchase·of·the·item.</p>
95 </section>96 </section>
96 <section·id="s-preventing-clickjacking">97 <section·id="s-preventing-clickjacking">
97 <span·id="s-clickjacking-prevention"></span><span·id="preventing-clickjacking"></span><span·id="clickjacking-prevention"></span><h2>Preventing·clickjacking<a·class="headerlink"·href="#preventing-clickjacking"·title="Link·to·this·heading">¶</a></h2>98 <span·id="s-clickjacking-prevention"></span><span·id="preventing-clickjacking"></span><span·id="clickjacking-prevention"></span><h2>Preventing·clickjacking<a·class="headerlink"·href="#preventing-clickjacking"·title="Link·to·this·heading">¶</a></h2>
98 <p>Modern·browsers·honor·the·<a·class="reference·external"·href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a>·HTTP·header·that·indicates·whether99 <p>Modern·browsers·honor·the·<a·class="reference·external"·href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a>·HTTP·header·that·indicates·whether
99 or·not·a·resource·is·allowed·to·load·within·a·frame·or·iframe.·If·the·response100 or·not·a·resource·is·allowed·to·load·within·a·frame·or·iframe.·If·the·response
100 contains·the·header·with·a·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">SAMEORIGIN</span></code>·then·the·browser·will·only101 contains·the·header·with·a·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">SAMEORIGIN</span></code>·then·the·browser·will·only
101 load·the·resource·in·a·frame·if·the·request·originated·from·the·same·site.·If102 load·the·resource·in·a·frame·if·the·request·originated·from·the·same·site.·If
Offset 141, 15 lines modifiedOffset 142, 15 lines modified
  
141 <span·class="nd">@xframe_options_exempt</span>142 <span·class="nd">@xframe_options_exempt</span>
142 <span·class="k">def</span>·<span·class="nf">ok_to_load_in_a_frame</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>143 <span·class="k">def</span>·<span·class="nf">ok_to_load_in_a_frame</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
143 ····<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="s2">&quot;This·page·is·safe·to·load·in·a·frame·on·any·site.&quot;</span><span·class="p">)</span>144 ····<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="s2">&quot;This·page·is·safe·to·load·in·a·frame·on·any·site.&quot;</span><span·class="p">)</span>
144 </pre></div>145 </pre></div>
145 </div>146 </div>
146 <div·class="admonition·note">147 <div·class="admonition·note">
147 <p·class="admonition-title">Note</p>148 <p·class="admonition-title">Nota</p>
148 <p>If·you·want·to·submit·a·form·or·access·a·session·cookie·within·a·frame·or149 <p>If·you·want·to·submit·a·form·or·access·a·session·cookie·within·a·frame·or
149 iframe,·you·may·need·to·modify·the·<a·class="reference·internal"·href="settings.html#std-setting-CSRF_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SAMESITE</span></code></a>·or150 iframe,·you·may·need·to·modify·the·<a·class="reference·internal"·href="settings.html#std-setting-CSRF_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SAMESITE</span></code></a>·or
150 <a·class="reference·internal"·href="settings.html#std-setting-SESSION_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SAMESITE</span></code></a>·settings.</p>151 <a·class="reference·internal"·href="settings.html#std-setting-SESSION_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SAMESITE</span></code></a>·settings.</p>
151 </div>152 </div>
152 </section>153 </section>
153 <section·id="s-setting-x-frame-options-per-view">154 <section·id="s-setting-x-frame-options-per-view">
154 <span·id="setting-x-frame-options-per-view"></span><h3>Setting·<code·class="docutils·literal·notranslate"><span·class="pre">X-Frame-Options</span></code>·per·view<a·class="headerlink"·href="#setting-x-frame-options-per-view"·title="Link·to·this·heading">¶</a></h3>155 <span·id="setting-x-frame-options-per-view"></span><h3>Setting·<code·class="docutils·literal·notranslate"><span·class="pre">X-Frame-Options</span></code>·per·view<a·class="headerlink"·href="#setting-x-frame-options-per-view"·title="Link·to·this·heading">¶</a></h3>
Offset 225, 37 lines modifiedOffset 226, 37 lines modified
225 </li>226 </li>
226 </ul>227 </ul>
227 </li>228 </li>
228 </ul>229 </ul>
  
229 ··</div>230 ··</div>
230 ··<div>231 ··<div>
231 ····<h4>Previous·topic</h4>232 ····<h4>Argomento·precedente</h4>
232 ····<p·class="topless"><a·href="class-based-views/flattened-index.html"233 ····<p·class="topless"><a·href="class-based-views/flattened-index.html"
233 ··························title="previous·chapter">Class-based·generic·views·-·flattened·index</a></p>234 ··························title="capitolo·precedente">Class-based·generic·views·-·flattened·index</a></p>
234 ··</div>235 ··</div>
235 ··<div>236 ··<div>
236 ····<h4>Next·topic</h4>237 ····<h4>Argomento·successivo</h4>
237 ····<p·class="topless"><a·href="contrib/index.html"238 ····<p·class="topless"><a·href="contrib/index.html"
238 ··························title="next·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages</a></p>239 ··························title="capitolo·successivo"><code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages</a></p>
239 ··</div>240 ··</div>
240 <search·id="searchbox"·style="display:·none"·role="search">241 <search·id="searchbox"·style="display:·none"·role="search">
241 ··<h3·id="searchlabel">Quick·search</h3>242 ··<h3·id="searchlabel">Ricerca·veloce</h3>
242 ····<div·class="searchformwrapper">243 ····<div·class="searchformwrapper">
243 ····<form·class="search"·action="../search.html"·method="get">244 ····<form·class="search"·action="../search.html"·method="get">
244 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>245 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
245 ······<input·type="submit"·value="Go"·/>246 ······<input·type="submit"·value="Vai"·/>
246 ····</form>247 ····</form>
247 ····</div>248 ····</div>
248 </search>249 </search>
249 <script>document.getElementById('searchbox').style.display·=·"block"</script>250 <script>document.getElementById('searchbox').style.display·=·"block"</script>
250 ········</div>251 ········</div>
251 ······</div>252 ······</div>
252 ··············<h3>Last·update:</h3>253 ··············<h3>Last·update:</h3>
253 ··············<p·class="topless">Sep·03,·2024</p>254 ··············<p·class="topless">set·03,·2024</p>
254 ··········</div>255 ··········</div>
255 ········256 ········
256 ······257 ······
257 ····</div>258 ····</div>
  
258 ····<div·id="ft">259 ····<div·id="ft">
259 ······<div·class="nav">260 ······<div·class="nav">
4.66 KB
html2text {}
Max HTML report size reached
39.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/admin/actions.html
Max HTML report size reached
8.88 KB
./usr/share/doc/python-django-doc/html/ref/contrib/admin/admindocs.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·Django·admin·documentation·generator·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·Django·admin·documentation·generator·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="JavaScript·customizations·in·the·admin"·href="javascript.html"·/>15 ····<link·rel="next"·title="JavaScript·customizations·in·the·admin"·href="javascript.html"·/>
15 ····<link·rel="prev"·title="ModelAdmin·List·Filters"·href="filters.html"·/>16 ····<link·rel="prev"·title="ModelAdmin·List·Filters"·href="filters.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 15 lines modifiedOffset 95, 15 lines modified
94 <code·class="docutils·literal·notranslate"><span·class="pre">'admin/'</span></code>·entry,·so·that·requests·to·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/doc/</span></code>·don’t·get95 <code·class="docutils·literal·notranslate"><span·class="pre">'admin/'</span></code>·entry,·so·that·requests·to·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/doc/</span></code>·don’t·get
95 handled·by·the·latter·entry.</p></li>96 handled·by·the·latter·entry.</p></li>
96 <li><p>Install·the·docutils·Python·module·(<a·class="reference·external"·href="https://docutils.sourceforge.io/">https://docutils.sourceforge.io/</a>).</p></li>97 <li><p>Install·the·docutils·Python·module·(<a·class="reference·external"·href="https://docutils.sourceforge.io/">https://docutils.sourceforge.io/</a>).</p></li>
97 <li><p><strong>Optional:</strong>·Using·the·admindocs·bookmarklets·requires98 <li><p><strong>Optional:</strong>·Using·the·admindocs·bookmarklets·requires
98 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs.middleware.XViewMiddleware</span></code>·to·be·installed.</p></li>99 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs.middleware.XViewMiddleware</span></code>·to·be·installed.</p></li>
99 </ul>100 </ul>
100 <p>Once·those·steps·are·complete,·you·can·start·browsing·the·documentation·by101 <p>Once·those·steps·are·complete,·you·can·start·browsing·the·documentation·by
101 going·to·your·admin·interface·and·clicking·the·Documentation·link·in·the102 going·to·your·admin·interface·and·clicking·the·«Documentation»·link·in·the
102 upper·right·of·the·page.</p>103 upper·right·of·the·page.</p>
103 </section>104 </section>
104 <section·id="s-documentation-helpers">105 <section·id="s-documentation-helpers">
105 <span·id="documentation-helpers"></span><h2>Documentation·helpers<a·class="headerlink"·href="#documentation-helpers"·title="Link·to·this·heading">¶</a></h2>106 <span·id="documentation-helpers"></span><h2>Documentation·helpers<a·class="headerlink"·href="#documentation-helpers"·title="Link·to·this·heading">¶</a></h2>
106 <p>The·following·special·markup·can·be·used·in·your·docstrings·to·easily·create107 <p>The·following·special·markup·can·be·used·in·your·docstrings·to·easily·create
107 hyperlinks·to·other·components:</p>108 hyperlinks·to·other·components:</p>
108 <table·class="docutils">109 <table·class="docutils">
Offset 247, 37 lines modifiedOffset 248, 37 lines modified
247 <li><a·class="reference·internal"·href="#included-bookmarklets">Included·Bookmarklets</a></li>248 <li><a·class="reference·internal"·href="#included-bookmarklets">Included·Bookmarklets</a></li>
248 </ul>249 </ul>
249 </li>250 </li>
250 </ul>251 </ul>
  
251 ··</div>252 ··</div>
252 ··<div>253 ··<div>
253 ····<h4>Previous·topic</h4>254 ····<h4>Argomento·precedente</h4>
254 ····<p·class="topless"><a·href="filters.html"255 ····<p·class="topless"><a·href="filters.html"
255 ··························title="previous·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·List·Filters</a></p>256 ··························title="capitolo·precedente"><code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·List·Filters</a></p>
256 ··</div>257 ··</div>
257 ··<div>258 ··<div>
258 ····<h4>Next·topic</h4>259 ····<h4>Argomento·successivo</h4>
259 ····<p·class="topless"><a·href="javascript.html"260 ····<p·class="topless"><a·href="javascript.html"
260 ··························title="next·chapter">JavaScript·customizations·in·the·admin</a></p>261 ··························title="capitolo·successivo">JavaScript·customizations·in·the·admin</a></p>
261 ··</div>262 ··</div>
262 <search·id="searchbox"·style="display:·none"·role="search">263 <search·id="searchbox"·style="display:·none"·role="search">
263 ··<h3·id="searchlabel">Quick·search</h3>264 ··<h3·id="searchlabel">Ricerca·veloce</h3>
264 ····<div·class="searchformwrapper">265 ····<div·class="searchformwrapper">
265 ····<form·class="search"·action="../../../search.html"·method="get">266 ····<form·class="search"·action="../../../search.html"·method="get">
266 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>267 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
267 ······<input·type="submit"·value="Go"·/>268 ······<input·type="submit"·value="Vai"·/>
268 ····</form>269 ····</form>
269 ····</div>270 ····</div>
270 </search>271 </search>
271 <script>document.getElementById('searchbox').style.display·=·"block"</script>272 <script>document.getElementById('searchbox').style.display·=·"block"</script>
272 ········</div>273 ········</div>
273 ······</div>274 ······</div>
274 ··············<h3>Last·update:</h3>275 ··············<h3>Last·update:</h3>
275 ··············<p·class="topless">Sep·03,·2024</p>276 ··············<p·class="topless">set·03,·2024</p>
276 ··········</div>277 ··········</div>
277 ········278 ········
278 ······279 ······
279 ····</div>280 ····</div>
  
280 ····<div·id="ft">281 ····<div·id="ft">
281 ······<div·class="nav">282 ······<div·class="nav">
3.5 KB
html2text {}
Max HTML report size reached
11.2 KB
./usr/share/doc/python-django-doc/html/ref/contrib/admin/filters.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>ModelAdmin·List·Filters·&#8212;·Django·4.2.16·documentation</title>6 ····<title>ModelAdmin·List·Filters·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="The·Django·admin·documentation·generator"·href="admindocs.html"·/>15 ····<link·rel="next"·title="The·Django·admin·documentation·generator"·href="admindocs.html"·/>
15 ····<link·rel="prev"·title="Admin·actions"·href="actions.html"·/>16 ····<link·rel="prev"·title="Admin·actions"·href="actions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 164, 15 lines modifiedOffset 165, 15 lines modified
  
  
164 <span·class="k">class</span>·<span·class="nc">PersonAdmin</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">ModelAdmin</span><span·class="p">):</span>165 <span·class="k">class</span>·<span·class="nc">PersonAdmin</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">ModelAdmin</span><span·class="p">):</span>
165 ····<span·class="n">list_filter</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">DecadeBornListFilter</span><span·class="p">]</span>166 ····<span·class="n">list_filter</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">DecadeBornListFilter</span><span·class="p">]</span>
166 </pre></div>167 </pre></div>
167 </div>168 </div>
168 <div·class="admonition·note">169 <div·class="admonition·note">
169 <p·class="admonition-title">Note</p>170 <p·class="admonition-title">Nota</p>
170 <p>As·a·convenience,·the·<code·class="docutils·literal·notranslate"><span·class="pre">HttpRequest</span></code>·object·is·passed·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">lookups</span></code>171 <p>As·a·convenience,·the·<code·class="docutils·literal·notranslate"><span·class="pre">HttpRequest</span></code>·object·is·passed·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">lookups</span></code>
171 and·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·methods,·for·example:</p>172 and·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·methods,·for·example:</p>
172 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">AuthDecadeBornListFilter</span><span·class="p">(</span><span·class="n">DecadeBornListFilter</span><span·class="p">):</span>173 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">AuthDecadeBornListFilter</span><span·class="p">(</span><span·class="n">DecadeBornListFilter</span><span·class="p">):</span>
173 ····<span·class="k">def</span>·<span·class="nf">lookups</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">):</span>174 ····<span·class="k">def</span>·<span·class="nf">lookups</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">):</span>
174 ········<span·class="k">if</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span><span·class="o">.</span><span·class="n">is_superuser</span><span·class="p">:</span>175 ········<span·class="k">if</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">user</span><span·class="o">.</span><span·class="n">is_superuser</span><span·class="p">:</span>
175 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">lookups</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">)</span>176 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">lookups</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">)</span>
  
Offset 258, 15 lines modifiedOffset 259, 15 lines modified
258 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">,</span>·<span·class="n">field_path</span><span·class="p">)</span>259 ········<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="fm">__init__</span><span·class="p">(</span><span·class="n">field</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">params</span><span·class="p">,</span>·<span·class="n">model</span><span·class="p">,</span>·<span·class="n">model_admin</span><span·class="p">,</span>·<span·class="n">field_path</span><span·class="p">)</span>
  
259 ····<span·class="k">def</span>·<span·class="nf">expected_parameters</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>260 ····<span·class="k">def</span>·<span·class="nf">expected_parameters</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
260 ········<span·class="k">return</span>·<span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lookup_kwarg</span><span·class="p">]</span>261 ········<span·class="k">return</span>·<span·class="p">[</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">lookup_kwarg</span><span·class="p">]</span>
261 </pre></div>262 </pre></div>
262 </div>263 </div>
263 <div·class="admonition·note">264 <div·class="admonition·note">
264 <p·class="admonition-title">Note</p>265 <p·class="admonition-title">Nota</p>
265 <p>The·<a·class="reference·internal"·href="../contenttypes.html#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>·field·is266 <p>The·<a·class="reference·internal"·href="../contenttypes.html#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>·field·is
266 not·supported.</p>267 not·supported.</p>
267 </div>268 </div>
268 <p>List·filters·typically·appear·only·if·the·filter·has·more·than·one·choice.·A269 <p>List·filters·typically·appear·only·if·the·filter·has·more·than·one·choice.·A
269 filter’s·<code·class="docutils·literal·notranslate"><span·class="pre">has_output()</span></code>·method·controls·whether·or·not·it·appears.</p>270 filter’s·<code·class="docutils·literal·notranslate"><span·class="pre">has_output()</span></code>·method·controls·whether·or·not·it·appears.</p>
270 <p>It·is·possible·to·specify·a·custom·template·for·rendering·a·list·filter:</p>271 <p>It·is·possible·to·specify·a·custom·template·for·rendering·a·list·filter:</p>
271 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">FilterWithCustomTemplate</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">SimpleListFilter</span><span·class="p">):</span>272 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">FilterWithCustomTemplate</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">SimpleListFilter</span><span·class="p">):</span>
Offset 297, 37 lines modifiedOffset 298, 37 lines modified
297 <li><a·class="reference·internal"·href="#using-a-field-name-and-an-explicit-fieldlistfilter">Using·a·field·name·and·an·explicit·<code·class="docutils·literal·notranslate"><span·class="pre">FieldListFilter</span></code></a></li>298 <li><a·class="reference·internal"·href="#using-a-field-name-and-an-explicit-fieldlistfilter">Using·a·field·name·and·an·explicit·<code·class="docutils·literal·notranslate"><span·class="pre">FieldListFilter</span></code></a></li>
298 </ul>299 </ul>
299 </li>300 </li>
300 </ul>301 </ul>
  
301 ··</div>302 ··</div>
302 ··<div>303 ··<div>
303 ····<h4>Previous·topic</h4>304 ····<h4>Argomento·precedente</h4>
304 ····<p·class="topless"><a·href="actions.html"305 ····<p·class="topless"><a·href="actions.html"
305 ··························title="previous·chapter">Admin·actions</a></p>306 ··························title="capitolo·precedente">Admin·actions</a></p>
306 ··</div>307 ··</div>
307 ··<div>308 ··<div>
308 ····<h4>Next·topic</h4>309 ····<h4>Argomento·successivo</h4>
309 ····<p·class="topless"><a·href="admindocs.html"310 ····<p·class="topless"><a·href="admindocs.html"
310 ··························title="next·chapter">The·Django·admin·documentation·generator</a></p>311 ··························title="capitolo·successivo">The·Django·admin·documentation·generator</a></p>
311 ··</div>312 ··</div>
312 <search·id="searchbox"·style="display:·none"·role="search">313 <search·id="searchbox"·style="display:·none"·role="search">
313 ··<h3·id="searchlabel">Quick·search</h3>314 ··<h3·id="searchlabel">Ricerca·veloce</h3>
314 ····<div·class="searchformwrapper">315 ····<div·class="searchformwrapper">
315 ····<form·class="search"·action="../../../search.html"·method="get">316 ····<form·class="search"·action="../../../search.html"·method="get">
316 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>317 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
317 ······<input·type="submit"·value="Go"·/>318 ······<input·type="submit"·value="Vai"·/>
318 ····</form>319 ····</form>
319 ····</div>320 ····</div>
320 </search>321 </search>
321 <script>document.getElementById('searchbox').style.display·=·"block"</script>322 <script>document.getElementById('searchbox').style.display·=·"block"</script>
322 ········</div>323 ········</div>
323 ······</div>324 ······</div>
324 ··············<h3>Last·update:</h3>325 ··············<h3>Last·update:</h3>
325 ··············<p·class="topless">Sep·03,·2024</p>326 ··············<p·class="topless">set·03,·2024</p>
326 ··········</div>327 ··········</div>
327 ········328 ········
328 ······329 ······
329 ····</div>330 ····</div>
  
330 ····<div·id="ft">331 ····<div·id="ft">
331 ······<div·class="nav">332 ······<div·class="nav">
3.51 KB
html2text {}
Max HTML report size reached
247 KB
./usr/share/doc/python-django-doc/html/ref/contrib/admin/index.html
Max HTML report size reached
6.32 KB
./usr/share/doc/python-django-doc/html/ref/contrib/admin/javascript.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>JavaScript·customizations·in·the·admin·&#8212;·Django·4.2.16·documentation</title>6 ····<title>JavaScript·customizations·in·the·admin·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="django.contrib.auth"·href="../auth.html"·/>15 ····<link·rel="next"·title="django.contrib.auth"·href="../auth.html"·/>
15 ····<link·rel="prev"·title="The·Django·admin·documentation·generator"·href="admindocs.html"·/>16 ····<link·rel="prev"·title="The·Django·admin·documentation·generator"·href="admindocs.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 168, 37 lines modifiedOffset 169, 37 lines modified
168 </li>169 </li>
169 </ul>170 </ul>
170 </li>171 </li>
171 </ul>172 </ul>
  
172 ··</div>173 ··</div>
173 ··<div>174 ··<div>
174 ····<h4>Previous·topic</h4>175 ····<h4>Argomento·precedente</h4>
175 ····<p·class="topless"><a·href="admindocs.html"176 ····<p·class="topless"><a·href="admindocs.html"
176 ··························title="previous·chapter">The·Django·admin·documentation·generator</a></p>177 ··························title="capitolo·precedente">The·Django·admin·documentation·generator</a></p>
177 ··</div>178 ··</div>
178 ··<div>179 ··<div>
179 ····<h4>Next·topic</h4>180 ····<h4>Argomento·successivo</h4>
180 ····<p·class="topless"><a·href="../auth.html"181 ····<p·class="topless"><a·href="../auth.html"
181 ··························title="next·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code></a></p>182 ··························title="capitolo·successivo"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code></a></p>
182 ··</div>183 ··</div>
183 <search·id="searchbox"·style="display:·none"·role="search">184 <search·id="searchbox"·style="display:·none"·role="search">
184 ··<h3·id="searchlabel">Quick·search</h3>185 ··<h3·id="searchlabel">Ricerca·veloce</h3>
185 ····<div·class="searchformwrapper">186 ····<div·class="searchformwrapper">
186 ····<form·class="search"·action="../../../search.html"·method="get">187 ····<form·class="search"·action="../../../search.html"·method="get">
187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
188 ······<input·type="submit"·value="Go"·/>189 ······<input·type="submit"·value="Vai"·/>
189 ····</form>190 ····</form>
190 ····</div>191 ····</div>
191 </search>192 </search>
192 <script>document.getElementById('searchbox').style.display·=·"block"</script>193 <script>document.getElementById('searchbox').style.display·=·"block"</script>
193 ········</div>194 ········</div>
194 ······</div>195 ······</div>
195 ··············<h3>Last·update:</h3>196 ··············<h3>Last·update:</h3>
196 ··············<p·class="topless">Sep·03,·2024</p>197 ··············<p·class="topless">set·03,·2024</p>
197 ··········</div>198 ··········</div>
198 ········199 ········
199 ······200 ······
200 ····</div>201 ····</div>
  
201 ····<div·id="ft">202 ····<div·id="ft">
202 ······<div·class="nav">203 ······<div·class="nav">
2.29 KB
html2text {}
Max HTML report size reached
12.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/auth.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>django.contrib.auth·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.auth·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·contenttypes·framework"·href="contenttypes.html"·/>15 ····<link·rel="next"·title="The·contenttypes·framework"·href="contenttypes.html"·/>
15 ····<link·rel="prev"·title="JavaScript·customizations·in·the·admin"·href="admin/javascript.html"·/>16 ····<link·rel="prev"·title="JavaScript·customizations·in·the·admin"·href="admin/javascript.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 600, 15 lines modifiedOffset 601, 15 lines modified
600 <span·class="sig-name·descname"><span·class="pre">user_login_failed</span></span><a·class="headerlink"·href="#django.contrib.auth.signals.user_login_failed"·title="Link·to·this·definition">¶</a></dt>601 <span·class="sig-name·descname"><span·class="pre">user_login_failed</span></span><a·class="headerlink"·href="#django.contrib.auth.signals.user_login_failed"·title="Link·to·this·definition">¶</a></dt>
601 <dd><p>Sent·when·the·user·failed·to·login·successfully</p>602 <dd><p>Sent·when·the·user·failed·to·login·successfully</p>
602 <dl·class="simple">603 <dl·class="simple">
603 <dt><code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code></dt><dd><p>The·name·of·the·module·used·for·authentication.</p>604 <dt><code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code></dt><dd><p>The·name·of·the·module·used·for·authentication.</p>
604 </dd>605 </dd>
605 <dt><code·class="docutils·literal·notranslate"><span·class="pre">credentials</span></code></dt><dd><p>A·dictionary·of·keyword·arguments·containing·the·user·credentials·that·were606 <dt><code·class="docutils·literal·notranslate"><span·class="pre">credentials</span></code></dt><dd><p>A·dictionary·of·keyword·arguments·containing·the·user·credentials·that·were
606 passed·to·<a·class="reference·internal"·href="../../topics/auth/default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">authenticate()</span></code></a>·or·your·own·custom607 passed·to·<a·class="reference·internal"·href="../../topics/auth/default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">authenticate()</span></code></a>·or·your·own·custom
607 authentication·backend.·Credentials·matching·a·set·of·sensitive·patterns,608 authentication·backend.·Credentials·matching·a·set·of·sensitive·patterns,
608 (including·password)·will·not·be·sent·in·the·clear·as·part·of·the·signal.</p>609 (including·password)·will·not·be·sent·in·the·clear·as·part·of·the·signal.</p>
609 </dd>610 </dd>
610 <dt><code·class="docutils·literal·notranslate"><span·class="pre">request</span></code></dt><dd><p>The·<a·class="reference·internal"·href="../request-response.html#django.http.HttpRequest"·title="django.http.HttpRequest"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpRequest</span></code></a>·object,·if·one·was·provided·to611 <dt><code·class="docutils·literal·notranslate"><span·class="pre">request</span></code></dt><dd><p>The·<a·class="reference·internal"·href="../request-response.html#django.http.HttpRequest"·title="django.http.HttpRequest"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpRequest</span></code></a>·object,·if·one·was·provided·to
611 <a·class="reference·internal"·href="../../topics/auth/default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">authenticate()</span></code></a>.</p>612 <a·class="reference·internal"·href="../../topics/auth/default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">authenticate()</span></code></a>.</p>
612 </dd>613 </dd>
613 </dl>614 </dl>
614 </dd></dl>615 </dd></dl>
Offset 848, 15 lines modifiedOffset 849, 15 lines modified
  
848 </section>849 </section>
849 </section>850 </section>
850 <section·id="s-utility-functions">851 <section·id="s-utility-functions">
851 <span·id="utility-functions"></span><h2>Utility·functions<a·class="headerlink"·href="#utility-functions"·title="Link·to·this·heading">¶</a></h2>852 <span·id="utility-functions"></span><h2>Utility·functions<a·class="headerlink"·href="#utility-functions"·title="Link·to·this·heading">¶</a></h2>
852 <dl·class="py·function">853 <dl·class="py·function">
853 <dt·class="sig·sig-object·py"·id="django.contrib.auth.get_user">854 <dt·class="sig·sig-object·py"·id="django.contrib.auth.get_user">
854 <span·class="sig-name·descname"><span·class="pre">get_user</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/auth.html#get_user"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.auth.get_user"·title="Link·to·this·definition">¶</a></dt>855 <span·class="sig-name·descname"><span·class="pre">get_user</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/auth.html#get_user"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.auth.get_user"·title="Link·to·this·definition">¶</a></dt>
855 <dd><p>Returns·the·user·model·instance·associated·with·the·given·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>’s856 <dd><p>Returns·the·user·model·instance·associated·with·the·given·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>’s
856 session.</p>857 session.</p>
857 <p>It·checks·if·the·authentication·backend·stored·in·the·session·is·present·in858 <p>It·checks·if·the·authentication·backend·stored·in·the·session·is·present·in
858 <a·class="reference·internal"·href="../settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>.·If·so,·it·uses·the·backend’s859 <a·class="reference·internal"·href="../settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>.·If·so,·it·uses·the·backend’s
859 <code·class="docutils·literal·notranslate"><span·class="pre">get_user()</span></code>·method·to·retrieve·the·user·model·instance·and·then·verifies860 <code·class="docutils·literal·notranslate"><span·class="pre">get_user()</span></code>·method·to·retrieve·the·user·model·instance·and·then·verifies
860 the·session·by·calling·the·user·model’s861 the·session·by·calling·the·user·model’s
861 <a·class="reference·internal"·href="../../topics/auth/customizing.html#django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash"·title="django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_session_auth_hash()</span></code></a>862 <a·class="reference·internal"·href="../../topics/auth/customizing.html#django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash"·title="django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_session_auth_hash()</span></code></a>
Offset 916, 37 lines modifiedOffset 917, 37 lines modified
916 <li><a·class="reference·internal"·href="#utility-functions">Utility·functions</a></li>917 <li><a·class="reference·internal"·href="#utility-functions">Utility·functions</a></li>
917 </ul>918 </ul>
918 </li>919 </li>
919 </ul>920 </ul>
  
920 ··</div>921 ··</div>
921 ··<div>922 ··<div>
922 ····<h4>Previous·topic</h4>923 ····<h4>Argomento·precedente</h4>
923 ····<p·class="topless"><a·href="admin/javascript.html"924 ····<p·class="topless"><a·href="admin/javascript.html"
924 ··························title="previous·chapter">JavaScript·customizations·in·the·admin</a></p>925 ··························title="capitolo·precedente">JavaScript·customizations·in·the·admin</a></p>
925 ··</div>926 ··</div>
926 ··<div>927 ··<div>
927 ····<h4>Next·topic</h4>928 ····<h4>Argomento·successivo</h4>
928 ····<p·class="topless"><a·href="contenttypes.html"929 ····<p·class="topless"><a·href="contenttypes.html"
929 ··························title="next·chapter">The·contenttypes·framework</a></p>930 ··························title="capitolo·successivo">The·contenttypes·framework</a></p>
930 ··</div>931 ··</div>
931 <search·id="searchbox"·style="display:·none"·role="search">932 <search·id="searchbox"·style="display:·none"·role="search">
932 ··<h3·id="searchlabel">Quick·search</h3>933 ··<h3·id="searchlabel">Ricerca·veloce</h3>
933 ····<div·class="searchformwrapper">934 ····<div·class="searchformwrapper">
934 ····<form·class="search"·action="../../search.html"·method="get">935 ····<form·class="search"·action="../../search.html"·method="get">
935 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>936 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
936 ······<input·type="submit"·value="Go"·/>937 ······<input·type="submit"·value="Vai"·/>
937 ····</form>938 ····</form>
938 ····</div>939 ····</div>
939 </search>940 </search>
940 <script>document.getElementById('searchbox').style.display·=·"block"</script>941 <script>document.getElementById('searchbox').style.display·=·"block"</script>
941 ········</div>942 ········</div>
942 ······</div>943 ······</div>
943 ··············<h3>Last·update:</h3>944 ··············<h3>Last·update:</h3>
944 ··············<p·class="topless">Sep·03,·2024</p>945 ··············<p·class="topless">set·03,·2024</p>
945 ··········</div>946 ··········</div>
946 ········947 ········
947 ······948 ······
948 ····</div>949 ····</div>
  
949 ····<div·id="ft">950 ····<div·id="ft">
950 ······<div·class="nav">951 ······<div·class="nav">
4.56 KB
html2text {}
Max HTML report size reached
30.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/contenttypes.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·contenttypes·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·contenttypes·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·flatpages·app"·href="flatpages.html"·/>15 ····<link·rel="next"·title="The·flatpages·app"·href="flatpages.html"·/>
15 ····<link·rel="prev"·title="django.contrib.auth"·href="auth.html"·/>16 ····<link·rel="prev"·title="django.contrib.auth"·href="auth.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 from·those·models.·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>97 from·those·models.·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>
97 also·has·a·<a·class="reference·internal"·href="../../topics/db/managers.html#custom-managers"><span·class="std·std-ref">custom·manager</span></a>·that·adds·methods·for98 also·has·a·<a·class="reference·internal"·href="../../topics/db/managers.html#custom-managers"><span·class="std·std-ref">custom·manager</span></a>·that·adds·methods·for
98 working·with·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·and·for99 working·with·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·and·for
99 obtaining·instances·of·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>100 obtaining·instances·of·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>
100 for·a·particular·model.</p>101 for·a·particular·model.</p>
101 <p>Relations·between·your·models·and102 <p>Relations·between·your·models·and
102 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·can·also·be·used·to103 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·can·also·be·used·to
103 enable·generic·relationships·between·an·instance·of·one·of·your104 enable·«generic»·relationships·between·an·instance·of·one·of·your
104 models·and·instances·of·any·model·you·have·installed.</p>105 models·and·instances·of·any·model·you·have·installed.</p>
105 </section>106 </section>
106 <section·id="s-installing-the-contenttypes-framework">107 <section·id="s-installing-the-contenttypes-framework">
107 <span·id="installing-the-contenttypes-framework"></span><h2>Installing·the·contenttypes·framework<a·class="headerlink"·href="#installing-the-contenttypes-framework"·title="Link·to·this·heading">¶</a></h2>108 <span·id="installing-the-contenttypes-framework"></span><h2>Installing·the·contenttypes·framework<a·class="headerlink"·href="#installing-the-contenttypes-framework"·title="Link·to·this·heading">¶</a></h2>
108 <p>The·contenttypes·framework·is·included·in·the·default109 <p>The·contenttypes·framework·is·included·in·the·default
109 <a·class="reference·internal"·href="../settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·list·created·by·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span>·<span·class="pre">startproject</span></code>,110 <a·class="reference·internal"·href="../settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·list·created·by·<code·class="docutils·literal·notranslate"><span·class="pre">django-admin</span>·<span·class="pre">startproject</span></code>,
110 but·if·you’ve·removed·it·or·if·you·manually·set·up·your111 but·if·you’ve·removed·it·or·if·you·manually·set·up·your
Offset 230, 15 lines modifiedOffset 231, 15 lines modified
230 <p>Several·of·Django’s·bundled·applications·make·use·of·the·latter·technique.231 <p>Several·of·Django’s·bundled·applications·make·use·of·the·latter·technique.
231 For·example,232 For·example,
232 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">the</span>·<span·class="pre">permissions</span>·<span·class="pre">system</span></code></a>·in233 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">the</span>·<span·class="pre">permissions</span>·<span·class="pre">system</span></code></a>·in
233 Django’s·authentication·framework·uses·a234 Django’s·authentication·framework·uses·a
234 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·model·with·a·foreign235 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·model·with·a·foreign
235 key·to·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>;·this·lets236 key·to·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>;·this·lets
236 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·represent·concepts·like237 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·represent·concepts·like
237 can·add·blog·entry·or·can·delete·news·story.</p>238 «can·add·blog·entry»·or·«can·delete·news·story».</p>
238 <section·id="s-the-contenttypemanager">239 <section·id="s-the-contenttypemanager">
239 <span·id="the-contenttypemanager"></span><h3>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code><a·class="headerlink"·href="#the-contenttypemanager"·title="Link·to·this·heading">¶</a></h3>240 <span·id="the-contenttypemanager"></span><h3>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code><a·class="headerlink"·href="#the-contenttypemanager"·title="Link·to·this·heading">¶</a></h3>
240 <dl·class="py·class">241 <dl·class="py·class">
241 <dt·class="sig·sig-object·py"·id="django.contrib.contenttypes.models.ContentTypeManager">242 <dt·class="sig·sig-object·py"·id="django.contrib.contenttypes.models.ContentTypeManager">
242 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ContentTypeManager</span></span><a·class="headerlink"·href="#django.contrib.contenttypes.models.ContentTypeManager"·title="Link·to·this·definition">¶</a></dt>243 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ContentTypeManager</span></span><a·class="headerlink"·href="#django.contrib.contenttypes.models.ContentTypeManager"·title="Link·to·this·definition">¶</a></dt>
243 <dd><p><a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·also·has·a·custom244 <dd><p><a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·also·has·a·custom
244 manager,·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentTypeManager"·title="django.contrib.contenttypes.models.ContentTypeManager"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code></a>,245 manager,·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentTypeManager"·title="django.contrib.contenttypes.models.ContentTypeManager"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code></a>,
Offset 314, 15 lines modifiedOffset 315, 15 lines modified
314 <span·id="s-module-django.contrib.contenttypes.fields"></span><span·id="s-id1"></span><span·id="generic-relations"></span><span·id="module-django.contrib.contenttypes.fields"></span><span·id="id1"></span><h2>Generic·relations<a·class="headerlink"·href="#generic-relations"·title="Link·to·this·heading">¶</a></h2>315 <span·id="s-module-django.contrib.contenttypes.fields"></span><span·id="s-id1"></span><span·id="generic-relations"></span><span·id="module-django.contrib.contenttypes.fields"></span><span·id="id1"></span><h2>Generic·relations<a·class="headerlink"·href="#generic-relations"·title="Link·to·this·heading">¶</a></h2>
315 <p>Adding·a·foreign·key·from·one·of·your·own·models·to316 <p>Adding·a·foreign·key·from·one·of·your·own·models·to
316 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·allows·your·model·to317 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·allows·your·model·to
317 effectively·tie·itself·to·another·model·class,·as·in·the·example·of·the318 effectively·tie·itself·to·another·model·class,·as·in·the·example·of·the
318 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·model·above.·But·it’s·possible319 <a·class="reference·internal"·href="auth.html#django.contrib.auth.models.Permission"·title="django.contrib.auth.models.Permission"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Permission</span></code></a>·model·above.·But·it’s·possible
319 to·go·one·step·further·and·use320 to·go·one·step·further·and·use
320 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·to·enable·truly321 <a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>·to·enable·truly
321 generic·(sometimes·called·polymorphic)·relationships·between·models.</p>322 generic·(sometimes·called·«polymorphic»)·relationships·between·models.</p>
322 <p>For·example,·it·could·be·used·for·a·tagging·system·like·so:</p>323 <p>For·example,·it·could·be·used·for·a·tagging·system·like·so:</p>
323 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.contenttypes.fields</span>·<span·class="kn">import</span>·<span·class="n">GenericForeignKey</span>324 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.contenttypes.fields</span>·<span·class="kn">import</span>·<span·class="n">GenericForeignKey</span>
324 <span·class="kn">from</span>·<span·class="nn">django.contrib.contenttypes.models</span>·<span·class="kn">import</span>·<span·class="n">ContentType</span>325 <span·class="kn">from</span>·<span·class="nn">django.contrib.contenttypes.models</span>·<span·class="kn">import</span>·<span·class="n">ContentType</span>
325 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>326 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
  
  
326 <span·class="k">class</span>·<span·class="nc">TaggedItem</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>327 <span·class="k">class</span>·<span·class="nc">TaggedItem</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
Offset 336, 38 lines modifiedOffset 337, 38 lines modified
  
336 ····<span·class="k">class</span>·<span·class="nc">Meta</span><span·class="p">:</span>337 ····<span·class="k">class</span>·<span·class="nc">Meta</span><span·class="p">:</span>
337 ········<span·class="n">indexes</span>·<span·class="o">=</span>·<span·class="p">[</span>338 ········<span·class="n">indexes</span>·<span·class="o">=</span>·<span·class="p">[</span>
338 ············<span·class="n">models</span><span·class="o">.</span><span·class="n">Index</span><span·class="p">(</span><span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;content_type&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;object_id&quot;</span><span·class="p">]),</span>339 ············<span·class="n">models</span><span·class="o">.</span><span·class="n">Index</span><span·class="p">(</span><span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;content_type&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;object_id&quot;</span><span·class="p">]),</span>
339 ········<span·class="p">]</span>340 ········<span·class="p">]</span>
340 </pre></div>341 </pre></div>
341 </div>342 </div>
342 <p>A·normal·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·can·only·point343 <p>A·normal·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·can·only·«point
343 to·one·other·model,·which·means·that·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">TaggedItem</span></code>·model·used·a344 to»·one·other·model,·which·means·that·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">TaggedItem</span></code>·model·used·a
344 <a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·it·would·have·to345 <a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·it·would·have·to
345 choose·one·and·only·one·model·to·store·tags·for.·The·contenttypes346 choose·one·and·only·one·model·to·store·tags·for.·The·contenttypes
346 application·provides·a·special·field·type·(<code·class="docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code>)·which347 application·provides·a·special·field·type·(<code·class="docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code>)·which
347 works·around·this·and·allows·the·relationship·to·be·with·any348 works·around·this·and·allows·the·relationship·to·be·with·any
348 model:</p>349 model:</p>
349 <dl·class="py·class">350 <dl·class="py·class">
350 <dt·class="sig·sig-object·py"·id="django.contrib.contenttypes.fields.GenericForeignKey">351 <dt·class="sig·sig-object·py"·id="django.contrib.contenttypes.fields.GenericForeignKey">
351 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GenericForeignKey</span></span><a·class="headerlink"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="Link·to·this·definition">¶</a></dt>352 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GenericForeignKey</span></span><a·class="headerlink"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="Link·to·this·definition">¶</a></dt>
352 <dd><p>There·are·three·parts·to·setting·up·a353 <dd><p>There·are·three·parts·to·setting·up·a
353 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>:</p>354 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>:</p>
354 <ol·class="arabic·simple">355 <ol·class="arabic·simple">
355 <li><p>Give·your·model·a·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>356 <li><p>Give·your·model·a·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>
356 to·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>.·The·usual357 to·<a·class="reference·internal"·href="#django.contrib.contenttypes.models.ContentType"·title="django.contrib.contenttypes.models.ContentType"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ContentType</span></code></a>.·The·usual
357 name·for·this·field·is·content_type.</p></li>358 name·for·this·field·is·«content_type».</p></li>
358 <li><p>Give·your·model·a·field·that·can·store·primary·key·values·from·the359 <li><p>Give·your·model·a·field·that·can·store·primary·key·values·from·the
359 models·you’ll·be·relating·to.·For·most·models,·this·means·a360 models·you’ll·be·relating·to.·For·most·models,·this·means·a
360 <a·class="reference·internal"·href="../models/fields.html#django.db.models.PositiveIntegerField"·title="django.db.models.PositiveIntegerField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PositiveIntegerField</span></code></a>.·The·usual·name361 <a·class="reference·internal"·href="../models/fields.html#django.db.models.PositiveIntegerField"·title="django.db.models.PositiveIntegerField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PositiveIntegerField</span></code></a>.·The·usual·name
361 for·this·field·is·object_id.</p></li>362 for·this·field·is·«object_id».</p></li>
362 <li><p>Give·your·model·a363 <li><p>Give·your·model·a
363 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>,·and364 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>,·and
364 pass·it·the·names·of·the·two·fields·described·above.·If·these·fields365 pass·it·the·names·of·the·two·fields·described·above.·If·these·fields
365 are·named·content_type·and·object_id,·you·can·omit·this··those366 are·named·«content_type»·and·«object_id»,·you·can·omit·this··those
366 are·the·default·field·names367 are·the·default·field·names
367 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>·will368 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>·will
368 look·for.</p></li>369 look·for.</p></li>
369 </ol>370 </ol>
370 <p>Unlike·for·the·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>,·a·database·index·is371 <p>Unlike·for·the·<a·class="reference·internal"·href="../models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>,·a·database·index·is
371 <em>not</em>·automatically·created·on·the372 <em>not</em>·automatically·created·on·the
372 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>,·so·it’s373 <a·class="reference·internal"·href="#django.contrib.contenttypes.fields.GenericForeignKey"·title="django.contrib.contenttypes.fields.GenericForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code></a>,·so·it’s
Offset 383, 23 lines modifiedOffset 384, 23 lines modified
Max diff block lines reached; 5801/20321 bytes (28.55%) of diff not shown.
10.3 KB
html2text {}
Max HTML report size reached
24.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/flatpages.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·flatpages·app·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·flatpages·app·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango"·href="gis/index.html"·/>15 ····<link·rel="next"·title="GeoDjango"·href="gis/index.html"·/>
15 ····<link·rel="prev"·title="The·contenttypes·framework"·href="contenttypes.html"·/>16 ····<link·rel="prev"·title="The·contenttypes·framework"·href="contenttypes.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 75, 19 lines modifiedOffset 76, 19 lines modified
75 ····<div·id="bd">76 ····<div·id="bd">
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-contrib-flatpages">79 ··········<div·class="yui-g"·id="ref-contrib-flatpages">
79 ············80 ············
80 ··<section·id="s-module-django.contrib.flatpages">81 ··<section·id="s-module-django.contrib.flatpages">
81 <span·id="s-the-flatpages-app"></span><span·id="module-django.contrib.flatpages"></span><span·id="the-flatpages-app"></span><h1>The·flatpages·app<a·class="headerlink"·href="#module-django.contrib.flatpages"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-the-flatpages-app"></span><span·id="module-django.contrib.flatpages"></span><span·id="the-flatpages-app"></span><h1>The·flatpages·app<a·class="headerlink"·href="#module-django.contrib.flatpages"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·comes·with·an·optional·flatpages·application.·It·lets·you·store·flat83 <p>Django·comes·with·an·optional·«flatpages»·application.·It·lets·you·store·«flat»
83 HTML·content·in·a·database·and·handles·the·management·for·you·via·Django’s84 HTML·content·in·a·database·and·handles·the·management·for·you·via·Django’s
84 admin·interface·and·a·Python·API.</p>85 admin·interface·and·a·Python·API.</p>
85 <p>A·flatpage·is·an·object·with·a·URL,·title·and·content.·Use·it·for·one-off,86 <p>A·flatpage·is·an·object·with·a·URL,·title·and·content.·Use·it·for·one-off,
86 special-case·pages,·such·as·About·or·Privacy·Policy·pages,·that·you·want·to87 special-case·pages,·such·as·«About»·or·«Privacy·Policy»·pages,·that·you·want·to
87 store·in·a·database·but·for·which·you·don’t·want·to·develop·a·custom·Django88 store·in·a·database·but·for·which·you·don’t·want·to·develop·a·custom·Django
88 application.</p>89 application.</p>
89 <p>A·flatpage·can·use·a·custom·template·or·a·default,·systemwide·flatpage90 <p>A·flatpage·can·use·a·custom·template·or·a·default,·systemwide·flatpage
90 template.·It·can·be·associated·with·one,·or·multiple,·sites.</p>91 template.·It·can·be·associated·with·one,·or·multiple,·sites.</p>
91 <p>The·content·field·may·optionally·be·left·blank·if·you·prefer·to·put·your92 <p>The·content·field·may·optionally·be·left·blank·if·you·prefer·to·put·your
92 content·in·a·custom·template.</p>93 content·in·a·custom·template.</p>
93 <section·id="s-installation">94 <section·id="s-installation">
Offset 133, 26 lines modifiedOffset 134, 26 lines modified
133 <p>There·are·several·ways·to·include·the·flat·pages·in·your·URLconf.·You·can134 <p>There·are·several·ways·to·include·the·flat·pages·in·your·URLconf.·You·can
134 dedicate·a·particular·path·to·flat·pages:</p>135 dedicate·a·particular·path·to·flat·pages:</p>
135 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>136 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
136 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;pages/&quot;</span><span·class="p">,</span>·<span·class="n">include</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.flatpages.urls&quot;</span><span·class="p">)),</span>137 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;pages/&quot;</span><span·class="p">,</span>·<span·class="n">include</span><span·class="p">(</span><span·class="s2">&quot;django.contrib.flatpages.urls&quot;</span><span·class="p">)),</span>
137 <span·class="p">]</span>138 <span·class="p">]</span>
138 </pre></div>139 </pre></div>
139 </div>140 </div>
140 <p>You·can·also·set·it·up·as·a·catchall·pattern.·In·this·case,·it·is·important141 <p>You·can·also·set·it·up·as·a·«catchall»·pattern.·In·this·case,·it·is·important
141 to·place·the·pattern·at·the·end·of·the·other·urlpatterns:</p>142 to·place·the·pattern·at·the·end·of·the·other·urlpatterns:</p>
142 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.flatpages</span>·<span·class="kn">import</span>·<span·class="n">views</span>143 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.flatpages</span>·<span·class="kn">import</span>·<span·class="n">views</span>
  
143 <span·class="c1">#·Your·other·patterns·here</span>144 <span·class="c1">#·Your·other·patterns·here</span>
144 <span·class="n">urlpatterns</span>·<span·class="o">+=</span>·<span·class="p">[</span>145 <span·class="n">urlpatterns</span>·<span·class="o">+=</span>·<span·class="p">[</span>
145 ····<span·class="n">re_path</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;^(?P&lt;url&gt;.*/)$&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">flatpage</span><span·class="p">),</span>146 ····<span·class="n">re_path</span><span·class="p">(</span><span·class="sa">r</span><span·class="s2">&quot;^(?P&lt;url&gt;.*/)$&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">flatpage</span><span·class="p">),</span>
146 <span·class="p">]</span>147 <span·class="p">]</span>
147 </pre></div>148 </pre></div>
148 </div>149 </div>
149 <div·class="admonition·warning">150 <div·class="admonition·warning">
150 <p·class="admonition-title">Warning</p>151 <p·class="admonition-title">Avvertimento</p>
151 <p>If·you·set·<a·class="reference·internal"·href="../settings.html#std-setting-APPEND_SLASH"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">APPEND_SLASH</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·you·must·remove·the·slash152 <p>If·you·set·<a·class="reference·internal"·href="../settings.html#std-setting-APPEND_SLASH"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">APPEND_SLASH</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·you·must·remove·the·slash
152 in·the·catchall·pattern·or·flatpages·without·a·trailing·slash·will·not·be153 in·the·catchall·pattern·or·flatpages·without·a·trailing·slash·will·not·be
153 matched.</p>154 matched.</p>
154 </div>155 </div>
155 <p>Another·common·setup·is·to·use·flat·pages·for·a·limited·set·of·known·pages·and156 <p>Another·common·setup·is·to·use·flat·pages·for·a·limited·set·of·known·pages·and
156 to·hard·code·the·urls,·so·you·can·reference·them·with·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·template157 to·hard·code·the·urls,·so·you·can·reference·them·with·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·template
157 tag:</p>158 tag:</p>
Offset 210, 33 lines modifiedOffset 211, 33 lines modified
210 <div·class="admonition-ensure-that-your-404-template-works·admonition">211 <div·class="admonition-ensure-that-your-404-template-works·admonition">
211 <p·class="admonition-title">Ensure·that·your·404·template·works</p>212 <p·class="admonition-title">Ensure·that·your·404·template·works</p>
212 <p>Note·that·the213 <p>Note·that·the
213 <a·class="reference·internal"·href="#django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"·title="django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FlatpageFallbackMiddleware</span></code></a>214 <a·class="reference·internal"·href="#django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"·title="django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FlatpageFallbackMiddleware</span></code></a>
214 only·steps·in·once·another·view·has·successfully·produced·a·404·response.215 only·steps·in·once·another·view·has·successfully·produced·a·404·response.
215 If·another·view·or·middleware·class·attempts·to·produce·a·404·but·ends·up216 If·another·view·or·middleware·class·attempts·to·produce·a·404·but·ends·up
216 raising·an·exception·instead,·the·response·will·become·an·HTTP·500217 raising·an·exception·instead,·the·response·will·become·an·HTTP·500
217 (Internal·Server·Error)·and·the218 («Internal·Server·Error»)·and·the
218 <a·class="reference·internal"·href="#django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"·title="django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FlatpageFallbackMiddleware</span></code></a>219 <a·class="reference·internal"·href="#django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"·title="django.contrib.flatpages.middleware.FlatpageFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FlatpageFallbackMiddleware</span></code></a>
219 will·not·attempt·to·serve·a·flat·page.</p>220 will·not·attempt·to·serve·a·flat·page.</p>
220 </div>221 </div>
221 </section>222 </section>
222 </section>223 </section>
223 <section·id="s-how-to-add-change-and-delete-flatpages">224 <section·id="s-how-to-add-change-and-delete-flatpages">
224 <span·id="how-to-add-change-and-delete-flatpages"></span><h2>How·to·add,·change·and·delete·flatpages<a·class="headerlink"·href="#how-to-add-change-and-delete-flatpages"·title="Link·to·this·heading">¶</a></h2>225 <span·id="how-to-add-change-and-delete-flatpages"></span><h2>How·to·add,·change·and·delete·flatpages<a·class="headerlink"·href="#how-to-add-change-and-delete-flatpages"·title="Link·to·this·heading">¶</a></h2>
225 <div·class="admonition·warning">226 <div·class="admonition·warning">
226 <p·class="admonition-title">Warning</p>227 <p·class="admonition-title">Avvertimento</p>
227 <p>Permissions·to·add·or·edit·flatpages·should·be·restricted·to·trusted·users.228 <p>Permissions·to·add·or·edit·flatpages·should·be·restricted·to·trusted·users.
228 Flatpages·are·defined·by·raw·HTML·and·are·<strong>not·sanitized</strong>·by·Django.·As·a229 Flatpages·are·defined·by·raw·HTML·and·are·<strong>not·sanitized</strong>·by·Django.·As·a
229 consequence,·a·malicious·flatpage·can·lead·to·various·security230 consequence,·a·malicious·flatpage·can·lead·to·various·security
230 vulnerabilities,·including·permission·escalation.</p>231 vulnerabilities,·including·permission·escalation.</p>
231 </div>232 </div>
232 <section·id="s-via-the-admin-interface">233 <section·id="s-via-the-admin-interface">
233 <span·id="s-flatpages-admin"></span><span·id="via-the-admin-interface"></span><span·id="flatpages-admin"></span><h3>Via·the·admin·interface<a·class="headerlink"·href="#via-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>234 <span·id="s-flatpages-admin"></span><span·id="via-the-admin-interface"></span><span·id="flatpages-admin"></span><h3>Via·the·admin·interface<a·class="headerlink"·href="#via-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>
234 <p>If·you’ve·activated·the·automatic·Django·admin·interface,·you·should·see·a235 <p>If·you’ve·activated·the·automatic·Django·admin·interface,·you·should·see·a
235 Flatpages·section·on·the·admin·index·page.·Edit·flatpages·as·you·edit·any236 «Flatpages»·section·on·the·admin·index·page.·Edit·flatpages·as·you·edit·any
236 other·object·in·the·system.</p>237 other·object·in·the·system.</p>
237 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">FlatPage</span></code>·model·has·an·<code·class="docutils·literal·notranslate"><span·class="pre">enable_comments</span></code>·field·that·isn’t·used·by238 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">FlatPage</span></code>·model·has·an·<code·class="docutils·literal·notranslate"><span·class="pre">enable_comments</span></code>·field·that·isn’t·used·by
238 <code·class="docutils·literal·notranslate"><span·class="pre">contrib.flatpages</span></code>,·but·that·could·be·useful·for·your·project·or·third-party239 <code·class="docutils·literal·notranslate"><span·class="pre">contrib.flatpages</span></code>,·but·that·could·be·useful·for·your·project·or·third-party
239 apps.·It·doesn’t·appear·in·the·admin·interface,·but·you·can·add·it·by240 apps.·It·doesn’t·appear·in·the·admin·interface,·but·you·can·add·it·by
240 registering·a·custom·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·for·<code·class="docutils·literal·notranslate"><span·class="pre">FlatPage</span></code>:</p>241 registering·a·custom·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·for·<code·class="docutils·literal·notranslate"><span·class="pre">FlatPage</span></code>:</p>
241 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib</span>·<span·class="kn">import</span>·<span·class="n">admin</span>242 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib</span>·<span·class="kn">import</span>·<span·class="n">admin</span>
242 <span·class="kn">from</span>·<span·class="nn">django.contrib.flatpages.admin</span>·<span·class="kn">import</span>·<span·class="n">FlatPageAdmin</span>243 <span·class="kn">from</span>·<span·class="nn">django.contrib.flatpages.admin</span>·<span·class="kn">import</span>·<span·class="n">FlatPageAdmin</span>
Offset 290, 15 lines modifiedOffset 291, 15 lines modified
290 </section>291 </section>
291 </section>292 </section>
292 <section·id="s-flatpage-templates">293 <section·id="s-flatpage-templates">
293 <span·id="flatpage-templates"></span><h2>Flatpage·templates<a·class="headerlink"·href="#flatpage-templates"·title="Link·to·this·heading">¶</a></h2>294 <span·id="flatpage-templates"></span><h2>Flatpage·templates<a·class="headerlink"·href="#flatpage-templates"·title="Link·to·this·heading">¶</a></h2>
294 <p>By·default,·flatpages·are·rendered·via·the·template295 <p>By·default,·flatpages·are·rendered·via·the·template
295 <code·class="file·docutils·literal·notranslate"><span·class="pre">flatpages/default.html</span></code>,·but·you·can·override·that·for·a296 <code·class="file·docutils·literal·notranslate"><span·class="pre">flatpages/default.html</span></code>,·but·you·can·override·that·for·a
Max diff block lines reached; 6339/16173 bytes (39.19%) of diff not shown.
8.38 KB
html2text {}
Max HTML report size reached
11.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/admin.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango’s·admin·site·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango’s·admin·site·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Geographic·Feeds"·href="feeds.html"·/>15 ····<link·rel="next"·title="Geographic·Feeds"·href="feeds.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Management·Commands"·href="commands.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Management·Commands"·href="commands.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 161, 37 lines modifiedOffset 162, 37 lines modified
161 <dt·class="sig·sig-object·py"·id="django.contrib.gis.admin.GeoModelAdmin.modifiable">162 <dt·class="sig·sig-object·py"·id="django.contrib.gis.admin.GeoModelAdmin.modifiable">
162 <span·class="sig-name·descname"><span·class="pre">modifiable</span></span><a·class="headerlink"·href="#django.contrib.gis.admin.GeoModelAdmin.modifiable"·title="Link·to·this·definition">¶</a></dt>163 <span·class="sig-name·descname"><span·class="pre">modifiable</span></span><a·class="headerlink"·href="#django.contrib.gis.admin.GeoModelAdmin.modifiable"·title="Link·to·this·definition">¶</a></dt>
163 <dd></dd></dl>164 <dd></dd></dl>
  
164 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.··When·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·disables·editing·of165 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.··When·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·disables·editing·of
165 existing·geometry·fields·in·the·admin.</p>166 existing·geometry·fields·in·the·admin.</p>
166 <div·class="admonition·note">167 <div·class="admonition·note">
167 <p·class="admonition-title">Note</p>168 <p·class="admonition-title">Nota</p>
168 <p>This·is·different·from·adding·the·geometry·field·to169 <p>This·is·different·from·adding·the·geometry·field·to
169 <a·class="reference·internal"·href="../admin/index.html#django.contrib.admin.ModelAdmin.readonly_fields"·title="django.contrib.admin.ModelAdmin.readonly_fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">readonly_fields</span></code></a>,170 <a·class="reference·internal"·href="../admin/index.html#django.contrib.admin.ModelAdmin.readonly_fields"·title="django.contrib.admin.ModelAdmin.readonly_fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">readonly_fields</span></code></a>,
170 which·will·only·display·the·WKT·of·the·geometry.·Setting171 which·will·only·display·the·WKT·of·the·geometry.·Setting
171 <code·class="docutils·literal·notranslate"><span·class="pre">modifiable=False</span></code>,·actually·displays·the·geometry·in·a·map,172 <code·class="docutils·literal·notranslate"><span·class="pre">modifiable=False</span></code>,·actually·displays·the·geometry·in·a·map,
172 but·disables·the·ability·to·edit·its·vertices.</p>173 but·disables·the·ability·to·edit·its·vertices.</p>
173 </div>174 </div>
174 <div·class="deprecated">175 <div·class="deprecated">
175 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.0:·</span>This·class·is·deprecated.·Use·<a·class="reference·internal"·href="../admin/index.html#django.contrib.admin.ModelAdmin"·title="django.contrib.admin.ModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code></a>176 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.0:·</span>This·class·is·deprecated.·Use·<a·class="reference·internal"·href="../admin/index.html#django.contrib.admin.ModelAdmin"·title="django.contrib.admin.ModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code></a>
176 instead.</p>177 instead.</p>
177 </div>178 </div>
178 </dd></dl>179 </dd></dl>
  
179 </section>180 </section>
180 <section·id="s-osmgeoadmin">181 <section·id="s-osmgeoadmin">
181 <span·id="osmgeoadmin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">OSMGeoAdmin</span></code><a·class="headerlink"·href="#osmgeoadmin"·title="Link·to·this·heading">¶</a></h2>182 <span·id="osmgeoadmin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">OSMGeoAdmin</span></code><a·class="headerlink"·href="#osmgeoadmin"·title="Link·to·this·heading">¶</a></h2>
182 <dl·class="py·class">183 <dl·class="py·class">
183 <dt·class="sig·sig-object·py"·id="django.contrib.gis.admin.OSMGeoAdmin">184 <dt·class="sig·sig-object·py"·id="django.contrib.gis.admin.OSMGeoAdmin">
184 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">OSMGeoAdmin</span></span><a·class="headerlink"·href="#django.contrib.gis.admin.OSMGeoAdmin"·title="Link·to·this·definition">¶</a></dt>185 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">OSMGeoAdmin</span></span><a·class="headerlink"·href="#django.contrib.gis.admin.OSMGeoAdmin"·title="Link·to·this·definition">¶</a></dt>
185 <dd><p>A·subclass·of·<a·class="reference·internal"·href="#django.contrib.gis.admin.GeoModelAdmin"·title="django.contrib.gis.admin.GeoModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GeoModelAdmin</span></code></a>·that·uses·a·Spherical·Mercator·projection186 <dd><p>A·subclass·of·<a·class="reference·internal"·href="#django.contrib.gis.admin.GeoModelAdmin"·title="django.contrib.gis.admin.GeoModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GeoModelAdmin</span></code></a>·that·uses·a·Spherical·Mercator·projection
186 with·<a·class="reference·external"·href="https://www.openstreetmap.org/">OpenStreetMap</a>·street·data·tiles.</p>187 with·<a·class="reference·external"·href="https://www.openstreetmap.org/">OpenStreetMap</a>·street·data·tiles.</p>
187 <div·class="deprecated">188 <div·class="deprecated">
188 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.0:·</span>This·class·is·deprecated.·Use·<a·class="reference·internal"·href="#django.contrib.gis.admin.GISModelAdmin"·title="django.contrib.gis.admin.GISModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GISModelAdmin</span></code></a>·instead.</p>189 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.0:·</span>This·class·is·deprecated.·Use·<a·class="reference·internal"·href="#django.contrib.gis.admin.GISModelAdmin"·title="django.contrib.gis.admin.GISModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GISModelAdmin</span></code></a>·instead.</p>
189 </div>190 </div>
190 </dd></dl>191 </dd></dl>
  
191 </section>192 </section>
192 </section>193 </section>
  
  
Offset 213, 37 lines modifiedOffset 214, 37 lines modified
213 <li><a·class="reference·internal"·href="#osmgeoadmin"><code·class="docutils·literal·notranslate"><span·class="pre">OSMGeoAdmin</span></code></a></li>214 <li><a·class="reference·internal"·href="#osmgeoadmin"><code·class="docutils·literal·notranslate"><span·class="pre">OSMGeoAdmin</span></code></a></li>
214 </ul>215 </ul>
215 </li>216 </li>
216 </ul>217 </ul>
  
217 ··</div>218 ··</div>
218 ··<div>219 ··<div>
219 ····<h4>Previous·topic</h4>220 ····<h4>Argomento·precedente</h4>
220 ····<p·class="topless"><a·href="commands.html"221 ····<p·class="topless"><a·href="commands.html"
221 ··························title="previous·chapter">GeoDjango·Management·Commands</a></p>222 ··························title="capitolo·precedente">GeoDjango·Management·Commands</a></p>
222 ··</div>223 ··</div>
223 ··<div>224 ··<div>
224 ····<h4>Next·topic</h4>225 ····<h4>Argomento·successivo</h4>
225 ····<p·class="topless"><a·href="feeds.html"226 ····<p·class="topless"><a·href="feeds.html"
226 ··························title="next·chapter">Geographic·Feeds</a></p>227 ··························title="capitolo·successivo">Geographic·Feeds</a></p>
227 ··</div>228 ··</div>
228 <search·id="searchbox"·style="display:·none"·role="search">229 <search·id="searchbox"·style="display:·none"·role="search">
229 ··<h3·id="searchlabel">Quick·search</h3>230 ··<h3·id="searchlabel">Ricerca·veloce</h3>
230 ····<div·class="searchformwrapper">231 ····<div·class="searchformwrapper">
231 ····<form·class="search"·action="../../../search.html"·method="get">232 ····<form·class="search"·action="../../../search.html"·method="get">
232 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>233 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
233 ······<input·type="submit"·value="Go"·/>234 ······<input·type="submit"·value="Vai"·/>
234 ····</form>235 ····</form>
235 ····</div>236 ····</div>
236 </search>237 </search>
237 <script>document.getElementById('searchbox').style.display·=·"block"</script>238 <script>document.getElementById('searchbox').style.display·=·"block"</script>
238 ········</div>239 ········</div>
239 ······</div>240 ······</div>
240 ··············<h3>Last·update:</h3>241 ··············<h3>Last·update:</h3>
241 ··············<p·class="topless">Sep·03,·2024</p>242 ··············<p·class="topless">set·03,·2024</p>
242 ··········</div>243 ··········</div>
243 ········244 ········
244 ······245 ······
245 ····</div>246 ····</div>
  
246 ····<div·id="ft">247 ····<div·id="ft">
247 ······<div·class="nav">248 ······<div·class="nav">
3.31 KB
html2text {}
Max HTML report size reached
6.24 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/commands.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Management·Commands·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Management·Commands·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango’s·admin·site"·href="admin.html"·/>15 ····<link·rel="next"·title="GeoDjango’s·admin·site"·href="admin.html"·/>
15 ····<link·rel="prev"·title="GeoJSON·Serializer"·href="serializers.html"·/>16 ····<link·rel="prev"·title="GeoJSON·Serializer"·href="serializers.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 202, 37 lines modifiedOffset 203, 37 lines modified
202 <li><a·class="reference·internal"·href="#ogrinspect"><code·class="docutils·literal·notranslate"><span·class="pre">ogrinspect</span></code></a></li>203 <li><a·class="reference·internal"·href="#ogrinspect"><code·class="docutils·literal·notranslate"><span·class="pre">ogrinspect</span></code></a></li>
203 </ul>204 </ul>
204 </li>205 </li>
205 </ul>206 </ul>
  
206 ··</div>207 ··</div>
207 ··<div>208 ··<div>
208 ····<h4>Previous·topic</h4>209 ····<h4>Argomento·precedente</h4>
209 ····<p·class="topless"><a·href="serializers.html"210 ····<p·class="topless"><a·href="serializers.html"
210 ··························title="previous·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">GeoJSON</span></code>·Serializer</a></p>211 ··························title="capitolo·precedente"><code·class="docutils·literal·notranslate"><span·class="pre">GeoJSON</span></code>·Serializer</a></p>
211 ··</div>212 ··</div>
212 ··<div>213 ··<div>
213 ····<h4>Next·topic</h4>214 ····<h4>Argomento·successivo</h4>
214 ····<p·class="topless"><a·href="admin.html"215 ····<p·class="topless"><a·href="admin.html"
215 ··························title="next·chapter">GeoDjango’s·admin·site</a></p>216 ··························title="capitolo·successivo">GeoDjango’s·admin·site</a></p>
216 ··</div>217 ··</div>
217 <search·id="searchbox"·style="display:·none"·role="search">218 <search·id="searchbox"·style="display:·none"·role="search">
218 ··<h3·id="searchlabel">Quick·search</h3>219 ··<h3·id="searchlabel">Ricerca·veloce</h3>
219 ····<div·class="searchformwrapper">220 ····<div·class="searchformwrapper">
220 ····<form·class="search"·action="../../../search.html"·method="get">221 ····<form·class="search"·action="../../../search.html"·method="get">
221 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>222 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
222 ······<input·type="submit"·value="Go"·/>223 ······<input·type="submit"·value="Vai"·/>
223 ····</form>224 ····</form>
224 ····</div>225 ····</div>
225 </search>226 </search>
226 <script>document.getElementById('searchbox').style.display·=·"block"</script>227 <script>document.getElementById('searchbox').style.display·=·"block"</script>
227 ········</div>228 ········</div>
228 ······</div>229 ······</div>
229 ··············<h3>Last·update:</h3>230 ··············<h3>Last·update:</h3>
230 ··············<p·class="topless">Sep·03,·2024</p>231 ··············<p·class="topless">set·03,·2024</p>
231 ··········</div>232 ··········</div>
232 ········233 ········
233 ······234 ······
234 ····</div>235 ····</div>
  
235 ····<div·id="ft">236 ····<div·id="ft">
236 ······<div·class="nav">237 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
13.5 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/db-api.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Database·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Database·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Forms·API"·href="forms-api.html"·/>15 ····<link·rel="next"·title="GeoDjango·Forms·API"·href="forms-api.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Model·API"·href="model-api.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Model·API"·href="model-api.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 187, 15 lines modifiedOffset 188, 15 lines modified
187 </div>188 </div>
188 </section>189 </section>
189 <section·id="s-spatial-lookups">190 <section·id="s-spatial-lookups">
190 <span·id="s-spatial-lookups-intro"></span><span·id="spatial-lookups"></span><span·id="spatial-lookups-intro"></span><h2>Spatial·Lookups<a·class="headerlink"·href="#spatial-lookups"·title="Link·to·this·heading">¶</a></h2>191 <span·id="s-spatial-lookups-intro"></span><span·id="spatial-lookups"></span><span·id="spatial-lookups-intro"></span><h2>Spatial·Lookups<a·class="headerlink"·href="#spatial-lookups"·title="Link·to·this·heading">¶</a></h2>
191 <p>GeoDjango’s·lookup·types·may·be·used·with·any·manager·method·like192 <p>GeoDjango’s·lookup·types·may·be·used·with·any·manager·method·like
192 <code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>,·etc.··However,·the·lookup·types·unique·to193 <code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>,·etc.··However,·the·lookup·types·unique·to
193 GeoDjango·are·only·available·on·spatial·fields.</p>194 GeoDjango·are·only·available·on·spatial·fields.</p>
194 <p>Filters·on·normal·fields·(e.g.·<a·class="reference·internal"·href="../../models/fields.html#django.db.models.CharField"·title="django.db.models.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>)195 <p>Filters·on·normal·fields·(e.g.·<a·class="reference·internal"·href="../../models/fields.html#django.db.models.CharField"·title="django.db.models.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>)
195 may·be·chained·with·those·on·geographic·fields.·Geographic·lookups·accept196 may·be·chained·with·those·on·geographic·fields.·Geographic·lookups·accept
196 geometry·and·raster·input·on·both·sides·and·input·types·can·be·mixed·freely.</p>197 geometry·and·raster·input·on·both·sides·and·input·types·can·be·mixed·freely.</p>
197 <p>The·general·structure·of·geographic·lookups·is·described·below.·A·complete198 <p>The·general·structure·of·geographic·lookups·is·described·below.·A·complete
198 reference·can·be·found·in·the·<a·class="reference·internal"·href="geoquerysets.html#spatial-lookups"><span·class="std·std-ref">spatial·lookup·reference</span></a>.</p>199 reference·can·be·found·in·the·<a·class="reference·internal"·href="geoquerysets.html#spatial-lookups"><span·class="std·std-ref">spatial·lookup·reference</span></a>.</p>
199 <section·id="s-geometry-lookups">200 <section·id="s-geometry-lookups">
200 <span·id="geometry-lookups"></span><h3>Geometry·Lookups<a·class="headerlink"·href="#geometry-lookups"·title="Link·to·this·heading">¶</a></h3>201 <span·id="geometry-lookups"></span><h3>Geometry·Lookups<a·class="headerlink"·href="#geometry-lookups"·title="Link·to·this·heading">¶</a></h3>
201 <p>Geographic·queries·with·geometries·take·the·following·general·form·(assuming202 <p>Geographic·queries·with·geometries·take·the·following·general·form·(assuming
Offset 272, 29 lines modifiedOffset 273, 29 lines modified
272 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_lt"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_lt</span></code></a></p></li>273 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_lt"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_lt</span></code></a></p></li>
273 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_lte"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_lte</span></code></a></p></li>274 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_lte"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_lte</span></code></a></p></li>
274 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_gt"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_gt</span></code></a></p></li>275 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_gt"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_gt</span></code></a></p></li>
275 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_gte"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_gte</span></code></a></p></li>276 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-distance_gte"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">distance_gte</span></code></a></p></li>
276 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-dwithin"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">dwithin</span></code></a>·(except·MariaDB·and·MySQL)</p></li>277 <li><p><a·class="reference·internal"·href="geoquerysets.html#std-fieldlookup-dwithin"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">dwithin</span></code></a>·(except·MariaDB·and·MySQL)</p></li>
277 </ul>278 </ul>
278 <div·class="admonition·note">279 <div·class="admonition·note">
279 <p·class="admonition-title">Note</p>280 <p·class="admonition-title">Nota</p>
280 <p>For·<em>measuring</em>,·rather·than·querying·on·distances,·use·the281 <p>For·<em>measuring</em>,·rather·than·querying·on·distances,·use·the
281 <a·class="reference·internal"·href="functions.html#django.contrib.gis.db.models.functions.Distance"·title="django.contrib.gis.db.models.functions.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·function.</p>282 <a·class="reference·internal"·href="functions.html#django.contrib.gis.db.models.functions.Distance"·title="django.contrib.gis.db.models.functions.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·function.</p>
282 </div>283 </div>
283 <p>Distance·lookups·take·a·tuple·parameter·comprising:</p>284 <p>Distance·lookups·take·a·tuple·parameter·comprising:</p>
284 <ol·class="arabic·simple">285 <ol·class="arabic·simple">
285 <li><p>A·geometry·or·raster·to·base·calculations·from;·and</p></li>286 <li><p>A·geometry·or·raster·to·base·calculations·from;·and</p></li>
286 <li><p>A·number·or·<a·class="reference·internal"·href="measure.html#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·object·containing·the·distance.</p></li>287 <li><p>A·number·or·<a·class="reference·internal"·href="measure.html#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·object·containing·the·distance.</p></li>
287 </ol>288 </ol>
288 <p>If·a·<a·class="reference·internal"·href="measure.html#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·object·is·used,289 <p>If·a·<a·class="reference·internal"·href="measure.html#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·object·is·used,
289 it·may·be·expressed·in·any·units·(the·SQL·generated·will·use·units290 it·may·be·expressed·in·any·units·(the·SQL·generated·will·use·units
290 converted·to·those·of·the·field);·otherwise,·numeric·parameters·are·assumed291 converted·to·those·of·the·field);·otherwise,·numeric·parameters·are·assumed
291 to·be·in·the·units·of·the·field.</p>292 to·be·in·the·units·of·the·field.</p>
292 <div·class="admonition·note">293 <div·class="admonition·note">
293 <p·class="admonition-title">Note</p>294 <p·class="admonition-title">Nota</p>
294 <p>In·PostGIS,·<code·class="docutils·literal·notranslate"><span·class="pre">ST_Distance_Sphere</span></code>·does·<em>not</em>·limit·the·geometry·types295 <p>In·PostGIS,·<code·class="docutils·literal·notranslate"><span·class="pre">ST_Distance_Sphere</span></code>·does·<em>not</em>·limit·the·geometry·types
295 geographic·distance·queries·are·performed·with.·<a·class="footnote-reference·brackets"·href="#fndistsphere15"·id="id6"·role="doc-noteref"><span·class="fn-bracket">[</span>3<span·class="fn-bracket">]</span></a>··However,296 geographic·distance·queries·are·performed·with.·<a·class="footnote-reference·brackets"·href="#fndistsphere15"·id="id6"·role="doc-noteref"><span·class="fn-bracket">[</span>3<span·class="fn-bracket">]</span></a>··However,
296 these·queries·may·take·a·long·time,·as·great-circle·distances·must·be297 these·queries·may·take·a·long·time,·as·great-circle·distances·must·be
297 calculated·on·the·fly·for·<em>every</em>·row·in·the·query.··This·is·because·the298 calculated·on·the·fly·for·<em>every</em>·row·in·the·query.··This·is·because·the
298 spatial·index·on·traditional·geometry·fields·cannot·be·used.</p>299 spatial·index·on·traditional·geometry·fields·cannot·be·used.</p>
299 <p>For·much·better·performance·on·WGS84·distance·queries,·consider·using300 <p>For·much·better·performance·on·WGS84·distance·queries,·consider·using
300 <a·class="reference·internal"·href="model-api.html#geography-type"><span·class="std·std-ref">geography·columns</span></a>·in·your·database·instead·because301 <a·class="reference·internal"·href="model-api.html#geography-type"><span·class="std·std-ref">geography·columns</span></a>·in·your·database·instead·because
Offset 985, 37 lines modifiedOffset 986, 37 lines modified
985 </li>986 </li>
986 </ul>987 </ul>
987 </li>988 </li>
988 </ul>989 </ul>
  
989 ··</div>990 ··</div>
990 ··<div>991 ··<div>
991 ····<h4>Previous·topic</h4>992 ····<h4>Argomento·precedente</h4>
992 ····<p·class="topless"><a·href="model-api.html"993 ····<p·class="topless"><a·href="model-api.html"
993 ··························title="previous·chapter">GeoDjango·Model·API</a></p>994 ··························title="capitolo·precedente">GeoDjango·Model·API</a></p>
994 ··</div>995 ··</div>
995 ··<div>996 ··<div>
996 ····<h4>Next·topic</h4>997 ····<h4>Argomento·successivo</h4>
997 ····<p·class="topless"><a·href="forms-api.html"998 ····<p·class="topless"><a·href="forms-api.html"
998 ··························title="next·chapter">GeoDjango·Forms·API</a></p>999 ··························title="capitolo·successivo">GeoDjango·Forms·API</a></p>
999 ··</div>1000 ··</div>
1000 <search·id="searchbox"·style="display:·none"·role="search">1001 <search·id="searchbox"·style="display:·none"·role="search">
1001 ··<h3·id="searchlabel">Quick·search</h3>1002 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1002 ····<div·class="searchformwrapper">1003 ····<div·class="searchformwrapper">
1003 ····<form·class="search"·action="../../../search.html"·method="get">1004 ····<form·class="search"·action="../../../search.html"·method="get">
1004 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1005 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1005 ······<input·type="submit"·value="Go"·/>1006 ······<input·type="submit"·value="Vai"·/>
1006 ····</form>1007 ····</form>
1007 ····</div>1008 ····</div>
1008 </search>1009 </search>
1009 <script>document.getElementById('searchbox').style.display·=·"block"</script>1010 <script>document.getElementById('searchbox').style.display·=·"block"</script>
1010 ········</div>1011 ········</div>
1011 ······</div>1012 ······</div>
1012 ··············<h3>Last·update:</h3>1013 ··············<h3>Last·update:</h3>
1013 ··············<p·class="topless">Sep·03,·2024</p>1014 ··············<p·class="topless">set·03,·2024</p>
1014 ··········</div>1015 ··········</div>
1015 ········1016 ········
1016 ······1017 ······
1017 ····</div>1018 ····</div>
  
1018 ····<div·id="ft">1019 ····<div·id="ft">
1019 ······<div·class="nav">1020 ······<div·class="nav">
4.59 KB
html2text {}
Max HTML report size reached
7.47 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/deployment.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Deploying·GeoDjango·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Deploying·GeoDjango·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="django.contrib.humanize"·href="../humanize.html"·/>15 ····<link·rel="next"·title="django.contrib.humanize"·href="../humanize.html"·/>
15 ····<link·rel="prev"·title="Testing·GeoDjango·apps"·href="testing.html"·/>16 ····<link·rel="prev"·title="Testing·GeoDjango·apps"·href="testing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-deploying-geodjango">81 ··<section·id="s-deploying-geodjango">
81 <span·id="deploying-geodjango"></span><h1>Deploying·GeoDjango<a·class="headerlink"·href="#deploying-geodjango"·title="Link·to·this·heading">¶</a></h1>82 <span·id="deploying-geodjango"></span><h1>Deploying·GeoDjango<a·class="headerlink"·href="#deploying-geodjango"·title="Link·to·this·heading">¶</a></h1>
82 <p>Basically,·the·deployment·of·a·GeoDjango·application·is·not·different·from83 <p>Basically,·the·deployment·of·a·GeoDjango·application·is·not·different·from
83 the·deployment·of·a·normal·Django·application.·Please·consult·Django’s84 the·deployment·of·a·normal·Django·application.·Please·consult·Django’s
84 <a·class="reference·internal"·href="../../../howto/deployment/index.html"><span·class="doc">deployment·documentation</span></a>.</p>85 <a·class="reference·internal"·href="../../../howto/deployment/index.html"><span·class="doc">deployment·documentation</span></a>.</p>
85 <div·class="admonition·warning">86 <div·class="admonition·warning">
86 <p·class="admonition-title">Warning</p>87 <p·class="admonition-title">Avvertimento</p>
87 <p>GeoDjango·uses·the·GDAL·geospatial·library·which·is88 <p>GeoDjango·uses·the·GDAL·geospatial·library·which·is
88 not·thread·safe·at·this·time.··Thus,·it·is·<em>highly</em>·recommended89 not·thread·safe·at·this·time.··Thus,·it·is·<em>highly</em>·recommended
89 to·not·use·threading·when·deploying··in·other·words,·use·an90 to·not·use·threading·when·deploying··in·other·words,·use·an
90 appropriate·configuration·of·Apache.</p>91 appropriate·configuration·of·Apache.</p>
91 <p>For·example,·when·configuring·your·application·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code>,92 <p>For·example,·when·configuring·your·application·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_wsgi</span></code>,
92 set·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>·attribute·<code·class="docutils·literal·notranslate"><span·class="pre">threads</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">1</span></code>,·unless93 set·the·<code·class="docutils·literal·notranslate"><span·class="pre">WSGIDaemonProcess</span></code>·attribute·<code·class="docutils·literal·notranslate"><span·class="pre">threads</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">1</span></code>,·unless
93 Apache·may·crash·when·running·your·GeoDjango·application.··Increase·the94 Apache·may·crash·when·running·your·GeoDjango·application.··Increase·the
Offset 102, 37 lines modifiedOffset 103, 37 lines modified
102 ······103 ······
103 ········104 ········
104 ··········<div·class="yui-b"·id="sidebar">105 ··········<div·class="yui-b"·id="sidebar">
105 ············106 ············
106 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">107 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
107 ········<div·class="sphinxsidebarwrapper">108 ········<div·class="sphinxsidebarwrapper">
108 ··<div>109 ··<div>
109 ····<h4>Previous·topic</h4>110 ····<h4>Argomento·precedente</h4>
110 ····<p·class="topless"><a·href="testing.html"111 ····<p·class="topless"><a·href="testing.html"
111 ··························title="previous·chapter">Testing·GeoDjango·apps</a></p>112 ··························title="capitolo·precedente">Testing·GeoDjango·apps</a></p>
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Next·topic</h4>115 ····<h4>Argomento·successivo</h4>
115 ····<p·class="topless"><a·href="../humanize.html"116 ····<p·class="topless"><a·href="../humanize.html"
116 ··························title="next·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></p>117 ··························title="capitolo·successivo"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></p>
117 ··</div>118 ··</div>
118 <search·id="searchbox"·style="display:·none"·role="search">119 <search·id="searchbox"·style="display:·none"·role="search">
119 ··<h3·id="searchlabel">Quick·search</h3>120 ··<h3·id="searchlabel">Ricerca·veloce</h3>
120 ····<div·class="searchformwrapper">121 ····<div·class="searchformwrapper">
121 ····<form·class="search"·action="../../../search.html"·method="get">122 ····<form·class="search"·action="../../../search.html"·method="get">
122 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>123 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
123 ······<input·type="submit"·value="Go"·/>124 ······<input·type="submit"·value="Vai"·/>
124 ····</form>125 ····</form>
125 ····</div>126 ····</div>
126 </search>127 </search>
127 <script>document.getElementById('searchbox').style.display·=·"block"</script>128 <script>document.getElementById('searchbox').style.display·=·"block"</script>
128 ········</div>129 ········</div>
129 ······</div>130 ······</div>
130 ··············<h3>Last·update:</h3>131 ··············<h3>Last·update:</h3>
131 ··············<p·class="topless">Sep·03,·2024</p>132 ··············<p·class="topless">set·03,·2024</p>
132 ··········</div>133 ··········</div>
133 ········134 ········
134 ······135 ······
135 ····</div>136 ····</div>
  
136 ····<div·id="ft">137 ····<div·id="ft">
137 ······<div·class="nav">138 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
13.6 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/feeds.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Geographic·Feeds·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Geographic·Feeds·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Geographic·Sitemaps"·href="sitemaps.html"·/>15 ····<link·rel="next"·title="Geographic·Sitemaps"·href="sitemaps.html"·/>
15 ····<link·rel="prev"·title="GeoDjango’s·admin·site"·href="admin.html"·/>16 ····<link·rel="prev"·title="GeoDjango’s·admin·site"·href="admin.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 </section>89 </section>
89 <section·id="s-api-reference">90 <section·id="s-api-reference">
90 <span·id="api-reference"></span><h2>API·Reference<a·class="headerlink"·href="#api-reference"·title="Link·to·this·heading">¶</a></h2>91 <span·id="api-reference"></span><h2>API·Reference<a·class="headerlink"·href="#api-reference"·title="Link·to·this·heading">¶</a></h2>
91 <section·id="s-feed-subclass">92 <section·id="s-feed-subclass">
92 <span·id="feed-subclass"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·Subclass<a·class="headerlink"·href="#feed-subclass"·title="Link·to·this·heading">¶</a></h3>93 <span·id="feed-subclass"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·Subclass<a·class="headerlink"·href="#feed-subclass"·title="Link·to·this·heading">¶</a></h3>
93 <dl·class="py·class">94 <dl·class="py·class">
94 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.Feed">95 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.Feed">
95 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Feed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#Feed"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.Feed"·title="Link·to·this·definition">¶</a></dt>96 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Feed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#Feed"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.Feed"·title="Link·to·this·definition">¶</a></dt>
96 <dd><p>In·addition·to·methods·provided·by·the97 <dd><p>In·addition·to·methods·provided·by·the
97 <a·class="reference·internal"·href="../syndication.html#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>·base·class,·GeoDjango’s98 <a·class="reference·internal"·href="../syndication.html#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>·base·class,·GeoDjango’s
98 <code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·class·provides·the·following·overrides.·Note·that·these·overrides99 <code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·class·provides·the·following·overrides.·Note·that·these·overrides
99 may·be·done·in·multiple·ways:</p>100 may·be·done·in·multiple·ways:</p>
100 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.feeds</span>·<span·class="kn">import</span>·<span·class="n">Feed</span>101 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.feeds</span>·<span·class="kn">import</span>·<span·class="n">Feed</span>
  
  
Offset 153, 29 lines modifiedOffset 154, 29 lines modified
153 </section>154 </section>
154 <section·id="s-syndicationfeed-subclasses">155 <section·id="s-syndicationfeed-subclasses">
155 <span·id="syndicationfeed-subclasses"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed</span></code>·Subclasses<a·class="headerlink"·href="#syndicationfeed-subclasses"·title="Link·to·this·heading">¶</a></h3>156 <span·id="syndicationfeed-subclasses"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed</span></code>·Subclasses<a·class="headerlink"·href="#syndicationfeed-subclasses"·title="Link·to·this·heading">¶</a></h3>
156 <p>The·following·<a·class="reference·internal"·href="../../utils.html#django.utils.feedgenerator.SyndicationFeed"·title="django.utils.feedgenerator.SyndicationFeed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.utils.feedgenerator.SyndicationFeed</span></code></a>·subclasses157 <p>The·following·<a·class="reference·internal"·href="../../utils.html#django.utils.feedgenerator.SyndicationFeed"·title="django.utils.feedgenerator.SyndicationFeed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.utils.feedgenerator.SyndicationFeed</span></code></a>·subclasses
157 are·available:</p>158 are·available:</p>
158 <dl·class="py·class">159 <dl·class="py·class">
159 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.GeoRSSFeed">160 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.GeoRSSFeed">
160 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeoRSSFeed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#GeoRSSFeed"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.GeoRSSFeed"·title="Link·to·this·definition">¶</a></dt>161 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeoRSSFeed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#GeoRSSFeed"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.GeoRSSFeed"·title="Link·to·this·definition">¶</a></dt>
161 <dd></dd></dl>162 <dd></dd></dl>
  
162 <dl·class="py·class">163 <dl·class="py·class">
163 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.GeoAtom1Feed">164 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.GeoAtom1Feed">
164 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeoAtom1Feed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#GeoAtom1Feed"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.GeoAtom1Feed"·title="Link·to·this·definition">¶</a></dt>165 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeoAtom1Feed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#GeoAtom1Feed"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.GeoAtom1Feed"·title="Link·to·this·definition">¶</a></dt>
165 <dd></dd></dl>166 <dd></dd></dl>
  
166 <dl·class="py·class">167 <dl·class="py·class">
167 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.W3CGeoFeed">168 <dt·class="sig·sig-object·py"·id="django.contrib.gis.feeds.W3CGeoFeed">
168 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">W3CGeoFeed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#W3CGeoFeed"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.W3CGeoFeed"·title="Link·to·this·definition">¶</a></dt>169 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">W3CGeoFeed</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/feeds.html#W3CGeoFeed"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.feeds.W3CGeoFeed"·title="Link·to·this·definition">¶</a></dt>
169 <dd></dd></dl>170 <dd></dd></dl>
  
170 <div·class="admonition·note">171 <div·class="admonition·note">
171 <p·class="admonition-title">Note</p>172 <p·class="admonition-title">Nota</p>
172 <p><a·class="reference·external"·href="https://www.w3.org/2003/01/geo/">W3C·Geo</a>·formatted·feeds·only·support173 <p><a·class="reference·external"·href="https://www.w3.org/2003/01/geo/">W3C·Geo</a>·formatted·feeds·only·support
173 <a·class="reference·internal"·href="model-api.html#django.contrib.gis.db.models.PointField"·title="django.contrib.gis.db.models.PointField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PointField</span></code></a>·geometries.</p>174 <a·class="reference·internal"·href="model-api.html#django.contrib.gis.db.models.PointField"·title="django.contrib.gis.db.models.PointField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PointField</span></code></a>·geometries.</p>
174 </div>175 </div>
175 </section>176 </section>
176 </section>177 </section>
177 </section>178 </section>
  
Offset 201, 37 lines modifiedOffset 202, 37 lines modified
201 </li>202 </li>
202 </ul>203 </ul>
203 </li>204 </li>
204 </ul>205 </ul>
  
205 ··</div>206 ··</div>
206 ··<div>207 ··<div>
207 ····<h4>Previous·topic</h4>208 ····<h4>Argomento·precedente</h4>
208 ····<p·class="topless"><a·href="admin.html"209 ····<p·class="topless"><a·href="admin.html"
209 ··························title="previous·chapter">GeoDjango’s·admin·site</a></p>210 ··························title="capitolo·precedente">GeoDjango’s·admin·site</a></p>
210 ··</div>211 ··</div>
211 ··<div>212 ··<div>
212 ····<h4>Next·topic</h4>213 ····<h4>Argomento·successivo</h4>
213 ····<p·class="topless"><a·href="sitemaps.html"214 ····<p·class="topless"><a·href="sitemaps.html"
214 ··························title="next·chapter">Geographic·Sitemaps</a></p>215 ··························title="capitolo·successivo">Geographic·Sitemaps</a></p>
215 ··</div>216 ··</div>
216 <search·id="searchbox"·style="display:·none"·role="search">217 <search·id="searchbox"·style="display:·none"·role="search">
217 ··<h3·id="searchlabel">Quick·search</h3>218 ··<h3·id="searchlabel">Ricerca·veloce</h3>
218 ····<div·class="searchformwrapper">219 ····<div·class="searchformwrapper">
219 ····<form·class="search"·action="../../../search.html"·method="get">220 ····<form·class="search"·action="../../../search.html"·method="get">
220 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>221 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
221 ······<input·type="submit"·value="Go"·/>222 ······<input·type="submit"·value="Vai"·/>
222 ····</form>223 ····</form>
223 ····</div>224 ····</div>
224 </search>225 </search>
225 <script>document.getElementById('searchbox').style.display·=·"block"</script>226 <script>document.getElementById('searchbox').style.display·=·"block"</script>
226 ········</div>227 ········</div>
227 ······</div>228 ······</div>
228 ··············<h3>Last·update:</h3>229 ··············<h3>Last·update:</h3>
229 ··············<p·class="topless">Sep·03,·2024</p>230 ··············<p·class="topless">set·03,·2024</p>
230 ··········</div>231 ··········</div>
231 ········232 ········
232 ······233 ······
233 ····</div>234 ····</div>
  
234 ····<div·id="ft">235 ····<div·id="ft">
235 ······<div·class="nav">236 ······<div·class="nav">
3.7 KB
html2text {}
Max HTML report size reached
29.2 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/forms-api.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Forms·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Forms·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GIS·QuerySet·API·Reference"·href="geoquerysets.html"·/>15 ····<link·rel="next"·title="GIS·QuerySet·API·Reference"·href="geoquerysets.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Database·API"·href="db-api.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Database·API"·href="db-api.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 71 lines modifiedOffset 113, 71 lines modified
112 </section>113 </section>
113 <section·id="s-form-field-classes">114 <section·id="s-form-field-classes">
114 <span·id="form-field-classes"></span><h2>Form·field·classes<a·class="headerlink"·href="#form-field-classes"·title="Link·to·this·heading">¶</a></h2>115 <span·id="form-field-classes"></span><h2>Form·field·classes<a·class="headerlink"·href="#form-field-classes"·title="Link·to·this·heading">¶</a></h2>
115 <section·id="s-geometryfield">116 <section·id="s-geometryfield">
116 <span·id="geometryfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryField</span></code><a·class="headerlink"·href="#geometryfield"·title="Link·to·this·heading">¶</a></h3>117 <span·id="geometryfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryField</span></code><a·class="headerlink"·href="#geometryfield"·title="Link·to·this·heading">¶</a></h3>
117 <dl·class="py·class">118 <dl·class="py·class">
118 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.GeometryField">119 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.GeometryField">
119 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#GeometryField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.GeometryField"·title="Link·to·this·definition">¶</a></dt>120 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#GeometryField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.GeometryField"·title="Link·to·this·definition">¶</a></dt>
120 <dd></dd></dl>121 <dd></dd></dl>
  
121 </section>122 </section>
122 <section·id="s-pointfield">123 <section·id="s-pointfield">
123 <span·id="pointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PointField</span></code><a·class="headerlink"·href="#pointfield"·title="Link·to·this·heading">¶</a></h3>124 <span·id="pointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PointField</span></code><a·class="headerlink"·href="#pointfield"·title="Link·to·this·heading">¶</a></h3>
124 <dl·class="py·class">125 <dl·class="py·class">
125 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.PointField">126 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.PointField">
126 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#PointField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.PointField"·title="Link·to·this·definition">¶</a></dt>127 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#PointField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.PointField"·title="Link·to·this·definition">¶</a></dt>
127 <dd></dd></dl>128 <dd></dd></dl>
  
128 </section>129 </section>
129 <section·id="s-linestringfield">130 <section·id="s-linestringfield">
130 <span·id="linestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">LineStringField</span></code><a·class="headerlink"·href="#linestringfield"·title="Link·to·this·heading">¶</a></h3>131 <span·id="linestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">LineStringField</span></code><a·class="headerlink"·href="#linestringfield"·title="Link·to·this·heading">¶</a></h3>
131 <dl·class="py·class">132 <dl·class="py·class">
132 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.LineStringField">133 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.LineStringField">
133 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#LineStringField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.LineStringField"·title="Link·to·this·definition">¶</a></dt>134 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#LineStringField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.LineStringField"·title="Link·to·this·definition">¶</a></dt>
134 <dd></dd></dl>135 <dd></dd></dl>
  
135 </section>136 </section>
136 <section·id="s-polygonfield">137 <section·id="s-polygonfield">
137 <span·id="polygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code><a·class="headerlink"·href="#polygonfield"·title="Link·to·this·heading">¶</a></h3>138 <span·id="polygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code><a·class="headerlink"·href="#polygonfield"·title="Link·to·this·heading">¶</a></h3>
138 <dl·class="py·class">139 <dl·class="py·class">
139 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.PolygonField">140 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.PolygonField">
140 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#PolygonField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.PolygonField"·title="Link·to·this·definition">¶</a></dt>141 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#PolygonField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.PolygonField"·title="Link·to·this·definition">¶</a></dt>
141 <dd></dd></dl>142 <dd></dd></dl>
  
142 </section>143 </section>
143 <section·id="s-multipointfield">144 <section·id="s-multipointfield">
144 <span·id="multipointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPointField</span></code><a·class="headerlink"·href="#multipointfield"·title="Link·to·this·heading">¶</a></h3>145 <span·id="multipointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPointField</span></code><a·class="headerlink"·href="#multipointfield"·title="Link·to·this·heading">¶</a></h3>
145 <dl·class="py·class">146 <dl·class="py·class">
146 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiPointField">147 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiPointField">
147 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiPointField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiPointField"·title="Link·to·this·definition">¶</a></dt>148 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiPointField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiPointField"·title="Link·to·this·definition">¶</a></dt>
148 <dd></dd></dl>149 <dd></dd></dl>
  
149 </section>150 </section>
150 <section·id="s-multilinestringfield">151 <section·id="s-multilinestringfield">
151 <span·id="multilinestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiLineStringField</span></code><a·class="headerlink"·href="#multilinestringfield"·title="Link·to·this·heading">¶</a></h3>152 <span·id="multilinestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiLineStringField</span></code><a·class="headerlink"·href="#multilinestringfield"·title="Link·to·this·heading">¶</a></h3>
152 <dl·class="py·class">153 <dl·class="py·class">
153 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiLineStringField">154 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiLineStringField">
154 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiLineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiLineStringField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiLineStringField"·title="Link·to·this·definition">¶</a></dt>155 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiLineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiLineStringField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiLineStringField"·title="Link·to·this·definition">¶</a></dt>
155 <dd></dd></dl>156 <dd></dd></dl>
  
156 </section>157 </section>
157 <section·id="s-multipolygonfield">158 <section·id="s-multipolygonfield">
158 <span·id="multipolygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code><a·class="headerlink"·href="#multipolygonfield"·title="Link·to·this·heading">¶</a></h3>159 <span·id="multipolygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code><a·class="headerlink"·href="#multipolygonfield"·title="Link·to·this·heading">¶</a></h3>
159 <dl·class="py·class">160 <dl·class="py·class">
160 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiPolygonField">161 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.MultiPolygonField">
161 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiPolygonField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiPolygonField"·title="Link·to·this·definition">¶</a></dt>162 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#MultiPolygonField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.MultiPolygonField"·title="Link·to·this·definition">¶</a></dt>
162 <dd></dd></dl>163 <dd></dd></dl>
  
163 </section>164 </section>
164 <section·id="s-geometrycollectionfield">165 <section·id="s-geometrycollectionfield">
165 <span·id="geometrycollectionfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryCollectionField</span></code><a·class="headerlink"·href="#geometrycollectionfield"·title="Link·to·this·heading">¶</a></h3>166 <span·id="geometrycollectionfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryCollectionField</span></code><a·class="headerlink"·href="#geometrycollectionfield"·title="Link·to·this·heading">¶</a></h3>
166 <dl·class="py·class">167 <dl·class="py·class">
167 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.GeometryCollectionField">168 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.GeometryCollectionField">
168 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryCollectionField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#GeometryCollectionField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.GeometryCollectionField"·title="Link·to·this·definition">¶</a></dt>169 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryCollectionField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/forms/fields.html#GeometryCollectionField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.forms.GeometryCollectionField"·title="Link·to·this·definition">¶</a></dt>
169 <dd></dd></dl>170 <dd></dd></dl>
  
170 </section>171 </section>
171 </section>172 </section>
172 <section·id="s-module-django.contrib.gis.forms.widgets">173 <section·id="s-module-django.contrib.gis.forms.widgets">
173 <span·id="s-form-widgets"></span><span·id="module-django.contrib.gis.forms.widgets"></span><span·id="form-widgets"></span><h2>Form·widgets<a·class="headerlink"·href="#module-django.contrib.gis.forms.widgets"·title="Link·to·this·heading">¶</a></h2>174 <span·id="s-form-widgets"></span><span·id="module-django.contrib.gis.forms.widgets"></span><span·id="form-widgets"></span><h2>Form·widgets<a·class="headerlink"·href="#module-django.contrib.gis.forms.widgets"·title="Link·to·this·heading">¶</a></h2>
174 <p>GeoDjango·form·widgets·allow·you·to·display·and·edit·geographic·data·on·a175 <p>GeoDjango·form·widgets·allow·you·to·display·and·edit·geographic·data·on·a
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 <dd></dd></dl>200 <dd></dd></dl>
  
200 <dl·class="py·attribute">201 <dl·class="py·attribute">
201 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.widgets.BaseGeometryWidget.map_width">202 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.widgets.BaseGeometryWidget.map_width">
202 <span·class="sig-prename·descclassname"><span·class="pre">BaseGeometryWidget.</span></span><span·class="sig-name·descname"><span·class="pre">map_width</span></span><a·class="headerlink"·href="#django.contrib.gis.forms.widgets.BaseGeometryWidget.map_width"·title="Link·to·this·definition">¶</a></dt>203 <span·class="sig-prename·descclassname"><span·class="pre">BaseGeometryWidget.</span></span><span·class="sig-name·descname"><span·class="pre">map_width</span></span><a·class="headerlink"·href="#django.contrib.gis.forms.widgets.BaseGeometryWidget.map_width"·title="Link·to·this·definition">¶</a></dt>
203 <dd><p>Height·and·width·of·the·widget·map·(default·is·400x600).</p>204 <dd><p>Height·and·width·of·the·widget·map·(default·is·400x600).</p>
204 <div·class="deprecated">205 <div·class="deprecated">
205 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">map_height</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">map_width</span></code>·attributes·are·deprecated,·use·CSS·to206 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">map_height</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">map_width</span></code>·attributes·are·deprecated,·use·CSS·to
206 size·map·widgets·instead.</p>207 size·map·widgets·instead.</p>
207 </div>208 </div>
208 </dd></dl>209 </dd></dl>
  
209 <dl·class="py·attribute">210 <dl·class="py·attribute">
210 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.widgets.BaseGeometryWidget.map_srid">211 <dt·class="sig·sig-object·py"·id="django.contrib.gis.forms.widgets.BaseGeometryWidget.map_srid">
211 <span·class="sig-prename·descclassname"><span·class="pre">BaseGeometryWidget.</span></span><span·class="sig-name·descname"><span·class="pre">map_srid</span></span><a·class="headerlink"·href="#django.contrib.gis.forms.widgets.BaseGeometryWidget.map_srid"·title="Link·to·this·definition">¶</a></dt>212 <span·class="sig-prename·descclassname"><span·class="pre">BaseGeometryWidget.</span></span><span·class="sig-name·descname"><span·class="pre">map_srid</span></span><a·class="headerlink"·href="#django.contrib.gis.forms.widgets.BaseGeometryWidget.map_srid"·title="Link·to·this·definition">¶</a></dt>
Max diff block lines reached; 7598/22483 bytes (33.79%) of diff not shown.
7.13 KB
html2text {}
Max HTML report size reached
119 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/functions.html
Max HTML report size reached
122 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/gdal.html
Max HTML report size reached
5.93 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/geoip2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Geolocation·with·GeoIP2·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Geolocation·with·GeoIP2·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Utilities"·href="utils.html"·/>15 ····<link·rel="next"·title="GeoDjango·Utilities"·href="utils.html"·/>
15 ····<link·rel="prev"·title="GDAL·API"·href="gdal.html"·/>16 ····<link·rel="prev"·title="GDAL·API"·href="gdal.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 310, 37 lines modifiedOffset 311, 37 lines modified
310 <li><a·class="reference·internal"·href="#exceptions">Exceptions</a></li>311 <li><a·class="reference·internal"·href="#exceptions">Exceptions</a></li>
311 </ul>312 </ul>
312 </li>313 </li>
313 </ul>314 </ul>
  
314 ··</div>315 ··</div>
315 ··<div>316 ··<div>
316 ····<h4>Previous·topic</h4>317 ····<h4>Argomento·precedente</h4>
317 ····<p·class="topless"><a·href="gdal.html"318 ····<p·class="topless"><a·href="gdal.html"
318 ··························title="previous·chapter">GDAL·API</a></p>319 ··························title="capitolo·precedente">GDAL·API</a></p>
319 ··</div>320 ··</div>
320 ··<div>321 ··<div>
321 ····<h4>Next·topic</h4>322 ····<h4>Argomento·successivo</h4>
322 ····<p·class="topless"><a·href="utils.html"323 ····<p·class="topless"><a·href="utils.html"
323 ··························title="next·chapter">GeoDjango·Utilities</a></p>324 ··························title="capitolo·successivo">GeoDjango·Utilities</a></p>
324 ··</div>325 ··</div>
325 <search·id="searchbox"·style="display:·none"·role="search">326 <search·id="searchbox"·style="display:·none"·role="search">
326 ··<h3·id="searchlabel">Quick·search</h3>327 ··<h3·id="searchlabel">Ricerca·veloce</h3>
327 ····<div·class="searchformwrapper">328 ····<div·class="searchformwrapper">
328 ····<form·class="search"·action="../../../search.html"·method="get">329 ····<form·class="search"·action="../../../search.html"·method="get">
329 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>330 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
330 ······<input·type="submit"·value="Go"·/>331 ······<input·type="submit"·value="Vai"·/>
331 ····</form>332 ····</form>
332 ····</div>333 ····</div>
333 </search>334 </search>
334 <script>document.getElementById('searchbox').style.display·=·"block"</script>335 <script>document.getElementById('searchbox').style.display·=·"block"</script>
335 ········</div>336 ········</div>
336 ······</div>337 ······</div>
337 ··············<h3>Last·update:</h3>338 ··············<h3>Last·update:</h3>
338 ··············<p·class="topless">Sep·03,·2024</p>339 ··············<p·class="topless">set·03,·2024</p>
339 ··········</div>340 ··········</div>
340 ········341 ········
341 ······342 ······
342 ····</div>343 ····</div>
  
343 ····<div·id="ft">344 ····<div·id="ft">
344 ······<div·class="nav">345 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
29.7 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/geoquerysets.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GIS·QuerySet·API·Reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GIS·QuerySet·API·Reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Geographic·Database·Functions"·href="functions.html"·/>15 ····<link·rel="next"·title="Geographic·Database·Functions"·href="functions.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Forms·API"·href="forms-api.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Forms·API"·href="forms-api.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 468, 15 lines modifiedOffset 469, 15 lines modified
468 </tbody>469 </tbody>
469 </table>470 </table>
470 </section>471 </section>
471 <section·id="s-exact-same-as">472 <section·id="s-exact-same-as">
472 <span·id="s-std-fieldlookup-same_as"></span><span·id="s-std-fieldlookup-exact-noindex"></span><span·id="exact-same-as"></span><span·id="std-fieldlookup-same_as"></span><span·id="std-fieldlookup-exact-noindex"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">exact</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">same_as</span></code><a·class="headerlink"·href="#exact-same-as"·title="Link·to·this·heading">¶</a></h3>473 <span·id="s-std-fieldlookup-same_as"></span><span·id="s-std-fieldlookup-exact-noindex"></span><span·id="exact-same-as"></span><span·id="std-fieldlookup-same_as"></span><span·id="std-fieldlookup-exact-noindex"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">exact</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">same_as</span></code><a·class="headerlink"·href="#exact-same-as"·title="Link·to·this·heading">¶</a></h3>
473 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Geometry_Same.html">PostGIS</a>,474 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Geometry_Same.html">PostGIS</a>,
474 Oracle,·MariaDB,·MySQL,·SpatiaLite,·PGRaster·(Bilateral)</p>475 Oracle,·MariaDB,·MySQL,·SpatiaLite,·PGRaster·(Bilateral)</p>
475 <p>Tests·if·the·geometry·field·is·equal·to·the·lookup·geometry.·On·Oracle,476 <p>Tests·if·the·geometry·field·is·«equal»·to·the·lookup·geometry.·On·Oracle,
476 MySQL,·and·SpatiaLite,·it·tests·spatial·equality,·while·on·PostGIS·it·tests477 MySQL,·and·SpatiaLite,·it·tests·spatial·equality,·while·on·PostGIS·it·tests
477 equality·of·bounding·boxes.</p>478 equality·of·bounding·boxes.</p>
478 <p>Example:</p>479 <p>Example:</p>
479 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Zipcode</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">poly</span><span·class="o">=</span><span·class="n">geom</span><span·class="p">)</span>480 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Zipcode</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">poly</span><span·class="o">=</span><span·class="n">geom</span><span·class="p">)</span>
480 </pre></div>481 </pre></div>
481 </div>482 </div>
482 <table·class="docutils">483 <table·class="docutils">
Offset 613, 15 lines modifiedOffset 614, 15 lines modified
613 <code·class="docutils·literal·notranslate"><span·class="pre">(geom,</span>·<span·class="pre">pattern)</span></code>;·the·form·of·<code·class="docutils·literal·notranslate"><span·class="pre">pattern</span></code>·will·depend·on·the·spatial·backend:</p>614 <code·class="docutils·literal·notranslate"><span·class="pre">(geom,</span>·<span·class="pre">pattern)</span></code>;·the·form·of·<code·class="docutils·literal·notranslate"><span·class="pre">pattern</span></code>·will·depend·on·the·spatial·backend:</p>
614 <section·id="s-mariadb-postgis-and-spatialite">615 <section·id="s-mariadb-postgis-and-spatialite">
615 <span·id="mariadb-postgis-and-spatialite"></span><h4>MariaDB,·PostGIS,·and·SpatiaLite<a·class="headerlink"·href="#mariadb-postgis-and-spatialite"·title="Link·to·this·heading">¶</a></h4>616 <span·id="mariadb-postgis-and-spatialite"></span><h4>MariaDB,·PostGIS,·and·SpatiaLite<a·class="headerlink"·href="#mariadb-postgis-and-spatialite"·title="Link·to·this·heading">¶</a></h4>
616 <p>On·these·spatial·backends·the·intersection·pattern·is·a·string·comprising617 <p>On·these·spatial·backends·the·intersection·pattern·is·a·string·comprising
617 nine·characters,·which··define·intersections·between··the·interior,·boundary,618 nine·characters,·which··define·intersections·between··the·interior,·boundary,
618 and·exterior·of·the·geometry·field·and·the·lookup·geometry.619 and·exterior·of·the·geometry·field·and·the·lookup·geometry.
619 The·intersection·pattern·matrix·may·only·use·the·following·characters:620 The·intersection·pattern·matrix·may·only·use·the·following·characters:
620 <code·class="docutils·literal·notranslate"><span·class="pre">1</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">2</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">T</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">F</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">*</span></code>.··This·lookup·type·allows·users·to·fine·tune621 <code·class="docutils·literal·notranslate"><span·class="pre">1</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">2</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">T</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">F</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">*</span></code>.··This·lookup·type·allows·users·to·«fine·tune»
621 a·specific·geometric·relationship·consistent·with·the·DE-9IM·model.·<a·class="footnote-reference·brackets"·href="#fnde9im"·id="id4"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a></p>622 a·specific·geometric·relationship·consistent·with·the·DE-9IM·model.·<a·class="footnote-reference·brackets"·href="#fnde9im"·id="id4"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a></p>
622 <p>Geometry·example:</p>623 <p>Geometry·example:</p>
623 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·A·tuple·lookup·parameter·is·used·to·specify·the·geometry·and</span>624 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·A·tuple·lookup·parameter·is·used·to·specify·the·geometry·and</span>
624 <span·class="c1">#·the·intersection·pattern·(the·pattern·here·is·for·&#39;contains&#39;).</span>625 <span·class="c1">#·the·intersection·pattern·(the·pattern·here·is·for·&#39;contains&#39;).</span>
625 <span·class="n">Zipcode</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">poly__relate</span><span·class="o">=</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="s2">&quot;T*T***FF*&quot;</span><span·class="p">))</span>626 <span·class="n">Zipcode</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">poly__relate</span><span·class="o">=</span><span·class="p">(</span><span·class="n">geom</span><span·class="p">,</span>·<span·class="s2">&quot;T*T***FF*&quot;</span><span·class="p">))</span>
626 </pre></div>627 </pre></div>
627 </div>628 </div>
Offset 1062, 30 lines modifiedOffset 1063, 30 lines modified
1062 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">WorldBorder</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">Extent</span><span·class="p">(</span><span·class="s2">&quot;mpoly&quot;</span><span·class="p">),</span>·<span·class="n">Union</span><span·class="p">(</span><span·class="s2">&quot;mpoly&quot;</span><span·class="p">))</span>1063 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">WorldBorder</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">Extent</span><span·class="p">(</span><span·class="s2">&quot;mpoly&quot;</span><span·class="p">),</span>·<span·class="n">Union</span><span·class="p">(</span><span·class="s2">&quot;mpoly&quot;</span><span·class="p">))</span>
1063 </pre></div>1064 </pre></div>
1064 </div>1065 </div>
1065 <section·id="s-collect">1066 <section·id="s-collect">
1066 <span·id="collect"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Collect</span></code><a·class="headerlink"·href="#collect"·title="Link·to·this·heading">¶</a></h4>1067 <span·id="collect"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Collect</span></code><a·class="headerlink"·href="#collect"·title="Link·to·this·heading">¶</a></h4>
1067 <dl·class="py·class">1068 <dl·class="py·class">
1068 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Collect">1069 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Collect">
1069 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Collect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Collect"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Collect"·title="Link·to·this·definition">¶</a></dt>1070 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Collect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Collect"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Collect"·title="Link·to·this·definition">¶</a></dt>
1070 <dd></dd></dl>1071 <dd></dd></dl>
  
1071 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Collect.html">PostGIS</a>,1072 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Collect.html">PostGIS</a>,
1072 SpatiaLite</p>1073 SpatiaLite</p>
1073 <p>Returns·a·<code·class="docutils·literal·notranslate"><span·class="pre">GEOMETRYCOLLECTION</span></code>·or·a·<code·class="docutils·literal·notranslate"><span·class="pre">MULTI</span></code>·geometry·object·from·the·geometry1074 <p>Returns·a·<code·class="docutils·literal·notranslate"><span·class="pre">GEOMETRYCOLLECTION</span></code>·or·a·<code·class="docutils·literal·notranslate"><span·class="pre">MULTI</span></code>·geometry·object·from·the·geometry
1074 column.·This·is·analogous·to·a·simplified·version·of·the·<a·class="reference·internal"·href="#django.contrib.gis.db.models.Union"·title="django.contrib.gis.db.models.Union"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Union</span></code></a>1075 column.·This·is·analogous·to·a·simplified·version·of·the·<a·class="reference·internal"·href="#django.contrib.gis.db.models.Union"·title="django.contrib.gis.db.models.Union"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Union</span></code></a>
1075 aggregate,·except·it·can·be·several·orders·of·magnitude·faster·than·performing1076 aggregate,·except·it·can·be·several·orders·of·magnitude·faster·than·performing
1076 a·union·because·it·rolls·up·geometries·into·a·collection·or·multi·object,·not1077 a·union·because·it·rolls·up·geometries·into·a·collection·or·multi·object,·not
1077 caring·about·dissolving·boundaries.</p>1078 caring·about·dissolving·boundaries.</p>
1078 </section>1079 </section>
1079 <section·id="s-extent">1080 <section·id="s-extent">
1080 <span·id="extent"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Extent</span></code><a·class="headerlink"·href="#extent"·title="Link·to·this·heading">¶</a></h4>1081 <span·id="extent"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Extent</span></code><a·class="headerlink"·href="#extent"·title="Link·to·this·heading">¶</a></h4>
1081 <dl·class="py·class">1082 <dl·class="py·class">
1082 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Extent">1083 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Extent">
1083 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Extent</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Extent"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Extent"·title="Link·to·this·definition">¶</a></dt>1084 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Extent</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Extent"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Extent"·title="Link·to·this·definition">¶</a></dt>
1084 <dd></dd></dl>1085 <dd></dd></dl>
  
1085 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Extent.html">PostGIS</a>,1086 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_Extent.html">PostGIS</a>,
1086 Oracle,·SpatiaLite</p>1087 Oracle,·SpatiaLite</p>
1087 <p>Returns·the·extent·of·all·<code·class="docutils·literal·notranslate"><span·class="pre">geo_field</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·as·a·four-tuple,1088 <p>Returns·the·extent·of·all·<code·class="docutils·literal·notranslate"><span·class="pre">geo_field</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·as·a·four-tuple,
1088 comprising·the·lower·left·coordinate·and·the·upper·right·coordinate.</p>1089 comprising·the·lower·left·coordinate·and·the·upper·right·coordinate.</p>
1089 <p>Example:</p>1090 <p>Example:</p>
Offset 1095, 15 lines modifiedOffset 1096, 15 lines modified
1095 </pre></div>1096 </pre></div>
1096 </div>1097 </div>
1097 </section>1098 </section>
1098 <section·id="s-extent3d">1099 <section·id="s-extent3d">
1099 <span·id="extent3d"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Extent3D</span></code><a·class="headerlink"·href="#extent3d"·title="Link·to·this·heading">¶</a></h4>1100 <span·id="extent3d"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Extent3D</span></code><a·class="headerlink"·href="#extent3d"·title="Link·to·this·heading">¶</a></h4>
1100 <dl·class="py·class">1101 <dl·class="py·class">
1101 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Extent3D">1102 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.Extent3D">
1102 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Extent3D</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Extent3D"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Extent3D"·title="Link·to·this·definition">¶</a></dt>1103 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Extent3D</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#Extent3D"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.Extent3D"·title="Link·to·this·definition">¶</a></dt>
1103 <dd></dd></dl>1104 <dd></dd></dl>
  
1104 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_3DExtent.html">PostGIS</a></p>1105 <p><em>Availability</em>:·<a·class="reference·external"·href="https://postgis.net/docs/ST_3DExtent.html">PostGIS</a></p>
1105 <p>Returns·the·3D·extent·of·all·<code·class="docutils·literal·notranslate"><span·class="pre">geo_field</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·as·a·six-tuple,1106 <p>Returns·the·3D·extent·of·all·<code·class="docutils·literal·notranslate"><span·class="pre">geo_field</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·as·a·six-tuple,
1106 comprising·the·lower·left·coordinate·and·upper·right·coordinate·(each·with·x,·y,1107 comprising·the·lower·left·coordinate·and·upper·right·coordinate·(each·with·x,·y,
1107 and·z·coordinates).</p>1108 and·z·coordinates).</p>
1108 <p>Example:</p>1109 <p>Example:</p>
Offset 1113, 15 lines modifiedOffset 1114, 15 lines modified
1113 </pre></div>1114 </pre></div>
1114 </div>1115 </div>
1115 </section>1116 </section>
1116 <section·id="s-makeline">1117 <section·id="s-makeline">
1117 <span·id="makeline"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">MakeLine</span></code><a·class="headerlink"·href="#makeline"·title="Link·to·this·heading">¶</a></h4>1118 <span·id="makeline"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">MakeLine</span></code><a·class="headerlink"·href="#makeline"·title="Link·to·this·heading">¶</a></h4>
1118 <dl·class="py·class">1119 <dl·class="py·class">
1119 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MakeLine">1120 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MakeLine">
1120 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MakeLine</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#MakeLine"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MakeLine"·title="Link·to·this·definition">¶</a></dt>1121 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MakeLine</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">geo_field</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/aggregates.html#MakeLine"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MakeLine"·title="Link·to·this·definition">¶</a></dt>
Max diff block lines reached; 6901/21127 bytes (32.66%) of diff not shown.
8.9 KB
html2text {}
Max HTML report size reached
93.7 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/geos.html
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Tutorial"·href="tutorial.html"·/>15 ····<link·rel="next"·title="GeoDjango·Tutorial"·href="tutorial.html"·/>
15 ····<link·rel="prev"·title="The·flatpages·app"·href="../flatpages.html"·/>16 ····<link·rel="prev"·title="The·flatpages·app"·href="../flatpages.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 247, 37 lines modifiedOffset 248, 37 lines modified
247 ······248 ······
248 ········249 ········
249 ··········<div·class="yui-b"·id="sidebar">250 ··········<div·class="yui-b"·id="sidebar">
250 ············251 ············
251 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">252 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
252 ········<div·class="sphinxsidebarwrapper">253 ········<div·class="sphinxsidebarwrapper">
253 ··<div>254 ··<div>
254 ····<h4>Previous·topic</h4>255 ····<h4>Argomento·precedente</h4>
255 ····<p·class="topless"><a·href="../flatpages.html"256 ····<p·class="topless"><a·href="../flatpages.html"
256 ··························title="previous·chapter">The·flatpages·app</a></p>257 ··························title="capitolo·precedente">The·flatpages·app</a></p>
257 ··</div>258 ··</div>
258 ··<div>259 ··<div>
259 ····<h4>Next·topic</h4>260 ····<h4>Argomento·successivo</h4>
260 ····<p·class="topless"><a·href="tutorial.html"261 ····<p·class="topless"><a·href="tutorial.html"
261 ··························title="next·chapter">GeoDjango·Tutorial</a></p>262 ··························title="capitolo·successivo">GeoDjango·Tutorial</a></p>
262 ··</div>263 ··</div>
263 <search·id="searchbox"·style="display:·none"·role="search">264 <search·id="searchbox"·style="display:·none"·role="search">
264 ··<h3·id="searchlabel">Quick·search</h3>265 ··<h3·id="searchlabel">Ricerca·veloce</h3>
265 ····<div·class="searchformwrapper">266 ····<div·class="searchformwrapper">
266 ····<form·class="search"·action="../../../search.html"·method="get">267 ····<form·class="search"·action="../../../search.html"·method="get">
267 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>268 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
268 ······<input·type="submit"·value="Go"·/>269 ······<input·type="submit"·value="Vai"·/>
269 ····</form>270 ····</form>
270 ····</div>271 ····</div>
271 </search>272 </search>
272 <script>document.getElementById('searchbox').style.display·=·"block"</script>273 <script>document.getElementById('searchbox').style.display·=·"block"</script>
273 ········</div>274 ········</div>
274 ······</div>275 ······</div>
275 ··············<h3>Last·update:</h3>276 ··············<h3>Last·update:</h3>
276 ··············<p·class="topless">Sep·03,·2024</p>277 ··············<p·class="topless">set·03,·2024</p>
277 ··········</div>278 ··········</div>
278 ········279 ········
279 ······280 ······
280 ····</div>281 ····</div>
  
281 ····<div·id="ft">282 ····<div·id="ft">
282 ······<div·class="nav">283 ······<div·class="nav">
1.94 KB
html2text {}
Max HTML report size reached
13.9 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/install/geolibs.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Installing·Geospatial·libraries·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Installing·Geospatial·libraries·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
14 ····<link·rel="next"·title="Installing·PostGIS"·href="postgis.html"·/>15 ····<link·rel="next"·title="Installing·PostGIS"·href="postgis.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Installation"·href="index.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Installation"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../../templatebuiltins.js"></script>18 <script·src="../../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 121, 15 lines modifiedOffset 122, 15 lines modified
121 <td><p>5.0,·4.3</p></td>122 <td><p>5.0,·4.3</p></td>
122 </tr>123 </tr>
123 </tbody>124 </tbody>
124 </table>125 </table>
125 <p>Note·that·older·or·more·recent·versions·of·these·libraries·<em>may</em>·also·work126 <p>Note·that·older·or·more·recent·versions·of·these·libraries·<em>may</em>·also·work
126 totally·fine·with·GeoDjango.·Your·mileage·may·vary.</p>127 totally·fine·with·GeoDjango.·Your·mileage·may·vary.</p>
127 <div·class="admonition·note">128 <div·class="admonition·note">
128 <p·class="admonition-title">Note</p>129 <p·class="admonition-title">Nota</p>
129 <p>The·GeoDjango·interfaces·to·GEOS,·GDAL,·and·GeoIP·may·be·used130 <p>The·GeoDjango·interfaces·to·GEOS,·GDAL,·and·GeoIP·may·be·used
130 independently·of·Django.··In·other·words,·no·database·or·settings·file131 independently·of·Django.··In·other·words,·no·database·or·settings·file
131 required··import·them·as·normal·from·<a·class="reference·internal"·href="../index.html#module-django.contrib.gis"·title="django.contrib.gis:·Geographic·Information·System·(GIS)·extensions·for·Django"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.gis</span></code></a>.</p>132 required··import·them·as·normal·from·<a·class="reference·internal"·href="../index.html#module-django.contrib.gis"·title="django.contrib.gis:·Geographic·Information·System·(GIS)·extensions·for·Django"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.gis</span></code></a>.</p>
132 </div>133 </div>
133 <p>On·Debian/Ubuntu,·you·are·advised·to·install·the·following·packages·which·will134 <p>On·Debian/Ubuntu,·you·are·advised·to·install·the·following·packages·which·will
134 install,·directly·or·by·dependency,·the·required·geospatial·libraries:</p>135 install,·directly·or·by·dependency,·the·required·geospatial·libraries:</p>
135 <div·class="highlight-console·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">$·</span>sudo<span·class="w">·</span>apt-get<span·class="w">·</span>install<span·class="w">·</span>binutils<span·class="w">·</span>libproj-dev<span·class="w">·</span>gdal-bin136 <div·class="highlight-console·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">$·</span>sudo<span·class="w">·</span>apt-get<span·class="w">·</span>install<span·class="w">·</span>binutils<span·class="w">·</span>libproj-dev<span·class="w">·</span>gdal-bin
Offset 140, 30 lines modifiedOffset 141, 30 lines modified
140 <section·id="s-building-from-source">141 <section·id="s-building-from-source">
141 <span·id="s-build-from-source"></span><span·id="building-from-source"></span><span·id="build-from-source"></span><h2>Building·from·source<a·class="headerlink"·href="#building-from-source"·title="Link·to·this·heading">¶</a></h2>142 <span·id="s-build-from-source"></span><span·id="building-from-source"></span><span·id="build-from-source"></span><h2>Building·from·source<a·class="headerlink"·href="#building-from-source"·title="Link·to·this·heading">¶</a></h2>
142 <p>When·installing·from·source·on·UNIX·and·GNU/Linux·systems,·please·follow143 <p>When·installing·from·source·on·UNIX·and·GNU/Linux·systems,·please·follow
143 the·installation·instructions·carefully,·and·install·the·libraries·in·the144 the·installation·instructions·carefully,·and·install·the·libraries·in·the
144 given·order.··If·using·MySQL·or·Oracle·as·the·spatial·database,·only·GEOS145 given·order.··If·using·MySQL·or·Oracle·as·the·spatial·database,·only·GEOS
145 is·required.</p>146 is·required.</p>
146 <div·class="admonition·note">147 <div·class="admonition·note">
147 <p·class="admonition-title">Note</p>148 <p·class="admonition-title">Nota</p>
148 <p>On·Linux·platforms,·it·may·be·necessary·to·run·the·<code·class="docutils·literal·notranslate"><span·class="pre">ldconfig</span></code>·command149 <p>On·Linux·platforms,·it·may·be·necessary·to·run·the·<code·class="docutils·literal·notranslate"><span·class="pre">ldconfig</span></code>·command
149 after·installing·each·library.·For·example:</p>150 after·installing·each·library.·For·example:</p>
150 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>sudo<span·class="w">·</span>make<span·class="w">·</span>install151 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>sudo<span·class="w">·</span>make<span·class="w">·</span>install
151 $<span·class="w">·</span>sudo<span·class="w">·</span>ldconfig152 $<span·class="w">·</span>sudo<span·class="w">·</span>ldconfig
152 </pre></div>153 </pre></div>
153 </div>154 </div>
154 </div>155 </div>
155 <div·class="admonition·note">156 <div·class="admonition·note">
156 <p·class="admonition-title">Note</p>157 <p·class="admonition-title">Nota</p>
157 <p>macOS·users·must·install·<a·class="reference·external"·href="https://developer.apple.com/xcode/">Xcode</a>·in·order·to·compile·software·from·source.</p>158 <p>macOS·users·must·install·<a·class="reference·external"·href="https://developer.apple.com/xcode/">Xcode</a>·in·order·to·compile·software·from·source.</p>
158 </div>159 </div>
159 <section·id="s-geos">160 <section·id="s-geos">
160 <span·id="s-geosbuild"></span><span·id="geos"></span><span·id="geosbuild"></span><h3>GEOS<a·class="headerlink"·href="#geos"·title="Link·to·this·heading">¶</a></h3>161 <span·id="s-geosbuild"></span><span·id="geos"></span><span·id="geosbuild"></span><h3>GEOS<a·class="headerlink"·href="#geos"·title="Link·to·this·heading">¶</a></h3>
161 <p>GEOS·is·a·C++·library·for·performing·geometric·operations,·and·is·the·default162 <p>GEOS·is·a·C++·library·for·performing·geometric·operations,·and·is·the·default
162 internal·geometry·representation·used·by·GeoDjango·(it’s·behind·the·lazy163 internal·geometry·representation·used·by·GeoDjango·(it’s·behind·the·«lazy»
163 geometries).··Specifically,·the·C·API·library·is·called·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos_c.so</span></code>)164 geometries).··Specifically,·the·C·API·library·is·called·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos_c.so</span></code>)
164 directly·from·Python·using·ctypes.</p>165 directly·from·Python·using·ctypes.</p>
165 <p>First,·download·GEOS·from·the·GEOS·website·and·untar·the·source·archive:</p>166 <p>First,·download·GEOS·from·the·GEOS·website·and·untar·the·source·archive:</p>
166 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>wget<span·class="w">·</span>https://download.osgeo.org/geos/geos-X.Y.Z.tar.bz2167 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>wget<span·class="w">·</span>https://download.osgeo.org/geos/geos-X.Y.Z.tar.bz2
167 $<span·class="w">·</span>tar<span·class="w">·</span>xjf<span·class="w">·</span>geos-X.Y.Z.tar.bz2168 $<span·class="w">·</span>tar<span·class="w">·</span>xjf<span·class="w">·</span>geos-X.Y.Z.tar.bz2
168 </pre></div>169 </pre></div>
169 </div>170 </div>
Offset 198, 15 lines modifiedOffset 199, 15 lines modified
198 modify·the·system’s·library·path·then·the·<a·class="reference·internal"·href="../geos.html#std-setting-GEOS_LIBRARY_PATH"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">GEOS_LIBRARY_PATH</span></code></a>199 modify·the·system’s·library·path·then·the·<a·class="reference·internal"·href="../geos.html#std-setting-GEOS_LIBRARY_PATH"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">GEOS_LIBRARY_PATH</span></code></a>
199 setting·may·be·added·to·your·Django·settings·file·with·the·full·path·to·the200 setting·may·be·added·to·your·Django·settings·file·with·the·full·path·to·the
200 GEOS·C·library.··For·example:</p>201 GEOS·C·library.··For·example:</p>
201 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nv">GEOS_LIBRARY_PATH</span><span·class="w">·</span><span·class="o">=</span><span·class="w">·</span><span·class="s1">&#39;/home/bob/local/lib/libgeos_c.so&#39;</span>202 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nv">GEOS_LIBRARY_PATH</span><span·class="w">·</span><span·class="o">=</span><span·class="w">·</span><span·class="s1">&#39;/home/bob/local/lib/libgeos_c.so&#39;</span>
202 </pre></div>203 </pre></div>
203 </div>204 </div>
204 <div·class="admonition·note">205 <div·class="admonition·note">
205 <p·class="admonition-title">Note</p>206 <p·class="admonition-title">Nota</p>
206 <p>The·setting·must·be·the·<em>full</em>·path·to·the·<strong>C</strong>·shared·library;·in207 <p>The·setting·must·be·the·<em>full</em>·path·to·the·<strong>C</strong>·shared·library;·in
207 other·words·you·want·to·use·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos_c.so</span></code>,·not·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos.so</span></code>.</p>208 other·words·you·want·to·use·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos_c.so</span></code>,·not·<code·class="docutils·literal·notranslate"><span·class="pre">libgeos.so</span></code>.</p>
208 </div>209 </div>
209 <p>See·also·<a·class="reference·internal"·href="../geos.html#geos-exceptions-in-logfile"><span·class="std·std-ref">My·logs·are·filled·with·GEOS-related·errors</span></a>.</p>210 <p>See·also·<a·class="reference·internal"·href="../geos.html#geos-exceptions-in-logfile"><span·class="std·std-ref">My·logs·are·filled·with·GEOS-related·errors</span></a>.</p>
210 </section>211 </section>
211 </section>212 </section>
212 </section>213 </section>
Offset 350, 37 lines modifiedOffset 351, 37 lines modified
350 </li>351 </li>
351 </ul>352 </ul>
352 </li>353 </li>
353 </ul>354 </ul>
  
354 ··</div>355 ··</div>
355 ··<div>356 ··<div>
356 ····<h4>Previous·topic</h4>357 ····<h4>Argomento·precedente</h4>
357 ····<p·class="topless"><a·href="index.html"358 ····<p·class="topless"><a·href="index.html"
358 ··························title="previous·chapter">GeoDjango·Installation</a></p>359 ··························title="capitolo·precedente">GeoDjango·Installation</a></p>
359 ··</div>360 ··</div>
360 ··<div>361 ··<div>
361 ····<h4>Next·topic</h4>362 ····<h4>Argomento·successivo</h4>
362 ····<p·class="topless"><a·href="postgis.html"363 ····<p·class="topless"><a·href="postgis.html"
363 ··························title="next·chapter">Installing·PostGIS</a></p>364 ··························title="capitolo·successivo">Installing·PostGIS</a></p>
364 ··</div>365 ··</div>
365 <search·id="searchbox"·style="display:·none"·role="search">366 <search·id="searchbox"·style="display:·none"·role="search">
366 ··<h3·id="searchlabel">Quick·search</h3>367 ··<h3·id="searchlabel">Ricerca·veloce</h3>
367 ····<div·class="searchformwrapper">368 ····<div·class="searchformwrapper">
368 ····<form·class="search"·action="../../../../search.html"·method="get">369 ····<form·class="search"·action="../../../../search.html"·method="get">
369 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>370 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
370 ······<input·type="submit"·value="Go"·/>371 ······<input·type="submit"·value="Vai"·/>
371 ····</form>372 ····</form>
372 ····</div>373 ····</div>
Max diff block lines reached; 342/8718 bytes (3.92%) of diff not shown.
5.27 KB
html2text {}
Max HTML report size reached
28.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/install/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Installation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Installation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
14 ····<link·rel="next"·title="Installing·Geospatial·libraries"·href="geolibs.html"·/>15 ····<link·rel="next"·title="Installing·Geospatial·libraries"·href="geolibs.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Tutorial"·href="../tutorial.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Tutorial"·href="../tutorial.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../../templatebuiltins.js"></script>18 <script·src="../../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 15 lines modifiedOffset 113, 15 lines modified
112 how·to·install.</p>113 how·to·install.</p>
113 </section>114 </section>
114 <section·id="s-spatial-database">115 <section·id="s-spatial-database">
115 <span·id="s-id1"></span><span·id="spatial-database"></span><span·id="id1"></span><h3>Spatial·database<a·class="headerlink"·href="#spatial-database"·title="Link·to·this·heading">¶</a></h3>116 <span·id="s-id1"></span><span·id="spatial-database"></span><span·id="id1"></span><h3>Spatial·database<a·class="headerlink"·href="#spatial-database"·title="Link·to·this·heading">¶</a></h3>
116 <p>PostgreSQL·(with·PostGIS),·MySQL,·Oracle,·and·SQLite·(with·SpatiaLite)·are·the117 <p>PostgreSQL·(with·PostGIS),·MySQL,·Oracle,·and·SQLite·(with·SpatiaLite)·are·the
117 spatial·databases·currently·supported.</p>118 spatial·databases·currently·supported.</p>
118 <div·class="admonition·note">119 <div·class="admonition·note">
119 <p·class="admonition-title">Note</p>120 <p·class="admonition-title">Nota</p>
120 <p>PostGIS·is·recommended,·because·it·is·the·most·mature·and·feature-rich121 <p>PostGIS·is·recommended,·because·it·is·the·most·mature·and·feature-rich
121 open·source·spatial·database.</p>122 open·source·spatial·database.</p>
122 </div>123 </div>
123 <p>The·geospatial·libraries·required·for·a·GeoDjango·installation·depends124 <p>The·geospatial·libraries·required·for·a·GeoDjango·installation·depends
124 on·the·spatial·database·used.··The·following·lists·the·library·requirements,125 on·the·spatial·database·used.··The·following·lists·the·library·requirements,
125 supported·versions,·and·any·notes·for·each·of·the·supported·database·backends:</p>126 supported·versions,·and·any·notes·for·each·of·the·supported·database·backends:</p>
126 <table·class="docutils">127 <table·class="docutils">
Offset 197, 15 lines modifiedOffset 198, 15 lines modified
197 <ul·class="simple">198 <ul·class="simple">
198 <li><p>Join·the·<code·class="docutils·literal·notranslate"><span·class="pre">#django-geo</span></code>·IRC·channel·on·Libera.Chat.·Please·be·patient·and199 <li><p>Join·the·<code·class="docutils·literal·notranslate"><span·class="pre">#django-geo</span></code>·IRC·channel·on·Libera.Chat.·Please·be·patient·and
199 polite··while·you·may·not·get·an·immediate·response,·someone·will·attempt200 polite··while·you·may·not·get·an·immediate·response,·someone·will·attempt
200 to·answer·your·question·as·soon·as·they·see·it.</p></li>201 to·answer·your·question·as·soon·as·they·see·it.</p></li>
201 <li><p>Ask·your·question·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/geodjango/13">GeoDjango</a>·forum.</p></li>202 <li><p>Ask·your·question·on·the·<a·class="reference·external"·href="https://forum.djangoproject.com/c/internals/geodjango/13">GeoDjango</a>·forum.</p></li>
202 <li><p>File·a·ticket·on·the·<a·class="reference·external"·href="https://code.djangoproject.com/newticket">Django·trac</a>·if·you·think·there’s·a·bug.··Make203 <li><p>File·a·ticket·on·the·<a·class="reference·external"·href="https://code.djangoproject.com/newticket">Django·trac</a>·if·you·think·there’s·a·bug.··Make
203 sure·to·provide·a·complete·description·of·the·problem,·versions·used,204 sure·to·provide·a·complete·description·of·the·problem,·versions·used,
204 and·specify·the·component·as·GIS.</p></li>205 and·specify·the·component·as·«GIS».</p></li>
205 </ul>206 </ul>
206 <section·id="s-library-environment-settings">207 <section·id="s-library-environment-settings">
207 <span·id="s-libsettings"></span><span·id="library-environment-settings"></span><span·id="libsettings"></span><h3>Library·environment·settings<a·class="headerlink"·href="#library-environment-settings"·title="Link·to·this·heading">¶</a></h3>208 <span·id="s-libsettings"></span><span·id="library-environment-settings"></span><span·id="libsettings"></span><h3>Library·environment·settings<a·class="headerlink"·href="#library-environment-settings"·title="Link·to·this·heading">¶</a></h3>
208 <p>By·far,·the·most·common·problem·when·installing·GeoDjango·is·that·the209 <p>By·far,·the·most·common·problem·when·installing·GeoDjango·is·that·the
209 external·shared·libraries·(e.g.,·for·GEOS·and·GDAL)·cannot·be·located.·<a·class="footnote-reference·brackets"·href="#id22"·id="id5"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>210 external·shared·libraries·(e.g.,·for·GEOS·and·GDAL)·cannot·be·located.·<a·class="footnote-reference·brackets"·href="#id22"·id="id5"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>
210 Typically,·the·cause·of·this·problem·is·that·the·operating·system·isn’t·aware211 Typically,·the·cause·of·this·problem·is·that·the·operating·system·isn’t·aware
211 of·the·directory·where·the·libraries·built·from·source·were·installed.</p>212 of·the·directory·where·the·libraries·built·from·source·were·installed.</p>
Offset 277, 18 lines modifiedOffset 278, 18 lines modified
277 <p>This·section·also·includes·instructions·for·installing·an·upgraded·version278 <p>This·section·also·includes·instructions·for·installing·an·upgraded·version
278 of·<a·class="reference·internal"·href="#macos-python"><span·class="std·std-ref">Python</span></a>·from·packages·provided·by·the·Python·Software279 of·<a·class="reference·internal"·href="#macos-python"><span·class="std·std-ref">Python</span></a>·from·packages·provided·by·the·Python·Software
279 Foundation,·however,·this·is·not·required.</p>280 Foundation,·however,·this·is·not·required.</p>
280 <section·id="s-python">281 <section·id="s-python">
281 <span·id="s-macos-python"></span><span·id="python"></span><span·id="macos-python"></span><h4>Python<a·class="headerlink"·href="#python"·title="Link·to·this·heading">¶</a></h4>282 <span·id="s-macos-python"></span><span·id="python"></span><span·id="macos-python"></span><h4>Python<a·class="headerlink"·href="#python"·title="Link·to·this·heading">¶</a></h4>
282 <p>Although·macOS·comes·with·Python·installed,·users·can·use·<a·class="reference·external"·href="https://www.python.org/ftp/python/">framework283 <p>Although·macOS·comes·with·Python·installed,·users·can·use·<a·class="reference·external"·href="https://www.python.org/ftp/python/">framework
283 installers</a>·provided·by·the·Python·Software·Foundation.··An·advantage·to284 installers</a>·provided·by·the·Python·Software·Foundation.··An·advantage·to
284 using·the·installer·is·that·macOS’s·Python·will·remain·pristine·for·internal285 using·the·installer·is·that·macOS’s·Python·will·remain·«pristine»·for·internal
285 operating·system·use.</p>286 operating·system·use.</p>
286 <div·class="admonition·note">287 <div·class="admonition·note">
287 <p·class="admonition-title">Note</p>288 <p·class="admonition-title">Nota</p>
288 <p>You·will·need·to·modify·the·<code·class="docutils·literal·notranslate"><span·class="pre">PATH</span></code>·environment·variable·in·your289 <p>You·will·need·to·modify·the·<code·class="docutils·literal·notranslate"><span·class="pre">PATH</span></code>·environment·variable·in·your
289 <code·class="docutils·literal·notranslate"><span·class="pre">.profile</span></code>·file·so·that·the·new·version·of·Python·is·used·when290 <code·class="docutils·literal·notranslate"><span·class="pre">.profile</span></code>·file·so·that·the·new·version·of·Python·is·used·when
290 <code·class="docutils·literal·notranslate"><span·class="pre">python</span></code>·is·entered·at·the·command-line:</p>291 <code·class="docutils·literal·notranslate"><span·class="pre">python</span></code>·is·entered·at·the·command-line:</p>
291 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">export</span><span·class="w">·</span><span·class="nv">PATH</span><span·class="o">=</span>/Library/Frameworks/Python.framework/Versions/Current/bin:<span·class="nv">$PATH</span>292 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">export</span><span·class="w">·</span><span·class="nv">PATH</span><span·class="o">=</span>/Library/Frameworks/Python.framework/Versions/Current/bin:<span·class="nv">$PATH</span>
292 </pre></div>293 </pre></div>
293 </div>294 </div>
294 </div>295 </div>
Offset 305, 15 lines modifiedOffset 306, 15 lines modified
305 </pre></div>306 </pre></div>
306 </div>307 </div>
307 <p>You·can·check·if·the·path·is·set·up·correctly·by·typing·<code·class="docutils·literal·notranslate"><span·class="pre">which</span>·<span·class="pre">psql</span></code>·at·a308 <p>You·can·check·if·the·path·is·set·up·correctly·by·typing·<code·class="docutils·literal·notranslate"><span·class="pre">which</span>·<span·class="pre">psql</span></code>·at·a
308 terminal·prompt.</p>309 terminal·prompt.</p>
309 </section>310 </section>
310 <section·id="s-homebrew">311 <section·id="s-homebrew">
311 <span·id="s-id9"></span><span·id="homebrew"></span><span·id="id9"></span><h4>Homebrew<a·class="headerlink"·href="#homebrew"·title="Link·to·this·heading">¶</a></h4>312 <span·id="s-id9"></span><span·id="homebrew"></span><span·id="id9"></span><h4>Homebrew<a·class="headerlink"·href="#homebrew"·title="Link·to·this·heading">¶</a></h4>
312 <p><a·class="reference·external"·href="https://brew.sh/">Homebrew</a>·provides·recipes·for·building·binaries·and·packages·from·source.313 <p><a·class="reference·external"·href="https://brew.sh/">Homebrew</a>·provides·«recipes»·for·building·binaries·and·packages·from·source.
313 It·provides·recipes·for·the·GeoDjango·prerequisites·on·Macintosh·computers314 It·provides·recipes·for·the·GeoDjango·prerequisites·on·Macintosh·computers
314 running·macOS.·Because·Homebrew·still·builds·the·software·from·source,·<a·class="reference·external"·href="https://developer.apple.com/xcode/">Xcode</a>315 running·macOS.·Because·Homebrew·still·builds·the·software·from·source,·<a·class="reference·external"·href="https://developer.apple.com/xcode/">Xcode</a>
315 is·required.</p>316 is·required.</p>
316 <p>Summary:</p>317 <p>Summary:</p>
317 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>postgresql318 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>postgresql
318 $<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>postgis319 $<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>postgis
319 $<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>gdal320 $<span·class="w">·</span>brew<span·class="w">·</span>install<span·class="w">·</span>gdal
Offset 338, 15 lines modifiedOffset 339, 15 lines modified
338 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>proj6339 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>proj6
339 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>postgis3340 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>postgis3
340 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>gdal341 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>gdal
341 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>libgeoip342 $<span·class="w">·</span>sudo<span·class="w">·</span>port<span·class="w">·</span>install<span·class="w">·</span>libgeoip
342 </pre></div>343 </pre></div>
343 </div>344 </div>
344 <div·class="admonition·note">345 <div·class="admonition·note">
345 <p·class="admonition-title">Note</p>346 <p·class="admonition-title">Nota</p>
346 <p>You·will·also·have·to·modify·the·<code·class="docutils·literal·notranslate"><span·class="pre">PATH</span></code>·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">.profile</span></code>·so347 <p>You·will·also·have·to·modify·the·<code·class="docutils·literal·notranslate"><span·class="pre">PATH</span></code>·in·your·<code·class="docutils·literal·notranslate"><span·class="pre">.profile</span></code>·so
347 that·the·MacPorts·programs·are·accessible·from·the·command-line:</p>348 that·the·MacPorts·programs·are·accessible·from·the·command-line:</p>
348 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">export</span><span·class="w">·</span><span·class="nv">PATH</span><span·class="o">=</span>/opt/local/bin:/opt/local/lib/postgresql13/bin349 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="nb">export</span><span·class="w">·</span><span·class="nv">PATH</span><span·class="o">=</span>/opt/local/bin:/opt/local/lib/postgresql13/bin
349 </pre></div>350 </pre></div>
350 </div>351 </div>
351 <p>In·addition,·add·the·<code·class="docutils·literal·notranslate"><span·class="pre">DYLD_FALLBACK_LIBRARY_PATH</span></code>·setting·so·that352 <p>In·addition,·add·the·<code·class="docutils·literal·notranslate"><span·class="pre">DYLD_FALLBACK_LIBRARY_PATH</span></code>·setting·so·that
352 the·libraries·can·be·found·by·Python:</p>353 the·libraries·can·be·found·by·Python:</p>
Offset 369, 49 lines modifiedOffset 370, 49 lines modified
369 <section·id="s-postgresql">370 <section·id="s-postgresql">
370 <span·id="postgresql"></span><h4>PostgreSQL<a·class="headerlink"·href="#postgresql"·title="Link·to·this·heading">¶</a></h4>371 <span·id="postgresql"></span><h4>PostgreSQL<a·class="headerlink"·href="#postgresql"·title="Link·to·this·heading">¶</a></h4>
371 <p>Download·the·latest·<a·class="reference·external"·href="https://www.enterprisedb.com/downloads/postgres-postgresql-downloads">PostgreSQL·15.x·installer</a>·from·the372 <p>Download·the·latest·<a·class="reference·external"·href="https://www.enterprisedb.com/downloads/postgres-postgresql-downloads">PostgreSQL·15.x·installer</a>·from·the
372 <a·class="reference·external"·href="https://www.enterprisedb.com">EnterpriseDB</a>·website.··After·downloading,·run·the·installer,·follow·the373 <a·class="reference·external"·href="https://www.enterprisedb.com">EnterpriseDB</a>·website.··After·downloading,·run·the·installer,·follow·the
Max diff block lines reached; 7304/17046 bytes (42.85%) of diff not shown.
11.2 KB
html2text {}
Max HTML report size reached
6.22 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/install/postgis.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Installing·PostGIS·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Installing·PostGIS·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
14 ····<link·rel="next"·title="Installing·SpatiaLite"·href="spatialite.html"·/>15 ····<link·rel="next"·title="Installing·SpatiaLite"·href="spatialite.html"·/>
15 ····<link·rel="prev"·title="Installing·Geospatial·libraries"·href="geolibs.html"·/>16 ····<link·rel="prev"·title="Installing·Geospatial·libraries"·href="geolibs.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../../templatebuiltins.js"></script>18 <script·src="../../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 160, 37 lines modifiedOffset 161, 37 lines modified
160 </li>161 </li>
161 </ul>162 </ul>
162 </li>163 </li>
163 </ul>164 </ul>
  
164 ··</div>165 ··</div>
165 ··<div>166 ··<div>
166 ····<h4>Previous·topic</h4>167 ····<h4>Argomento·precedente</h4>
167 ····<p·class="topless"><a·href="geolibs.html"168 ····<p·class="topless"><a·href="geolibs.html"
168 ··························title="previous·chapter">Installing·Geospatial·libraries</a></p>169 ··························title="capitolo·precedente">Installing·Geospatial·libraries</a></p>
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Next·topic</h4>172 ····<h4>Argomento·successivo</h4>
172 ····<p·class="topless"><a·href="spatialite.html"173 ····<p·class="topless"><a·href="spatialite.html"
173 ··························title="next·chapter">Installing·SpatiaLite</a></p>174 ··························title="capitolo·successivo">Installing·SpatiaLite</a></p>
174 ··</div>175 ··</div>
175 <search·id="searchbox"·style="display:·none"·role="search">176 <search·id="searchbox"·style="display:·none"·role="search">
176 ··<h3·id="searchlabel">Quick·search</h3>177 ··<h3·id="searchlabel">Ricerca·veloce</h3>
177 ····<div·class="searchformwrapper">178 ····<div·class="searchformwrapper">
178 ····<form·class="search"·action="../../../../search.html"·method="get">179 ····<form·class="search"·action="../../../../search.html"·method="get">
179 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
180 ······<input·type="submit"·value="Go"·/>181 ······<input·type="submit"·value="Vai"·/>
181 ····</form>182 ····</form>
182 ····</div>183 ····</div>
183 </search>184 </search>
184 <script>document.getElementById('searchbox').style.display·=·"block"</script>185 <script>document.getElementById('searchbox').style.display·=·"block"</script>
185 ········</div>186 ········</div>
186 ······</div>187 ······</div>
187 ··············<h3>Last·update:</h3>188 ··············<h3>Last·update:</h3>
188 ··············<p·class="topless">Sep·03,·2024</p>189 ··············<p·class="topless">set·03,·2024</p>
189 ··········</div>190 ··········</div>
190 ········191 ········
191 ······192 ······
192 ····</div>193 ····</div>
  
193 ····<div·id="ft">194 ····<div·id="ft">
194 ······<div·class="nav">195 ······<div·class="nav">
2.32 KB
html2text {}
Max HTML report size reached
7.58 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/install/spatialite.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../../">2 <html·lang="it"·data-content_root="../../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Installing·SpatiaLite·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Installing·SpatiaLite·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Model·API"·href="../model-api.html"·/>15 ····<link·rel="next"·title="GeoDjango·Model·API"·href="../model-api.html"·/>
15 ····<link·rel="prev"·title="Installing·PostGIS"·href="postgis.html"·/>16 ····<link·rel="prev"·title="Installing·PostGIS"·href="postgis.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../../templatebuiltins.js"></script>18 <script·src="../../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 126, 15 lines modifiedOffset 127, 15 lines modified
126 $<span·class="w">·</span><span·class="nb">cd</span><span·class="w">·</span>libspatialite-X.Y.Z127 $<span·class="w">·</span><span·class="nb">cd</span><span·class="w">·</span>libspatialite-X.Y.Z
127 $<span·class="w">·</span>./configure128 $<span·class="w">·</span>./configure
128 $<span·class="w">·</span>make129 $<span·class="w">·</span>make
129 $<span·class="w">·</span>sudo<span·class="w">·</span>make<span·class="w">·</span>install130 $<span·class="w">·</span>sudo<span·class="w">·</span>make<span·class="w">·</span>install
130 </pre></div>131 </pre></div>
131 </div>132 </div>
132 <div·class="admonition·note">133 <div·class="admonition·note">
133 <p·class="admonition-title">Note</p>134 <p·class="admonition-title">Nota</p>
134 <p>For·macOS·users·building·from·source,·the·SpatiaLite·library·<em>and</em>·tools135 <p>For·macOS·users·building·from·source,·the·SpatiaLite·library·<em>and</em>·tools
135 need·to·have·their·<code·class="docutils·literal·notranslate"><span·class="pre">target</span></code>·configured:</p>136 need·to·have·their·<code·class="docutils·literal·notranslate"><span·class="pre">target</span></code>·configured:</p>
136 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>./configure<span·class="w">·</span>--target<span·class="o">=</span>macosx137 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>./configure<span·class="w">·</span>--target<span·class="o">=</span>macosx
137 </pre></div>138 </pre></div>
138 </div>139 </div>
139 </div>140 </div>
140 </section>141 </section>
Offset 185, 37 lines modifiedOffset 186, 37 lines modified
185 </li>186 </li>
186 </ul>187 </ul>
187 </li>188 </li>
188 </ul>189 </ul>
  
189 ··</div>190 ··</div>
190 ··<div>191 ··<div>
191 ····<h4>Previous·topic</h4>192 ····<h4>Argomento·precedente</h4>
192 ····<p·class="topless"><a·href="postgis.html"193 ····<p·class="topless"><a·href="postgis.html"
193 ··························title="previous·chapter">Installing·PostGIS</a></p>194 ··························title="capitolo·precedente">Installing·PostGIS</a></p>
194 ··</div>195 ··</div>
195 ··<div>196 ··<div>
196 ····<h4>Next·topic</h4>197 ····<h4>Argomento·successivo</h4>
197 ····<p·class="topless"><a·href="../model-api.html"198 ····<p·class="topless"><a·href="../model-api.html"
198 ··························title="next·chapter">GeoDjango·Model·API</a></p>199 ··························title="capitolo·successivo">GeoDjango·Model·API</a></p>
199 ··</div>200 ··</div>
200 <search·id="searchbox"·style="display:·none"·role="search">201 <search·id="searchbox"·style="display:·none"·role="search">
201 ··<h3·id="searchlabel">Quick·search</h3>202 ··<h3·id="searchlabel">Ricerca·veloce</h3>
202 ····<div·class="searchformwrapper">203 ····<div·class="searchformwrapper">
203 ····<form·class="search"·action="../../../../search.html"·method="get">204 ····<form·class="search"·action="../../../../search.html"·method="get">
204 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>205 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
205 ······<input·type="submit"·value="Go"·/>206 ······<input·type="submit"·value="Vai"·/>
206 ····</form>207 ····</form>
207 ····</div>208 ····</div>
208 </search>209 </search>
209 <script>document.getElementById('searchbox').style.display·=·"block"</script>210 <script>document.getElementById('searchbox').style.display·=·"block"</script>
210 ········</div>211 ········</div>
211 ······</div>212 ······</div>
212 ··············<h3>Last·update:</h3>213 ··············<h3>Last·update:</h3>
213 ··············<p·class="topless">Sep·03,·2024</p>214 ··············<p·class="topless">set·03,·2024</p>
214 ··········</div>215 ··········</div>
215 ········216 ········
216 ······217 ······
217 ····</div>218 ····</div>
  
218 ····<div·id="ft">219 ····<div·id="ft">
219 ······<div·class="nav">220 ······<div·class="nav">
2.9 KB
html2text {}
Max HTML report size reached
21.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/layermapping.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>LayerMapping·data·import·utility·&#8212;·Django·4.2.16·documentation</title>6 ····<title>LayerMapping·data·import·utility·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="OGR·Inspection"·href="ogrinspect.html"·/>15 ····<link·rel="next"·title="OGR·Inspection"·href="ogrinspect.html"·/>
15 ····<link·rel="prev"·title="GeoDjango·Utilities"·href="utils.html"·/>16 ····<link·rel="prev"·title="GeoDjango·Utilities"·href="utils.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 82, 19 lines modifiedOffset 83, 19 lines modified
82 <p>The·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·class·provides·a·way·to·map·the·contents·of83 <p>The·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·class·provides·a·way·to·map·the·contents·of
83 vector·spatial·data·files·(e.g.·shapefiles)·into·GeoDjango·models.</p>84 vector·spatial·data·files·(e.g.·shapefiles)·into·GeoDjango·models.</p>
84 <p>This·utility·grew·out·of·the·author’s·personal·needs·to·eliminate85 <p>This·utility·grew·out·of·the·author’s·personal·needs·to·eliminate
85 the·code·repetition·that·went·into·pulling·geometries·and·fields·out·of86 the·code·repetition·that·went·into·pulling·geometries·and·fields·out·of
86 a·vector·layer,·converting·to·another·coordinate·system·(e.g.·WGS84),·and87 a·vector·layer,·converting·to·another·coordinate·system·(e.g.·WGS84),·and
87 then·inserting·into·a·GeoDjango·model.</p>88 then·inserting·into·a·GeoDjango·model.</p>
88 <div·class="admonition·note">89 <div·class="admonition·note">
89 <p·class="admonition-title">Note</p>90 <p·class="admonition-title">Nota</p>
90 <p>Use·of·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·requires·GDAL.</p>91 <p>Use·of·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·requires·GDAL.</p>
91 </div>92 </div>
92 <div·class="admonition·warning">93 <div·class="admonition·warning">
93 <p·class="admonition-title">Warning</p>94 <p·class="admonition-title">Avvertimento</p>
94 <p>GIS·data·sources,·like·shapefiles,·may·be·very·large.··If·you·find95 <p>GIS·data·sources,·like·shapefiles,·may·be·very·large.··If·you·find
95 that·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·is·using·too·much·memory,·set96 that·<a·class="reference·internal"·href="#django.contrib.gis.utils.LayerMapping"·title="django.contrib.gis.utils.LayerMapping"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code></a>·is·using·too·much·memory,·set
96 <a·class="reference·internal"·href="../../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·in·your·settings.··When·<a·class="reference·internal"·href="../../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>97 <a·class="reference·internal"·href="../../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·in·your·settings.··When·<a·class="reference·internal"·href="../../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>
97 is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·Django·<a·class="reference·internal"·href="../../../faq/models.html#faq-see-raw-sql-queries"><span·class="std·std-ref">automatically·logs</span></a>98 is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·Django·<a·class="reference·internal"·href="../../../faq/models.html#faq-see-raw-sql-queries"><span·class="std·std-ref">automatically·logs</span></a>
98 <em>every</em>·SQL·query··and·when·SQL·statements·contain·geometries,·this·may99 <em>every</em>·SQL·query··and·when·SQL·statements·contain·geometries,·this·may
99 consume·more·memory·than·is·typical.</p>100 consume·more·memory·than·is·typical.</p>
100 </div>101 </div>
Offset 157, 15 lines modifiedOffset 158, 15 lines modified
157 defined·for·the·layer,·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">source_srs</span></code>·keyword·with·a158 defined·for·the·layer,·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">source_srs</span></code>·keyword·with·a
158 <a·class="reference·internal"·href="gdal.html#django.contrib.gis.gdal.SpatialReference"·title="django.contrib.gis.gdal.SpatialReference"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SpatialReference</span></code></a>·object·to·specify·one.</p>159 <a·class="reference·internal"·href="gdal.html#django.contrib.gis.gdal.SpatialReference"·title="django.contrib.gis.gdal.SpatialReference"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SpatialReference</span></code></a>·object·to·specify·one.</p>
159 </section>160 </section>
160 <section·id="s-layermapping-api">161 <section·id="s-layermapping-api">
161 <span·id="layermapping-api"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·API<a·class="headerlink"·href="#layermapping-api"·title="Link·to·this·heading">¶</a></h2>162 <span·id="layermapping-api"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·API<a·class="headerlink"·href="#layermapping-api"·title="Link·to·this·heading">¶</a></h2>
162 <dl·class="py·class">163 <dl·class="py·class">
163 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.LayerMapping">164 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.LayerMapping">
164 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LayerMapping</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">mapping</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">layer</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">0</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">source_srs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">encoding</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">transaction_mode</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'commit_on_success'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">transform</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">unique</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'default'</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/layermapping.html#LayerMapping"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.LayerMapping"·title="Link·to·this·definition">¶</a></dt>165 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LayerMapping</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">mapping</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">layer</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">0</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">source_srs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">encoding</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">transaction_mode</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'commit_on_success'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">transform</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">unique</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'default'</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/layermapping.html#LayerMapping"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.LayerMapping"·title="Link·to·this·definition">¶</a></dt>
165 <dd></dd></dl>166 <dd></dd></dl>
  
166 <p>The·following·are·the·arguments·and·keywords·that·may·be·used·during167 <p>The·following·are·the·arguments·and·keywords·that·may·be·used·during
167 instantiation·of·<code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·objects.</p>168 instantiation·of·<code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·objects.</p>
168 <table·class="docutils">169 <table·class="docutils">
169 <thead>170 <thead>
170 <tr·class="row-odd"><th·class="head"><p>Argument</p></th>171 <tr·class="row-odd"><th·class="head"><p>Argument</p></th>
Offset 239, 15 lines modifiedOffset 240, 15 lines modified
239 </tr>240 </tr>
240 </tbody>241 </tbody>
241 </table>242 </table>
242 <section·id="s-save-keyword-arguments">243 <section·id="s-save-keyword-arguments">
243 <span·id="save-keyword-arguments"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·Keyword·Arguments<a·class="headerlink"·href="#save-keyword-arguments"·title="Link·to·this·heading">¶</a></h3>244 <span·id="save-keyword-arguments"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·Keyword·Arguments<a·class="headerlink"·href="#save-keyword-arguments"·title="Link·to·this·heading">¶</a></h3>
244 <dl·class="py·method">245 <dl·class="py·method">
245 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.LayerMapping.save">246 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.LayerMapping.save">
246 <span·class="sig-prename·descclassname"><span·class="pre">LayerMapping.</span></span><span·class="sig-name·descname"><span·class="pre">save</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">verbose</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fid_range</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">step</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">progress</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">silent</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">stream</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">sys.stdout</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">strict</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/layermapping.html#LayerMapping.save"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.LayerMapping.save"·title="Link·to·this·definition">¶</a></dt>247 <span·class="sig-prename·descclassname"><span·class="pre">LayerMapping.</span></span><span·class="sig-name·descname"><span·class="pre">save</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">verbose</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fid_range</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">step</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">progress</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">silent</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">stream</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">sys.stdout</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">strict</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/layermapping.html#LayerMapping.save"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.LayerMapping.save"·title="Link·to·this·definition">¶</a></dt>
247 <dd></dd></dl>248 <dd></dd></dl>
  
248 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method·also·accepts·keywords.··These·keywords·are249 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method·also·accepts·keywords.··These·keywords·are
249 used·for·controlling·output·logging,·error·handling,·and·for·importing250 used·for·controlling·output·logging,·error·handling,·and·for·importing
250 specific·feature·ranges.</p>251 specific·feature·ranges.</p>
251 <table·class="docutils">252 <table·class="docutils">
252 <thead>253 <thead>
Offset 355, 37 lines modifiedOffset 356, 37 lines modified
355 </li>356 </li>
356 </ul>357 </ul>
357 </li>358 </li>
358 </ul>359 </ul>
  
359 ··</div>360 ··</div>
360 ··<div>361 ··<div>
361 ····<h4>Previous·topic</h4>362 ····<h4>Argomento·precedente</h4>
362 ····<p·class="topless"><a·href="utils.html"363 ····<p·class="topless"><a·href="utils.html"
363 ··························title="previous·chapter">GeoDjango·Utilities</a></p>364 ··························title="capitolo·precedente">GeoDjango·Utilities</a></p>
364 ··</div>365 ··</div>
365 ··<div>366 ··<div>
366 ····<h4>Next·topic</h4>367 ····<h4>Argomento·successivo</h4>
367 ····<p·class="topless"><a·href="ogrinspect.html"368 ····<p·class="topless"><a·href="ogrinspect.html"
368 ··························title="next·chapter">OGR·Inspection</a></p>369 ··························title="capitolo·successivo">OGR·Inspection</a></p>
369 ··</div>370 ··</div>
370 <search·id="searchbox"·style="display:·none"·role="search">371 <search·id="searchbox"·style="display:·none"·role="search">
371 ··<h3·id="searchlabel">Quick·search</h3>372 ··<h3·id="searchlabel">Ricerca·veloce</h3>
372 ····<div·class="searchformwrapper">373 ····<div·class="searchformwrapper">
373 ····<form·class="search"·action="../../../search.html"·method="get">374 ····<form·class="search"·action="../../../search.html"·method="get">
374 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>375 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
375 ······<input·type="submit"·value="Go"·/>376 ······<input·type="submit"·value="Vai"·/>
376 ····</form>377 ····</form>
377 ····</div>378 ····</div>
378 </search>379 </search>
379 <script>document.getElementById('searchbox').style.display·=·"block"</script>380 <script>document.getElementById('searchbox').style.display·=·"block"</script>
380 ········</div>381 ········</div>
381 ······</div>382 ······</div>
382 ··············<h3>Last·update:</h3>383 ··············<h3>Last·update:</h3>
383 ··············<p·class="topless">Sep·03,·2024</p>384 ··············<p·class="topless">set·03,·2024</p>
384 ··········</div>385 ··········</div>
385 ········386 ········
386 ······387 ······
387 ····</div>388 ····</div>
  
Max diff block lines reached; 25/15804 bytes (0.16%) of diff not shown.
5.83 KB
html2text {}
Max HTML report size reached
14.8 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/measure.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Measurement·Objects·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Measurement·Objects·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GEOS·API"·href="geos.html"·/>15 ····<link·rel="next"·title="GEOS·API"·href="geos.html"·/>
15 ····<link·rel="prev"·title="Geographic·Database·Functions"·href="functions.html"·/>16 ····<link·rel="prev"·title="Geographic·Database·Functions"·href="functions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 234, 28 lines modifiedOffset 235, 28 lines modified
234 </tr>235 </tr>
235 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">german_m</span></code></p></td>236 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">german_m</span></code></p></td>
236 <td><p>German·legal·metre</p></td>237 <td><p>German·legal·metre</p></td>
237 </tr>238 </tr>
238 </tbody>239 </tbody>
239 </table>240 </table>
240 <div·class="admonition·note">241 <div·class="admonition·note">
241 <p·class="admonition-title">Note</p>242 <p·class="admonition-title">Nota</p>
242 <p><a·class="reference·internal"·href="#django.contrib.gis.measure.Area"·title="django.contrib.gis.measure.Area"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Area</span></code></a>·attributes·are·the·same·as·<a·class="reference·internal"·href="#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·attributes,243 <p><a·class="reference·internal"·href="#django.contrib.gis.measure.Area"·title="django.contrib.gis.measure.Area"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Area</span></code></a>·attributes·are·the·same·as·<a·class="reference·internal"·href="#django.contrib.gis.measure.Distance"·title="django.contrib.gis.measure.Distance"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Distance</span></code></a>·attributes,
243 except·they·are·prefixed·with·<code·class="docutils·literal·notranslate"><span·class="pre">sq_</span></code>·(area·units·are·square·in·nature).244 except·they·are·prefixed·with·<code·class="docutils·literal·notranslate"><span·class="pre">sq_</span></code>·(area·units·are·square·in·nature).
244 For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">Area(sq_m=2)</span></code>·creates·an·<a·class="reference·internal"·href="#django.contrib.gis.measure.Area"·title="django.contrib.gis.measure.Area"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Area</span></code></a>·object245 For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">Area(sq_m=2)</span></code>·creates·an·<a·class="reference·internal"·href="#django.contrib.gis.measure.Area"·title="django.contrib.gis.measure.Area"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Area</span></code></a>·object
245 representing·two·square·meters.</p>246 representing·two·square·meters.</p>
246 </div>247 </div>
247 </section>248 </section>
248 <section·id="s-measurement-api">249 <section·id="s-measurement-api">
249 <span·id="measurement-api"></span><h2>Measurement·API<a·class="headerlink"·href="#measurement-api"·title="Link·to·this·heading">¶</a></h2>250 <span·id="measurement-api"></span><h2>Measurement·API<a·class="headerlink"·href="#measurement-api"·title="Link·to·this·heading">¶</a></h2>
250 <section·id="s-distance">251 <section·id="s-distance">
251 <span·id="distance"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Distance</span></code><a·class="headerlink"·href="#distance"·title="Link·to·this·heading">¶</a></h3>252 <span·id="distance"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Distance</span></code><a·class="headerlink"·href="#distance"·title="Link·to·this·heading">¶</a></h3>
252 <dl·class="py·class">253 <dl·class="py·class">
253 <dt·class="sig·sig-object·py"·id="django.contrib.gis.measure.Distance">254 <dt·class="sig·sig-object·py"·id="django.contrib.gis.measure.Distance">
254 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Distance</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/measure.html#Distance"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.measure.Distance"·title="Link·to·this·definition">¶</a></dt>255 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Distance</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/measure.html#Distance"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.measure.Distance"·title="Link·to·this·definition">¶</a></dt>
255 <dd><p>To·initialize·a·distance·object,·pass·in·a·keyword·corresponding·to·the256 <dd><p>To·initialize·a·distance·object,·pass·in·a·keyword·corresponding·to·the
256 desired·<a·class="reference·internal"·href="#supported-units"><span·class="std·std-ref">unit·attribute·name</span></a>·set·with·desired257 desired·<a·class="reference·internal"·href="#supported-units"><span·class="std·std-ref">unit·attribute·name</span></a>·set·with·desired
257 value.·For·example,·the·following·creates·a·distance·object·representing·5258 value.·For·example,·the·following·creates·a·distance·object·representing·5
258 miles:</p>259 miles:</p>
259 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">dist</span>·<span·class="o">=</span>·<span·class="n">Distance</span><span·class="p">(</span><span·class="n">mi</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span>260 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">dist</span>·<span·class="o">=</span>·<span·class="n">Distance</span><span·class="p">(</span><span·class="n">mi</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span>
260 </pre></div>261 </pre></div>
261 </div>262 </div>
Offset 290, 15 lines modifiedOffset 291, 15 lines modified
290 </dd></dl>291 </dd></dl>
  
291 </section>292 </section>
292 <section·id="s-area">293 <section·id="s-area">
293 <span·id="area"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Area</span></code><a·class="headerlink"·href="#area"·title="Link·to·this·heading">¶</a></h3>294 <span·id="area"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Area</span></code><a·class="headerlink"·href="#area"·title="Link·to·this·heading">¶</a></h3>
294 <dl·class="py·class">295 <dl·class="py·class">
295 <dt·class="sig·sig-object·py"·id="django.contrib.gis.measure.Area">296 <dt·class="sig·sig-object·py"·id="django.contrib.gis.measure.Area">
296 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Area</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/measure.html#Area"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.measure.Area"·title="Link·to·this·definition">¶</a></dt>297 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Area</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/measure.html#Area"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.measure.Area"·title="Link·to·this·definition">¶</a></dt>
297 <dd><p>To·initialize·an·area·object,·pass·in·a·keyword·corresponding·to·the298 <dd><p>To·initialize·an·area·object,·pass·in·a·keyword·corresponding·to·the
298 desired·<a·class="reference·internal"·href="#supported-units"><span·class="std·std-ref">unit·attribute·name</span></a>·set·with·desired299 desired·<a·class="reference·internal"·href="#supported-units"><span·class="std·std-ref">unit·attribute·name</span></a>·set·with·desired
299 value.·For·example,·the·following·creates·an·area·object·representing·5300 value.·For·example,·the·following·creates·an·area·object·representing·5
300 square·miles:</p>301 square·miles:</p>
301 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a</span>·<span·class="o">=</span>·<span·class="n">Area</span><span·class="p">(</span><span·class="n">sq_mi</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span>302 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a</span>·<span·class="o">=</span>·<span·class="n">Area</span><span·class="p">(</span><span·class="n">sq_mi</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">)</span>
302 </pre></div>303 </pre></div>
303 </div>304 </div>
Offset 334, 15 lines modifiedOffset 335, 15 lines modified
  
334 <p·class="rubric">Footnotes</p>335 <p·class="rubric">Footnotes</p>
335 <aside·class="footnote-list·brackets">336 <aside·class="footnote-list·brackets">
336 <aside·class="footnote·brackets"·id="id3"·role="doc-footnote">337 <aside·class="footnote·brackets"·id="id3"·role="doc-footnote">
337 <span·class="label"><span·class="fn-bracket">[</span><a·role="doc-backlink"·href="#id1">1</a><span·class="fn-bracket">]</span></span>338 <span·class="label"><span·class="fn-bracket">[</span><a·role="doc-backlink"·href="#id1">1</a><span·class="fn-bracket">]</span></span>
338 <p><a·class="reference·external"·href="https://koordinates.com/">Robert·Coup</a>·is·the·initial·author·of·the·measure·objects,339 <p><a·class="reference·external"·href="https://koordinates.com/">Robert·Coup</a>·is·the·initial·author·of·the·measure·objects,
339 and·was·inspired·by·Brian·Beck’s·work·in·<a·class="reference·external"·href="https://github.com/geopy/geopy/">geopy</a>340 and·was·inspired·by·Brian·Beck’s·work·in·<a·class="reference·external"·href="https://github.com/geopy/geopy/">geopy</a>
340 and·Geoff·Biggs·PhD·work·on·dimensioned·units·for·robotics.</p>341 and·Geoff·Biggs·PhD·work·on·dimensioned·units·for·robotics.</p>
341 </aside>342 </aside>
342 </aside>343 </aside>
343 </section>344 </section>
344 </section>345 </section>
345 </section>346 </section>
  
  
Offset 368, 37 lines modifiedOffset 369, 37 lines modified
368 </li>369 </li>
369 </ul>370 </ul>
370 </li>371 </li>
371 </ul>372 </ul>
  
372 ··</div>373 ··</div>
373 ··<div>374 ··<div>
374 ····<h4>Previous·topic</h4>375 ····<h4>Argomento·precedente</h4>
375 ····<p·class="topless"><a·href="functions.html"376 ····<p·class="topless"><a·href="functions.html"
376 ··························title="previous·chapter">Geographic·Database·Functions</a></p>377 ··························title="capitolo·precedente">Geographic·Database·Functions</a></p>
377 ··</div>378 ··</div>
378 ··<div>379 ··<div>
379 ····<h4>Next·topic</h4>380 ····<h4>Argomento·successivo</h4>
380 ····<p·class="topless"><a·href="geos.html"381 ····<p·class="topless"><a·href="geos.html"
381 ··························title="next·chapter">GEOS·API</a></p>382 ··························title="capitolo·successivo">GEOS·API</a></p>
382 ··</div>383 ··</div>
383 <search·id="searchbox"·style="display:·none"·role="search">384 <search·id="searchbox"·style="display:·none"·role="search">
384 ··<h3·id="searchlabel">Quick·search</h3>385 ··<h3·id="searchlabel">Ricerca·veloce</h3>
385 ····<div·class="searchformwrapper">386 ····<div·class="searchformwrapper">
386 ····<form·class="search"·action="../../../search.html"·method="get">387 ····<form·class="search"·action="../../../search.html"·method="get">
387 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>388 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
388 ······<input·type="submit"·value="Go"·/>389 ······<input·type="submit"·value="Vai"·/>
389 ····</form>390 ····</form>
390 ····</div>391 ····</div>
391 </search>392 </search>
392 <script>document.getElementById('searchbox').style.display·=·"block"</script>393 <script>document.getElementById('searchbox').style.display·=·"block"</script>
Max diff block lines reached; 247/10166 bytes (2.43%) of diff not shown.
4.71 KB
html2text {}
Max HTML report size reached
30.5 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/model-api.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Model·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Model·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Database·API"·href="db-api.html"·/>15 ····<link·rel="next"·title="GeoDjango·Database·API"·href="db-api.html"·/>
15 ····<link·rel="prev"·title="Installing·SpatiaLite"·href="install/spatialite.html"·/>16 ····<link·rel="prev"·title="Installing·SpatiaLite"·href="install/spatialite.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 100, 87 lines modifiedOffset 101, 87 lines modified
100 <p>Spatial·fields·consist·of·a·series·of·geometry·field·types·and·one·raster·field101 <p>Spatial·fields·consist·of·a·series·of·geometry·field·types·and·one·raster·field
101 type.·Each·of·the·geometry·field·types·correspond·to·the·OpenGIS·Simple102 type.·Each·of·the·geometry·field·types·correspond·to·the·OpenGIS·Simple
102 Features·specification·<a·class="footnote-reference·brackets"·href="#fnogc"·id="id3"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>.·There·is·no·such·standard·for·raster·data.</p>103 Features·specification·<a·class="footnote-reference·brackets"·href="#fnogc"·id="id3"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>.·There·is·no·such·standard·for·raster·data.</p>
103 <section·id="s-geometryfield">104 <section·id="s-geometryfield">
104 <span·id="geometryfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryField</span></code><a·class="headerlink"·href="#geometryfield"·title="Link·to·this·heading">¶</a></h3>105 <span·id="geometryfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryField</span></code><a·class="headerlink"·href="#geometryfield"·title="Link·to·this·heading">¶</a></h3>
105 <dl·class="py·class">106 <dl·class="py·class">
106 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.GeometryField">107 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.GeometryField">
107 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#GeometryField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.GeometryField"·title="Link·to·this·definition">¶</a></dt>108 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#GeometryField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.GeometryField"·title="Link·to·this·definition">¶</a></dt>
108 <dd></dd></dl>109 <dd></dd></dl>
  
109 <p>The·base·class·for·geometry·fields.</p>110 <p>The·base·class·for·geometry·fields.</p>
110 </section>111 </section>
111 <section·id="s-pointfield">112 <section·id="s-pointfield">
112 <span·id="pointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PointField</span></code><a·class="headerlink"·href="#pointfield"·title="Link·to·this·heading">¶</a></h3>113 <span·id="pointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PointField</span></code><a·class="headerlink"·href="#pointfield"·title="Link·to·this·heading">¶</a></h3>
113 <dl·class="py·class">114 <dl·class="py·class">
114 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.PointField">115 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.PointField">
115 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#PointField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.PointField"·title="Link·to·this·definition">¶</a></dt>116 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#PointField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.PointField"·title="Link·to·this·definition">¶</a></dt>
116 <dd></dd></dl>117 <dd></dd></dl>
  
117 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.Point"·title="django.contrib.gis.geos.Point"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Point</span></code></a>.</p>118 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.Point"·title="django.contrib.gis.geos.Point"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Point</span></code></a>.</p>
118 </section>119 </section>
119 <section·id="s-linestringfield">120 <section·id="s-linestringfield">
120 <span·id="linestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">LineStringField</span></code><a·class="headerlink"·href="#linestringfield"·title="Link·to·this·heading">¶</a></h3>121 <span·id="linestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">LineStringField</span></code><a·class="headerlink"·href="#linestringfield"·title="Link·to·this·heading">¶</a></h3>
121 <dl·class="py·class">122 <dl·class="py·class">
122 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.LineStringField">123 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.LineStringField">
123 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#LineStringField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.LineStringField"·title="Link·to·this·definition">¶</a></dt>124 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">LineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#LineStringField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.LineStringField"·title="Link·to·this·definition">¶</a></dt>
124 <dd></dd></dl>125 <dd></dd></dl>
  
125 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.LineString"·title="django.contrib.gis.geos.LineString"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LineString</span></code></a>.</p>126 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.LineString"·title="django.contrib.gis.geos.LineString"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LineString</span></code></a>.</p>
126 </section>127 </section>
127 <section·id="s-polygonfield">128 <section·id="s-polygonfield">
128 <span·id="polygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code><a·class="headerlink"·href="#polygonfield"·title="Link·to·this·heading">¶</a></h3>129 <span·id="polygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code><a·class="headerlink"·href="#polygonfield"·title="Link·to·this·heading">¶</a></h3>
129 <dl·class="py·class">130 <dl·class="py·class">
130 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.PolygonField">131 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.PolygonField">
131 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#PolygonField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.PolygonField"·title="Link·to·this·definition">¶</a></dt>132 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">PolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#PolygonField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.PolygonField"·title="Link·to·this·definition">¶</a></dt>
132 <dd></dd></dl>133 <dd></dd></dl>
  
133 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.Polygon"·title="django.contrib.gis.geos.Polygon"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Polygon</span></code></a>.</p>134 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.Polygon"·title="django.contrib.gis.geos.Polygon"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Polygon</span></code></a>.</p>
134 </section>135 </section>
135 <section·id="s-multipointfield">136 <section·id="s-multipointfield">
136 <span·id="multipointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPointField</span></code><a·class="headerlink"·href="#multipointfield"·title="Link·to·this·heading">¶</a></h3>137 <span·id="multipointfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPointField</span></code><a·class="headerlink"·href="#multipointfield"·title="Link·to·this·heading">¶</a></h3>
137 <dl·class="py·class">138 <dl·class="py·class">
138 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiPointField">139 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiPointField">
139 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiPointField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiPointField"·title="Link·to·this·definition">¶</a></dt>140 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPointField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiPointField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiPointField"·title="Link·to·this·definition">¶</a></dt>
140 <dd></dd></dl>141 <dd></dd></dl>
  
141 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiPoint"·title="django.contrib.gis.geos.MultiPoint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiPoint</span></code></a>.</p>142 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiPoint"·title="django.contrib.gis.geos.MultiPoint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiPoint</span></code></a>.</p>
142 </section>143 </section>
143 <section·id="s-multilinestringfield">144 <section·id="s-multilinestringfield">
144 <span·id="multilinestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiLineStringField</span></code><a·class="headerlink"·href="#multilinestringfield"·title="Link·to·this·heading">¶</a></h3>145 <span·id="multilinestringfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiLineStringField</span></code><a·class="headerlink"·href="#multilinestringfield"·title="Link·to·this·heading">¶</a></h3>
145 <dl·class="py·class">146 <dl·class="py·class">
146 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiLineStringField">147 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiLineStringField">
147 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiLineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiLineStringField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiLineStringField"·title="Link·to·this·definition">¶</a></dt>148 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiLineStringField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiLineStringField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiLineStringField"·title="Link·to·this·definition">¶</a></dt>
148 <dd></dd></dl>149 <dd></dd></dl>
  
149 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiLineString"·title="django.contrib.gis.geos.MultiLineString"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiLineString</span></code></a>.</p>150 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiLineString"·title="django.contrib.gis.geos.MultiLineString"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiLineString</span></code></a>.</p>
150 </section>151 </section>
151 <section·id="s-multipolygonfield">152 <section·id="s-multipolygonfield">
152 <span·id="multipolygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code><a·class="headerlink"·href="#multipolygonfield"·title="Link·to·this·heading">¶</a></h3>153 <span·id="multipolygonfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code><a·class="headerlink"·href="#multipolygonfield"·title="Link·to·this·heading">¶</a></h3>
153 <dl·class="py·class">154 <dl·class="py·class">
154 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiPolygonField">155 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.MultiPolygonField">
155 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiPolygonField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiPolygonField"·title="Link·to·this·definition">¶</a></dt>156 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">MultiPolygonField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#MultiPolygonField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.MultiPolygonField"·title="Link·to·this·definition">¶</a></dt>
156 <dd></dd></dl>157 <dd></dd></dl>
  
157 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiPolygon"·title="django.contrib.gis.geos.MultiPolygon"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code></a>.</p>158 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.MultiPolygon"·title="django.contrib.gis.geos.MultiPolygon"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code></a>.</p>
158 </section>159 </section>
159 <section·id="s-geometrycollectionfield">160 <section·id="s-geometrycollectionfield">
160 <span·id="geometrycollectionfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryCollectionField</span></code><a·class="headerlink"·href="#geometrycollectionfield"·title="Link·to·this·heading">¶</a></h3>161 <span·id="geometrycollectionfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">GeometryCollectionField</span></code><a·class="headerlink"·href="#geometrycollectionfield"·title="Link·to·this·heading">¶</a></h3>
161 <dl·class="py·class">162 <dl·class="py·class">
162 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.GeometryCollectionField">163 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.GeometryCollectionField">
163 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryCollectionField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#GeometryCollectionField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.GeometryCollectionField"·title="Link·to·this·definition">¶</a></dt>164 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">GeometryCollectionField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#GeometryCollectionField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.GeometryCollectionField"·title="Link·to·this·definition">¶</a></dt>
164 <dd></dd></dl>165 <dd></dd></dl>
  
165 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.GeometryCollection"·title="django.contrib.gis.geos.GeometryCollection"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GeometryCollection</span></code></a>.</p>166 <p>Stores·a·<a·class="reference·internal"·href="geos.html#django.contrib.gis.geos.GeometryCollection"·title="django.contrib.gis.geos.GeometryCollection"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GeometryCollection</span></code></a>.</p>
166 </section>167 </section>
167 <section·id="s-rasterfield">168 <section·id="s-rasterfield">
168 <span·id="rasterfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RasterField</span></code><a·class="headerlink"·href="#rasterfield"·title="Link·to·this·heading">¶</a></h3>169 <span·id="rasterfield"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RasterField</span></code><a·class="headerlink"·href="#rasterfield"·title="Link·to·this·heading">¶</a></h3>
169 <dl·class="py·class">170 <dl·class="py·class">
170 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.RasterField">171 <dt·class="sig·sig-object·py"·id="django.contrib.gis.db.models.RasterField">
171 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RasterField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#RasterField"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.RasterField"·title="Link·to·this·definition">¶</a></dt>172 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RasterField</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/gis/db/models/fields.html#RasterField"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.db.models.RasterField"·title="Link·to·this·definition">¶</a></dt>
172 <dd></dd></dl>173 <dd></dd></dl>
  
173 <p>Stores·a·<a·class="reference·internal"·href="gdal.html#django.contrib.gis.gdal.GDALRaster"·title="django.contrib.gis.gdal.GDALRaster"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GDALRaster</span></code></a>.</p>174 <p>Stores·a·<a·class="reference·internal"·href="gdal.html#django.contrib.gis.gdal.GDALRaster"·title="django.contrib.gis.gdal.GDALRaster"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">GDALRaster</span></code></a>.</p>
174 <p><code·class="docutils·literal·notranslate"><span·class="pre">RasterField</span></code>·is·currently·only·implemented·for·the·PostGIS·backend.</p>175 <p><code·class="docutils·literal·notranslate"><span·class="pre">RasterField</span></code>·is·currently·only·implemented·for·the·PostGIS·backend.</p>
175 </section>176 </section>
176 </section>177 </section>
177 <section·id="s-spatial-field-options">178 <section·id="s-spatial-field-options">
Max diff block lines reached; 5859/22598 bytes (25.93%) of diff not shown.
8.34 KB
html2text {}
Max HTML report size reached
10.6 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/ogrinspect.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>OGR·Inspection·&#8212;·Django·4.2.16·documentation</title>6 ····<title>OGR·Inspection·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoJSON·Serializer"·href="serializers.html"·/>15 ····<link·rel="next"·title="GeoJSON·Serializer"·href="serializers.html"·/>
15 ····<link·rel="prev"·title="LayerMapping·data·import·utility"·href="layermapping.html"·/>16 ····<link·rel="prev"·title="LayerMapping·data·import·utility"·href="layermapping.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 23 lines modifiedOffset 80, 23 lines modified
79 ············80 ············
80 ··<section·id="s-module-django.contrib.gis.utils.ogrinspect">81 ··<section·id="s-module-django.contrib.gis.utils.ogrinspect">
81 <span·id="s-ogr-inspection"></span><span·id="module-django.contrib.gis.utils.ogrinspect"></span><span·id="ogr-inspection"></span><h1>OGR·Inspection<a·class="headerlink"·href="#module-django.contrib.gis.utils.ogrinspect"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-ogr-inspection"></span><span·id="module-django.contrib.gis.utils.ogrinspect"></span><span·id="ogr-inspection"></span><h1>OGR·Inspection<a·class="headerlink"·href="#module-django.contrib.gis.utils.ogrinspect"·title="Link·to·this·heading">¶</a></h1>
82 <section·id="s-ogrinspect">83 <section·id="s-ogrinspect">
83 <span·id="ogrinspect"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ogrinspect</span></code><a·class="headerlink"·href="#ogrinspect"·title="Link·to·this·heading">¶</a></h2>84 <span·id="ogrinspect"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ogrinspect</span></code><a·class="headerlink"·href="#ogrinspect"·title="Link·to·this·heading">¶</a></h2>
84 <dl·class="py·function">85 <dl·class="py·function">
85 <dt·class="sig·sig-object·py">86 <dt·class="sig·sig-object·py">
86 <span·class="sig-name·descname"><span·class="pre">ogrinspect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/ogrinspect.html#ogrinspect"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a></dt>87 <span·class="sig-name·descname"><span·class="pre">ogrinspect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/ogrinspect.html#ogrinspect"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a></dt>
87 <dd></dd></dl>88 <dd></dd></dl>
  
88 </section>89 </section>
89 <section·id="s-mapping">90 <section·id="s-mapping">
90 <span·id="mapping"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">mapping</span></code><a·class="headerlink"·href="#mapping"·title="Link·to·this·heading">¶</a></h2>91 <span·id="mapping"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">mapping</span></code><a·class="headerlink"·href="#mapping"·title="Link·to·this·heading">¶</a></h2>
91 <dl·class="py·function">92 <dl·class="py·function">
92 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.mapping">93 <dt·class="sig·sig-object·py"·id="django.contrib.gis.utils.mapping">
93 <span·class="sig-name·descname"><span·class="pre">mapping</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">geom_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'geom'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">layer_key</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">0</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">multi_geom</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/ogrinspect.html#mapping"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.mapping"·title="Link·to·this·definition">¶</a></dt>94 <span·class="sig-name·descname"><span·class="pre">mapping</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">data_source</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">geom_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'geom'</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">layer_key</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">0</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">multi_geom</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/gis/utils/ogrinspect.html#mapping"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.gis.utils.mapping"·title="Link·to·this·definition">¶</a></dt>
94 <dd></dd></dl>95 <dd></dd></dl>
  
95 </section>96 </section>
96 </section>97 </section>
  
  
97 ··········</div>98 ··········</div>
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#mapping"><code·class="docutils·literal·notranslate"><span·class="pre">mapping</span></code></a></li>116 <li><a·class="reference·internal"·href="#mapping"><code·class="docutils·literal·notranslate"><span·class="pre">mapping</span></code></a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="layermapping.html"123 ····<p·class="topless"><a·href="layermapping.html"
123 ··························title="previous·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·data·import·utility</a></p>124 ··························title="capitolo·precedente"><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·data·import·utility</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="serializers.html"128 ····<p·class="topless"><a·href="serializers.html"
128 ··························title="next·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">GeoJSON</span></code>·Serializer</a></p>129 ··························title="capitolo·successivo"><code·class="docutils·literal·notranslate"><span·class="pre">GeoJSON</span></code>·Serializer</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../../../search.html"·method="get">134 ····<form·class="search"·action="../../../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.23 KB
html2text {}
Max HTML report size reached
5.98 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/serializers.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoJSON·Serializer·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoJSON·Serializer·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Management·Commands"·href="commands.html"·/>15 ····<link·rel="next"·title="GeoDjango·Management·Commands"·href="commands.html"·/>
15 ····<link·rel="prev"·title="OGR·Inspection"·href="ogrinspect.html"·/>16 ····<link·rel="prev"·title="OGR·Inspection"·href="ogrinspect.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 140, 37 lines modifiedOffset 141, 37 lines modified
140 ······141 ······
141 ········142 ········
142 ··········<div·class="yui-b"·id="sidebar">143 ··········<div·class="yui-b"·id="sidebar">
143 ············144 ············
144 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">145 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
145 ········<div·class="sphinxsidebarwrapper">146 ········<div·class="sphinxsidebarwrapper">
146 ··<div>147 ··<div>
147 ····<h4>Previous·topic</h4>148 ····<h4>Argomento·precedente</h4>
148 ····<p·class="topless"><a·href="ogrinspect.html"149 ····<p·class="topless"><a·href="ogrinspect.html"
149 ··························title="previous·chapter">OGR·Inspection</a></p>150 ··························title="capitolo·precedente">OGR·Inspection</a></p>
150 ··</div>151 ··</div>
151 ··<div>152 ··<div>
152 ····<h4>Next·topic</h4>153 ····<h4>Argomento·successivo</h4>
153 ····<p·class="topless"><a·href="commands.html"154 ····<p·class="topless"><a·href="commands.html"
154 ··························title="next·chapter">GeoDjango·Management·Commands</a></p>155 ··························title="capitolo·successivo">GeoDjango·Management·Commands</a></p>
155 ··</div>156 ··</div>
156 <search·id="searchbox"·style="display:·none"·role="search">157 <search·id="searchbox"·style="display:·none"·role="search">
157 ··<h3·id="searchlabel">Quick·search</h3>158 ··<h3·id="searchlabel">Ricerca·veloce</h3>
158 ····<div·class="searchformwrapper">159 ····<div·class="searchformwrapper">
159 ····<form·class="search"·action="../../../search.html"·method="get">160 ····<form·class="search"·action="../../../search.html"·method="get">
160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
161 ······<input·type="submit"·value="Go"·/>162 ······<input·type="submit"·value="Vai"·/>
162 ····</form>163 ····</form>
163 ····</div>164 ····</div>
164 </search>165 </search>
165 <script>document.getElementById('searchbox').style.display·=·"block"</script>166 <script>document.getElementById('searchbox').style.display·=·"block"</script>
166 ········</div>167 ········</div>
167 ······</div>168 ······</div>
168 ··············<h3>Last·update:</h3>169 ··············<h3>Last·update:</h3>
169 ··············<p·class="topless">Sep·03,·2024</p>170 ··············<p·class="topless">set·03,·2024</p>
170 ··········</div>171 ··········</div>
171 ········172 ········
172 ······173 ······
173 ····</div>174 ····</div>
  
174 ····<div·id="ft">175 ····<div·id="ft">
175 ······<div·class="nav">176 ······<div·class="nav">
2.03 KB
html2text {}
Max HTML report size reached
5.82 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/sitemaps.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Geographic·Sitemaps·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Geographic·Sitemaps·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Testing·GeoDjango·apps"·href="testing.html"·/>15 ····<link·rel="next"·title="Testing·GeoDjango·apps"·href="testing.html"·/>
15 ····<link·rel="prev"·title="Geographic·Feeds"·href="feeds.html"·/>16 ····<link·rel="prev"·title="Geographic·Feeds"·href="feeds.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 125, 37 lines modifiedOffset 126, 37 lines modified
125 </li>126 </li>
126 </ul>127 </ul>
127 </li>128 </li>
128 </ul>129 </ul>
  
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Previous·topic</h4>132 ····<h4>Argomento·precedente</h4>
132 ····<p·class="topless"><a·href="feeds.html"133 ····<p·class="topless"><a·href="feeds.html"
133 ··························title="previous·chapter">Geographic·Feeds</a></p>134 ··························title="capitolo·precedente">Geographic·Feeds</a></p>
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Next·topic</h4>137 ····<h4>Argomento·successivo</h4>
137 ····<p·class="topless"><a·href="testing.html"138 ····<p·class="topless"><a·href="testing.html"
138 ··························title="next·chapter">Testing·GeoDjango·apps</a></p>139 ··························title="capitolo·successivo">Testing·GeoDjango·apps</a></p>
139 ··</div>140 ··</div>
140 <search·id="searchbox"·style="display:·none"·role="search">141 <search·id="searchbox"·style="display:·none"·role="search">
141 ··<h3·id="searchlabel">Quick·search</h3>142 ··<h3·id="searchlabel">Ricerca·veloce</h3>
142 ····<div·class="searchformwrapper">143 ····<div·class="searchformwrapper">
143 ····<form·class="search"·action="../../../search.html"·method="get">144 ····<form·class="search"·action="../../../search.html"·method="get">
144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
145 ······<input·type="submit"·value="Go"·/>146 ······<input·type="submit"·value="Vai"·/>
146 ····</form>147 ····</form>
147 ····</div>148 ····</div>
148 </search>149 </search>
149 <script>document.getElementById('searchbox').style.display·=·"block"</script>150 <script>document.getElementById('searchbox').style.display·=·"block"</script>
150 ········</div>151 ········</div>
151 ······</div>152 ······</div>
152 ··············<h3>Last·update:</h3>153 ··············<h3>Last·update:</h3>
153 ··············<p·class="topless">Sep·03,·2024</p>154 ··············<p·class="topless">set·03,·2024</p>
154 ··········</div>155 ··········</div>
155 ········156 ········
156 ······157 ······
157 ····</div>158 ····</div>
  
158 ····<div·id="ft">159 ····<div·id="ft">
159 ······<div·class="nav">160 ······<div·class="nav">
2.05 KB
html2text {}
Max HTML report size reached
7.65 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/testing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Testing·GeoDjango·apps·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Testing·GeoDjango·apps·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Deploying·GeoDjango"·href="deployment.html"·/>15 ····<link·rel="next"·title="Deploying·GeoDjango"·href="deployment.html"·/>
15 ····<link·rel="prev"·title="Geographic·Sitemaps"·href="sitemaps.html"·/>16 ····<link·rel="prev"·title="Geographic·Sitemaps"·href="sitemaps.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 82, 15 lines modifiedOffset 83, 15 lines modified
82 <p>Included·in·this·documentation·are·some·additional·notes·and·settings83 <p>Included·in·this·documentation·are·some·additional·notes·and·settings
83 for·<a·class="reference·internal"·href="#testing-postgis"><span·class="std·std-ref">PostGIS</span></a>·users.</p>84 for·<a·class="reference·internal"·href="#testing-postgis"><span·class="std·std-ref">PostGIS</span></a>·users.</p>
84 <section·id="s-postgis">85 <section·id="s-postgis">
85 <span·id="s-testing-postgis"></span><span·id="postgis"></span><span·id="testing-postgis"></span><h2>PostGIS<a·class="headerlink"·href="#postgis"·title="Link·to·this·heading">¶</a></h2>86 <span·id="s-testing-postgis"></span><span·id="postgis"></span><span·id="testing-postgis"></span><h2>PostGIS<a·class="headerlink"·href="#postgis"·title="Link·to·this·heading">¶</a></h2>
86 <section·id="s-settings">87 <section·id="s-settings">
87 <span·id="settings"></span><h3>Settings<a·class="headerlink"·href="#settings"·title="Link·to·this·heading">¶</a></h3>88 <span·id="settings"></span><h3>Settings<a·class="headerlink"·href="#settings"·title="Link·to·this·heading">¶</a></h3>
88 <div·class="admonition·note">89 <div·class="admonition·note">
89 <p·class="admonition-title">Note</p>90 <p·class="admonition-title">Nota</p>
90 <p>The·settings·below·have·sensible·defaults,·and·shouldn’t·require·manual·setting.</p>91 <p>The·settings·below·have·sensible·defaults,·and·shouldn’t·require·manual·setting.</p>
91 </div>92 </div>
92 <section·id="s-postgis-version">93 <section·id="s-postgis-version">
93 <span·id="s-std-setting-POSTGIS_VERSION"></span><span·id="postgis-version"></span><span·id="std-setting-POSTGIS_VERSION"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">POSTGIS_VERSION</span></code><a·class="headerlink"·href="#postgis-version"·title="Link·to·this·heading">¶</a></h4>94 <span·id="s-std-setting-POSTGIS_VERSION"></span><span·id="postgis-version"></span><span·id="std-setting-POSTGIS_VERSION"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">POSTGIS_VERSION</span></code><a·class="headerlink"·href="#postgis-version"·title="Link·to·this·heading">¶</a></h4>
94 <p>When·GeoDjango’s·spatial·backend·initializes·on·PostGIS,·it·has·to·perform95 <p>When·GeoDjango’s·spatial·backend·initializes·on·PostGIS,·it·has·to·perform
95 an·SQL·query·to·determine·the·version·in·order·to·figure·out·what96 an·SQL·query·to·determine·the·version·in·order·to·figure·out·what
96 features·are·available.·Advanced·users·wishing·to·prevent·this·additional97 features·are·available.·Advanced·users·wishing·to·prevent·this·additional
Offset 219, 37 lines modifiedOffset 220, 37 lines modified
219 </li>220 </li>
220 </ul>221 </ul>
221 </li>222 </li>
222 </ul>223 </ul>
  
223 ··</div>224 ··</div>
224 ··<div>225 ··<div>
225 ····<h4>Previous·topic</h4>226 ····<h4>Argomento·precedente</h4>
226 ····<p·class="topless"><a·href="sitemaps.html"227 ····<p·class="topless"><a·href="sitemaps.html"
227 ··························title="previous·chapter">Geographic·Sitemaps</a></p>228 ··························title="capitolo·precedente">Geographic·Sitemaps</a></p>
228 ··</div>229 ··</div>
229 ··<div>230 ··<div>
230 ····<h4>Next·topic</h4>231 ····<h4>Argomento·successivo</h4>
231 ····<p·class="topless"><a·href="deployment.html"232 ····<p·class="topless"><a·href="deployment.html"
232 ··························title="next·chapter">Deploying·GeoDjango</a></p>233 ··························title="capitolo·successivo">Deploying·GeoDjango</a></p>
233 ··</div>234 ··</div>
234 <search·id="searchbox"·style="display:·none"·role="search">235 <search·id="searchbox"·style="display:·none"·role="search">
235 ··<h3·id="searchlabel">Quick·search</h3>236 ··<h3·id="searchlabel">Ricerca·veloce</h3>
236 ····<div·class="searchformwrapper">237 ····<div·class="searchformwrapper">
237 ····<form·class="search"·action="../../../search.html"·method="get">238 ····<form·class="search"·action="../../../search.html"·method="get">
238 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>239 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
239 ······<input·type="submit"·value="Go"·/>240 ······<input·type="submit"·value="Vai"·/>
240 ····</form>241 ····</form>
241 ····</div>242 ····</div>
242 </search>243 </search>
243 <script>document.getElementById('searchbox').style.display·=·"block"</script>244 <script>document.getElementById('searchbox').style.display·=·"block"</script>
244 ········</div>245 ········</div>
245 ······</div>246 ······</div>
246 ··············<h3>Last·update:</h3>247 ··············<h3>Last·update:</h3>
247 ··············<p·class="topless">Sep·03,·2024</p>248 ··············<p·class="topless">set·03,·2024</p>
248 ··········</div>249 ··········</div>
249 ········250 ········
250 ······251 ······
251 ····</div>252 ····</div>
  
252 ····<div·id="ft">253 ····<div·id="ft">
253 ······<div·class="nav">254 ······<div·class="nav">
2.56 KB
html2text {}
Max HTML report size reached
16.7 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/tutorial.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Tutorial·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Tutorial·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="GeoDjango·Installation"·href="install/index.html"·/>15 ····<link·rel="next"·title="GeoDjango·Installation"·href="install/index.html"·/>
15 ····<link·rel="prev"·title="GeoDjango"·href="index.html"·/>16 ····<link·rel="prev"·title="GeoDjango"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 105, 25 lines modifiedOffset 106, 25 lines modified
105 operations·and·data·manipulation·in·different·formats.</p></li>106 operations·and·data·manipulation·in·different·formats.</p></li>
106 <li><p>Editing·geometry·fields·from·the·admin.</p></li>107 <li><p>Editing·geometry·fields·from·the·admin.</p></li>
107 </ul>108 </ul>
108 <p>This·tutorial·assumes·familiarity·with·Django;·thus,·if·you’re·brand·new·to109 <p>This·tutorial·assumes·familiarity·with·Django;·thus,·if·you’re·brand·new·to
109 Django,·please·read·through·the·<a·class="reference·internal"·href="../../../intro/tutorial01.html"><span·class="doc">regular·tutorial</span></a>·to110 Django,·please·read·through·the·<a·class="reference·internal"·href="../../../intro/tutorial01.html"><span·class="doc">regular·tutorial</span></a>·to
110 familiarize·yourself·with·Django·first.</p>111 familiarize·yourself·with·Django·first.</p>
111 <div·class="admonition·note">112 <div·class="admonition·note">
112 <p·class="admonition-title">Note</p>113 <p·class="admonition-title">Nota</p>
113 <p>GeoDjango·has·additional·requirements·beyond·what·Django·requires·114 <p>GeoDjango·has·additional·requirements·beyond·what·Django·requires·
114 please·consult·the·<a·class="reference·internal"·href="install/index.html"><span·class="doc">installation·documentation</span></a>115 please·consult·the·<a·class="reference·internal"·href="install/index.html"><span·class="doc">installation·documentation</span></a>
115 for·more·details.</p>116 for·more·details.</p>
116 </div>117 </div>
117 <p>This·tutorial·will·guide·you·through·the·creation·of·a·geographic·web118 <p>This·tutorial·will·guide·you·through·the·creation·of·a·geographic·web
118 application·for·viewing·the·<a·class="reference·external"·href="https://thematicmapping.org/downloads/world_borders.php">world·borders</a>.·<a·class="footnote-reference·brackets"·href="#id11"·id="id1"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>·Some·of·the·code119 application·for·viewing·the·<a·class="reference·external"·href="https://thematicmapping.org/downloads/world_borders.php">world·borders</a>.·<a·class="footnote-reference·brackets"·href="#id11"·id="id1"·role="doc-noteref"><span·class="fn-bracket">[</span>1<span·class="fn-bracket">]</span></a>·Some·of·the·code
119 used·in·this·tutorial·is·taken·from·and/or·inspired·by·the·<a·class="reference·external"·href="https://code.google.com/archive/p/geodjango-basic-apps">GeoDjango120 used·in·this·tutorial·is·taken·from·and/or·inspired·by·the·<a·class="reference·external"·href="https://code.google.com/archive/p/geodjango-basic-apps">GeoDjango
120 basic·apps</a>·project.·<a·class="footnote-reference·brackets"·href="#id12"·id="id2"·role="doc-noteref"><span·class="fn-bracket">[</span>2<span·class="fn-bracket">]</span></a></p>121 basic·apps</a>·project.·<a·class="footnote-reference·brackets"·href="#id12"·id="id2"·role="doc-noteref"><span·class="fn-bracket">[</span>2<span·class="fn-bracket">]</span></a></p>
121 <div·class="admonition·note">122 <div·class="admonition·note">
122 <p·class="admonition-title">Note</p>123 <p·class="admonition-title">Nota</p>
123 <p>Proceed·through·the·tutorial·sections·sequentially·for·step-by-step124 <p>Proceed·through·the·tutorial·sections·sequentially·for·step-by-step
124 instructions.</p>125 instructions.</p>
125 </div>126 </div>
126 </section>127 </section>
127 <section·id="s-setting-up">128 <section·id="s-setting-up">
128 <span·id="setting-up"></span><h2>Setting·Up<a·class="headerlink"·href="#setting-up"·title="Link·to·this·heading">¶</a></h2>129 <span·id="setting-up"></span><h2>Setting·Up<a·class="headerlink"·href="#setting-up"·title="Link·to·this·heading">¶</a></h2>
129 <section·id="s-create-a-spatial-database">130 <section·id="s-create-a-spatial-database">
Offset 336, 15 lines modifiedOffset 337, 15 lines modified
336 <span·class="go">LON:·Real·(8.3)</span>337 <span·class="go">LON:·Real·(8.3)</span>
337 <span·class="go">LAT:·Real·(7.3)</span>338 <span·class="go">LAT:·Real·(7.3)</span>
338 </pre></div>339 </pre></div>
339 </section>340 </section>
340 </div>341 </div>
341 <p>This·detailed·summary·information·tells·us·the·number·of·features·in·the·layer342 <p>This·detailed·summary·information·tells·us·the·number·of·features·in·the·layer
342 (246),·the·geographic·bounds·of·the·data,·the·spatial·reference·system343 (246),·the·geographic·bounds·of·the·data,·the·spatial·reference·system
343 (SRS·WKT),·as·well·as·type·information·for·each·attribute·field.·For·example,344 («SRS·WKT»),·as·well·as·type·information·for·each·attribute·field.·For·example,
344 <code·class="docutils·literal·notranslate"><span·class="pre">FIPS:</span>·<span·class="pre">String</span>·<span·class="pre">(2.0)</span></code>·indicates·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">FIPS</span></code>·character·field·has345 <code·class="docutils·literal·notranslate"><span·class="pre">FIPS:</span>·<span·class="pre">String</span>·<span·class="pre">(2.0)</span></code>·indicates·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">FIPS</span></code>·character·field·has
345 a·maximum·length·of·2.··Similarly,·<code·class="docutils·literal·notranslate"><span·class="pre">LON:</span>·<span·class="pre">Real</span>·<span·class="pre">(8.3)</span></code>·is·a·floating-point346 a·maximum·length·of·2.··Similarly,·<code·class="docutils·literal·notranslate"><span·class="pre">LON:</span>·<span·class="pre">Real</span>·<span·class="pre">(8.3)</span></code>·is·a·floating-point
346 field·that·holds·a·maximum·of·8·digits·up·to·three·decimal·places.</p>347 field·that·holds·a·maximum·of·8·digits·up·to·three·decimal·places.</p>
347 </section>348 </section>
348 </section>349 </section>
349 <section·id="s-geographic-models">350 <section·id="s-geographic-models">
350 <span·id="geographic-models"></span><h2>Geographic·Models<a·class="headerlink"·href="#geographic-models"·title="Link·to·this·heading">¶</a></h2>351 <span·id="geographic-models"></span><h2>Geographic·Models<a·class="headerlink"·href="#geographic-models"·title="Link·to·this·heading">¶</a></h2>
Offset 542, 15 lines modifiedOffset 543, 15 lines modified
542 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">lyr</span><span·class="o">.</span><span·class="n">geom_type</span><span·class="p">)</span>543 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="nb">print</span><span·class="p">(</span><span·class="n">lyr</span><span·class="o">.</span><span·class="n">geom_type</span><span·class="p">)</span>
543 <span·class="go">Polygon</span>544 <span·class="go">Polygon</span>
544 <span·class="gp">&gt;&gt;&gt;·</span><span·class="nb">print</span><span·class="p">(</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">lyr</span><span·class="p">))</span>545 <span·class="gp">&gt;&gt;&gt;·</span><span·class="nb">print</span><span·class="p">(</span><span·class="nb">len</span><span·class="p">(</span><span·class="n">lyr</span><span·class="p">))</span>
545 <span·class="go">246</span>546 <span·class="go">246</span>
546 </pre></div>547 </pre></div>
547 </div>548 </div>
548 <div·class="admonition·note">549 <div·class="admonition·note">
549 <p·class="admonition-title">Note</p>550 <p·class="admonition-title">Nota</p>
550 <p>Unfortunately,·the·shapefile·data·format·does·not·allow·for·greater551 <p>Unfortunately,·the·shapefile·data·format·does·not·allow·for·greater
551 specificity·with·regards·to·geometry·types.··This·shapefile,·like552 specificity·with·regards·to·geometry·types.··This·shapefile,·like
552 many·others,·actually·includes·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code>·geometries,·not·Polygons.553 many·others,·actually·includes·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code>·geometries,·not·Polygons.
553 It’s·important·to·use·a·more·general·field·type·in·models:·a554 It’s·important·to·use·a·more·general·field·type·in·models:·a
554 GeoDjango·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code>·will·accept·a·<code·class="docutils·literal·notranslate"><span·class="pre">Polygon</span></code>·geometry,·but·a555 GeoDjango·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code>·will·accept·a·<code·class="docutils·literal·notranslate"><span·class="pre">Polygon</span></code>·geometry,·but·a
555 <code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code>·will·not·accept·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code>·type·geometry.··This556 <code·class="docutils·literal·notranslate"><span·class="pre">PolygonField</span></code>·will·not·accept·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygon</span></code>·type·geometry.··This
556 is·why·the·<code·class="docutils·literal·notranslate"><span·class="pre">WorldBorder</span></code>·model·defined·above·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code>.</p>557 is·why·the·<code·class="docutils·literal·notranslate"><span·class="pre">WorldBorder</span></code>·model·defined·above·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiPolygonField</span></code>.</p>
Offset 847, 15 lines modifiedOffset 848, 15 lines modified
847 example,·coordinates·will·be·expressed·in·<a·class="reference·external"·href="https://spatialreference.org/ref/epsg/32140/">EPSG·SRID·32140</a>,848 example,·coordinates·will·be·expressed·in·<a·class="reference·external"·href="https://spatialreference.org/ref/epsg/32140/">EPSG·SRID·32140</a>,
848 a·coordinate·system·specific·to·south·Texas·<strong>only</strong>·and·in·units·of849 a·coordinate·system·specific·to·south·Texas·<strong>only</strong>·and·in·units·of
849 <strong>meters</strong>,·not·degrees:</p>850 <strong>meters</strong>,·not·degrees:</p>
850 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">Point</span>851 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.gis.geos</span>·<span·class="kn">import</span>·<span·class="n">GEOSGeometry</span><span·class="p">,</span>·<span·class="n">Point</span>
851 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">pnt</span>·<span·class="o">=</span>·<span·class="n">Point</span><span·class="p">(</span><span·class="mf">954158.1</span><span·class="p">,</span>·<span·class="mf">4215137.1</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="mi">32140</span><span·class="p">)</span>852 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">pnt</span>·<span·class="o">=</span>·<span·class="n">Point</span><span·class="p">(</span><span·class="mf">954158.1</span><span·class="p">,</span>·<span·class="mf">4215137.1</span><span·class="p">,</span>·<span·class="n">srid</span><span·class="o">=</span><span·class="mi">32140</span><span·class="p">)</span>
852 </pre></div>853 </pre></div>
853 </div>854 </div>
854 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">pnt</span></code>·may·also·be·constructed·with·EWKT,·an·extended·form·of855 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">pnt</span></code>·may·also·be·constructed·with·EWKT,·an·«extended»·form·of
855 WKT·that·includes·the·SRID:</p>856 WKT·that·includes·the·SRID:</p>
856 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">pnt</span>·<span·class="o">=</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="s2">&quot;SRID=32140;POINT(954158.1·4215137.1)&quot;</span><span·class="p">)</span>857 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">pnt</span>·<span·class="o">=</span>·<span·class="n">GEOSGeometry</span><span·class="p">(</span><span·class="s2">&quot;SRID=32140;POINT(954158.1·4215137.1)&quot;</span><span·class="p">)</span>
857 </pre></div>858 </pre></div>
858 </div>859 </div>
859 <p>GeoDjango’s·ORM·will·automatically·wrap·geometry·values860 <p>GeoDjango’s·ORM·will·automatically·wrap·geometry·values
860 in·transformation·SQL,·allowing·the·developer·to·work·at·a·higher·level861 in·transformation·SQL,·allowing·the·developer·to·work·at·a·higher·level
861 of·abstraction:</p>862 of·abstraction:</p>
Offset 1080, 37 lines modifiedOffset 1081, 37 lines modified
1080 </li>1081 </li>
1081 </ul>1082 </ul>
1082 </li>1083 </li>
1083 </ul>1084 </ul>
  
1084 ··</div>1085 ··</div>
1085 ··<div>1086 ··<div>
1086 ····<h4>Previous·topic</h4>1087 ····<h4>Argomento·precedente</h4>
1087 ····<p·class="topless"><a·href="index.html"1088 ····<p·class="topless"><a·href="index.html"
1088 ··························title="previous·chapter">GeoDjango</a></p>1089 ··························title="capitolo·precedente">GeoDjango</a></p>
1089 ··</div>1090 ··</div>
1090 ··<div>1091 ··<div>
1091 ····<h4>Next·topic</h4>1092 ····<h4>Argomento·successivo</h4>
Max diff block lines reached; 1036/10410 bytes (9.95%) of diff not shown.
6.42 KB
html2text {}
Max HTML report size reached
6.12 KB
./usr/share/doc/python-django-doc/html/ref/contrib/gis/utils.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>GeoDjango·Utilities·&#8212;·Django·4.2.16·documentation</title>6 ····<title>GeoDjango·Utilities·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="LayerMapping·data·import·utility"·href="layermapping.html"·/>15 ····<link·rel="next"·title="LayerMapping·data·import·utility"·href="layermapping.html"·/>
15 ····<link·rel="prev"·title="Geolocation·with·GeoIP2"·href="geoip2.html"·/>16 ····<link·rel="prev"·title="Geolocation·with·GeoIP2"·href="geoip2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 ······107 ······
107 ········108 ········
108 ··········<div·class="yui-b"·id="sidebar">109 ··········<div·class="yui-b"·id="sidebar">
109 ············110 ············
110 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">111 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
111 ········<div·class="sphinxsidebarwrapper">112 ········<div·class="sphinxsidebarwrapper">
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="geoip2.html"115 ····<p·class="topless"><a·href="geoip2.html"
115 ··························title="previous·chapter">Geolocation·with·GeoIP2</a></p>116 ··························title="capitolo·precedente">Geolocation·with·GeoIP2</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="layermapping.html"120 ····<p·class="topless"><a·href="layermapping.html"
120 ··························title="next·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·data·import·utility</a></p>121 ··························title="capitolo·successivo"><code·class="docutils·literal·notranslate"><span·class="pre">LayerMapping</span></code>·data·import·utility</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../../../search.html"·method="get">126 ····<form·class="search"·action="../../../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.0 KB
html2text {}
Max HTML report size reached
15.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/humanize.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>django.contrib.humanize·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.humanize·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·messages·framework"·href="messages.html"·/>15 ····<link·rel="next"·title="The·messages·framework"·href="messages.html"·/>
15 ····<link·rel="prev"·title="Deploying·GeoDjango"·href="gis/deployment.html"·/>16 ····<link·rel="prev"·title="Deploying·GeoDjango"·href="gis/deployment.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 75, 15 lines modifiedOffset 76, 15 lines modified
75 ····<div·id="bd">76 ····<div·id="bd">
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-contrib-humanize">79 ··········<div·class="yui-g"·id="ref-contrib-humanize">
79 ············80 ············
80 ··<section·id="s-module-django.contrib.humanize">81 ··<section·id="s-module-django.contrib.humanize">
81 <span·id="s-django-contrib-humanize"></span><span·id="module-django.contrib.humanize"></span><span·id="django-contrib-humanize"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code><a·class="headerlink"·href="#module-django.contrib.humanize"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-django-contrib-humanize"></span><span·id="module-django.contrib.humanize"></span><span·id="django-contrib-humanize"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code><a·class="headerlink"·href="#module-django.contrib.humanize"·title="Link·to·this·heading">¶</a></h1>
82 <p>A·set·of·Django·template·filters·useful·for·adding·a·human·touch·to·data.</p>83 <p>A·set·of·Django·template·filters·useful·for·adding·a·«human·touch»·to·data.</p>
83 <p>To·activate·these·filters,·add·<code·class="docutils·literal·notranslate"><span·class="pre">'django.contrib.humanize'</span></code>·to·your84 <p>To·activate·these·filters,·add·<code·class="docutils·literal·notranslate"><span·class="pre">'django.contrib.humanize'</span></code>·to·your
84 <a·class="reference·internal"·href="../settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·Once·you’ve·done·that,·use85 <a·class="reference·internal"·href="../settings.html#std-setting-INSTALLED_APPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></a>·setting.·Once·you’ve·done·that,·use
85 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">humanize</span>·<span·class="pre">%}</span></code>·in·a·template,·and·you’ll·have·access·to·the·following86 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">humanize</span>·<span·class="pre">%}</span></code>·in·a·template,·and·you’ll·have·access·to·the·following
86 filters.</p>87 filters.</p>
87 <section·id="s-apnumber">88 <section·id="s-apnumber">
88 <span·id="s-std-templatefilter-apnumber"></span><span·id="apnumber"></span><span·id="std-templatefilter-apnumber"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">apnumber</span></code><a·class="headerlink"·href="#apnumber"·title="Link·to·this·heading">¶</a></h2>89 <span·id="s-std-templatefilter-apnumber"></span><span·id="apnumber"></span><span·id="std-templatefilter-apnumber"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">apnumber</span></code><a·class="headerlink"·href="#apnumber"·title="Link·to·this·heading">¶</a></h2>
89 <p>For·numbers·1-9,·returns·the·number·spelled·out.·Otherwise,·returns·the90 <p>For·numbers·1-9,·returns·the·number·spelled·out.·Otherwise,·returns·the
Offset 136, 34 lines modifiedOffset 137, 34 lines modified
136 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">1200000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'1,2</span>·<span·class="pre">Millionen'</span></code>.</p></li>137 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">1200000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'1,2</span>·<span·class="pre">Millionen'</span></code>.</p></li>
137 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">1200000000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'1,2</span>·<span·class="pre">Milliarden'</span></code>.</p></li>138 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">1200000000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'1,2</span>·<span·class="pre">Milliarden'</span></code>.</p></li>
138 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">-1200000000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'-1,2</span>·<span·class="pre">Milliarden'</span></code>.</p></li>139 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">-1200000000</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">'-1,2</span>·<span·class="pre">Milliarden'</span></code>.</p></li>
139 </ul>140 </ul>
140 </section>141 </section>
141 <section·id="s-naturalday">142 <section·id="s-naturalday">
142 <span·id="s-std-templatefilter-naturalday"></span><span·id="naturalday"></span><span·id="std-templatefilter-naturalday"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">naturalday</span></code><a·class="headerlink"·href="#naturalday"·title="Link·to·this·heading">¶</a></h2>143 <span·id="s-std-templatefilter-naturalday"></span><span·id="naturalday"></span><span·id="std-templatefilter-naturalday"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">naturalday</span></code><a·class="headerlink"·href="#naturalday"·title="Link·to·this·heading">¶</a></h2>
143 <p>For·dates·that·are·the·current·day·or·within·one·day,·return·today,144 <p>For·dates·that·are·the·current·day·or·within·one·day,·return·«today»,
144 tomorrow·or·yesterday,·as·appropriate.·Otherwise,·format·the·date·using145 «tomorrow»·or·«yesterday»,·as·appropriate.·Otherwise,·format·the·date·using
145 the·passed·in·format·string.</p>146 the·passed·in·format·string.</p>
146 <p><strong>Argument:</strong>·Date·formatting·string·as·described·in·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatefilter-date"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">date</span></code></a>·tag.</p>147 <p><strong>Argument:</strong>·Date·formatting·string·as·described·in·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatefilter-date"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">date</span></code></a>·tag.</p>
147 <p>Examples·(when·today·is·17·Feb·2007):</p>148 <p>Examples·(when·today·is·17·Feb·2007):</p>
148 <ul·class="simple">149 <ul·class="simple">
149 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">16</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">yesterday</span></code>.</p></li>150 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">16</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">yesterday</span></code>.</p></li>
150 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">today</span></code>.</p></li>151 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">today</span></code>.</p></li>
151 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">18</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">tomorrow</span></code>.</p></li>152 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">18</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">tomorrow</span></code>.</p></li>
152 <li><p>Any·other·day·is·formatted·according·to·given·argument·or·the153 <li><p>Any·other·day·is·formatted·according·to·given·argument·or·the
153 <a·class="reference·internal"·href="../settings.html#std-setting-DATE_FORMAT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATE_FORMAT</span></code></a>·setting·if·no·argument·is·given.</p></li>154 <a·class="reference·internal"·href="../settings.html#std-setting-DATE_FORMAT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATE_FORMAT</span></code></a>·setting·if·no·argument·is·given.</p></li>
154 </ul>155 </ul>
155 </section>156 </section>
156 <section·id="s-naturaltime">157 <section·id="s-naturaltime">
157 <span·id="s-std-templatefilter-naturaltime"></span><span·id="naturaltime"></span><span·id="std-templatefilter-naturaltime"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">naturaltime</span></code><a·class="headerlink"·href="#naturaltime"·title="Link·to·this·heading">¶</a></h2>158 <span·id="s-std-templatefilter-naturaltime"></span><span·id="naturaltime"></span><span·id="std-templatefilter-naturaltime"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">naturaltime</span></code><a·class="headerlink"·href="#naturaltime"·title="Link·to·this·heading">¶</a></h2>
158 <p>For·datetime·values,·returns·a·string·representing·how·many·seconds,159 <p>For·datetime·values,·returns·a·string·representing·how·many·seconds,
159 minutes·or·hours·ago·it·was··falling·back·to·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatefilter-timesince"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">timesince</span></code></a>160 minutes·or·hours·ago·it·was··falling·back·to·the·<a·class="reference·internal"·href="../templates/builtins.html#std-templatefilter-timesince"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">timesince</span></code></a>
160 format·if·the·value·is·more·than·a·day·old.·In·case·the·datetime·value·is·in161 format·if·the·value·is·more·than·a·day·old.·In·case·the·datetime·value·is·in
161 the·future·the·return·value·will·automatically·use·an·appropriate·phrase.</p>162 the·future·the·return·value·will·automatically·use·an·appropriate·phrase.</p>
162 <p>Examples·(when·now·is·17·Feb·2007·16:30:00):</p>163 <p>Examples·(when·now·is·17·Feb·2007·16:30:00):</p>
163 <ul·class="simple">164 <ul·class="simple">
164 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:30:00</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">now</span></code>.</p></li>165 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:30:00</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">now</span></code>.</p></li>
165 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:29:31</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">29</span>·<span·class="pre">seconds</span>·<span·class="pre">ago</span></code>.</p></li>166 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:29:31</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">29</span>·<span·class="pre">seconds</span>·<span·class="pre">ago</span></code>.</p></li>
166 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:29:00</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">a</span>·<span·class="pre">minute</span>·<span·class="pre">ago</span></code>.</p></li>167 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:29:00</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">a</span>·<span·class="pre">minute</span>·<span·class="pre">ago</span></code>.</p></li>
167 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:25:35</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">4</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>168 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">16:25:35</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">4</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>
168 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">15:30:29</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">59</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>169 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">15:30:29</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">59</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>
169 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">15:30:01</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">59</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>170 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">17</span>·<span·class="pre">Feb</span>·<span·class="pre">2007</span>·<span·class="pre">15:30:01</span></code>·becomes·<code·class="docutils·literal·notranslate"><span·class="pre">59</span>·<span·class="pre">minutes</span>·<span·class="pre">ago</span></code>.</p></li>
Offset 217, 37 lines modifiedOffset 218, 37 lines modified
217 <li><a·class="reference·internal"·href="#ordinal"><code·class="docutils·literal·notranslate"><span·class="pre">ordinal</span></code></a></li>218 <li><a·class="reference·internal"·href="#ordinal"><code·class="docutils·literal·notranslate"><span·class="pre">ordinal</span></code></a></li>
218 </ul>219 </ul>
219 </li>220 </li>
220 </ul>221 </ul>
  
221 ··</div>222 ··</div>
222 ··<div>223 ··<div>
223 ····<h4>Previous·topic</h4>224 ····<h4>Argomento·precedente</h4>
224 ····<p·class="topless"><a·href="gis/deployment.html"225 ····<p·class="topless"><a·href="gis/deployment.html"
225 ··························title="previous·chapter">Deploying·GeoDjango</a></p>226 ··························title="capitolo·precedente">Deploying·GeoDjango</a></p>
226 ··</div>227 ··</div>
227 ··<div>228 ··<div>
228 ····<h4>Next·topic</h4>229 ····<h4>Argomento·successivo</h4>
229 ····<p·class="topless"><a·href="messages.html"230 ····<p·class="topless"><a·href="messages.html"
230 ··························title="next·chapter">The·messages·framework</a></p>231 ··························title="capitolo·successivo">The·messages·framework</a></p>
231 ··</div>232 ··</div>
232 <search·id="searchbox"·style="display:·none"·role="search">233 <search·id="searchbox"·style="display:·none"·role="search">
233 ··<h3·id="searchlabel">Quick·search</h3>234 ··<h3·id="searchlabel">Ricerca·veloce</h3>
234 ····<div·class="searchformwrapper">235 ····<div·class="searchformwrapper">
235 ····<form·class="search"·action="../../search.html"·method="get">236 ····<form·class="search"·action="../../search.html"·method="get">
236 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
237 ······<input·type="submit"·value="Go"·/>238 ······<input·type="submit"·value="Vai"·/>
238 ····</form>239 ····</form>
239 ····</div>240 ····</div>
240 </search>241 </search>
241 <script>document.getElementById('searchbox').style.display·=·"block"</script>242 <script>document.getElementById('searchbox').style.display·=·"block"</script>
242 ········</div>243 ········</div>
243 ······</div>244 ······</div>
244 ··············<h3>Last·update:</h3>245 ··············<h3>Last·update:</h3>
245 ··············<p·class="topless">Sep·03,·2024</p>246 ··············<p·class="topless">set·03,·2024</p>
246 ··········</div>247 ··········</div>
247 ········248 ········
248 ······249 ······
249 ····</div>250 ····</div>
  
250 ····<div·id="ft">251 ····<div·id="ft">
Max diff block lines reached; 0/11318 bytes (0.00%) of diff not shown.
4.2 KB
html2text {}
Max HTML report size reached
15.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>contrib·packages·&#8212;·Django·4.2.16·documentation</title>6 ····<title>contrib·packages·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·Django·admin·site"·href="admin/index.html"·/>15 ····<link·rel="next"·title="The·Django·admin·site"·href="admin/index.html"·/>
15 ····<link·rel="prev"·title="Clickjacking·Protection"·href="../clickjacking.html"·/>16 ····<link·rel="prev"·title="Clickjacking·Protection"·href="../clickjacking.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 75, 15 lines modifiedOffset 76, 15 lines modified
75 ····<div·id="bd">76 ····<div·id="bd">
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-contrib-index">79 ··········<div·class="yui-g"·id="ref-contrib-index">
79 ············80 ············
80 ··<section·id="s-contrib-packages">81 ··<section·id="s-contrib-packages">
81 <span·id="contrib-packages"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages<a·class="headerlink"·href="#contrib-packages"·title="Link·to·this·heading">¶</a></h1>82 <span·id="contrib-packages"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages<a·class="headerlink"·href="#contrib-packages"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·aims·to·follow·Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/tutorial/stdlib.html#tut-batteries-included"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">batteries·included·philosophy</span></a>.·It·ships·with·a·variety·of·extra,·optional·tools83 <p>Django·aims·to·follow·Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/tutorial/stdlib.html#tut-batteries-included"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">«batteries·included»·philosophy</span></a>.·It·ships·with·a·variety·of·extra,·optional·tools
83 that·solve·common·web·development·problems.</p>84 that·solve·common·web·development·problems.</p>
84 <p>This·code·lives·in·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/contrib">django/contrib</a>·in·the·Django·distribution.·This·document85 <p>This·code·lives·in·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/contrib">django/contrib</a>·in·the·Django·distribution.·This·document
85 gives·a·rundown·of·the·packages·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>,·along·with·any·dependencies86 gives·a·rundown·of·the·packages·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>,·along·with·any·dependencies
86 those·packages·have.</p>87 those·packages·have.</p>
87 <div·class="admonition-including-contrib-packages-in-installed-apps·admonition">88 <div·class="admonition-including-contrib-packages-in-installed-apps·admonition">
88 <p·class="admonition-title">Including·<code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages·in·<code·class="docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></p>89 <p·class="admonition-title">Including·<code·class="docutils·literal·notranslate"><span·class="pre">contrib</span></code>·packages·in·<code·class="docutils·literal·notranslate"><span·class="pre">INSTALLED_APPS</span></code></p>
89 <p>For·most·of·these·add-ons··specifically,·the·add-ons·that·include·either90 <p>For·most·of·these·add-ons··specifically,·the·add-ons·that·include·either
Offset 99, 15 lines modifiedOffset 100, 15 lines modified
99 <li·class="toctree-l1"><a·class="reference·internal"·href="flatpages.html">The·flatpages·app</a></li>100 <li·class="toctree-l1"><a·class="reference·internal"·href="flatpages.html">The·flatpages·app</a></li>
100 <li·class="toctree-l1"><a·class="reference·internal"·href="gis/index.html">GeoDjango</a></li>101 <li·class="toctree-l1"><a·class="reference·internal"·href="gis/index.html">GeoDjango</a></li>
101 <li·class="toctree-l1"><a·class="reference·internal"·href="humanize.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></li>102 <li·class="toctree-l1"><a·class="reference·internal"·href="humanize.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.humanize</span></code></a></li>
102 <li·class="toctree-l1"><a·class="reference·internal"·href="messages.html">The·messages·framework</a></li>103 <li·class="toctree-l1"><a·class="reference·internal"·href="messages.html">The·messages·framework</a></li>
103 <li·class="toctree-l1"><a·class="reference·internal"·href="postgres/index.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a></li>104 <li·class="toctree-l1"><a·class="reference·internal"·href="postgres/index.html"><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a></li>
104 <li·class="toctree-l1"><a·class="reference·internal"·href="redirects.html">The·redirects·app</a></li>105 <li·class="toctree-l1"><a·class="reference·internal"·href="redirects.html">The·redirects·app</a></li>
105 <li·class="toctree-l1"><a·class="reference·internal"·href="sitemaps.html">The·sitemap·framework</a></li>106 <li·class="toctree-l1"><a·class="reference·internal"·href="sitemaps.html">The·sitemap·framework</a></li>
106 <li·class="toctree-l1"><a·class="reference·internal"·href="sites.html">The·sites·framework</a></li>107 <li·class="toctree-l1"><a·class="reference·internal"·href="sites.html">The·«sites»·framework</a></li>
107 <li·class="toctree-l1"><a·class="reference·internal"·href="staticfiles.html">The·<code·class="docutils·literal·notranslate"><span·class="pre">staticfiles</span></code>·app</a></li>108 <li·class="toctree-l1"><a·class="reference·internal"·href="staticfiles.html">The·<code·class="docutils·literal·notranslate"><span·class="pre">staticfiles</span></code>·app</a></li>
108 <li·class="toctree-l1"><a·class="reference·internal"·href="syndication.html">The·syndication·feed·framework</a></li>109 <li·class="toctree-l1"><a·class="reference·internal"·href="syndication.html">The·syndication·feed·framework</a></li>
109 </ul>110 </ul>
110 </div>111 </div>
111 <section·id="s-admin">112 <section·id="s-admin">
112 <span·id="admin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">admin</span></code><a·class="headerlink"·href="#admin"·title="Link·to·this·heading">¶</a></h2>113 <span·id="admin"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">admin</span></code><a·class="headerlink"·href="#admin"·title="Link·to·this·heading">¶</a></h2>
113 <p>The·automatic·Django·administrative·interface.·For·more·information,·see114 <p>The·automatic·Django·administrative·interface.·For·more·information,·see
Offset 118, 33 lines modifiedOffset 119, 33 lines modified
118 <section·id="s-auth">119 <section·id="s-auth">
119 <span·id="auth"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">auth</span></code><a·class="headerlink"·href="#auth"·title="Link·to·this·heading">¶</a></h2>120 <span·id="auth"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">auth</span></code><a·class="headerlink"·href="#auth"·title="Link·to·this·heading">¶</a></h2>
120 <p>Django’s·authentication·framework.</p>121 <p>Django’s·authentication·framework.</p>
121 <p>See·<a·class="reference·internal"·href="../../topics/auth/index.html"><span·class="doc">User·authentication·in·Django</span></a>.</p>122 <p>See·<a·class="reference·internal"·href="../../topics/auth/index.html"><span·class="doc">User·authentication·in·Django</span></a>.</p>
122 </section>123 </section>
123 <section·id="s-contenttypes">124 <section·id="s-contenttypes">
124 <span·id="contenttypes"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">contenttypes</span></code><a·class="headerlink"·href="#contenttypes"·title="Link·to·this·heading">¶</a></h2>125 <span·id="contenttypes"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">contenttypes</span></code><a·class="headerlink"·href="#contenttypes"·title="Link·to·this·heading">¶</a></h2>
125 <p>A·light·framework·for·hooking·into·types·of·content,·where·each·installed126 <p>A·light·framework·for·hooking·into·«types»·of·content,·where·each·installed
126 Django·model·is·a·separate·content·type.</p>127 Django·model·is·a·separate·content·type.</p>
127 <p>See·the·<a·class="reference·internal"·href="contenttypes.html"><span·class="doc">contenttypes·documentation</span></a>.</p>128 <p>See·the·<a·class="reference·internal"·href="contenttypes.html"><span·class="doc">contenttypes·documentation</span></a>.</p>
128 </section>129 </section>
129 <section·id="s-flatpages">130 <section·id="s-flatpages">
130 <span·id="flatpages"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">flatpages</span></code><a·class="headerlink"·href="#flatpages"·title="Link·to·this·heading">¶</a></h2>131 <span·id="flatpages"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">flatpages</span></code><a·class="headerlink"·href="#flatpages"·title="Link·to·this·heading">¶</a></h2>
131 <p>A·framework·for·managing·flat·HTML·content·in·a·database.</p>132 <p>A·framework·for·managing·«flat»·HTML·content·in·a·database.</p>
132 <p>See·the·<a·class="reference·internal"·href="flatpages.html"><span·class="doc">flatpages·documentation</span></a>.</p>133 <p>See·the·<a·class="reference·internal"·href="flatpages.html"><span·class="doc">flatpages·documentation</span></a>.</p>
133 <p>Requires·the·<a·class="reference·internal"·href="#sites">sites</a>·contrib·package·to·be·installed·as·well.</p>134 <p>Requires·the·<a·class="reference·internal"·href="#sites">sites</a>·contrib·package·to·be·installed·as·well.</p>
134 </section>135 </section>
135 <section·id="s-gis">136 <section·id="s-gis">
136 <span·id="gis"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">gis</span></code><a·class="headerlink"·href="#gis"·title="Link·to·this·heading">¶</a></h2>137 <span·id="gis"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">gis</span></code><a·class="headerlink"·href="#gis"·title="Link·to·this·heading">¶</a></h2>
137 <p>A·world-class·geospatial·framework·built·on·top·of·Django,·that·enables138 <p>A·world-class·geospatial·framework·built·on·top·of·Django,·that·enables
138 storage,·manipulation·and·display·of·spatial·data.</p>139 storage,·manipulation·and·display·of·spatial·data.</p>
139 <p>See·the·<a·class="reference·internal"·href="gis/index.html"><span·class="doc">GeoDjango</span></a>·documentation·for·more.</p>140 <p>See·the·<a·class="reference·internal"·href="gis/index.html"><span·class="doc">GeoDjango</span></a>·documentation·for·more.</p>
140 </section>141 </section>
141 <section·id="s-humanize">142 <section·id="s-humanize">
142 <span·id="humanize"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">humanize</span></code><a·class="headerlink"·href="#humanize"·title="Link·to·this·heading">¶</a></h2>143 <span·id="humanize"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">humanize</span></code><a·class="headerlink"·href="#humanize"·title="Link·to·this·heading">¶</a></h2>
143 <p>A·set·of·Django·template·filters·useful·for·adding·a·human·touch·to·data.</p>144 <p>A·set·of·Django·template·filters·useful·for·adding·a·«human·touch»·to·data.</p>
144 <p>See·the·<a·class="reference·internal"·href="humanize.html"><span·class="doc">humanize·documentation</span></a>.</p>145 <p>See·the·<a·class="reference·internal"·href="humanize.html"><span·class="doc">humanize·documentation</span></a>.</p>
145 </section>146 </section>
146 <section·id="s-messages">147 <section·id="s-messages">
147 <span·id="messages"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">messages</span></code><a·class="headerlink"·href="#messages"·title="Link·to·this·heading">¶</a></h2>148 <span·id="messages"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">messages</span></code><a·class="headerlink"·href="#messages"·title="Link·to·this·heading">¶</a></h2>
148 <p>A·framework·for·storing·and·retrieving·temporary·cookie-·or·session-based149 <p>A·framework·for·storing·and·retrieving·temporary·cookie-·or·session-based
149 messages</p>150 messages</p>
150 <p>See·the·<a·class="reference·internal"·href="messages.html"><span·class="doc">messages·documentation</span></a>.</p>151 <p>See·the·<a·class="reference·internal"·href="messages.html"><span·class="doc">messages·documentation</span></a>.</p>
Offset 218, 37 lines modifiedOffset 219, 37 lines modified
218 <li><a·class="reference·internal"·href="#other-add-ons">Other·add-ons</a></li>219 <li><a·class="reference·internal"·href="#other-add-ons">Other·add-ons</a></li>
219 </ul>220 </ul>
220 </li>221 </li>
221 </ul>222 </ul>
  
222 ··</div>223 ··</div>
223 ··<div>224 ··<div>
224 ····<h4>Previous·topic</h4>225 ····<h4>Argomento·precedente</h4>
225 ····<p·class="topless"><a·href="../clickjacking.html"226 ····<p·class="topless"><a·href="../clickjacking.html"
226 ··························title="previous·chapter">Clickjacking·Protection</a></p>227 ··························title="capitolo·precedente">Clickjacking·Protection</a></p>
227 ··</div>228 ··</div>
228 ··<div>229 ··<div>
229 ····<h4>Next·topic</h4>230 ····<h4>Argomento·successivo</h4>
230 ····<p·class="topless"><a·href="admin/index.html"231 ····<p·class="topless"><a·href="admin/index.html"
231 ··························title="next·chapter">The·Django·admin·site</a></p>232 ··························title="capitolo·successivo">The·Django·admin·site</a></p>
232 ··</div>233 ··</div>
233 <search·id="searchbox"·style="display:·none"·role="search">234 <search·id="searchbox"·style="display:·none"·role="search">
234 ··<h3·id="searchlabel">Quick·search</h3>235 ··<h3·id="searchlabel">Ricerca·veloce</h3>
235 ····<div·class="searchformwrapper">236 ····<div·class="searchformwrapper">
236 ····<form·class="search"·action="../../search.html"·method="get">237 ····<form·class="search"·action="../../search.html"·method="get">
237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>238 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
Max diff block lines reached; 365/10354 bytes (3.53%) of diff not shown.
5.17 KB
html2text {}
Max HTML report size reached
21.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/messages.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·messages·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·messages·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="django.contrib.postgres"·href="postgres/index.html"·/>15 ····<link·rel="next"·title="django.contrib.postgres"·href="postgres/index.html"·/>
15 ····<link·rel="prev"·title="django.contrib.humanize"·href="humanize.html"·/>16 ····<link·rel="prev"·title="django.contrib.humanize"·href="humanize.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-contrib-messages">79 ··········<div·class="yui-g"·id="ref-contrib-messages">
79 ············80 ············
80 ··<section·id="s-module-django.contrib.messages">81 ··<section·id="s-module-django.contrib.messages">
81 <span·id="s-the-messages-framework"></span><span·id="module-django.contrib.messages"></span><span·id="the-messages-framework"></span><h1>The·messages·framework<a·class="headerlink"·href="#module-django.contrib.messages"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-the-messages-framework"></span><span·id="module-django.contrib.messages"></span><span·id="the-messages-framework"></span><h1>The·messages·framework<a·class="headerlink"·href="#module-django.contrib.messages"·title="Link·to·this·heading">¶</a></h1>
82 <p>Quite·commonly·in·web·applications,·you·need·to·display·a·one-time83 <p>Quite·commonly·in·web·applications,·you·need·to·display·a·one-time
83 notification·message·(also·known·as·flash·message)·to·the·user·after84 notification·message·(also·known·as·«flash·message»)·to·the·user·after
84 processing·a·form·or·some·other·types·of·user·input.</p>85 processing·a·form·or·some·other·types·of·user·input.</p>
85 <p>For·this,·Django·provides·full·support·for·cookie-·and·session-based86 <p>For·this,·Django·provides·full·support·for·cookie-·and·session-based
86 messaging,·for·both·anonymous·and·authenticated·users.·The·messages·framework87 messaging,·for·both·anonymous·and·authenticated·users.·The·messages·framework
87 allows·you·to·temporarily·store·messages·in·one·request·and·retrieve·them·for88 allows·you·to·temporarily·store·messages·in·one·request·and·retrieve·them·for
88 display·in·a·subsequent·request·(usually·the·next·one).·Every·message·is89 display·in·a·subsequent·request·(usually·the·next·one).·Every·message·is
89 tagged·with·a·specific·<code·class="docutils·literal·notranslate"><span·class="pre">level</span></code>·that·determines·its·priority·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">info</span></code>,90 tagged·with·a·specific·<code·class="docutils·literal·notranslate"><span·class="pre">level</span></code>·that·determines·its·priority·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">info</span></code>,
90 <code·class="docutils·literal·notranslate"><span·class="pre">warning</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">error</span></code>).</p>91 <code·class="docutils·literal·notranslate"><span·class="pre">warning</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">error</span></code>).</p>
Offset 179, 15 lines modifiedOffset 180, 15 lines modified
179 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></p></td>180 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></p></td>
180 <td><p>Development-related·messages·that·will·be·ignored·(or·removed)·in·a·production·deployment</p></td>181 <td><p>Development-related·messages·that·will·be·ignored·(or·removed)·in·a·production·deployment</p></td>
181 </tr>182 </tr>
182 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">INFO</span></code></p></td>183 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">INFO</span></code></p></td>
183 <td><p>Informational·messages·for·the·user</p></td>184 <td><p>Informational·messages·for·the·user</p></td>
184 </tr>185 </tr>
185 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">SUCCESS</span></code></p></td>186 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">SUCCESS</span></code></p></td>
186 <td><p>An·action·was·successful,·e.g.·Your·profile·was·updated·successfully</p></td>187 <td><p>An·action·was·successful,·e.g.·«Your·profile·was·updated·successfully»</p></td>
187 </tr>188 </tr>
188 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code></p></td>189 <tr·class="row-odd"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code></p></td>
189 <td><p>A·failure·did·not·occur·but·may·be·imminent</p></td>190 <td><p>A·failure·did·not·occur·but·may·be·imminent</p></td>
190 </tr>191 </tr>
191 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">ERROR</span></code></p></td>192 <tr·class="row-even"><td><p><code·class="docutils·literal·notranslate"><span·class="pre">ERROR</span></code></p></td>
192 <td><p>An·action·was·<strong>not</strong>·successful·or·some·other·failure·occurred</p></td>193 <td><p>An·action·was·<strong>not</strong>·successful·or·some·other·failure·occurred</p></td>
193 </tr>194 </tr>
Offset 244, 15 lines modifiedOffset 245, 15 lines modified
244 </div>245 </div>
245 </section>246 </section>
246 </section>247 </section>
247 <section·id="s-using-messages-in-views-and-templates">248 <section·id="s-using-messages-in-views-and-templates">
248 <span·id="using-messages-in-views-and-templates"></span><h2>Using·messages·in·views·and·templates<a·class="headerlink"·href="#using-messages-in-views-and-templates"·title="Link·to·this·heading">¶</a></h2>249 <span·id="using-messages-in-views-and-templates"></span><h2>Using·messages·in·views·and·templates<a·class="headerlink"·href="#using-messages-in-views-and-templates"·title="Link·to·this·heading">¶</a></h2>
249 <dl·class="py·function">250 <dl·class="py·function">
250 <dt·class="sig·sig-object·py"·id="django.contrib.messages.add_message">251 <dt·class="sig·sig-object·py"·id="django.contrib.messages.add_message">
251 <span·class="sig-name·descname"><span·class="pre">add_message</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">level</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">extra_tags</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">''</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fail_silently</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/messages/api.html#add_message"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.messages.add_message"·title="Link·to·this·definition">¶</a></dt>252 <span·class="sig-name·descname"><span·class="pre">add_message</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">level</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">extra_tags</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">''</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fail_silently</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/messages/api.html#add_message"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.messages.add_message"·title="Link·to·this·definition">¶</a></dt>
252 <dd></dd></dl>253 <dd></dd></dl>
  
253 <section·id="s-adding-a-message">254 <section·id="s-adding-a-message">
254 <span·id="adding-a-message"></span><h3>Adding·a·message<a·class="headerlink"·href="#adding-a-message"·title="Link·to·this·heading">¶</a></h3>255 <span·id="adding-a-message"></span><h3>Adding·a·message<a·class="headerlink"·href="#adding-a-message"·title="Link·to·this·heading">¶</a></h3>
255 <p>To·add·a·message,·call:</p>256 <p>To·add·a·message,·call:</p>
256 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib</span>·<span·class="kn">import</span>·<span·class="n">messages</span>257 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib</span>·<span·class="kn">import</span>·<span·class="n">messages</span>
  
Offset 269, 15 lines modifiedOffset 270, 15 lines modified
269 </pre></div>270 </pre></div>
270 </div>271 </div>
271 </section>272 </section>
272 <section·id="s-displaying-messages">273 <section·id="s-displaying-messages">
273 <span·id="s-message-displaying"></span><span·id="displaying-messages"></span><span·id="message-displaying"></span><h3>Displaying·messages<a·class="headerlink"·href="#displaying-messages"·title="Link·to·this·heading">¶</a></h3>274 <span·id="s-message-displaying"></span><span·id="displaying-messages"></span><span·id="message-displaying"></span><h3>Displaying·messages<a·class="headerlink"·href="#displaying-messages"·title="Link·to·this·heading">¶</a></h3>
274 <dl·class="py·function">275 <dl·class="py·function">
275 <dt·class="sig·sig-object·py"·id="django.contrib.messages.get_messages">276 <dt·class="sig·sig-object·py"·id="django.contrib.messages.get_messages">
276 <span·class="sig-name·descname"><span·class="pre">get_messages</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/messages/api.html#get_messages"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.messages.get_messages"·title="Link·to·this·definition">¶</a></dt>277 <span·class="sig-name·descname"><span·class="pre">get_messages</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/contrib/messages/api.html#get_messages"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.messages.get_messages"·title="Link·to·this·definition">¶</a></dt>
277 <dd></dd></dl>278 <dd></dd></dl>
  
278 <p><strong>In·your·template</strong>,·use·something·like:</p>279 <p><strong>In·your·template</strong>,·use·something·like:</p>
279 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">if</span>·<span·class="nv">messages</span>·<span·class="cp">%}</span>280 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">if</span>·<span·class="nv">messages</span>·<span·class="cp">%}</span>
280 <span·class="p">&lt;</span><span·class="nt">ul</span>·<span·class="na">class</span><span·class="o">=</span><span·class="s">&quot;messages&quot;</span><span·class="p">&gt;</span>281 <span·class="p">&lt;</span><span·class="nt">ul</span>·<span·class="na">class</span><span·class="o">=</span><span·class="s">&quot;messages&quot;</span><span·class="p">&gt;</span>
281 ····<span·class="cp">{%</span>·<span·class="k">for</span>·<span·class="nv">message</span>·<span·class="k">in</span>·<span·class="nv">messages</span>·<span·class="cp">%}</span>282 ····<span·class="cp">{%</span>·<span·class="k">for</span>·<span·class="nv">message</span>·<span·class="k">in</span>·<span·class="nv">messages</span>·<span·class="cp">%}</span>
282 ····<span·class="p">&lt;</span><span·class="nt">li</span><span·class="cp">{%</span>·<span·class="k">if</span>·<span·class="nv">message.tags</span>·<span·class="cp">%}</span>·<span·class="na">class</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{{</span>·<span·class="nv">message.tags</span>·<span·class="cp">}}</span><span·class="s">&quot;</span><span·class="cp">{%</span>·<span·class="k">endif</span>·<span·class="cp">%}</span><span·class="p">&gt;</span><span·class="cp">{{</span>·<span·class="nv">message</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">li</span><span·class="p">&gt;</span>283 ····<span·class="p">&lt;</span><span·class="nt">li</span><span·class="cp">{%</span>·<span·class="k">if</span>·<span·class="nv">message.tags</span>·<span·class="cp">%}</span>·<span·class="na">class</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{{</span>·<span·class="nv">message.tags</span>·<span·class="cp">}}</span><span·class="s">&quot;</span><span·class="cp">{%</span>·<span·class="k">endif</span>·<span·class="cp">%}</span><span·class="p">&gt;</span><span·class="cp">{{</span>·<span·class="nv">message</span>·<span·class="cp">}}</span><span·class="p">&lt;/</span><span·class="nt">li</span><span·class="p">&gt;</span>
Offset 379, 15 lines modifiedOffset 380, 15 lines modified
379 <td><p>40</p></td>380 <td><p>40</p></td>
380 </tr>381 </tr>
381 </tbody>382 </tbody>
382 </table>383 </table>
383 <p>If·you·need·to·identify·the·custom·levels·in·your·HTML·or·CSS,·you·need·to384 <p>If·you·need·to·identify·the·custom·levels·in·your·HTML·or·CSS,·you·need·to
384 provide·a·mapping·via·the·<a·class="reference·internal"·href="../settings.html#std-setting-MESSAGE_TAGS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MESSAGE_TAGS</span></code></a>·setting.</p>385 provide·a·mapping·via·the·<a·class="reference·internal"·href="../settings.html#std-setting-MESSAGE_TAGS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MESSAGE_TAGS</span></code></a>·setting.</p>
385 <div·class="admonition·note">386 <div·class="admonition·note">
386 <p·class="admonition-title">Note</p>387 <p·class="admonition-title">Nota</p>
387 <p>If·you·are·creating·a·reusable·application,·it·is·recommended·to·use388 <p>If·you·are·creating·a·reusable·application,·it·is·recommended·to·use
388 only·the·built-in·<a·class="reference·internal"·href="#message-levels">message·levels</a>·and·not·rely·on·any·custom·levels.</p>389 only·the·built-in·<a·class="reference·internal"·href="#message-levels">message·levels</a>·and·not·rely·on·any·custom·levels.</p>
389 </div>390 </div>
390 </section>391 </section>
391 <section·id="s-changing-the-minimum-recorded-level-per-request">392 <section·id="s-changing-the-minimum-recorded-level-per-request">
392 <span·id="changing-the-minimum-recorded-level-per-request"></span><h3>Changing·the·minimum·recorded·level·per-request<a·class="headerlink"·href="#changing-the-minimum-recorded-level-per-request"·title="Link·to·this·heading">¶</a></h3>393 <span·id="changing-the-minimum-recorded-level-per-request"></span><h3>Changing·the·minimum·recorded·level·per-request<a·class="headerlink"·href="#changing-the-minimum-recorded-level-per-request"·title="Link·to·this·heading">¶</a></h3>
393 <p>The·minimum·recorded·level·can·be·set·per·request·via·the·<code·class="docutils·literal·notranslate"><span·class="pre">set_level</span></code>394 <p>The·minimum·recorded·level·can·be·set·per·request·via·the·<code·class="docutils·literal·notranslate"><span·class="pre">set_level</span></code>
Offset 440, 15 lines modifiedOffset 441, 15 lines modified
440 ····<span·class="s2">&quot;Profile·details·updated.&quot;</span><span·class="p">,</span>441 ····<span·class="s2">&quot;Profile·details·updated.&quot;</span><span·class="p">,</span>
441 ····<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>442 ····<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>
442 <span·class="p">)</span>443 <span·class="p">)</span>
443 <span·class="n">messages</span><span·class="o">.</span><span·class="n">info</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;Hello·world.&quot;</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>444 <span·class="n">messages</span><span·class="o">.</span><span·class="n">info</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="s2">&quot;Hello·world.&quot;</span><span·class="p">,</span>·<span·class="n">fail_silently</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>
444 </pre></div>445 </pre></div>
445 </div>446 </div>
446 <div·class="admonition·note">447 <div·class="admonition·note">
Max diff block lines reached; 2221/14577 bytes (15.24%) of diff not shown.
6.94 KB
html2text {}
Max HTML report size reached
24.8 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/aggregates.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·aggregation·functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·aggregation·functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·database·constraints"·href="constraints.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·database·constraints"·href="constraints.html"·/>
15 ····<link·rel="prev"·title="django.contrib.postgres"·href="index.html"·/>16 ····<link·rel="prev"·title="django.contrib.postgres"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 78, 15 lines modifiedOffset 79, 15 lines modified
78 ··········<div·class="yui-g"·id="ref-contrib-postgres-aggregates">79 ··········<div·class="yui-g"·id="ref-contrib-postgres-aggregates">
79 ············80 ············
80 ··<section·id="s-module-django.contrib.postgres.aggregates">81 ··<section·id="s-module-django.contrib.postgres.aggregates">
81 <span·id="s-postgresql-specific-aggregation-functions"></span><span·id="module-django.contrib.postgres.aggregates"></span><span·id="postgresql-specific-aggregation-functions"></span><h1>PostgreSQL·specific·aggregation·functions<a·class="headerlink"·href="#module-django.contrib.postgres.aggregates"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-postgresql-specific-aggregation-functions"></span><span·id="module-django.contrib.postgres.aggregates"></span><span·id="postgresql-specific-aggregation-functions"></span><h1>PostgreSQL·specific·aggregation·functions<a·class="headerlink"·href="#module-django.contrib.postgres.aggregates"·title="Link·to·this·heading">¶</a></h1>
82 <p>These·functions·are·available·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.aggregates</span></code>83 <p>These·functions·are·available·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.aggregates</span></code>
83 module.·They·are·described·in·more·detail·in·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/functions-aggregate.html">PostgreSQL·docs</a>.</p>84 module.·They·are·described·in·more·detail·in·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/functions-aggregate.html">PostgreSQL·docs</a>.</p>
84 <div·class="admonition·note">85 <div·class="admonition·note">
85 <p·class="admonition-title">Note</p>86 <p·class="admonition-title">Nota</p>
86 <p>All·functions·come·without·default·aliases,·so·you·must·explicitly·provide87 <p>All·functions·come·without·default·aliases,·so·you·must·explicitly·provide
87 one.·For·example:</p>88 one.·For·example:</p>
88 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">arr</span><span·class="o">=</span><span·class="n">ArrayAgg</span><span·class="p">(</span><span·class="s2">&quot;somefield&quot;</span><span·class="p">))</span>89 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">arr</span><span·class="o">=</span><span·class="n">ArrayAgg</span><span·class="p">(</span><span·class="s2">&quot;somefield&quot;</span><span·class="p">))</span>
89 <span·class="go">{&#39;arr&#39;:·[0,·1,·2]}</span>90 <span·class="go">{&#39;arr&#39;:·[0,·1,·2]}</span>
90 </pre></div>91 </pre></div>
91 </div>92 </div>
92 </div>93 </div>
Offset 125, 15 lines modifiedOffset 126, 15 lines modified
  
125 <span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;some_field&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">desc</span><span·class="p">()</span>126 <span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;some_field&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">desc</span><span·class="p">()</span>
126 </pre></div>127 </pre></div>
127 </div>128 </div>
128 </dd></dl>129 </dd></dl>
  
129 <div·class="deprecated">130 <div·class="deprecated">
130 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayAgg</span></code>131 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayAgg</span></code>
131 returns·an·empty·list·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is·deprecated132 returns·an·empty·list·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is·deprecated
132 and·will·be·removed·in·Django·5.0.·If·you·need·it,·explicitly·set133 and·will·be·removed·in·Django·5.0.·If·you·need·it,·explicitly·set
133 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value([])</span></code>.</p>134 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value([])</span></code>.</p>
134 </div>135 </div>
135 </dd></dl>136 </dd></dl>
  
136 </section>137 </section>
Offset 265, 15 lines modifiedOffset 266, 15 lines modified
265 <span·class="go">&lt;QuerySet·[{&#39;number&#39;:·102,·&#39;requirements&#39;:·[</span>266 <span·class="go">&lt;QuerySet·[{&#39;number&#39;:·102,·&#39;requirements&#39;:·[</span>
266 <span·class="go">····{&#39;parking&#39;:·False,·&#39;sea_view&#39;:·True,·&#39;double_bed&#39;:·False},</span>267 <span·class="go">····{&#39;parking&#39;:·False,·&#39;sea_view&#39;:·True,·&#39;double_bed&#39;:·False},</span>
267 <span·class="go">····{&#39;parking&#39;:·True,·&#39;double_bed&#39;:·True}</span>268 <span·class="go">····{&#39;parking&#39;:·True,·&#39;double_bed&#39;:·True}</span>
268 <span·class="go">]}]&gt;</span>269 <span·class="go">]}]&gt;</span>
269 </pre></div>270 </pre></div>
270 </div>271 </div>
271 <div·class="deprecated">272 <div·class="deprecated">
272 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">JSONBAgg</span></code>273 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">JSONBAgg</span></code>
273 returns·an·empty·list·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is·deprecated274 returns·an·empty·list·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is·deprecated
274 and·will·be·removed·in·Django·5.0.·If·you·need·it,·explicitly·set275 and·will·be·removed·in·Django·5.0.·If·you·need·it,·explicitly·set
275 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value('[]')</span></code>.</p>276 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value('[]')</span></code>.</p>
276 </div>277 </div>
277 </dd></dl>278 </dd></dl>
  
278 </section>279 </section>
Offset 332, 15 lines modifiedOffset 333, 15 lines modified
332 <span·class="gp">...·</span><span·class="p">)</span><span·class="o">.</span><span·class="n">values</span><span·class="p">(</span><span·class="s2">&quot;headline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;publication_names&quot;</span><span·class="p">)</span>333 <span·class="gp">...·</span><span·class="p">)</span><span·class="o">.</span><span·class="n">values</span><span·class="p">(</span><span·class="s2">&quot;headline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;publication_names&quot;</span><span·class="p">)</span>
333 <span·class="go">&lt;QuerySet·[{</span>334 <span·class="go">&lt;QuerySet·[{</span>
334 <span·class="go">····&#39;headline&#39;:·&#39;NASA·uses·Python&#39;,·&#39;publication_names&#39;:·&#39;Science·News,·The·Python·Journal&#39;</span>335 <span·class="go">····&#39;headline&#39;:·&#39;NASA·uses·Python&#39;,·&#39;publication_names&#39;:·&#39;Science·News,·The·Python·Journal&#39;</span>
335 <span·class="go">}]&gt;</span>336 <span·class="go">}]&gt;</span>
336 </pre></div>337 </pre></div>
337 </div>338 </div>
338 <div·class="deprecated">339 <div·class="deprecated">
339 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg</span></code>340 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.0:·</span>If·there·are·no·rows·and·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·is·not·provided,·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg</span></code>
340 returns·an·empty·string·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is341 returns·an·empty·string·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·This·behavior·is
341 deprecated·and·will·be·removed·in·Django·5.0.·If·you·need·it,342 deprecated·and·will·be·removed·in·Django·5.0.·If·you·need·it,
342 explicitly·set·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value('')</span></code>.</p>343 explicitly·set·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">Value('')</span></code>.</p>
343 </div>344 </div>
344 </dd></dl>345 </dd></dl>
  
345 </section>346 </section>
Offset 404, 15 lines modifiedOffset 405, 15 lines modified
404 <span·id="regrcount"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrCount</span></code><a·class="headerlink"·href="#regrcount"·title="Link·to·this·heading">¶</a></h3>405 <span·id="regrcount"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrCount</span></code><a·class="headerlink"·href="#regrcount"·title="Link·to·this·heading">¶</a></h3>
405 <dl·class="py·class">406 <dl·class="py·class">
406 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.aggregates.RegrCount">407 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.aggregates.RegrCount">
407 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RegrCount</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.aggregates.RegrCount"·title="Link·to·this·definition">¶</a></dt>408 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RegrCount</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.aggregates.RegrCount"·title="Link·to·this·definition">¶</a></dt>
408 <dd><p>Returns·an·<code·class="docutils·literal·notranslate"><span·class="pre">int</span></code>·of·the·number·of·input·rows·in·which·both·expressions409 <dd><p>Returns·an·<code·class="docutils·literal·notranslate"><span·class="pre">int</span></code>·of·the·number·of·input·rows·in·which·both·expressions
409 are·not·null.</p>410 are·not·null.</p>
410 <div·class="admonition·note">411 <div·class="admonition·note">
411 <p·class="admonition-title">Note</p>412 <p·class="admonition-title">Nota</p>
412 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·argument·is·not·supported.</p>413 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·argument·is·not·supported.</p>
413 </div>414 </div>
414 </dd></dl>415 </dd></dl>
  
415 </section>416 </section>
416 <section·id="s-regrintercept">417 <section·id="s-regrintercept">
417 <span·id="regrintercept"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrIntercept</span></code><a·class="headerlink"·href="#regrintercept"·title="Link·to·this·heading">¶</a></h3>418 <span·id="regrintercept"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrIntercept</span></code><a·class="headerlink"·href="#regrintercept"·title="Link·to·this·heading">¶</a></h3>
Offset 447, 36 lines modifiedOffset 448, 36 lines modified
  
447 </section>448 </section>
448 <section·id="s-regrsxx">449 <section·id="s-regrsxx">
449 <span·id="regrsxx"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrSXX</span></code><a·class="headerlink"·href="#regrsxx"·title="Link·to·this·heading">¶</a></h3>450 <span·id="regrsxx"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RegrSXX</span></code><a·class="headerlink"·href="#regrsxx"·title="Link·to·this·heading">¶</a></h3>
450 <dl·class="py·class">451 <dl·class="py·class">
451 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.aggregates.RegrSXX">452 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.aggregates.RegrSXX">
452 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RegrSXX</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">default</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.aggregates.RegrSXX"·title="Link·to·this·definition">¶</a></dt>453 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RegrSXX</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">y</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">x</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">filter</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">default</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.aggregates.RegrSXX"·title="Link·to·this·definition">¶</a></dt>
Max diff block lines reached; 5679/17239 bytes (32.94%) of diff not shown.
7.86 KB
html2text {}
Max HTML report size reached
17.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/constraints.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·database·constraints·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·database·constraints·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·query·expressions"·href="expressions.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·query·expressions"·href="expressions.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·aggregation·functions"·href="aggregates.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·aggregation·functions"·href="aggregates.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 82, 15 lines modifiedOffset 83, 15 lines modified
82 <p>PostgreSQL·supports·additional·data·integrity·constraints·available·from·the83 <p>PostgreSQL·supports·additional·data·integrity·constraints·available·from·the
83 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.constraints</span></code>·module.·They·are·added·in·the·model84 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.constraints</span></code>·module.·They·are·added·in·the·model
84 <a·class="reference·internal"·href="../../models/options.html#django.db.models.Options.constraints"·title="django.db.models.Options.constraints"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.constraints</span></code></a>·option.</p>85 <a·class="reference·internal"·href="../../models/options.html#django.db.models.Options.constraints"·title="django.db.models.Options.constraints"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.constraints</span></code></a>·option.</p>
85 <section·id="s-exclusionconstraint">86 <section·id="s-exclusionconstraint">
86 <span·id="exclusionconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ExclusionConstraint</span></code><a·class="headerlink"·href="#exclusionconstraint"·title="Link·to·this·heading">¶</a></h2>87 <span·id="exclusionconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ExclusionConstraint</span></code><a·class="headerlink"·href="#exclusionconstraint"·title="Link·to·this·heading">¶</a></h2>
87 <dl·class="py·class">88 <dl·class="py·class">
88 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.constraints.ExclusionConstraint">89 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.constraints.ExclusionConstraint">
89 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ExclusionConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">index_type</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">deferrable</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/constraints.html#ExclusionConstraint"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.constraints.ExclusionConstraint"·title="Link·to·this·definition">¶</a></dt>90 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ExclusionConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">index_type</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">deferrable</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/constraints.html#ExclusionConstraint"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.constraints.ExclusionConstraint"·title="Link·to·this·definition">¶</a></dt>
90 <dd><p>Creates·an·exclusion·constraint·in·the·database.·Internally,·PostgreSQL91 <dd><p>Creates·an·exclusion·constraint·in·the·database.·Internally,·PostgreSQL
91 implements·exclusion·constraints·using·indexes.·The·default·index·type·is92 implements·exclusion·constraints·using·indexes.·The·default·index·type·is
92 <a·class="reference·external"·href="https://www.postgresql.org/docs/current/gist.html">GiST</a>.·To·use·them,93 <a·class="reference·external"·href="https://www.postgresql.org/docs/current/gist.html">GiST</a>.·To·use·them,
93 you·need·to·activate·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/btree-gist.html">btree_gist·extension</a>·on·PostgreSQL.94 you·need·to·activate·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/btree-gist.html">btree_gist·extension</a>·on·PostgreSQL.
94 You·can·install·it·using·the95 You·can·install·it·using·the
95 <a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.BtreeGistExtension"·title="django.contrib.postgres.operations.BtreeGistExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">BtreeGistExtension</span></code></a>·migration96 <a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.BtreeGistExtension"·title="django.contrib.postgres.operations.BtreeGistExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">BtreeGistExtension</span></code></a>·migration
96 operation.</p>97 operation.</p>
Offset 194, 15 lines modifiedOffset 195, 15 lines modified
194 <span·class="p">)</span>195 <span·class="p">)</span>
195 </pre></div>196 </pre></div>
196 </div>197 </div>
197 <p>By·default·constraints·are·not·deferred.·A·deferred·constraint·will·not·be198 <p>By·default·constraints·are·not·deferred.·A·deferred·constraint·will·not·be
198 enforced·until·the·end·of·the·transaction.·An·immediate·constraint·will·be199 enforced·until·the·end·of·the·transaction.·An·immediate·constraint·will·be
199 enforced·immediately·after·every·command.</p>200 enforced·immediately·after·every·command.</p>
200 <div·class="admonition·warning">201 <div·class="admonition·warning">
201 <p·class="admonition-title">Warning</p>202 <p·class="admonition-title">Avvertimento</p>
202 <p>Deferred·exclusion·constraints·may·lead·to·a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createtable.html#id-1.9.3.85.9.4">performance·penalty</a>.</p>203 <p>Deferred·exclusion·constraints·may·lead·to·a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createtable.html#id-1.9.3.85.9.4">performance·penalty</a>.</p>
203 </div>204 </div>
204 </section>205 </section>
205 <section·id="s-include">206 <section·id="s-include">
206 <span·id="include"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">include</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h3>207 <span·id="include"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">include</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h3>
207 <dl·class="py·attribute">208 <dl·class="py·attribute">
208 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.constraints.ExclusionConstraint.include">209 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.constraints.ExclusionConstraint.include">
Offset 237, 15 lines modifiedOffset 238, 15 lines modified
237 ····<span·class="n">expressions</span><span·class="o">=</span><span·class="p">[(</span><span·class="s2">&quot;circle&quot;</span><span·class="p">,</span>·<span·class="n">RangeOperators</span><span·class="o">.</span><span·class="n">OVERLAPS</span><span·class="p">)],</span>238 ····<span·class="n">expressions</span><span·class="o">=</span><span·class="p">[(</span><span·class="s2">&quot;circle&quot;</span><span·class="p">,</span>·<span·class="n">RangeOperators</span><span·class="o">.</span><span·class="n">OVERLAPS</span><span·class="p">)],</span>
238 ····<span·class="n">opclasses</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;circle_ops&quot;</span><span·class="p">],</span>239 ····<span·class="n">opclasses</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;circle_ops&quot;</span><span·class="p">],</span>
239 <span·class="p">)</span>240 <span·class="p">)</span>
240 </pre></div>241 </pre></div>
241 </div>242 </div>
242 <p>creates·an·exclusion·constraint·on·<code·class="docutils·literal·notranslate"><span·class="pre">circle</span></code>·using·<code·class="docutils·literal·notranslate"><span·class="pre">circle_ops</span></code>.</p>243 <p>creates·an·exclusion·constraint·on·<code·class="docutils·literal·notranslate"><span·class="pre">circle</span></code>·using·<code·class="docutils·literal·notranslate"><span·class="pre">circle_ops</span></code>.</p>
243 <div·class="deprecated">244 <div·class="deprecated">
244 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.1:·</span>The·<code·class="docutils·literal·notranslate"><span·class="pre">opclasses</span></code>·parameter·is·deprecated·in·favor·of·using245 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.1:·</span>The·<code·class="docutils·literal·notranslate"><span·class="pre">opclasses</span></code>·parameter·is·deprecated·in·favor·of·using
245 <a·class="reference·internal"·href="indexes.html#django.contrib.postgres.indexes.OpClass"·title="django.contrib.postgres.indexes.OpClass"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">OpClass()</span></code></a>·in246 <a·class="reference·internal"·href="indexes.html#django.contrib.postgres.indexes.OpClass"·title="django.contrib.postgres.indexes.OpClass"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">OpClass()</span></code></a>·in
246 <a·class="reference·internal"·href="#django.contrib.postgres.constraints.ExclusionConstraint.expressions"·title="django.contrib.postgres.constraints.ExclusionConstraint.expressions"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">expressions</span></code></a>.</p>247 <a·class="reference·internal"·href="#django.contrib.postgres.constraints.ExclusionConstraint.expressions"·title="django.contrib.postgres.constraints.ExclusionConstraint.expressions"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">expressions</span></code></a>.</p>
247 </div>248 </div>
248 </section>249 </section>
249 <section·id="s-violation-error-message">250 <section·id="s-violation-error-message">
250 <span·id="violation-error-message"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">violation_error_message</span></code><a·class="headerlink"·href="#violation-error-message"·title="Link·to·this·heading">¶</a></h3>251 <span·id="violation-error-message"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">violation_error_message</span></code><a·class="headerlink"·href="#violation-error-message"·title="Link·to·this·heading">¶</a></h3>
251 <div·class="versionadded">252 <div·class="versionadded">
Offset 362, 37 lines modifiedOffset 363, 37 lines modified
362 </li>363 </li>
363 </ul>364 </ul>
364 </li>365 </li>
365 </ul>366 </ul>
  
366 ··</div>367 ··</div>
367 ··<div>368 ··<div>
368 ····<h4>Previous·topic</h4>369 ····<h4>Argomento·precedente</h4>
369 ····<p·class="topless"><a·href="aggregates.html"370 ····<p·class="topless"><a·href="aggregates.html"
370 ··························title="previous·chapter">PostgreSQL·specific·aggregation·functions</a></p>371 ··························title="capitolo·precedente">PostgreSQL·specific·aggregation·functions</a></p>
371 ··</div>372 ··</div>
372 ··<div>373 ··<div>
373 ····<h4>Next·topic</h4>374 ····<h4>Argomento·successivo</h4>
374 ····<p·class="topless"><a·href="expressions.html"375 ····<p·class="topless"><a·href="expressions.html"
375 ··························title="next·chapter">PostgreSQL·specific·query·expressions</a></p>376 ··························title="capitolo·successivo">PostgreSQL·specific·query·expressions</a></p>
376 ··</div>377 ··</div>
377 <search·id="searchbox"·style="display:·none"·role="search">378 <search·id="searchbox"·style="display:·none"·role="search">
378 ··<h3·id="searchlabel">Quick·search</h3>379 ··<h3·id="searchlabel">Ricerca·veloce</h3>
379 ····<div·class="searchformwrapper">380 ····<div·class="searchformwrapper">
380 ····<form·class="search"·action="../../../search.html"·method="get">381 ····<form·class="search"·action="../../../search.html"·method="get">
381 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>382 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
382 ······<input·type="submit"·value="Go"·/>383 ······<input·type="submit"·value="Vai"·/>
383 ····</form>384 ····</form>
384 ····</div>385 ····</div>
385 </search>386 </search>
386 <script>document.getElementById('searchbox').style.display·=·"block"</script>387 <script>document.getElementById('searchbox').style.display·=·"block"</script>
387 ········</div>388 ········</div>
388 ······</div>389 ······</div>
389 ··············<h3>Last·update:</h3>390 ··············<h3>Last·update:</h3>
390 ··············<p·class="topless">Sep·03,·2024</p>391 ··············<p·class="topless">set·03,·2024</p>
391 ··········</div>392 ··········</div>
392 ········393 ········
393 ······394 ······
394 ····</div>395 ····</div>
  
395 ····<div·id="ft">396 ····<div·id="ft">
396 ······<div·class="nav">397 ······<div·class="nav">
5.08 KB
html2text {}
Max HTML report size reached
6.36 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/expressions.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·query·expressions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·query·expressions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·model·fields"·href="fields.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·model·fields"·href="fields.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·database·constraints"·href="constraints.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·database·constraints"·href="constraints.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 127, 37 lines modifiedOffset 128, 37 lines modified
127 <li><a·class="reference·internal"·href="#arraysubquery-expressions"><code·class="docutils·literal·notranslate"><span·class="pre">ArraySubquery()</span></code>·expressions</a></li>128 <li><a·class="reference·internal"·href="#arraysubquery-expressions"><code·class="docutils·literal·notranslate"><span·class="pre">ArraySubquery()</span></code>·expressions</a></li>
128 </ul>129 </ul>
129 </li>130 </li>
130 </ul>131 </ul>
  
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Previous·topic</h4>134 ····<h4>Argomento·precedente</h4>
134 ····<p·class="topless"><a·href="constraints.html"135 ····<p·class="topless"><a·href="constraints.html"
135 ··························title="previous·chapter">PostgreSQL·specific·database·constraints</a></p>136 ··························title="capitolo·precedente">PostgreSQL·specific·database·constraints</a></p>
136 ··</div>137 ··</div>
137 ··<div>138 ··<div>
138 ····<h4>Next·topic</h4>139 ····<h4>Argomento·successivo</h4>
139 ····<p·class="topless"><a·href="fields.html"140 ····<p·class="topless"><a·href="fields.html"
140 ··························title="next·chapter">PostgreSQL·specific·model·fields</a></p>141 ··························title="capitolo·successivo">PostgreSQL·specific·model·fields</a></p>
141 ··</div>142 ··</div>
142 <search·id="searchbox"·style="display:·none"·role="search">143 <search·id="searchbox"·style="display:·none"·role="search">
143 ··<h3·id="searchlabel">Quick·search</h3>144 ··<h3·id="searchlabel">Ricerca·veloce</h3>
144 ····<div·class="searchformwrapper">145 ····<div·class="searchformwrapper">
145 ····<form·class="search"·action="../../../search.html"·method="get">146 ····<form·class="search"·action="../../../search.html"·method="get">
146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
147 ······<input·type="submit"·value="Go"·/>148 ······<input·type="submit"·value="Vai"·/>
148 ····</form>149 ····</form>
149 ····</div>150 ····</div>
150 </search>151 </search>
151 <script>document.getElementById('searchbox').style.display·=·"block"</script>152 <script>document.getElementById('searchbox').style.display·=·"block"</script>
152 ········</div>153 ········</div>
153 ······</div>154 ······</div>
154 ··············<h3>Last·update:</h3>155 ··············<h3>Last·update:</h3>
155 ··············<p·class="topless">Sep·03,·2024</p>156 ··············<p·class="topless">set·03,·2024</p>
156 ··········</div>157 ··········</div>
157 ········158 ········
158 ······159 ······
159 ····</div>160 ····</div>
  
160 ····<div·id="ft">161 ····<div·id="ft">
161 ······<div·class="nav">162 ······<div·class="nav">
2.26 KB
html2text {}
Max HTML report size reached
27.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/fields.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·model·fields·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·model·fields·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·form·fields·and·widgets"·href="forms.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·form·fields·and·widgets"·href="forms.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·query·expressions"·href="expressions.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·query·expressions"·href="expressions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 148, 15 lines modifiedOffset 149, 15 lines modified
148 be·passed·to·the·database,·although·PostgreSQL·at·present·does·not149 be·passed·to·the·database,·although·PostgreSQL·at·present·does·not
149 enforce·the·restriction.</p>150 enforce·the·restriction.</p>
150 </dd></dl>151 </dd></dl>
  
151 </dd></dl>152 </dd></dl>
  
152 <div·class="admonition·note">153 <div·class="admonition·note">
153 <p·class="admonition-title">Note</p>154 <p·class="admonition-title">Nota</p>
154 <p>When·nesting·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayField</span></code>,·whether·you·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·parameter·or·not,155 <p>When·nesting·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayField</span></code>,·whether·you·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·parameter·or·not,
155 PostgreSQL·requires·that·the·arrays·are·rectangular:</p>156 PostgreSQL·requires·that·the·arrays·are·rectangular:</p>
156 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.postgres.fields</span>·<span·class="kn">import</span>·<span·class="n">ArrayField</span>157 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.postgres.fields</span>·<span·class="kn">import</span>·<span·class="n">ArrayField</span>
157 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>158 <span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
  
  
158 <span·class="k">class</span>·<span·class="nc">Board</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>159 <span·class="k">class</span>·<span·class="nc">Board</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
Offset 287, 15 lines modifiedOffset 288, 15 lines modified
287 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;]&gt;</span>288 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;]&gt;</span>
  
288 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Post</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">tags__276</span><span·class="o">=</span><span·class="s2">&quot;javascript&quot;</span><span·class="p">)</span>289 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Post</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">tags__276</span><span·class="o">=</span><span·class="s2">&quot;javascript&quot;</span><span·class="p">)</span>
289 <span·class="go">&lt;QuerySet·[]&gt;</span>290 <span·class="go">&lt;QuerySet·[]&gt;</span>
290 </pre></div>291 </pre></div>
291 </div>292 </div>
292 <div·class="admonition·note">293 <div·class="admonition·note">
293 <p·class="admonition-title">Note</p>294 <p·class="admonition-title">Nota</p>
294 <p>PostgreSQL·uses·1-based·indexing·for·array·fields·when·writing·raw·SQL.295 <p>PostgreSQL·uses·1-based·indexing·for·array·fields·when·writing·raw·SQL.
295 However·these·indexes·and·those·used·in·<a·class="reference·internal"·href="#std-fieldlookup-arrayfield.slice"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">slices</span></code></a>296 However·these·indexes·and·those·used·in·<a·class="reference·internal"·href="#std-fieldlookup-arrayfield.slice"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">slices</span></code></a>
296 use·0-based·indexing·to·be·consistent·with·Python.</p>297 use·0-based·indexing·to·be·consistent·with·Python.</p>
297 </div>298 </div>
298 </section>299 </section>
299 <section·id="s-slice-transforms">300 <section·id="s-slice-transforms">
300 <span·id="s-std-fieldlookup-arrayfield.slice"></span><span·id="slice-transforms"></span><span·id="std-fieldlookup-arrayfield.slice"></span><h4>Slice·transforms<a·class="headerlink"·href="#slice-transforms"·title="Link·to·this·heading">¶</a></h4>301 <span·id="s-std-fieldlookup-arrayfield.slice"></span><span·id="slice-transforms"></span><span·id="std-fieldlookup-arrayfield.slice"></span><h4>Slice·transforms<a·class="headerlink"·href="#slice-transforms"·title="Link·to·this·heading">¶</a></h4>
Offset 310, 15 lines modifiedOffset 311, 15 lines modified
310 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;,·&lt;Post:·Second·post&gt;]&gt;</span>311 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;,·&lt;Post:·Second·post&gt;]&gt;</span>
  
311 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Post</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">tags__0_2__contains</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;thoughts&quot;</span><span·class="p">])</span>312 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Post</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">tags__0_2__contains</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;thoughts&quot;</span><span·class="p">])</span>
312 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;,·&lt;Post:·Second·post&gt;]&gt;</span>313 <span·class="go">&lt;QuerySet·[&lt;Post:·First·post&gt;,·&lt;Post:·Second·post&gt;]&gt;</span>
313 </pre></div>314 </pre></div>
314 </div>315 </div>
315 <div·class="admonition·note">316 <div·class="admonition·note">
316 <p·class="admonition-title">Note</p>317 <p·class="admonition-title">Nota</p>
317 <p>PostgreSQL·uses·1-based·indexing·for·array·fields·when·writing·raw·SQL.318 <p>PostgreSQL·uses·1-based·indexing·for·array·fields·when·writing·raw·SQL.
318 However·these·slices·and·those·used·in·<a·class="reference·internal"·href="#std-fieldlookup-arrayfield.index"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">indexes</span></code></a>319 However·these·slices·and·those·used·in·<a·class="reference·internal"·href="#std-fieldlookup-arrayfield.index"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">indexes</span></code></a>
319 use·0-based·indexing·to·be·consistent·with·Python.</p>320 use·0-based·indexing·to·be·consistent·with·Python.</p>
320 </div>321 </div>
321 <div·class="admonition-multidimensional-arrays-with-indexes-and-slices·admonition">322 <div·class="admonition-multidimensional-arrays-with-indexes-and-slices·admonition">
322 <p·class="admonition-title">Multidimensional·arrays·with·indexes·and·slices</p>323 <p·class="admonition-title">Multidimensional·arrays·with·indexes·and·slices</p>
323 <p>PostgreSQL·has·some·rather·esoteric·behavior·when·using·indexes·and·slices324 <p>PostgreSQL·has·some·rather·esoteric·behavior·when·using·indexes·and·slices
Offset 332, 15 lines modifiedOffset 333, 15 lines modified
332 </section>333 </section>
333 <section·id="s-citext-fields">334 <section·id="s-citext-fields">
334 <span·id="citext-fields"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">CIText</span></code>·fields<a·class="headerlink"·href="#citext-fields"·title="Link·to·this·heading">¶</a></h2>335 <span·id="citext-fields"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">CIText</span></code>·fields<a·class="headerlink"·href="#citext-fields"·title="Link·to·this·heading">¶</a></h2>
335 <dl·class="py·class">336 <dl·class="py·class">
336 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CIText">337 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CIText">
337 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CIText</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CIText"·title="Link·to·this·definition">¶</a></dt>338 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CIText</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CIText"·title="Link·to·this·definition">¶</a></dt>
338 <dd><div·class="deprecated">339 <dd><div·class="deprecated">
339 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2.</span></p>340 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2.</span></p>
340 </div>341 </div>
341 <p>A·mixin·to·create·case-insensitive·text·fields·backed·by·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/citext.html">citext</a>·type.342 <p>A·mixin·to·create·case-insensitive·text·fields·backed·by·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/citext.html">citext</a>·type.
342 Read·about·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/citext.html#id-1.11.7.19.9">the·performance·considerations</a>·prior·to·using·it.</p>343 Read·about·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/citext.html#id-1.11.7.19.9">the·performance·considerations</a>·prior·to·using·it.</p>
343 <p>To·use·<code·class="docutils·literal·notranslate"><span·class="pre">citext</span></code>,·use·the·<a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.CITextExtension"·title="django.contrib.postgres.operations.CITextExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CITextExtension</span></code></a>·operation·to344 <p>To·use·<code·class="docutils·literal·notranslate"><span·class="pre">citext</span></code>,·use·the·<a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.CITextExtension"·title="django.contrib.postgres.operations.CITextExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CITextExtension</span></code></a>·operation·to
344 <a·class="reference·internal"·href="operations.html#create-postgresql-extensions"><span·class="std·std-ref">set·up·the·citext·extension</span></a>·in345 <a·class="reference·internal"·href="operations.html#create-postgresql-extensions"><span·class="std·std-ref">set·up·the·citext·extension</span></a>·in
345 PostgreSQL·before·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">CreateModel</span></code>·migration·operation.</p>346 PostgreSQL·before·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">CreateModel</span></code>·migration·operation.</p>
346 <p>If·you’re·using·an·<a·class="reference·internal"·href="#django.contrib.postgres.fields.ArrayField"·title="django.contrib.postgres.fields.ArrayField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ArrayField</span></code></a>347 <p>If·you’re·using·an·<a·class="reference·internal"·href="#django.contrib.postgres.fields.ArrayField"·title="django.contrib.postgres.fields.ArrayField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ArrayField</span></code></a>
Offset 350, 35 lines modifiedOffset 351, 35 lines modified
350 <p>Several·fields·that·use·the·mixin·are·provided:</p>351 <p>Several·fields·that·use·the·mixin·are·provided:</p>
351 </dd></dl>352 </dd></dl>
  
352 <dl·class="py·class">353 <dl·class="py·class">
353 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CICharField">354 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CICharField">
354 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CICharField</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CICharField"·title="Link·to·this·definition">¶</a></dt>355 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CICharField</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CICharField"·title="Link·to·this·definition">¶</a></dt>
355 <dd><div·class="deprecated">356 <dd><div·class="deprecated">
356 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">CICharField</span></code>·is·deprecated·in·favor·of357 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">CICharField</span></code>·is·deprecated·in·favor·of
357 <code·class="docutils·literal·notranslate"><span·class="pre">CharField(db_collation=&quot;…&quot;)</span></code>·with·a·case-insensitive358 <code·class="docutils·literal·notranslate"><span·class="pre">CharField(db_collation=&quot;…&quot;)</span></code>·with·a·case-insensitive
358 non-deterministic·collation.</p>359 non-deterministic·collation.</p>
359 </div>360 </div>
360 </dd></dl>361 </dd></dl>
  
361 <dl·class="py·class">362 <dl·class="py·class">
362 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CIEmailField">363 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.fields.CIEmailField">
363 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CIEmailField</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CIEmailField"·title="Link·to·this·definition">¶</a></dt>364 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CIEmailField</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">options</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.fields.CIEmailField"·title="Link·to·this·definition">¶</a></dt>
364 <dd><div·class="deprecated">365 <dd><div·class="deprecated">
365 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">CIEmailField</span></code>·is·deprecated·in·favor·of366 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2:·</span><code·class="docutils·literal·notranslate"><span·class="pre">CIEmailField</span></code>·is·deprecated·in·favor·of
366 <code·class="docutils·literal·notranslate"><span·class="pre">EmailField(db_collation=&quot;…&quot;)</span></code>·with·a·case-insensitive367 <code·class="docutils·literal·notranslate"><span·class="pre">EmailField(db_collation=&quot;…&quot;)</span></code>·with·a·case-insensitive
367 non-deterministic·collation.</p>368 non-deterministic·collation.</p>
368 </div>369 </div>
369 </dd></dl>370 </dd></dl>
  
Max diff block lines reached; 7984/18551 bytes (43.04%) of diff not shown.
8.77 KB
html2text {}
Max HTML report size reached
12.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/forms.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·form·fields·and·widgets·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·form·fields·and·widgets·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·database·functions"·href="functions.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·database·functions"·href="functions.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·model·fields"·href="fields.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·model·fields"·href="fields.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 133, 15 lines modifiedOffset 134, 15 lines modified
133 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">form</span><span·class="o">.</span><span·class="n">is_valid</span><span·class="p">()</span>134 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">form</span><span·class="o">.</span><span·class="n">is_valid</span><span·class="p">()</span>
134 <span·class="go">True</span>135 <span·class="go">True</span>
135 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">form</span><span·class="o">.</span><span·class="n">cleaned_data</span>136 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">form</span><span·class="o">.</span><span·class="n">cleaned_data</span>
136 <span·class="go">{&#39;places&#39;:·[[1,·2],·[2,·1],·[4,·3]]}</span>137 <span·class="go">{&#39;places&#39;:·[[1,·2],·[2,·1],·[4,·3]]}</span>
137 </pre></div>138 </pre></div>
138 </div>139 </div>
139 <div·class="admonition·note">140 <div·class="admonition·note">
140 <p·class="admonition-title">Note</p>141 <p·class="admonition-title">Nota</p>
141 <p>The·field·does·not·support·escaping·of·the·delimiter,·so·be·careful142 <p>The·field·does·not·support·escaping·of·the·delimiter,·so·be·careful
142 in·cases·where·the·delimiter·is·a·valid·character·in·the·underlying143 in·cases·where·the·delimiter·is·a·valid·character·in·the·underlying
143 field.·The·delimiter·does·not·need·to·be·only·one·character.</p>144 field.·The·delimiter·does·not·need·to·be·only·one·character.</p>
144 </div>145 </div>
145 </dd></dl>146 </dd></dl>
  
146 <dl·class="py·attribute">147 <dl·class="py·attribute">
Offset 242, 15 lines modifiedOffset 243, 15 lines modified
242 <div·class="admonition-user-friendly-forms·admonition">243 <div·class="admonition-user-friendly-forms·admonition">
243 <p·class="admonition-title">User·friendly·forms</p>244 <p·class="admonition-title">User·friendly·forms</p>
244 <p><code·class="docutils·literal·notranslate"><span·class="pre">HStoreField</span></code>·is·not·particularly·user·friendly·in·most·cases,245 <p><code·class="docutils·literal·notranslate"><span·class="pre">HStoreField</span></code>·is·not·particularly·user·friendly·in·most·cases,
245 however·it·is·a·useful·way·to·format·data·from·a·client-side·widget·for246 however·it·is·a·useful·way·to·format·data·from·a·client-side·widget·for
246 submission·to·the·server.</p>247 submission·to·the·server.</p>
247 </div>248 </div>
248 <div·class="admonition·note">249 <div·class="admonition·note">
249 <p·class="admonition-title">Note</p>250 <p·class="admonition-title">Nota</p>
250 <p>On·occasions·it·may·be·useful·to·require·or·restrict·the·keys·which·are251 <p>On·occasions·it·may·be·useful·to·require·or·restrict·the·keys·which·are
251 valid·for·a·given·field.·This·can·be·done·using·the252 valid·for·a·given·field.·This·can·be·done·using·the
252 <a·class="reference·internal"·href="validators.html#django.contrib.postgres.validators.KeysValidator"·title="django.contrib.postgres.validators.KeysValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">KeysValidator</span></code></a>.</p>253 <a·class="reference·internal"·href="validators.html#django.contrib.postgres.validators.KeysValidator"·title="django.contrib.postgres.validators.KeysValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">KeysValidator</span></code></a>.</p>
253 </div>254 </div>
254 </dd></dl>255 </dd></dl>
  
255 </section>256 </section>
Offset 323, 15 lines modifiedOffset 324, 15 lines modified
323 <span·class="sig-name·descname"><span·class="pre">base_widget</span></span><a·class="headerlink"·href="#django.contrib.postgres.forms.RangeWidget.base_widget"·title="Link·to·this·definition">¶</a></dt>324 <span·class="sig-name·descname"><span·class="pre">base_widget</span></span><a·class="headerlink"·href="#django.contrib.postgres.forms.RangeWidget.base_widget"·title="Link·to·this·definition">¶</a></dt>
324 <dd><p>A·<a·class="reference·internal"·href="#django.contrib.postgres.forms.RangeWidget"·title="django.contrib.postgres.forms.RangeWidget"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RangeWidget</span></code></a>·comprises·a·2-tuple·of·<code·class="docutils·literal·notranslate"><span·class="pre">base_widget</span></code>.</p>325 <dd><p>A·<a·class="reference·internal"·href="#django.contrib.postgres.forms.RangeWidget"·title="django.contrib.postgres.forms.RangeWidget"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RangeWidget</span></code></a>·comprises·a·2-tuple·of·<code·class="docutils·literal·notranslate"><span·class="pre">base_widget</span></code>.</p>
325 </dd></dl>326 </dd></dl>
  
326 <dl·class="py·method">327 <dl·class="py·method">
327 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.forms.RangeWidget.decompress">328 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.forms.RangeWidget.decompress">
328 <span·class="sig-name·descname"><span·class="pre">decompress</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">value</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.forms.RangeWidget.decompress"·title="Link·to·this·definition">¶</a></dt>329 <span·class="sig-name·descname"><span·class="pre">decompress</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">value</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.forms.RangeWidget.decompress"·title="Link·to·this·definition">¶</a></dt>
329 <dd><p>Takes·a·single·compressed·value·of·a·field,·for·example·a330 <dd><p>Takes·a·single·«compressed»·value·of·a·field,·for·example·a
330 <a·class="reference·internal"·href="fields.html#django.contrib.postgres.fields.DateRangeField"·title="django.contrib.postgres.fields.DateRangeField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DateRangeField</span></code></a>,331 <a·class="reference·internal"·href="fields.html#django.contrib.postgres.fields.DateRangeField"·title="django.contrib.postgres.fields.DateRangeField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DateRangeField</span></code></a>,
331 and·returns·a·tuple·representing·a·lower·and·upper·bound.</p>332 and·returns·a·tuple·representing·a·lower·and·upper·bound.</p>
332 </dd></dl>333 </dd></dl>
  
333 </dd></dl>334 </dd></dl>
  
334 </section>335 </section>
Offset 371, 37 lines modifiedOffset 372, 37 lines modified
371 </li>372 </li>
372 </ul>373 </ul>
373 </li>374 </li>
374 </ul>375 </ul>
  
375 ··</div>376 ··</div>
376 ··<div>377 ··<div>
377 ····<h4>Previous·topic</h4>378 ····<h4>Argomento·precedente</h4>
378 ····<p·class="topless"><a·href="fields.html"379 ····<p·class="topless"><a·href="fields.html"
379 ··························title="previous·chapter">PostgreSQL·specific·model·fields</a></p>380 ··························title="capitolo·precedente">PostgreSQL·specific·model·fields</a></p>
380 ··</div>381 ··</div>
381 ··<div>382 ··<div>
382 ····<h4>Next·topic</h4>383 ····<h4>Argomento·successivo</h4>
383 ····<p·class="topless"><a·href="functions.html"384 ····<p·class="topless"><a·href="functions.html"
384 ··························title="next·chapter">PostgreSQL·specific·database·functions</a></p>385 ··························title="capitolo·successivo">PostgreSQL·specific·database·functions</a></p>
385 ··</div>386 ··</div>
386 <search·id="searchbox"·style="display:·none"·role="search">387 <search·id="searchbox"·style="display:·none"·role="search">
387 ··<h3·id="searchlabel">Quick·search</h3>388 ··<h3·id="searchlabel">Ricerca·veloce</h3>
388 ····<div·class="searchformwrapper">389 ····<div·class="searchformwrapper">
389 ····<form·class="search"·action="../../../search.html"·method="get">390 ····<form·class="search"·action="../../../search.html"·method="get">
390 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>391 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
391 ······<input·type="submit"·value="Go"·/>392 ······<input·type="submit"·value="Vai"·/>
392 ····</form>393 ····</form>
393 ····</div>394 ····</div>
394 </search>395 </search>
395 <script>document.getElementById('searchbox').style.display·=·"block"</script>396 <script>document.getElementById('searchbox').style.display·=·"block"</script>
396 ········</div>397 ········</div>
397 ······</div>398 ······</div>
398 ··············<h3>Last·update:</h3>399 ··············<h3>Last·update:</h3>
399 ··············<p·class="topless">Sep·03,·2024</p>400 ··············<p·class="topless">set·03,·2024</p>
400 ··········</div>401 ··········</div>
401 ········402 ········
402 ······403 ······
403 ····</div>404 ····</div>
  
404 ····<div·id="ft">405 ····<div·id="ft">
405 ······<div·class="nav">406 ······<div·class="nav">
5.0 KB
html2text {}
Max HTML report size reached
11.5 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/functions.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·database·functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·database·functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·model·indexes"·href="indexes.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·model·indexes"·href="indexes.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·form·fields·and·widgets"·href="forms.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·form·fields·and·widgets"·href="forms.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="postgresql-specific-database-functions"></span><h1>PostgreSQL·specific·database·functions<a·class="headerlink"·href="#postgresql-specific-database-functions"·title="Link·to·this·heading">¶</a></h1>82 <span·id="postgresql-specific-database-functions"></span><h1>PostgreSQL·specific·database·functions<a·class="headerlink"·href="#postgresql-specific-database-functions"·title="Link·to·this·heading">¶</a></h1>
82 <p>All·of·these·functions·are·available·from·the83 <p>All·of·these·functions·are·available·from·the
83 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.functions</span></code>·module.</p>84 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.functions</span></code>·module.</p>
84 <section·id="s-randomuuid">85 <section·id="s-randomuuid">
85 <span·id="randomuuid"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">RandomUUID</span></code><a·class="headerlink"·href="#randomuuid"·title="Link·to·this·heading">¶</a></h2>86 <span·id="randomuuid"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">RandomUUID</span></code><a·class="headerlink"·href="#randomuuid"·title="Link·to·this·heading">¶</a></h2>
86 <dl·class="py·class">87 <dl·class="py·class">
87 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.functions.RandomUUID">88 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.functions.RandomUUID">
88 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RandomUUID</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/functions.html#RandomUUID"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.functions.RandomUUID"·title="Link·to·this·definition">¶</a></dt>89 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RandomUUID</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/functions.html#RandomUUID"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.functions.RandomUUID"·title="Link·to·this·definition">¶</a></dt>
89 <dd></dd></dl>90 <dd></dd></dl>
  
90 <p>Returns·a·version·4·UUID.</p>91 <p>Returns·a·version·4·UUID.</p>
91 <p>On·PostgreSQL·&lt;·13,·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/pgcrypto.html">pgcrypto·extension</a>·must·be·installed.·You·can·use92 <p>On·PostgreSQL·&lt;·13,·the·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/pgcrypto.html">pgcrypto·extension</a>·must·be·installed.·You·can·use
92 the·<a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.CryptoExtension"·title="django.contrib.postgres.operations.CryptoExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CryptoExtension</span></code></a>·migration93 the·<a·class="reference·internal"·href="operations.html#django.contrib.postgres.operations.CryptoExtension"·title="django.contrib.postgres.operations.CryptoExtension"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CryptoExtension</span></code></a>·migration
93 operation·to·install·it.</p>94 operation·to·install·it.</p>
94 <p>Usage·example:</p>95 <p>Usage·example:</p>
Offset 98, 15 lines modifiedOffset 99, 15 lines modified
98 </pre></div>99 </pre></div>
99 </div>100 </div>
100 </section>101 </section>
101 <section·id="s-transactionnow">102 <section·id="s-transactionnow">
102 <span·id="transactionnow"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">TransactionNow</span></code><a·class="headerlink"·href="#transactionnow"·title="Link·to·this·heading">¶</a></h2>103 <span·id="transactionnow"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">TransactionNow</span></code><a·class="headerlink"·href="#transactionnow"·title="Link·to·this·heading">¶</a></h2>
103 <dl·class="py·class">104 <dl·class="py·class">
104 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.functions.TransactionNow">105 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.functions.TransactionNow">
105 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">TransactionNow</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/functions.html#TransactionNow"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.functions.TransactionNow"·title="Link·to·this·definition">¶</a></dt>106 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">TransactionNow</span></span><a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/functions.html#TransactionNow"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.functions.TransactionNow"·title="Link·to·this·definition">¶</a></dt>
106 <dd></dd></dl>107 <dd></dd></dl>
  
107 <p>Returns·the·date·and·time·on·the·database·server·that·the·current·transaction108 <p>Returns·the·date·and·time·on·the·database·server·that·the·current·transaction
108 started.·If·you·are·not·in·a·transaction·it·will·return·the·date·and·time·of109 started.·If·you·are·not·in·a·transaction·it·will·return·the·date·and·time·of
109 the·current·statement.·This·is·a·complement·to110 the·current·statement.·This·is·a·complement·to
110 <a·class="reference·internal"·href="../../models/database-functions.html#django.db.models.functions.Now"·title="django.db.models.functions.Now"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.db.models.functions.Now</span></code></a>,·which·returns·the·date·and·time·of·the111 <a·class="reference·internal"·href="../../models/database-functions.html#django.db.models.functions.Now"·title="django.db.models.functions.Now"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.db.models.functions.Now</span></code></a>,·which·returns·the·date·and·time·of·the
111 current·statement.</p>112 current·statement.</p>
Offset 141, 37 lines modifiedOffset 142, 37 lines modified
141 <li><a·class="reference·internal"·href="#transactionnow"><code·class="docutils·literal·notranslate"><span·class="pre">TransactionNow</span></code></a></li>142 <li><a·class="reference·internal"·href="#transactionnow"><code·class="docutils·literal·notranslate"><span·class="pre">TransactionNow</span></code></a></li>
142 </ul>143 </ul>
143 </li>144 </li>
144 </ul>145 </ul>
  
145 ··</div>146 ··</div>
146 ··<div>147 ··<div>
147 ····<h4>Previous·topic</h4>148 ····<h4>Argomento·precedente</h4>
148 ····<p·class="topless"><a·href="forms.html"149 ····<p·class="topless"><a·href="forms.html"
149 ··························title="previous·chapter">PostgreSQL·specific·form·fields·and·widgets</a></p>150 ··························title="capitolo·precedente">PostgreSQL·specific·form·fields·and·widgets</a></p>
150 ··</div>151 ··</div>
151 ··<div>152 ··<div>
152 ····<h4>Next·topic</h4>153 ····<h4>Argomento·successivo</h4>
153 ····<p·class="topless"><a·href="indexes.html"154 ····<p·class="topless"><a·href="indexes.html"
154 ··························title="next·chapter">PostgreSQL·specific·model·indexes</a></p>155 ··························title="capitolo·successivo">PostgreSQL·specific·model·indexes</a></p>
155 ··</div>156 ··</div>
156 <search·id="searchbox"·style="display:·none"·role="search">157 <search·id="searchbox"·style="display:·none"·role="search">
157 ··<h3·id="searchlabel">Quick·search</h3>158 ··<h3·id="searchlabel">Ricerca·veloce</h3>
158 ····<div·class="searchformwrapper">159 ····<div·class="searchformwrapper">
159 ····<form·class="search"·action="../../../search.html"·method="get">160 ····<form·class="search"·action="../../../search.html"·method="get">
160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
161 ······<input·type="submit"·value="Go"·/>162 ······<input·type="submit"·value="Vai"·/>
162 ····</form>163 ····</form>
163 ····</div>164 ····</div>
164 </search>165 </search>
165 <script>document.getElementById('searchbox').style.display·=·"block"</script>166 <script>document.getElementById('searchbox').style.display·=·"block"</script>
166 ········</div>167 ········</div>
167 ······</div>168 ······</div>
168 ··············<h3>Last·update:</h3>169 ··············<h3>Last·update:</h3>
169 ··············<p·class="topless">Sep·03,·2024</p>170 ··············<p·class="topless">set·03,·2024</p>
170 ··········</div>171 ··········</div>
171 ········172 ········
172 ······173 ······
173 ····</div>174 ····</div>
  
174 ····<div·id="ft">175 ····<div·id="ft">
175 ······<div·class="nav">176 ······<div·class="nav">
3.39 KB
html2text {}
Max HTML report size reached
7.86 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>django.contrib.postgres·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.contrib.postgres·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="PostgreSQL·specific·aggregation·functions"·href="aggregates.html"·/>15 ····<link·rel="next"·title="PostgreSQL·specific·aggregation·functions"·href="aggregates.html"·/>
15 ····<link·rel="prev"·title="The·messages·framework"·href="../messages.html"·/>16 ····<link·rel="prev"·title="The·messages·framework"·href="../messages.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-module-django.contrib.postgres">81 ··<section·id="s-module-django.contrib.postgres">
81 <span·id="s-django-contrib-postgres"></span><span·id="module-django.contrib.postgres"></span><span·id="django-contrib-postgres"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code><a·class="headerlink"·href="#module-django.contrib.postgres"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-django-contrib-postgres"></span><span·id="module-django.contrib.postgres"></span><span·id="django-contrib-postgres"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code><a·class="headerlink"·href="#module-django.contrib.postgres"·title="Link·to·this·heading">¶</a></h1>
82 <p>PostgreSQL·has·a·number·of·features·which·are·not·shared·by·the·other·databases83 <p>PostgreSQL·has·a·number·of·features·which·are·not·shared·by·the·other·databases
83 Django·supports.·This·optional·module·contains·model·fields·and·form·fields·for84 Django·supports.·This·optional·module·contains·model·fields·and·form·fields·for
84 a·number·of·PostgreSQL·specific·data·types.</p>85 a·number·of·PostgreSQL·specific·data·types.</p>
85 <div·class="admonition·note">86 <div·class="admonition·note">
86 <p·class="admonition-title">Note</p>87 <p·class="admonition-title">Nota</p>
87 <p>Django·is,·and·will·continue·to·be,·a·database-agnostic·web·framework.·We88 <p>Django·is,·and·will·continue·to·be,·a·database-agnostic·web·framework.·We
88 would·encourage·those·writing·reusable·applications·for·the·Django89 would·encourage·those·writing·reusable·applications·for·the·Django
89 community·to·write·database-agnostic·code·where·practical.·However,·we90 community·to·write·database-agnostic·code·where·practical.·However,·we
90 recognize·that·real·world·projects·written·using·Django·need·not·be91 recognize·that·real·world·projects·written·using·Django·need·not·be
91 database-agnostic.·In·fact,·once·a·project·reaches·a·given·size·changing92 database-agnostic.·In·fact,·once·a·project·reaches·a·given·size·changing
92 the·underlying·data·store·is·already·a·significant·challenge·and·is·likely93 the·underlying·data·store·is·already·a·significant·challenge·and·is·likely
93 to·require·changing·the·code·base·in·some·ways·to·handle·differences94 to·require·changing·the·code·base·in·some·ways·to·handle·differences
Offset 192, 37 lines modifiedOffset 193, 37 lines modified
192 ······193 ······
193 ········194 ········
194 ··········<div·class="yui-b"·id="sidebar">195 ··········<div·class="yui-b"·id="sidebar">
195 ············196 ············
196 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">197 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
197 ········<div·class="sphinxsidebarwrapper">198 ········<div·class="sphinxsidebarwrapper">
198 ··<div>199 ··<div>
199 ····<h4>Previous·topic</h4>200 ····<h4>Argomento·precedente</h4>
200 ····<p·class="topless"><a·href="../messages.html"201 ····<p·class="topless"><a·href="../messages.html"
201 ··························title="previous·chapter">The·messages·framework</a></p>202 ··························title="capitolo·precedente">The·messages·framework</a></p>
202 ··</div>203 ··</div>
203 ··<div>204 ··<div>
204 ····<h4>Next·topic</h4>205 ····<h4>Argomento·successivo</h4>
205 ····<p·class="topless"><a·href="aggregates.html"206 ····<p·class="topless"><a·href="aggregates.html"
206 ··························title="next·chapter">PostgreSQL·specific·aggregation·functions</a></p>207 ··························title="capitolo·successivo">PostgreSQL·specific·aggregation·functions</a></p>
207 ··</div>208 ··</div>
208 <search·id="searchbox"·style="display:·none"·role="search">209 <search·id="searchbox"·style="display:·none"·role="search">
209 ··<h3·id="searchlabel">Quick·search</h3>210 ··<h3·id="searchlabel">Ricerca·veloce</h3>
210 ····<div·class="searchformwrapper">211 ····<div·class="searchformwrapper">
211 ····<form·class="search"·action="../../../search.html"·method="get">212 ····<form·class="search"·action="../../../search.html"·method="get">
212 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>213 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
213 ······<input·type="submit"·value="Go"·/>214 ······<input·type="submit"·value="Vai"·/>
214 ····</form>215 ····</form>
215 ····</div>216 ····</div>
216 </search>217 </search>
217 <script>document.getElementById('searchbox').style.display·=·"block"</script>218 <script>document.getElementById('searchbox').style.display·=·"block"</script>
218 ········</div>219 ········</div>
219 ······</div>220 ······</div>
220 ··············<h3>Last·update:</h3>221 ··············<h3>Last·update:</h3>
221 ··············<p·class="topless">Sep·03,·2024</p>222 ··············<p·class="topless">set·03,·2024</p>
222 ··········</div>223 ··········</div>
223 ········224 ········
224 ······225 ······
225 ····</div>226 ····</div>
  
226 ····<div·id="ft">227 ····<div·id="ft">
227 ······<div·class="nav">228 ······<div·class="nav">
2.61 KB
html2text {}
Max HTML report size reached
37.6 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/indexes.html
Max HTML report size reached
7.98 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/lookups.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>PostgreSQL·specific·lookups·&#8212;·Django·4.2.16·documentation</title>6 ····<title>PostgreSQL·specific·lookups·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Database·migration·operations"·href="operations.html"·/>15 ····<link·rel="next"·title="Database·migration·operations"·href="operations.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·model·indexes"·href="indexes.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·model·indexes"·href="indexes.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 151, 15 lines modifiedOffset 152, 15 lines modified
151 <span·class="go">[&#39;&lt;City:·Mexico&gt;&#39;]</span>152 <span·class="go">[&#39;&lt;City:·Mexico&gt;&#39;]</span>
  
152 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">User</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">first_name__unaccent__startswith</span><span·class="o">=</span><span·class="s2">&quot;Jerem&quot;</span><span·class="p">)</span>153 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">User</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">first_name__unaccent__startswith</span><span·class="o">=</span><span·class="s2">&quot;Jerem&quot;</span><span·class="p">)</span>
153 <span·class="go">[&#39;&lt;User:·Jeremy&gt;&#39;,·&#39;&lt;User:·Jérémy&gt;&#39;,·&#39;&lt;User:·Jérémie&gt;&#39;,·&#39;&lt;User:·Jeremie&gt;&#39;]</span>154 <span·class="go">[&#39;&lt;User:·Jeremy&gt;&#39;,·&#39;&lt;User:·Jérémy&gt;&#39;,·&#39;&lt;User:·Jérémie&gt;&#39;,·&#39;&lt;User:·Jeremie&gt;&#39;]</span>
154 </pre></div>155 </pre></div>
155 </div>156 </div>
156 <div·class="admonition·warning">157 <div·class="admonition·warning">
157 <p·class="admonition-title">Warning</p>158 <p·class="admonition-title">Avvertimento</p>
158 <p><code·class="docutils·literal·notranslate"><span·class="pre">unaccent</span></code>·lookups·should·perform·fine·in·most·use·cases.·However,·queries159 <p><code·class="docutils·literal·notranslate"><span·class="pre">unaccent</span></code>·lookups·should·perform·fine·in·most·use·cases.·However,·queries
159 using·this·filter·will·generally·perform·full·table·scans,·which·can·be·slow160 using·this·filter·will·generally·perform·full·table·scans,·which·can·be·slow
160 on·large·tables.·In·those·cases,·using·dedicated·full·text·indexing·tools161 on·large·tables.·In·those·cases,·using·dedicated·full·text·indexing·tools
161 might·be·appropriate.</p>162 might·be·appropriate.</p>
162 </div>163 </div>
163 </section>164 </section>
164 </section>165 </section>
Offset 187, 37 lines modifiedOffset 188, 37 lines modified
187 <li><a·class="reference·internal"·href="#unaccent"><code·class="docutils·literal·notranslate"><span·class="pre">Unaccent</span></code></a></li>188 <li><a·class="reference·internal"·href="#unaccent"><code·class="docutils·literal·notranslate"><span·class="pre">Unaccent</span></code></a></li>
188 </ul>189 </ul>
189 </li>190 </li>
190 </ul>191 </ul>
  
191 ··</div>192 ··</div>
192 ··<div>193 ··<div>
193 ····<h4>Previous·topic</h4>194 ····<h4>Argomento·precedente</h4>
194 ····<p·class="topless"><a·href="indexes.html"195 ····<p·class="topless"><a·href="indexes.html"
195 ··························title="previous·chapter">PostgreSQL·specific·model·indexes</a></p>196 ··························title="capitolo·precedente">PostgreSQL·specific·model·indexes</a></p>
196 ··</div>197 ··</div>
197 ··<div>198 ··<div>
198 ····<h4>Next·topic</h4>199 ····<h4>Argomento·successivo</h4>
199 ····<p·class="topless"><a·href="operations.html"200 ····<p·class="topless"><a·href="operations.html"
200 ··························title="next·chapter">Database·migration·operations</a></p>201 ··························title="capitolo·successivo">Database·migration·operations</a></p>
201 ··</div>202 ··</div>
202 <search·id="searchbox"·style="display:·none"·role="search">203 <search·id="searchbox"·style="display:·none"·role="search">
203 ··<h3·id="searchlabel">Quick·search</h3>204 ··<h3·id="searchlabel">Ricerca·veloce</h3>
204 ····<div·class="searchformwrapper">205 ····<div·class="searchformwrapper">
205 ····<form·class="search"·action="../../../search.html"·method="get">206 ····<form·class="search"·action="../../../search.html"·method="get">
206 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>207 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
207 ······<input·type="submit"·value="Go"·/>208 ······<input·type="submit"·value="Vai"·/>
208 ····</form>209 ····</form>
209 ····</div>210 ····</div>
210 </search>211 </search>
211 <script>document.getElementById('searchbox').style.display·=·"block"</script>212 <script>document.getElementById('searchbox').style.display·=·"block"</script>
212 ········</div>213 ········</div>
213 ······</div>214 ······</div>
214 ··············<h3>Last·update:</h3>215 ··············<h3>Last·update:</h3>
215 ··············<p·class="topless">Sep·03,·2024</p>216 ··············<p·class="topless">set·03,·2024</p>
216 ··········</div>217 ··········</div>
217 ········218 ········
218 ······219 ······
219 ····</div>220 ····</div>
  
220 ····<div·id="ft">221 ····<div·id="ft">
221 ······<div·class="nav">222 ······<div·class="nav">
2.91 KB
html2text {}
Max HTML report size reached
12.4 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/operations.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Database·migration·operations·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Database·migration·operations·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Full·text·search"·href="search.html"·/>15 ····<link·rel="next"·title="Full·text·search"·href="search.html"·/>
15 ····<link·rel="prev"·title="PostgreSQL·specific·lookups"·href="lookups.html"·/>16 ····<link·rel="prev"·title="PostgreSQL·specific·lookups"·href="lookups.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 259, 15 lines modifiedOffset 260, 15 lines modified
259 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RemoveIndexConcurrently</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.operations.RemoveIndexConcurrently"·title="Link·to·this·definition">¶</a></dt>260 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RemoveIndexConcurrently</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.operations.RemoveIndexConcurrently"·title="Link·to·this·definition">¶</a></dt>
260 <dd><p>Like·<a·class="reference·internal"·href="../../migration-operations.html#django.db.migrations.operations.RemoveIndex"·title="django.db.migrations.operations.RemoveIndex"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RemoveIndex</span></code></a>,·but·removes·the261 <dd><p>Like·<a·class="reference·internal"·href="../../migration-operations.html#django.db.migrations.operations.RemoveIndex"·title="django.db.migrations.operations.RemoveIndex"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RemoveIndex</span></code></a>,·but·removes·the
261 index·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">CONCURRENTLY</span></code>·option.·This·has·a·few·caveats·to·be·aware262 index·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">CONCURRENTLY</span></code>·option.·This·has·a·few·caveats·to·be·aware
262 of·when·using·this·option,·see·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-dropindex.html">the·PostgreSQL·documentation</a>.</p>263 of·when·using·this·option,·see·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-dropindex.html">the·PostgreSQL·documentation</a>.</p>
263 </dd></dl>264 </dd></dl>
  
264 <div·class="admonition·note">265 <div·class="admonition·note">
265 <p·class="admonition-title">Note</p>266 <p·class="admonition-title">Nota</p>
266 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">CONCURRENTLY</span></code>·option·is·not·supported·inside·a·transaction·(see267 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">CONCURRENTLY</span></code>·option·is·not·supported·inside·a·transaction·(see
267 <a·class="reference·internal"·href="../../../howto/writing-migrations.html#non-atomic-migrations"><span·class="std·std-ref">non-atomic·migration</span></a>).</p>268 <a·class="reference·internal"·href="../../../howto/writing-migrations.html#non-atomic-migrations"><span·class="std·std-ref">non-atomic·migration</span></a>).</p>
268 </div>269 </div>
269 </section>270 </section>
270 <section·id="s-adding-constraints-without-enforcing-validation">271 <section·id="s-adding-constraints-without-enforcing-validation">
271 <span·id="adding-constraints-without-enforcing-validation"></span><h2>Adding·constraints·without·enforcing·validation<a·class="headerlink"·href="#adding-constraints-without-enforcing-validation"·title="Link·to·this·heading">¶</a></h2>272 <span·id="adding-constraints-without-enforcing-validation"></span><h2>Adding·constraints·without·enforcing·validation<a·class="headerlink"·href="#adding-constraints-without-enforcing-validation"·title="Link·to·this·heading">¶</a></h2>
272 <p>PostgreSQL·supports·the·<code·class="docutils·literal·notranslate"><span·class="pre">NOT</span>·<span·class="pre">VALID</span></code>·option·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">ADD</span>·<span·class="pre">CONSTRAINT</span></code>273 <p>PostgreSQL·supports·the·<code·class="docutils·literal·notranslate"><span·class="pre">NOT</span>·<span·class="pre">VALID</span></code>·option·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">ADD</span>·<span·class="pre">CONSTRAINT</span></code>
Offset 289, 15 lines modifiedOffset 290, 15 lines modified
289 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.operations.ValidateConstraint">290 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.operations.ValidateConstraint">
290 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ValidateConstraint</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.operations.ValidateConstraint"·title="Link·to·this·definition">¶</a></dt>291 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ValidateConstraint</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>)<a·class="headerlink"·href="#django.contrib.postgres.operations.ValidateConstraint"·title="Link·to·this·definition">¶</a></dt>
291 <dd><p>Scans·through·the·table·and·validates·the·given·check·constraint·on292 <dd><p>Scans·through·the·table·and·validates·the·given·check·constraint·on
292 existing·rows.</p>293 existing·rows.</p>
293 </dd></dl>294 </dd></dl>
  
294 <div·class="admonition·note">295 <div·class="admonition·note">
295 <p·class="admonition-title">Note</p>296 <p·class="admonition-title">Nota</p>
296 <p><code·class="docutils·literal·notranslate"><span·class="pre">AddConstraintNotValid</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">ValidateConstraint</span></code>·operations·should·be297 <p><code·class="docutils·literal·notranslate"><span·class="pre">AddConstraintNotValid</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">ValidateConstraint</span></code>·operations·should·be
297 performed·in·two·separate·migrations.·Performing·both·operations·in·the298 performed·in·two·separate·migrations.·Performing·both·operations·in·the
298 same·atomic·migration·has·the·same·effect·as299 same·atomic·migration·has·the·same·effect·as
299 <a·class="reference·internal"·href="../../migration-operations.html#django.db.migrations.operations.AddConstraint"·title="django.db.migrations.operations.AddConstraint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AddConstraint</span></code></a>,·whereas·performing300 <a·class="reference·internal"·href="../../migration-operations.html#django.db.migrations.operations.AddConstraint"·title="django.db.migrations.operations.AddConstraint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AddConstraint</span></code></a>,·whereas·performing
300 them·in·a·single·non-atomic·migration,·may·leave·your·database·in·an301 them·in·a·single·non-atomic·migration,·may·leave·your·database·in·an
301 inconsistent·state·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">ValidateConstraint</span></code>·operation·fails.</p>302 inconsistent·state·if·the·<code·class="docutils·literal·notranslate"><span·class="pre">ValidateConstraint</span></code>·operation·fails.</p>
302 </div>303 </div>
Offset 333, 37 lines modifiedOffset 334, 37 lines modified
333 <li><a·class="reference·internal"·href="#adding-constraints-without-enforcing-validation">Adding·constraints·without·enforcing·validation</a></li>334 <li><a·class="reference·internal"·href="#adding-constraints-without-enforcing-validation">Adding·constraints·without·enforcing·validation</a></li>
334 </ul>335 </ul>
335 </li>336 </li>
336 </ul>337 </ul>
  
337 ··</div>338 ··</div>
338 ··<div>339 ··<div>
339 ····<h4>Previous·topic</h4>340 ····<h4>Argomento·precedente</h4>
340 ····<p·class="topless"><a·href="lookups.html"341 ····<p·class="topless"><a·href="lookups.html"
341 ··························title="previous·chapter">PostgreSQL·specific·lookups</a></p>342 ··························title="capitolo·precedente">PostgreSQL·specific·lookups</a></p>
342 ··</div>343 ··</div>
343 ··<div>344 ··<div>
344 ····<h4>Next·topic</h4>345 ····<h4>Argomento·successivo</h4>
345 ····<p·class="topless"><a·href="search.html"346 ····<p·class="topless"><a·href="search.html"
346 ··························title="next·chapter">Full·text·search</a></p>347 ··························title="capitolo·successivo">Full·text·search</a></p>
347 ··</div>348 ··</div>
348 <search·id="searchbox"·style="display:·none"·role="search">349 <search·id="searchbox"·style="display:·none"·role="search">
349 ··<h3·id="searchlabel">Quick·search</h3>350 ··<h3·id="searchlabel">Ricerca·veloce</h3>
350 ····<div·class="searchformwrapper">351 ····<div·class="searchformwrapper">
351 ····<form·class="search"·action="../../../search.html"·method="get">352 ····<form·class="search"·action="../../../search.html"·method="get">
352 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>353 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
353 ······<input·type="submit"·value="Go"·/>354 ······<input·type="submit"·value="Vai"·/>
354 ····</form>355 ····</form>
355 ····</div>356 ····</div>
356 </search>357 </search>
357 <script>document.getElementById('searchbox').style.display·=·"block"</script>358 <script>document.getElementById('searchbox').style.display·=·"block"</script>
358 ········</div>359 ········</div>
359 ······</div>360 ······</div>
360 ··············<h3>Last·update:</h3>361 ··············<h3>Last·update:</h3>
361 ··············<p·class="topless">Sep·03,·2024</p>362 ··············<p·class="topless">set·03,·2024</p>
362 ··········</div>363 ··········</div>
363 ········364 ········
364 ······365 ······
365 ····</div>366 ····</div>
  
366 ····<div·id="ft">367 ····<div·id="ft">
367 ······<div·class="nav">368 ······<div·class="nav">
4.74 KB
html2text {}
Max HTML report size reached
54.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/search.html
Max HTML report size reached
15.2 KB
./usr/share/doc/python-django-doc/html/ref/contrib/postgres/validators.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Validators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Validators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="The·redirects·app"·href="../redirects.html"·/>15 ····<link·rel="next"·title="The·redirects·app"·href="../redirects.html"·/>
15 ····<link·rel="prev"·title="Full·text·search"·href="search.html"·/>16 ····<link·rel="prev"·title="Full·text·search"·href="search.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 44 lines modifiedOffset 82, 44 lines modified
81 <span·id="s-validators"></span><span·id="module-django.contrib.postgres.validators"></span><span·id="validators"></span><h1>Validators<a·class="headerlink"·href="#module-django.contrib.postgres.validators"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-validators"></span><span·id="module-django.contrib.postgres.validators"></span><span·id="validators"></span><h1>Validators<a·class="headerlink"·href="#module-django.contrib.postgres.validators"·title="Link·to·this·heading">¶</a></h1>
82 <p>These·validators·are·available·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.validators</span></code>83 <p>These·validators·are·available·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.validators</span></code>
83 module.</p>84 module.</p>
84 <section·id="s-keysvalidator">85 <section·id="s-keysvalidator">
85 <span·id="keysvalidator"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">KeysValidator</span></code><a·class="headerlink"·href="#keysvalidator"·title="Link·to·this·heading">¶</a></h2>86 <span·id="keysvalidator"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">KeysValidator</span></code><a·class="headerlink"·href="#keysvalidator"·title="Link·to·this·heading">¶</a></h2>
86 <dl·class="py·class">87 <dl·class="py·class">
87 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.KeysValidator">88 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.KeysValidator">
88 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">KeysValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">keys</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">strict</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">messages</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#KeysValidator"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.KeysValidator"·title="Link·to·this·definition">¶</a></dt>89 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">KeysValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">keys</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">strict</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">messages</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#KeysValidator"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.KeysValidator"·title="Link·to·this·definition">¶</a></dt>
89 <dd><p>Validates·that·the·given·keys·are·contained·in·the·value.·If·<code·class="docutils·literal·notranslate"><span·class="pre">strict</span></code>·is90 <dd><p>Validates·that·the·given·keys·are·contained·in·the·value.·If·<code·class="docutils·literal·notranslate"><span·class="pre">strict</span></code>·is
90 <code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·then·it·also·checks·that·there·are·no·other·keys·present.</p>91 <code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·then·it·also·checks·that·there·are·no·other·keys·present.</p>
91 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">messages</span></code>·passed·should·be·a·dict·containing·the·keys92 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">messages</span></code>·passed·should·be·a·dict·containing·the·keys
92 <code·class="docutils·literal·notranslate"><span·class="pre">missing_keys</span></code>·and/or·<code·class="docutils·literal·notranslate"><span·class="pre">extra_keys</span></code>.</p>93 <code·class="docutils·literal·notranslate"><span·class="pre">missing_keys</span></code>·and/or·<code·class="docutils·literal·notranslate"><span·class="pre">extra_keys</span></code>.</p>
93 <div·class="admonition·note">94 <div·class="admonition·note">
94 <p·class="admonition-title">Note</p>95 <p·class="admonition-title">Nota</p>
95 <p>Note·that·this·checks·only·for·the·existence·of·a·given·key,·not·that96 <p>Note·that·this·checks·only·for·the·existence·of·a·given·key,·not·that
96 the·value·of·a·key·is·non-empty.</p>97 the·value·of·a·key·is·non-empty.</p>
97 </div>98 </div>
98 </dd></dl>99 </dd></dl>
  
99 </section>100 </section>
100 <section·id="s-range-validators">101 <section·id="s-range-validators">
101 <span·id="range-validators"></span><h2>Range·validators<a·class="headerlink"·href="#range-validators"·title="Link·to·this·heading">¶</a></h2>102 <span·id="range-validators"></span><h2>Range·validators<a·class="headerlink"·href="#range-validators"·title="Link·to·this·heading">¶</a></h2>
102 <section·id="s-rangemaxvaluevalidator">103 <section·id="s-rangemaxvaluevalidator">
103 <span·id="rangemaxvaluevalidator"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RangeMaxValueValidator</span></code><a·class="headerlink"·href="#rangemaxvaluevalidator"·title="Link·to·this·heading">¶</a></h3>104 <span·id="rangemaxvaluevalidator"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RangeMaxValueValidator</span></code><a·class="headerlink"·href="#rangemaxvaluevalidator"·title="Link·to·this·heading">¶</a></h3>
104 <dl·class="py·class">105 <dl·class="py·class">
105 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.RangeMaxValueValidator">106 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.RangeMaxValueValidator">
106 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RangeMaxValueValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">limit_value</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#RangeMaxValueValidator"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.RangeMaxValueValidator"·title="Link·to·this·definition">¶</a></dt>107 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RangeMaxValueValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">limit_value</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#RangeMaxValueValidator"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.RangeMaxValueValidator"·title="Link·to·this·definition">¶</a></dt>
107 <dd><p>Validates·that·the·upper·bound·of·the·range·is·not·greater·than108 <dd><p>Validates·that·the·upper·bound·of·the·range·is·not·greater·than
108 <code·class="docutils·literal·notranslate"><span·class="pre">limit_value</span></code>.</p>109 <code·class="docutils·literal·notranslate"><span·class="pre">limit_value</span></code>.</p>
109 </dd></dl>110 </dd></dl>
  
110 </section>111 </section>
111 <section·id="s-rangeminvaluevalidator">112 <section·id="s-rangeminvaluevalidator">
112 <span·id="rangeminvaluevalidator"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RangeMinValueValidator</span></code><a·class="headerlink"·href="#rangeminvaluevalidator"·title="Link·to·this·heading">¶</a></h3>113 <span·id="rangeminvaluevalidator"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">RangeMinValueValidator</span></code><a·class="headerlink"·href="#rangeminvaluevalidator"·title="Link·to·this·heading">¶</a></h3>
113 <dl·class="py·class">114 <dl·class="py·class">
114 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.RangeMinValueValidator">115 <dt·class="sig·sig-object·py"·id="django.contrib.postgres.validators.RangeMinValueValidator">
115 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RangeMinValueValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">limit_value</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#RangeMinValueValidator"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.RangeMinValueValidator"·title="Link·to·this·definition">¶</a></dt>116 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RangeMinValueValidator</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">limit_value</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../../_modules/django/contrib/postgres/validators.html#RangeMinValueValidator"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.postgres.validators.RangeMinValueValidator"·title="Link·to·this·definition">¶</a></dt>
116 <dd><p>Validates·that·the·lower·bound·of·the·range·is·not·less·than·the117 <dd><p>Validates·that·the·lower·bound·of·the·range·is·not·less·than·the
117 <code·class="docutils·literal·notranslate"><span·class="pre">limit_value</span></code>.</p>118 <code·class="docutils·literal·notranslate"><span·class="pre">limit_value</span></code>.</p>
118 </dd></dl>119 </dd></dl>
  
119 </section>120 </section>
120 </section>121 </section>
121 </section>122 </section>
Offset 145, 37 lines modifiedOffset 146, 37 lines modified
145 </li>146 </li>
146 </ul>147 </ul>
147 </li>148 </li>
148 </ul>149 </ul>
  
149 ··</div>150 ··</div>
150 ··<div>151 ··<div>
151 ····<h4>Previous·topic</h4>152 ····<h4>Argomento·precedente</h4>
152 ····<p·class="topless"><a·href="search.html"153 ····<p·class="topless"><a·href="search.html"
153 ··························title="previous·chapter">Full·text·search</a></p>154 ··························title="capitolo·precedente">Full·text·search</a></p>
154 ··</div>155 ··</div>
155 ··<div>156 ··<div>
156 ····<h4>Next·topic</h4>157 ····<h4>Argomento·successivo</h4>
157 ····<p·class="topless"><a·href="../redirects.html"158 ····<p·class="topless"><a·href="../redirects.html"
158 ··························title="next·chapter">The·redirects·app</a></p>159 ··························title="capitolo·successivo">The·redirects·app</a></p>
159 ··</div>160 ··</div>
160 <search·id="searchbox"·style="display:·none"·role="search">161 <search·id="searchbox"·style="display:·none"·role="search">
161 ··<h3·id="searchlabel">Quick·search</h3>162 ··<h3·id="searchlabel">Ricerca·veloce</h3>
162 ····<div·class="searchformwrapper">163 ····<div·class="searchformwrapper">
163 ····<form·class="search"·action="../../../search.html"·method="get">164 ····<form·class="search"·action="../../../search.html"·method="get">
164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>165 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
165 ······<input·type="submit"·value="Go"·/>166 ······<input·type="submit"·value="Vai"·/>
166 ····</form>167 ····</form>
167 ····</div>168 ····</div>
168 </search>169 </search>
169 <script>document.getElementById('searchbox').style.display·=·"block"</script>170 <script>document.getElementById('searchbox').style.display·=·"block"</script>
170 ········</div>171 ········</div>
171 ······</div>172 ······</div>
172 ··············<h3>Last·update:</h3>173 ··············<h3>Last·update:</h3>
173 ··············<p·class="topless">Sep·03,·2024</p>174 ··············<p·class="topless">set·03,·2024</p>
174 ··········</div>175 ··········</div>
175 ········176 ········
176 ······177 ······
177 ····</div>178 ····</div>
  
178 ····<div·id="ft">179 ····<div·id="ft">
179 ······<div·class="nav">180 ······<div·class="nav">
3.6 KB
html2text {}
Max HTML report size reached
13.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/redirects.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·redirects·app·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·redirects·app·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·sitemap·framework"·href="sitemaps.html"·/>15 ····<link·rel="next"·title="The·sitemap·framework"·href="sitemaps.html"·/>
15 ····<link·rel="prev"·title="Validators"·href="postgres/validators.html"·/>16 ····<link·rel="prev"·title="Validators"·href="postgres/validators.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 102, 21 lines modifiedOffset 103, 21 lines modified
102 does·all·of·the·work.·Each·time·any·Django·application·raises·a·404103 does·all·of·the·work.·Each·time·any·Django·application·raises·a·404
103 error,·this·middleware·checks·the·redirects·database·for·the·requested104 error,·this·middleware·checks·the·redirects·database·for·the·requested
104 URL·as·a·last·resort.·Specifically,·it·checks·for·a·redirect·with·the105 URL·as·a·last·resort.·Specifically,·it·checks·for·a·redirect·with·the
105 given·<code·class="docutils·literal·notranslate"><span·class="pre">old_path</span></code>·with·a·site·ID·that·corresponds·to·the106 given·<code·class="docutils·literal·notranslate"><span·class="pre">old_path</span></code>·with·a·site·ID·that·corresponds·to·the
106 <a·class="reference·internal"·href="../settings.html#std-setting-SITE_ID"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SITE_ID</span></code></a>·setting.</p>107 <a·class="reference·internal"·href="../settings.html#std-setting-SITE_ID"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SITE_ID</span></code></a>·setting.</p>
107 <ul·class="simple">108 <ul·class="simple">
108 <li><p>If·it·finds·a·match,·and·<code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·is·not·empty,·it·redirects·to109 <li><p>If·it·finds·a·match,·and·<code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·is·not·empty,·it·redirects·to
109 <code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·using·a·301·(Moved·Permanently)·redirect.·You·can·subclass110 <code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·using·a·301·(«Moved·Permanently»)·redirect.·You·can·subclass
110 <a·class="reference·internal"·href="#django.contrib.redirects.middleware.RedirectFallbackMiddleware"·title="django.contrib.redirects.middleware.RedirectFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RedirectFallbackMiddleware</span></code></a>111 <a·class="reference·internal"·href="#django.contrib.redirects.middleware.RedirectFallbackMiddleware"·title="django.contrib.redirects.middleware.RedirectFallbackMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RedirectFallbackMiddleware</span></code></a>
111 and·set112 and·set
112 <a·class="reference·internal"·href="#django.contrib.redirects.middleware.RedirectFallbackMiddleware.response_redirect_class"·title="django.contrib.redirects.middleware.RedirectFallbackMiddleware.response_redirect_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">response_redirect_class</span></code></a>113 <a·class="reference·internal"·href="#django.contrib.redirects.middleware.RedirectFallbackMiddleware.response_redirect_class"·title="django.contrib.redirects.middleware.RedirectFallbackMiddleware.response_redirect_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">response_redirect_class</span></code></a>
113 to·<a·class="reference·internal"·href="../request-response.html#django.http.HttpResponseRedirect"·title="django.http.HttpResponseRedirect"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.http.HttpResponseRedirect</span></code></a>·to·use·a114 to·<a·class="reference·internal"·href="../request-response.html#django.http.HttpResponseRedirect"·title="django.http.HttpResponseRedirect"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.http.HttpResponseRedirect</span></code></a>·to·use·a
114 <code·class="docutils·literal·notranslate"><span·class="pre">302</span>·<span·class="pre">Moved</span>·<span·class="pre">Temporarily</span></code>·redirect·instead.</p></li>115 <code·class="docutils·literal·notranslate"><span·class="pre">302</span>·<span·class="pre">Moved</span>·<span·class="pre">Temporarily</span></code>·redirect·instead.</p></li>
115 <li><p>If·it·finds·a·match,·and·<code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·is·empty,·it·sends·a·410·(Gone)116 <li><p>If·it·finds·a·match,·and·<code·class="docutils·literal·notranslate"><span·class="pre">new_path</span></code>·is·empty,·it·sends·a·410·(«Gone»)
116 HTTP·header·and·empty·(content-less)·response.</p></li>117 HTTP·header·and·empty·(content-less)·response.</p></li>
117 <li><p>If·it·doesn’t·find·a·match,·the·request·continues·to·be·processed·as118 <li><p>If·it·doesn’t·find·a·match,·the·request·continues·to·be·processed·as
118 usual.</p></li>119 usual.</p></li>
119 </ul>120 </ul>
120 <p>The·middleware·only·gets·activated·for·404s··not·for·500s·or·responses·of·any121 <p>The·middleware·only·gets·activated·for·404s··not·for·500s·or·responses·of·any
121 other·status·code.</p>122 other·status·code.</p>
122 <p>Note·that·the·order·of·<a·class="reference·internal"·href="../settings.html#std-setting-MIDDLEWARE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIDDLEWARE</span></code></a>·matters.·Generally,·you·can·put123 <p>Note·that·the·order·of·<a·class="reference·internal"·href="../settings.html#std-setting-MIDDLEWARE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIDDLEWARE</span></code></a>·matters.·Generally,·you·can·put
Offset 125, 15 lines modifiedOffset 126, 15 lines modified
125 <p>For·more·on·middleware,·read·the·<a·class="reference·internal"·href="../../topics/http/middleware.html"><span·class="doc">middleware·docs</span></a>.</p>126 <p>For·more·on·middleware,·read·the·<a·class="reference·internal"·href="../../topics/http/middleware.html"><span·class="doc">middleware·docs</span></a>.</p>
126 </section>127 </section>
127 <section·id="s-how-to-add-change-and-delete-redirects">128 <section·id="s-how-to-add-change-and-delete-redirects">
128 <span·id="how-to-add-change-and-delete-redirects"></span><h2>How·to·add,·change·and·delete·redirects<a·class="headerlink"·href="#how-to-add-change-and-delete-redirects"·title="Link·to·this·heading">¶</a></h2>129 <span·id="how-to-add-change-and-delete-redirects"></span><h2>How·to·add,·change·and·delete·redirects<a·class="headerlink"·href="#how-to-add-change-and-delete-redirects"·title="Link·to·this·heading">¶</a></h2>
129 <section·id="s-via-the-admin-interface">130 <section·id="s-via-the-admin-interface">
130 <span·id="via-the-admin-interface"></span><h3>Via·the·admin·interface<a·class="headerlink"·href="#via-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>131 <span·id="via-the-admin-interface"></span><h3>Via·the·admin·interface<a·class="headerlink"·href="#via-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>
131 <p>If·you’ve·activated·the·automatic·Django·admin·interface,·you·should·see·a132 <p>If·you’ve·activated·the·automatic·Django·admin·interface,·you·should·see·a
132 Redirects·section·on·the·admin·index·page.·Edit·redirects·as·you·edit·any133 «Redirects»·section·on·the·admin·index·page.·Edit·redirects·as·you·edit·any
133 other·object·in·the·system.</p>134 other·object·in·the·system.</p>
134 </section>135 </section>
135 <section·id="s-via-the-python-api">136 <section·id="s-via-the-python-api">
136 <span·id="via-the-python-api"></span><h3>Via·the·Python·API<a·class="headerlink"·href="#via-the-python-api"·title="Link·to·this·heading">¶</a></h3>137 <span·id="via-the-python-api"></span><h3>Via·the·Python·API<a·class="headerlink"·href="#via-the-python-api"·title="Link·to·this·heading">¶</a></h3>
137 <dl·class="py·class">138 <dl·class="py·class">
138 <dt·class="sig·sig-object·py"·id="django.contrib.redirects.models.Redirect">139 <dt·class="sig·sig-object·py"·id="django.contrib.redirects.models.Redirect">
139 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">models.</span></span><span·class="sig-name·descname"><span·class="pre">Redirect</span></span><a·class="headerlink"·href="#django.contrib.redirects.models.Redirect"·title="Link·to·this·definition">¶</a></dt>140 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">models.</span></span><span·class="sig-name·descname"><span·class="pre">Redirect</span></span><a·class="headerlink"·href="#django.contrib.redirects.models.Redirect"·title="Link·to·this·definition">¶</a></dt>
Offset 217, 37 lines modifiedOffset 218, 37 lines modified
217 <li><a·class="reference·internal"·href="#middleware">Middleware</a></li>218 <li><a·class="reference·internal"·href="#middleware">Middleware</a></li>
218 </ul>219 </ul>
219 </li>220 </li>
220 </ul>221 </ul>
  
221 ··</div>222 ··</div>
222 ··<div>223 ··<div>
223 ····<h4>Previous·topic</h4>224 ····<h4>Argomento·precedente</h4>
224 ····<p·class="topless"><a·href="postgres/validators.html"225 ····<p·class="topless"><a·href="postgres/validators.html"
225 ··························title="previous·chapter">Validators</a></p>226 ··························title="capitolo·precedente">Validators</a></p>
226 ··</div>227 ··</div>
227 ··<div>228 ··<div>
228 ····<h4>Next·topic</h4>229 ····<h4>Argomento·successivo</h4>
229 ····<p·class="topless"><a·href="sitemaps.html"230 ····<p·class="topless"><a·href="sitemaps.html"
230 ··························title="next·chapter">The·sitemap·framework</a></p>231 ··························title="capitolo·successivo">The·sitemap·framework</a></p>
231 ··</div>232 ··</div>
232 <search·id="searchbox"·style="display:·none"·role="search">233 <search·id="searchbox"·style="display:·none"·role="search">
233 ··<h3·id="searchlabel">Quick·search</h3>234 ··<h3·id="searchlabel">Ricerca·veloce</h3>
234 ····<div·class="searchformwrapper">235 ····<div·class="searchformwrapper">
235 ····<form·class="search"·action="../../search.html"·method="get">236 ····<form·class="search"·action="../../search.html"·method="get">
236 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
237 ······<input·type="submit"·value="Go"·/>238 ······<input·type="submit"·value="Vai"·/>
238 ····</form>239 ····</form>
239 ····</div>240 ····</div>
240 </search>241 </search>
241 <script>document.getElementById('searchbox').style.display·=·"block"</script>242 <script>document.getElementById('searchbox').style.display·=·"block"</script>
242 ········</div>243 ········</div>
243 ······</div>244 ······</div>
244 ··············<h3>Last·update:</h3>245 ··············<h3>Last·update:</h3>
245 ··············<p·class="topless">Sep·03,·2024</p>246 ··············<p·class="topless">set·03,·2024</p>
246 ··········</div>247 ··········</div>
247 ········248 ········
248 ······249 ······
249 ····</div>250 ····</div>
  
250 ····<div·id="ft">251 ····<div·id="ft">
251 ······<div·class="nav">252 ······<div·class="nav">
4.8 KB
html2text {}
Max HTML report size reached
39.0 KB
./usr/share/doc/python-django-doc/html/ref/contrib/sitemaps.html
Max HTML report size reached
26.1 KB
./usr/share/doc/python-django-doc/html/ref/contrib/sites.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·sites·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·«sites»·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·staticfiles·app"·href="staticfiles.html"·/>15 ····<link·rel="next"·title="The·staticfiles·app"·href="staticfiles.html"·/>
15 ····<link·rel="prev"·title="The·sitemap·framework"·href="sitemaps.html"·/>16 ····<link·rel="prev"·title="The·sitemap·framework"·href="sitemaps.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 74, 18 lines modifiedOffset 75, 18 lines modified
  
74 ····<div·id="bd">75 ····<div·id="bd">
75 ······<div·id="yui-main">76 ······<div·id="yui-main">
76 ········<div·class="yui-b">77 ········<div·class="yui-b">
77 ··········<div·class="yui-g"·id="ref-contrib-sites">78 ··········<div·class="yui-g"·id="ref-contrib-sites">
78 ············79 ············
79 ··<section·id="s-module-django.contrib.sites">80 ··<section·id="s-module-django.contrib.sites">
80 <span·id="s-the-sites-framework"></span><span·id="module-django.contrib.sites"></span><span·id="the-sites-framework"></span><h1>The·sites·framework<a·class="headerlink"·href="#module-django.contrib.sites"·title="Link·to·this·heading">¶</a></h1>81 <span·id="s-the-sites-framework"></span><span·id="module-django.contrib.sites"></span><span·id="the-sites-framework"></span><h1>The·«sites»·framework<a·class="headerlink"·href="#module-django.contrib.sites"·title="Link·to·this·heading">¶</a></h1>
81 <p>Django·comes·with·an·optional·sites·framework.·It’s·a·hook·for·associating82 <p>Django·comes·with·an·optional·«sites»·framework.·It’s·a·hook·for·associating
82 objects·and·functionality·to·particular·websites,·and·it’s·a·holding·place·for83 objects·and·functionality·to·particular·websites,·and·it’s·a·holding·place·for
83 the·domain·names·and·verbose·names·of·your·Django-powered·sites.</p>84 the·domain·names·and·«verbose»·names·of·your·Django-powered·sites.</p>
84 <p>Use·it·if·your·single·Django·installation·powers·more·than·one·site·and·you85 <p>Use·it·if·your·single·Django·installation·powers·more·than·one·site·and·you
85 need·to·differentiate·between·those·sites·in·some·way.</p>86 need·to·differentiate·between·those·sites·in·some·way.</p>
86 <p>The·sites·framework·is·mainly·based·on·this·model:</p>87 <p>The·sites·framework·is·mainly·based·on·this·model:</p>
87 <dl·class="py·class">88 <dl·class="py·class">
88 <dt·class="sig·sig-object·py"·id="django.contrib.sites.models.Site">89 <dt·class="sig·sig-object·py"·id="django.contrib.sites.models.Site">
89 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">models.</span></span><span·class="sig-name·descname"><span·class="pre">Site</span></span><a·class="headerlink"·href="#django.contrib.sites.models.Site"·title="Link·to·this·definition">¶</a></dt>90 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">models.</span></span><span·class="sig-name·descname"><span·class="pre">Site</span></span><a·class="headerlink"·href="#django.contrib.sites.models.Site"·title="Link·to·this·definition">¶</a></dt>
90 <dd><p>A·model·for·storing·the·<code·class="docutils·literal·notranslate"><span·class="pre">domain</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·attributes·of·a·website.</p>91 <dd><p>A·model·for·storing·the·<code·class="docutils·literal·notranslate"><span·class="pre">domain</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·attributes·of·a·website.</p>
Offset 95, 15 lines modifiedOffset 96, 15 lines modified
95 <dd><p>The·fully·qualified·domain·name·associated·with·the·website.96 <dd><p>The·fully·qualified·domain·name·associated·with·the·website.
96 For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">www.example.com</span></code>.</p>97 For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">www.example.com</span></code>.</p>
97 </dd></dl>98 </dd></dl>
  
98 <dl·class="py·attribute">99 <dl·class="py·attribute">
99 <dt·class="sig·sig-object·py"·id="django.contrib.sites.models.Site.name">100 <dt·class="sig·sig-object·py"·id="django.contrib.sites.models.Site.name">
100 <span·class="sig-name·descname"><span·class="pre">name</span></span><a·class="headerlink"·href="#django.contrib.sites.models.Site.name"·title="Link·to·this·definition">¶</a></dt>101 <span·class="sig-name·descname"><span·class="pre">name</span></span><a·class="headerlink"·href="#django.contrib.sites.models.Site.name"·title="Link·to·this·definition">¶</a></dt>
101 <dd><p>A·human-readable·verbose·name·for·the·website.</p>102 <dd><p>A·human-readable·«verbose»·name·for·the·website.</p>
102 </dd></dl>103 </dd></dl>
  
103 </dd></dl>104 </dd></dl>
  
104 <p>The·<a·class="reference·internal"·href="../settings.html#std-setting-SITE_ID"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SITE_ID</span></code></a>·setting·specifies·the·database·ID·of·the105 <p>The·<a·class="reference·internal"·href="../settings.html#std-setting-SITE_ID"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SITE_ID</span></code></a>·setting·specifies·the·database·ID·of·the
105 <a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>·object·associated·with·that106 <a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>·object·associated·with·that
106 particular·settings·file.·If·the·setting·is·omitted,·the107 particular·settings·file.·If·the·setting·is·omitted,·the
Offset 238, 20 lines modifiedOffset 239, 20 lines modified
238 </div>239 </div>
239 </section>240 </section>
240 <section·id="s-getting-the-current-domain-for-display">241 <section·id="s-getting-the-current-domain-for-display">
241 <span·id="getting-the-current-domain-for-display"></span><h3>Getting·the·current·domain·for·display<a·class="headerlink"·href="#getting-the-current-domain-for-display"·title="Link·to·this·heading">¶</a></h3>242 <span·id="getting-the-current-domain-for-display"></span><h3>Getting·the·current·domain·for·display<a·class="headerlink"·href="#getting-the-current-domain-for-display"·title="Link·to·this·heading">¶</a></h3>
242 <p>LJWorld.com·and·Lawrence.com·both·have·email·alert·functionality,·which·lets243 <p>LJWorld.com·and·Lawrence.com·both·have·email·alert·functionality,·which·lets
243 readers·sign·up·to·get·notifications·when·news·happens.·It’s·pretty·basic:·A244 readers·sign·up·to·get·notifications·when·news·happens.·It’s·pretty·basic:·A
244 reader·signs·up·on·a·web·form·and·immediately·gets·an·email·saying,245 reader·signs·up·on·a·web·form·and·immediately·gets·an·email·saying,
245 Thanks·for·your·subscription.</p>246 «Thanks·for·your·subscription.»</p>
246 <p>It’d·be·inefficient·and·redundant·to·implement·this·sign·up·processing·code247 <p>It’d·be·inefficient·and·redundant·to·implement·this·sign·up·processing·code
247 twice,·so·the·sites·use·the·same·code·behind·the·scenes.·But·the·thank·you·for248 twice,·so·the·sites·use·the·same·code·behind·the·scenes.·But·the·«thank·you·for
248 signing·up·notice·needs·to·be·different·for·each·site.·By·using249 signing·up»·notice·needs·to·be·different·for·each·site.·By·using
249 <a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>250 <a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>
250 objects,·we·can·abstract·the·thank·you·notice·to·use·the·values·of·the251 objects,·we·can·abstract·the·«thank·you»·notice·to·use·the·values·of·the
251 current·site’s·<a·class="reference·internal"·href="#django.contrib.sites.models.Site.name"·title="django.contrib.sites.models.Site.name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">name</span></code></a>·and252 current·site’s·<a·class="reference·internal"·href="#django.contrib.sites.models.Site.name"·title="django.contrib.sites.models.Site.name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">name</span></code></a>·and
252 <a·class="reference·internal"·href="#django.contrib.sites.models.Site.domain"·title="django.contrib.sites.models.Site.domain"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">domain</span></code></a>.</p>253 <a·class="reference·internal"·href="#django.contrib.sites.models.Site.domain"·title="django.contrib.sites.models.Site.domain"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">domain</span></code></a>.</p>
253 <p>Here’s·an·example·of·what·the·form-handling·view·looks·like:</p>254 <p>Here’s·an·example·of·what·the·form-handling·view·looks·like:</p>
254 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.sites.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">get_current_site</span>255 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.contrib.sites.shortcuts</span>·<span·class="kn">import</span>·<span·class="n">get_current_site</span>
255 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">send_mail</span>256 <span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">send_mail</span>
  
  
Offset 267, 17 lines modifiedOffset 268, 17 lines modified
267 ········<span·class="s2">&quot;editor@</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">current_site</span><span·class="o">.</span><span·class="n">domain</span><span·class="p">,</span>268 ········<span·class="s2">&quot;editor@</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">current_site</span><span·class="o">.</span><span·class="n">domain</span><span·class="p">,</span>
268 ········<span·class="p">[</span><span·class="n">user</span><span·class="o">.</span><span·class="n">email</span><span·class="p">],</span>269 ········<span·class="p">[</span><span·class="n">user</span><span·class="o">.</span><span·class="n">email</span><span·class="p">],</span>
269 ····<span·class="p">)</span>270 ····<span·class="p">)</span>
  
270 ····<span·class="c1">#·...</span>271 ····<span·class="c1">#·...</span>
271 </pre></div>272 </pre></div>
272 </div>273 </div>
273 <p>On·Lawrence.com,·this·email·has·the·subject·line·Thanks·for·subscribing·to274 <p>On·Lawrence.com,·this·email·has·the·subject·line·«Thanks·for·subscribing·to
274 lawrence.com·alerts.·On·LJWorld.com,·the·email·has·the·subject·Thanks·for275 lawrence.com·alerts.»·On·LJWorld.com,·the·email·has·the·subject·«Thanks·for
275 subscribing·to·LJWorld.com·alerts.·Same·goes·for·the·email’s·message·body.</p>276 subscribing·to·LJWorld.com·alerts.»·Same·goes·for·the·email’s·message·body.</p>
276 <p>Note·that·an·even·more·flexible·(but·more·heavyweight)·way·of·doing·this·would277 <p>Note·that·an·even·more·flexible·(but·more·heavyweight)·way·of·doing·this·would
277 be·to·use·Django’s·template·system.·Assuming·Lawrence.com·and·LJWorld.com·have278 be·to·use·Django’s·template·system.·Assuming·Lawrence.com·and·LJWorld.com·have
278 different·template·directories·(<a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES-DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DIRS</span></code></a>),·you·could279 different·template·directories·(<a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES-DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DIRS</span></code></a>),·you·could
279 farm·out·to·the·template·system·like·so:</p>280 farm·out·to·the·template·system·like·so:</p>
280 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">send_mail</span>281 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.mail</span>·<span·class="kn">import</span>·<span·class="n">send_mail</span>
281 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">loader</span>282 <span·class="kn">from</span>·<span·class="nn">django.template</span>·<span·class="kn">import</span>·<span·class="n">loader</span>
  
Offset 297, 15 lines modifiedOffset 298, 15 lines modified
297 template·files·for·both·the·LJWorld.com·and·Lawrence.com·template·directories.298 template·files·for·both·the·LJWorld.com·and·Lawrence.com·template·directories.
298 That·gives·you·more·flexibility,·but·it’s·also·more·complex.</p>299 That·gives·you·more·flexibility,·but·it’s·also·more·complex.</p>
299 <p>It’s·a·good·idea·to·exploit·the·<a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>300 <p>It’s·a·good·idea·to·exploit·the·<a·class="reference·internal"·href="#django.contrib.sites.models.Site"·title="django.contrib.sites.models.Site"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Site</span></code></a>
300 objects·as·much·as·possible,·to·remove·unneeded·complexity·and·redundancy.</p>301 objects·as·much·as·possible,·to·remove·unneeded·complexity·and·redundancy.</p>
301 </section>302 </section>
302 <section·id="s-getting-the-current-domain-for-full-urls">303 <section·id="s-getting-the-current-domain-for-full-urls">
303 <span·id="getting-the-current-domain-for-full-urls"></span><h3>Getting·the·current·domain·for·full·URLs<a·class="headerlink"·href="#getting-the-current-domain-for-full-urls"·title="Link·to·this·heading">¶</a></h3>304 <span·id="getting-the-current-domain-for-full-urls"></span><h3>Getting·the·current·domain·for·full·URLs<a·class="headerlink"·href="#getting-the-current-domain-for-full-urls"·title="Link·to·this·heading">¶</a></h3>
304 <p>Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code>·convention·is·nice·for·getting·your·objects305 <p>Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code>·convention·is·nice·for·getting·your·objects
305 URL·without·the·domain·name,·but·in·some·cases·you·might·want·to·display·the306 URL·without·the·domain·name,·but·in·some·cases·you·might·want·to·display·the
306 full·URL··with·<code·class="docutils·literal·notranslate"><span·class="pre">http://</span></code>·and·the·domain·and·everything··for·an·object.307 full·URL··with·<code·class="docutils·literal·notranslate"><span·class="pre">http://</span></code>·and·the·domain·and·everything··for·an·object.
307 To·do·this,·you·can·use·the·sites·framework.·An·example:</p>308 To·do·this,·you·can·use·the·sites·framework.·An·example:</p>
308 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.sites.models</span>·<span·class="kn">import</span>·<span·class="n">Site</span>309 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.sites.models</span>·<span·class="kn">import</span>·<span·class="n">Site</span>
309 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">obj</span>·<span·class="o">=</span>·<span·class="n">MyModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="nb">id</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">)</span>310 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">obj</span>·<span·class="o">=</span>·<span·class="n">MyModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="nb">id</span><span·class="o">=</span><span·class="mi">3</span><span·class="p">)</span>
Max diff block lines reached; 5070/16538 bytes (30.66%) of diff not shown.
9.84 KB
html2text {}
Max HTML report size reached
18.9 KB
./usr/share/doc/python-django-doc/html/ref/contrib/staticfiles.html
    
Offset 1, 24 lines modifiedOffset 1, 25 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·staticfiles·app·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·staticfiles·app·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·syndication·feed·framework"·href="syndication.html"·/>15 ····<link·rel="next"·title="The·syndication·feed·framework"·href="syndication.html"·/>
15 ····<link·rel="prev"·title="The·sites·framework"·href="sites.html"·/>16 ····<link·rel="prev"·title="The·«sites»·framework"·href="sites.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
18 <script>19 <script>
19 (function($)·{20 (function($)·{
Offset 66, 23 lines modifiedOffset 67, 23 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
80 ····&laquo;·<a·href="sites.html"·title="The·sites·framework">previous</a>81 ····&laquo;·<a·href="sites.html"·title="The·«sites»·framework">previous</a>
81 ·····|82 ·····|
82 ····<a·href="../index.html"·title="API·Reference"·accesskey="U">up</a>83 ····<a·href="../index.html"·title="API·Reference"·accesskey="U">up</a>
83 ···|84 ···|
84 ····<a·href="syndication.html"·title="The·syndication·feed·framework">next</a>·&raquo;</div>85 ····<a·href="syndication.html"·title="The·syndication·feed·framework">next</a>·&raquo;</div>
85 ····</div>86 ····</div>
  
86 ····<div·id="bd">87 ····<div·id="bd">
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
92 ············93 ············
93 ··<section·id="s-module-django.contrib.staticfiles">94 ··<section·id="s-module-django.contrib.staticfiles">
94 <span·id="s-the-staticfiles-app"></span><span·id="module-django.contrib.staticfiles"></span><span·id="the-staticfiles-app"></span><h1>The·<code·class="docutils·literal·notranslate"><span·class="pre">staticfiles</span></code>·app<a·class="headerlink"·href="#module-django.contrib.staticfiles"·title="Link·to·this·heading">¶</a></h1>95 <span·id="s-the-staticfiles-app"></span><span·id="module-django.contrib.staticfiles"></span><span·id="the-staticfiles-app"></span><h1>The·<code·class="docutils·literal·notranslate"><span·class="pre">staticfiles</span></code>·app<a·class="headerlink"·href="#module-django.contrib.staticfiles"·title="Link·to·this·heading">¶</a></h1>
95 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·collects·static·files·from·each·of·your96 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·collects·static·files·from·each·of·your
96 applications·(and·any·other·places·you·specify)·into·a·single·location·that97 applications·(and·any·other·places·you·specify)·into·a·single·location·that
97 can·easily·be·served·in·production.</p>98 can·easily·be·served·in·production.</p>
98 <div·class="admonition·seealso">99 <div·class="admonition·seealso">
99 <p·class="admonition-title">See·also</p>100 <p·class="admonition-title">Vedi·anche</p>
100 <p>For·an·introduction·to·the·static·files·app·and·some·usage·examples,·see101 <p>For·an·introduction·to·the·static·files·app·and·some·usage·examples,·see
101 <a·class="reference·internal"·href="../../howto/static-files/index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.·For·guidelines·on·deploying·static·files,102 <a·class="reference·internal"·href="../../howto/static-files/index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.·For·guidelines·on·deploying·static·files,
102 see·<a·class="reference·internal"·href="../../howto/static-files/deployment.html"><span·class="doc">How·to·deploy·static·files</span></a>.</p>103 see·<a·class="reference·internal"·href="../../howto/static-files/deployment.html"><span·class="doc">How·to·deploy·static·files</span></a>.</p>
103 </div>104 </div>
104 <section·id="s-settings">105 <section·id="s-settings">
105 <span·id="s-staticfiles-settings"></span><span·id="settings"></span><span·id="staticfiles-settings"></span><h2>Settings<a·class="headerlink"·href="#settings"·title="Link·to·this·heading">¶</a></h2>106 <span·id="s-staticfiles-settings"></span><span·id="settings"></span><span·id="staticfiles-settings"></span><h2>Settings<a·class="headerlink"·href="#settings"·title="Link·to·this·heading">¶</a></h2>
106 <p>See·<a·class="reference·internal"·href="../settings.html#settings-staticfiles"><span·class="std·std-ref">staticfiles·settings</span></a>·for·details·on·the107 <p>See·<a·class="reference·internal"·href="../settings.html#settings-staticfiles"><span·class="std·std-ref">staticfiles·settings</span></a>·for·details·on·the
Offset 657, 23 lines modifiedOffset 658, 23 lines modified
657 <dl·class="py·function">658 <dl·class="py·function">
658 <dt·class="sig·sig-object·py"·id="django.contrib.staticfiles.views.serve">659 <dt·class="sig·sig-object·py"·id="django.contrib.staticfiles.views.serve">
659 <span·class="sig-prename·descclassname"><span·class="pre">views.</span></span><span·class="sig-name·descname"><span·class="pre">serve</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">path</span></span></em>)<a·class="headerlink"·href="#django.contrib.staticfiles.views.serve"·title="Link·to·this·definition">¶</a></dt>660 <span·class="sig-prename·descclassname"><span·class="pre">views.</span></span><span·class="sig-name·descname"><span·class="pre">serve</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">path</span></span></em>)<a·class="headerlink"·href="#django.contrib.staticfiles.views.serve"·title="Link·to·this·definition">¶</a></dt>
660 <dd></dd></dl>661 <dd></dd></dl>
  
661 <p>This·view·function·serves·static·files·in·development.</p>662 <p>This·view·function·serves·static·files·in·development.</p>
662 <div·class="admonition·warning">663 <div·class="admonition·warning">
663 <p·class="admonition-title">Warning</p>664 <p·class="admonition-title">Avvertimento</p>
664 <p>This·view·will·only·work·if·<a·class="reference·internal"·href="../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>665 <p>This·view·will·only·work·if·<a·class="reference·internal"·href="../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>
665 <p>That’s·because·this·view·is·<strong>grossly·inefficient</strong>·and·probably666 <p>That’s·because·this·view·is·<strong>grossly·inefficient</strong>·and·probably
666 <strong>insecure</strong>.·This·is·only·intended·for·local·development,·and·should667 <strong>insecure</strong>.·This·is·only·intended·for·local·development,·and·should
667 <strong>never·be·used·in·production</strong>.</p>668 <strong>never·be·used·in·production</strong>.</p>
668 </div>669 </div>
669 <div·class="admonition·note">670 <div·class="admonition·note">
670 <p·class="admonition-title">Note</p>671 <p·class="admonition-title">Nota</p>
671 <p>To·guess·the·served·files·content·types,·this·view·relies·on·the672 <p>To·guess·the·served·files·content·types,·this·view·relies·on·the
672 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/mimetypes.html#module-mimetypes"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">mimetypes</span></code></a>·module·from·the·Python·standard·library,·which·itself673 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/mimetypes.html#module-mimetypes"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">mimetypes</span></code></a>·module·from·the·Python·standard·library,·which·itself
673 relies·on·the·underlying·platform’s·map·files.·If·you·find·that·this·view674 relies·on·the·underlying·platform’s·map·files.·If·you·find·that·this·view
674 doesn’t·return·proper·content·types·for·certain·files,·it·is·most·likely675 doesn’t·return·proper·content·types·for·certain·files,·it·is·most·likely
675 that·the·platform’s·map·files·are·incorrect·or·need·to·be·updated.·This·can676 that·the·platform’s·map·files·are·incorrect·or·need·to·be·updated.·This·can
676 be·achieved,·for·example,·by·installing·or·updating·the·<code·class="docutils·literal·notranslate"><span·class="pre">mailcap</span></code>·package677 be·achieved,·for·example,·by·installing·or·updating·the·<code·class="docutils·literal·notranslate"><span·class="pre">mailcap</span></code>·package
677 on·a·Red·Hat·distribution,·<code·class="docutils·literal·notranslate"><span·class="pre">mime-support</span></code>·on·a·Debian·distribution,·or·by678 on·a·Red·Hat·distribution,·<code·class="docutils·literal·notranslate"><span·class="pre">mime-support</span></code>·on·a·Debian·distribution,·or·by
678 editing·the·keys·under·<code·class="docutils·literal·notranslate"><span·class="pre">HKEY_CLASSES_ROOT</span></code>·in·the·Windows·registry.</p>679 editing·the·keys·under·<code·class="docutils·literal·notranslate"><span·class="pre">HKEY_CLASSES_ROOT</span></code>·in·the·Windows·registry.</p>
Offset 712, 25 lines modifiedOffset 713, 25 lines modified
712 </div>713 </div>
713 <p>This·will·inspect·your·<a·class="reference·internal"·href="../settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·setting·and·wire·up·the·view714 <p>This·will·inspect·your·<a·class="reference·internal"·href="../settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·setting·and·wire·up·the·view
714 to·serve·static·files·accordingly.·Don’t·forget·to·set·the715 to·serve·static·files·accordingly.·Don’t·forget·to·set·the
715 <a·class="reference·internal"·href="../settings.html#std-setting-STATICFILES_DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_DIRS</span></code></a>·setting·appropriately·to·let716 <a·class="reference·internal"·href="../settings.html#std-setting-STATICFILES_DIRS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_DIRS</span></code></a>·setting·appropriately·to·let
716 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·know·where·to·look·for·files·in·addition·to717 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.staticfiles</span></code>·know·where·to·look·for·files·in·addition·to
717 files·in·app·directories.</p>718 files·in·app·directories.</p>
718 <div·class="admonition·warning">719 <div·class="admonition·warning">
719 <p·class="admonition-title">Warning</p>720 <p·class="admonition-title">Avvertimento</p>
720 <p>This·helper·function·will·only·work·if·<a·class="reference·internal"·href="../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>721 <p>This·helper·function·will·only·work·if·<a·class="reference·internal"·href="../settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>
721 and·your·<a·class="reference·internal"·href="../settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·setting·is·neither·empty·nor·a·full722 and·your·<a·class="reference·internal"·href="../settings.html#std-setting-STATIC_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_URL</span></code></a>·setting·is·neither·empty·nor·a·full
722 URL·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http://static.example.com/</span></code>.</p>723 URL·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http://static.example.com/</span></code>.</p>
723 <p>That’s·because·this·view·is·<strong>grossly·inefficient</strong>·and·probably724 <p>That’s·because·this·view·is·<strong>grossly·inefficient</strong>·and·probably
724 <strong>insecure</strong>.·This·is·only·intended·for·local·development,·and·should725 <strong>insecure</strong>.·This·is·only·intended·for·local·development,·and·should
725 <strong>never·be·used·in·production</strong>.</p>726 <strong>never·be·used·in·production</strong>.</p>
726 </div>727 </div>
727 </section>728 </section>
728 <section·id="s-specialized-test-case-to-support-live-testing">729 <section·id="s-specialized-test-case-to-support-live-testing">
729 <span·id="specialized-test-case-to-support-live-testing"></span><h3>Specialized·test·case·to·support·live·testing<a·class="headerlink"·href="#specialized-test-case-to-support-live-testing"·title="Link·to·this·heading">¶</a></h3>730 <span·id="specialized-test-case-to-support-live-testing"></span><h3>Specialized·test·case·to·support·live·testing<a·class="headerlink"·href="#specialized-test-case-to-support-live-testing"·title="Link·to·this·heading">¶</a></h3>
730 <dl·class="py·class">731 <dl·class="py·class">
731 <dt·class="sig·sig-object·py"·id="django.contrib.staticfiles.testing.StaticLiveServerTestCase">732 <dt·class="sig·sig-object·py"·id="django.contrib.staticfiles.testing.StaticLiveServerTestCase">
732 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">testing.</span></span><span·class="sig-name·descname"><span·class="pre">StaticLiveServerTestCase</span></span><a·class="headerlink"·href="#django.contrib.staticfiles.testing.StaticLiveServerTestCase"·title="Link·to·this·definition">¶</a></dt>733 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">testing.</span></span><span·class="sig-name·descname"><span·class="pre">StaticLiveServerTestCase</span></span><a·class="headerlink"·href="#django.contrib.staticfiles.testing.StaticLiveServerTestCase"·title="Link·to·this·definition">¶</a></dt>
733 <dd></dd></dl>734 <dd></dd></dl>
  
734 <p>This·unittest·TestCase·subclass·extends·<a·class="reference·internal"·href="../../topics/testing/tools.html#django.test.LiveServerTestCase"·title="django.test.LiveServerTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.LiveServerTestCase</span></code></a>.</p>735 <p>This·unittest·TestCase·subclass·extends·<a·class="reference·internal"·href="../../topics/testing/tools.html#django.test.LiveServerTestCase"·title="django.test.LiveServerTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.LiveServerTestCase</span></code></a>.</p>
735 <p>Just·like·its·parent,·you·can·use·it·to·write·tests·that·involve·running·the736 <p>Just·like·its·parent,·you·can·use·it·to·write·tests·that·involve·running·the
Offset 775, 54 lines modifiedOffset 776, 54 lines modified
775 <li><a·class="reference·internal"·href="#manifeststaticfilesstorage"><code·class="docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a></li>776 <li><a·class="reference·internal"·href="#manifeststaticfilesstorage"><code·class="docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a></li>
776 <li><a·class="reference·internal"·href="#manifestfilesmixin"><code·class="docutils·literal·notranslate"><span·class="pre">ManifestFilesMixin</span></code></a></li>777 <li><a·class="reference·internal"·href="#manifestfilesmixin"><code·class="docutils·literal·notranslate"><span·class="pre">ManifestFilesMixin</span></code></a></li>
777 </ul>778 </ul>
778 </li>779 </li>
779 <li><a·class="reference·internal"·href="#finders-module">Finders·Module</a></li>780 <li><a·class="reference·internal"·href="#finders-module">Finders·Module</a></li>
780 <li><a·class="reference·internal"·href="#other-helpers">Other·Helpers</a><ul>781 <li><a·class="reference·internal"·href="#other-helpers">Other·Helpers</a><ul>
781 <li><a·class="reference·internal"·href="#static-file-development-view">Static·file·development·view</a></li>782 <li><a·class="reference·internal"·href="#static-file-development-view">Static·file·development·view</a></li>
782 <li><a·class="reference·internal"·href="#specialized-test-case-to-support-live-testing">Specialized·test·case·to·support·live·testing</a></li>783 <li><a·class="reference·internal"·href="#specialized-test-case-to-support-live-testing">Specialized·test·case·to·support·live·testing</a></li>
783 </ul>784 </ul>
784 </li>785 </li>
785 </ul>786 </ul>
Max diff block lines reached; 1841/12835 bytes (14.34%) of diff not shown.
6.26 KB
html2text {}
Max HTML report size reached
21.3 KB
./usr/share/doc/python-django-doc/html/ref/contrib/syndication.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·syndication·feed·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·syndication·feed·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Cross·Site·Request·Forgery·protection"·href="../csrf.html"·/>15 ····<link·rel="next"·title="Cross·Site·Request·Forgery·protection"·href="../csrf.html"·/>
15 ····<link·rel="prev"·title="The·staticfiles·app"·href="staticfiles.html"·/>16 ····<link·rel="prev"·title="The·staticfiles·app"·href="staticfiles.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 15 lines modifiedOffset 96, 15 lines modified
95 feed,·write·a·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class96 feed,·write·a·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class
96 and·point·to·an·instance·of·it·in·your·<a·class="reference·internal"·href="../../topics/http/urls.html"><span·class="doc">URLconf</span></a>.</p>97 and·point·to·an·instance·of·it·in·your·<a·class="reference·internal"·href="../../topics/http/urls.html"><span·class="doc">URLconf</span></a>.</p>
97 </section>98 </section>
98 <section·id="s-feed-classes">99 <section·id="s-feed-classes">
99 <span·id="feed-classes"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·classes<a·class="headerlink"·href="#feed-classes"·title="Link·to·this·heading">¶</a></h3>100 <span·id="feed-classes"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·classes<a·class="headerlink"·href="#feed-classes"·title="Link·to·this·heading">¶</a></h3>
100 <p>A·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class·is·a·Python101 <p>A·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class·is·a·Python
101 class·that·represents·a·syndication·feed.·A·feed·can·be·simple·(e.g.,102 class·that·represents·a·syndication·feed.·A·feed·can·be·simple·(e.g.,
102 a·site·news·feed,·or·a·basic·feed·displaying·the·latest·entries·of·a103 a·«site·news»·feed,·or·a·basic·feed·displaying·the·latest·entries·of·a
103 blog)·or·more·complex·(e.g.,·a·feed·displaying·all·the·blog·entries·in104 blog)·or·more·complex·(e.g.,·a·feed·displaying·all·the·blog·entries·in
104 a·particular·category,·where·the·category·is·variable).</p>105 a·particular·category,·where·the·category·is·variable).</p>
105 <p>Feed·classes·subclass·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>.106 <p>Feed·classes·subclass·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>.
106 They·can·live·anywhere·in·your·codebase.</p>107 They·can·live·anywhere·in·your·codebase.</p>
107 <p>Instances·of·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·classes108 <p>Instances·of·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·classes
108 are·views·which·can·be·used·in·your·<a·class="reference·internal"·href="../../topics/http/urls.html"><span·class="doc">URLconf</span></a>.</p>109 are·views·which·can·be·used·in·your·<a·class="reference·internal"·href="../../topics/http/urls.html"><span·class="doc">URLconf</span></a>.</p>
109 </section>110 </section>
Offset 152, 15 lines modifiedOffset 153, 15 lines modified
152 <li><p>The·Feed·class·subclasses·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>.</p></li>153 <li><p>The·Feed·class·subclasses·<a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.contrib.syndication.views.Feed</span></code></a>.</p></li>
153 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">title</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">link</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·correspond·to·the154 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">title</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">link</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·correspond·to·the
154 standard·RSS·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;title&gt;</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;link&gt;</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;description&gt;</span></code>·elements,155 standard·RSS·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;title&gt;</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;link&gt;</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;description&gt;</span></code>·elements,
155 respectively.</p></li>156 respectively.</p></li>
156 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·is,·a·method·that·returns·a·list·of·objects·that·should·be157 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·is,·a·method·that·returns·a·list·of·objects·that·should·be
157 included·in·the·feed·as·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;item&gt;</span></code>·elements.·Although·this·example·returns158 included·in·the·feed·as·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;item&gt;</span></code>·elements.·Although·this·example·returns
158 <code·class="docutils·literal·notranslate"><span·class="pre">NewsItem</span></code>·objects·using·Django’s·<a·class="reference·internal"·href="../models/querysets.html"><span·class="doc">object-relational·mapper</span></a>,·<code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·doesn’t·have·to·return·model·instances.159 <code·class="docutils·literal·notranslate"><span·class="pre">NewsItem</span></code>·objects·using·Django’s·<a·class="reference·internal"·href="../models/querysets.html"><span·class="doc">object-relational·mapper</span></a>,·<code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·doesn’t·have·to·return·model·instances.
159 Although·you·get·a·few·bits·of·functionality·for·free·by·using·Django160 Although·you·get·a·few·bits·of·functionality·«for·free»·by·using·Django
160 models,·<code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·can·return·any·type·of·object·you·want.</p></li>161 models,·<code·class="docutils·literal·notranslate"><span·class="pre">items()</span></code>·can·return·any·type·of·object·you·want.</p></li>
161 <li><p>If·you’re·creating·an·Atom·feed,·rather·than·an·RSS·feed,·set·the162 <li><p>If·you’re·creating·an·Atom·feed,·rather·than·an·RSS·feed,·set·the
162 <code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·attribute·instead·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·attribute.163 <code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·attribute·instead·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·attribute.
163 See·<a·class="reference·internal"·href="#publishing-atom-and-rss-feeds-in-tandem">Publishing·Atom·and·RSS·feeds·in·tandem</a>,·later,·for·an·example.</p></li>164 See·<a·class="reference·internal"·href="#publishing-atom-and-rss-feeds-in-tandem">Publishing·Atom·and·RSS·feeds·in·tandem</a>,·later,·for·an·example.</p></li>
164 </ul>165 </ul>
165 <p>One·thing·is·left·to·do.·In·an·RSS·feed,·each·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;item&gt;</span></code>·has·a·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;title&gt;</span></code>,166 <p>One·thing·is·left·to·do.·In·an·RSS·feed,·each·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;item&gt;</span></code>·has·a·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;title&gt;</span></code>,
166 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;link&gt;</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;description&gt;</span></code>.·We·need·to·tell·the·framework·what·data·to·put167 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;link&gt;</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;description&gt;</span></code>.·We·need·to·tell·the·framework·what·data·to·put
Offset 386, 18 lines modifiedOffset 387, 18 lines modified
  
386 <span·class="k">class</span>·<span·class="nc">AtomSiteNewsFeed</span><span·class="p">(</span><span·class="n">RssSiteNewsFeed</span><span·class="p">):</span>387 <span·class="k">class</span>·<span·class="nc">AtomSiteNewsFeed</span><span·class="p">(</span><span·class="n">RssSiteNewsFeed</span><span·class="p">):</span>
387 ····<span·class="n">feed_type</span>·<span·class="o">=</span>·<span·class="n">Atom1Feed</span>388 ····<span·class="n">feed_type</span>·<span·class="o">=</span>·<span·class="n">Atom1Feed</span>
388 ····<span·class="n">subtitle</span>·<span·class="o">=</span>·<span·class="n">RssSiteNewsFeed</span><span·class="o">.</span><span·class="n">description</span>389 ····<span·class="n">subtitle</span>·<span·class="o">=</span>·<span·class="n">RssSiteNewsFeed</span><span·class="o">.</span><span·class="n">description</span>
389 </pre></div>390 </pre></div>
390 </div>391 </div>
391 <div·class="admonition·note">392 <div·class="admonition·note">
392 <p·class="admonition-title">Note</p>393 <p·class="admonition-title">Nota</p>
393 <p>In·this·example,·the·RSS·feed·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·while·the·Atom394 <p>In·this·example,·the·RSS·feed·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·while·the·Atom
394 feed·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>.·That’s·because·Atom·feeds·don’t·provide·for395 feed·uses·a·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>.·That’s·because·Atom·feeds·don’t·provide·for
395 a·feed-level·description,·but·they·<em>do</em>·provide·for·a·subtitle.</p>396 a·feed-level·«description,»·but·they·<em>do</em>·provide·for·a·«subtitle.»</p>
396 <p>If·you·provide·a·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·in·your397 <p>If·you·provide·a·<code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>·in·your
397 <a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class,·Django·will·<em>not</em>398 <a·class="reference·internal"·href="#django.contrib.syndication.views.Feed"·title="django.contrib.syndication.views.Feed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Feed</span></code></a>·class,·Django·will·<em>not</em>
398 automatically·put·that·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·element,·because·a399 automatically·put·that·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·element,·because·a
399 subtitle·and·description·are·not·necessarily·the·same·thing.·Instead,·you400 subtitle·and·description·are·not·necessarily·the·same·thing.·Instead,·you
400 should·define·a·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·attribute.</p>401 should·define·a·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·attribute.</p>
401 <p>In·the·above·example,·we·set·the·Atom·feed’s·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·to·the·RSS·feed’s402 <p>In·the·above·example,·we·set·the·Atom·feed’s·<code·class="docutils·literal·notranslate"><span·class="pre">subtitle</span></code>·to·the·RSS·feed’s
402 <code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>,·because·it’s·quite·short·already.</p>403 <code·class="docutils·literal·notranslate"><span·class="pre">description</span></code>,·because·it’s·quite·short·already.</p>
Offset 949, 15 lines modifiedOffset 950, 15 lines modified
949 </pre></div>950 </pre></div>
950 </div>951 </div>
951 </section>952 </section>
952 </section>953 </section>
953 <section·id="s-the-low-level-framework">954 <section·id="s-the-low-level-framework">
954 <span·id="the-low-level-framework"></span><h2>The·low-level·framework<a·class="headerlink"·href="#the-low-level-framework"·title="Link·to·this·heading">¶</a></h2>955 <span·id="the-low-level-framework"></span><h2>The·low-level·framework<a·class="headerlink"·href="#the-low-level-framework"·title="Link·to·this·heading">¶</a></h2>
955 <p>Behind·the·scenes,·the·high-level·RSS·framework·uses·a·lower-level·framework956 <p>Behind·the·scenes,·the·high-level·RSS·framework·uses·a·lower-level·framework
956 for·generating·feeds·XML.·This·framework·lives·in·a·single·module:957 for·generating·feeds·XML.·This·framework·lives·in·a·single·module:
957 <a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/utils/feedgenerator.py">django/utils/feedgenerator.py</a>.</p>958 <a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/utils/feedgenerator.py">django/utils/feedgenerator.py</a>.</p>
958 <p>You·use·this·framework·on·your·own,·for·lower-level·feed·generation.·You·can959 <p>You·use·this·framework·on·your·own,·for·lower-level·feed·generation.·You·can
959 also·create·custom·feed·generator·subclasses·for·use·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">feed_type</span></code>960 also·create·custom·feed·generator·subclasses·for·use·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">feed_type</span></code>
960 <code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·option.</p>961 <code·class="docutils·literal·notranslate"><span·class="pre">Feed</span></code>·option.</p>
961 <section·id="s-syndicationfeed-classes">962 <section·id="s-syndicationfeed-classes">
962 <span·id="syndicationfeed-classes"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed</span></code>·classes<a·class="headerlink"·href="#syndicationfeed-classes"·title="Link·to·this·heading">¶</a></h3>963 <span·id="syndicationfeed-classes"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed</span></code>·classes<a·class="headerlink"·href="#syndicationfeed-classes"·title="Link·to·this·heading">¶</a></h3>
963 <p>The·<a·class="reference·internal"·href="../utils.html#module-django.utils.feedgenerator"·title="django.utils.feedgenerator:·Syndication·feed·generation·library·--·used·for·generating·RSS,·etc."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">feedgenerator</span></code></a>·module·contains·a·base·class:</p>964 <p>The·<a·class="reference·internal"·href="../utils.html#module-django.utils.feedgenerator"·title="django.utils.feedgenerator:·Syndication·feed·generation·library·--·used·for·generating·RSS,·etc."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">feedgenerator</span></code></a>·module·contains·a·base·class:</p>
Offset 1088, 15 lines modifiedOffset 1089, 15 lines modified
1088 <code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed.add_item()</span></code>.</p>1089 <code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed.add_item()</span></code>.</p>
1089 </dd>1090 </dd>
1090 <dt><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed.add_item_elements(self,</span>·<span·class="pre">handler,</span>·<span·class="pre">item)</span></code></dt><dd><p>Callback·to·add·elements·to·each·item·(<code·class="docutils·literal·notranslate"><span·class="pre">item</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">entry</span></code>)·element.1091 <dt><code·class="docutils·literal·notranslate"><span·class="pre">SyndicationFeed.add_item_elements(self,</span>·<span·class="pre">handler,</span>·<span·class="pre">item)</span></code></dt><dd><p>Callback·to·add·elements·to·each·item·(<code·class="docutils·literal·notranslate"><span·class="pre">item</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">entry</span></code>)·element.
1091 <code·class="docutils·literal·notranslate"><span·class="pre">handler</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">item</span></code>·are·as·above.</p>1092 <code·class="docutils·literal·notranslate"><span·class="pre">handler</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">item</span></code>·are·as·above.</p>
1092 </dd>1093 </dd>
1093 </dl>1094 </dl>
1094 <div·class="admonition·warning">1095 <div·class="admonition·warning">
1095 <p·class="admonition-title">Warning</p>1096 <p·class="admonition-title">Avvertimento</p>
1096 <p>If·you·override·any·of·these·methods,·be·sure·to·call·the·superclass·methods1097 <p>If·you·override·any·of·these·methods,·be·sure·to·call·the·superclass·methods
1097 since·they·add·the·required·elements·for·each·feed·format.</p>1098 since·they·add·the·required·elements·for·each·feed·format.</p>
1098 </div>1099 </div>
1099 <p>For·example,·you·might·start·implementing·an·iTunes·RSS·feed·generator·like·so:</p>1100 <p>For·example,·you·might·start·implementing·an·iTunes·RSS·feed·generator·like·so:</p>
1100 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">iTunesFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">):</span>1101 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">iTunesFeed</span><span·class="p">(</span><span·class="n">Rss201rev2Feed</span><span·class="p">):</span>
1101 ····<span·class="k">def</span>·<span·class="nf">root_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>1102 ····<span·class="k">def</span>·<span·class="nf">root_attributes</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
1102 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">root_attributes</span><span·class="p">()</span>1103 ········<span·class="n">attrs</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">root_attributes</span><span·class="p">()</span>
Offset 1148, 37 lines modifiedOffset 1149, 37 lines modified
1148 </li>1149 </li>
1149 </ul>1150 </ul>
1150 </li>1151 </li>
1151 </ul>1152 </ul>
Max diff block lines reached; 1636/13960 bytes (11.72%) of diff not shown.
7.5 KB
html2text {}
Max HTML report size reached
26.5 KB
./usr/share/doc/python-django-doc/html/ref/csrf.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Cross·Site·Request·Forgery·protection·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Cross·Site·Request·Forgery·protection·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Databases"·href="databases.html"·/>15 ····<link·rel="next"·title="Databases"·href="databases.html"·/>
15 ····<link·rel="prev"·title="The·syndication·feed·framework"·href="contrib/syndication.html"·/>16 ····<link·rel="prev"·title="The·syndication·feed·framework"·href="contrib/syndication.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 43 lines modifiedOffset 81, 43 lines modified
80 ··<section·id="s-module-django.middleware.csrf">81 ··<section·id="s-module-django.middleware.csrf">
81 <span·id="s-cross-site-request-forgery-protection"></span><span·id="module-django.middleware.csrf"></span><span·id="cross-site-request-forgery-protection"></span><h1>Cross·Site·Request·Forgery·protection<a·class="headerlink"·href="#module-django.middleware.csrf"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-cross-site-request-forgery-protection"></span><span·id="module-django.middleware.csrf"></span><span·id="cross-site-request-forgery-protection"></span><h1>Cross·Site·Request·Forgery·protection<a·class="headerlink"·href="#module-django.middleware.csrf"·title="Link·to·this·heading">¶</a></h1>
82 <p>The·CSRF·middleware·and·template·tag·provides·easy-to-use·protection·against83 <p>The·CSRF·middleware·and·template·tag·provides·easy-to-use·protection·against
83 <a·class="reference·external"·href="https://owasp.org/www-community/attacks/csrf#overview">Cross·Site·Request·Forgeries</a>.·This·type·of·attack·occurs·when·a·malicious84 <a·class="reference·external"·href="https://owasp.org/www-community/attacks/csrf#overview">Cross·Site·Request·Forgeries</a>.·This·type·of·attack·occurs·when·a·malicious
84 website·contains·a·link,·a·form·button·or·some·JavaScript·that·is·intended·to85 website·contains·a·link,·a·form·button·or·some·JavaScript·that·is·intended·to
85 perform·some·action·on·your·website,·using·the·credentials·of·a·logged-in·user86 perform·some·action·on·your·website,·using·the·credentials·of·a·logged-in·user
86 who·visits·the·malicious·site·in·their·browser.·A·related·type·of·attack,87 who·visits·the·malicious·site·in·their·browser.·A·related·type·of·attack,
87 login·CSRF,·where·an·attacking·site·tricks·a·user’s·browser·into·logging·into88 login·CSRF,·where·an·attacking·site·tricks·a·user’s·browser·into·logging·into
88 a·site·with·someone·else’s·credentials,·is·also·covered.</p>89 a·site·with·someone·else’s·credentials,·is·also·covered.</p>
89 <p>The·first·defense·against·CSRF·attacks·is·to·ensure·that·GET·requests·(and·other90 <p>The·first·defense·against·CSRF·attacks·is·to·ensure·that·GET·requests·(and·other
90 safe·methods,·as·defined·by·<span·class="target"·id="index-0"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>)·are·side·effect·free.91 safe·methods,·as·defined·by·<span·class="target"·id="index-0"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>)·are·side·effect·free.
91 Requests·via·unsafe·methods,·such·as·POST,·PUT,·and·DELETE,·can·then·be92 Requests·via·unsafe·methods,·such·as·POST,·PUT,·and·DELETE,·can·then·be
92 protected·by·the·steps·outlined·in·<a·class="reference·internal"·href="../howto/csrf.html#using-csrf"><span·class="std·std-ref">How·to·use·Django’s·CSRF·protection</span></a>.</p>93 protected·by·the·steps·outlined·in·<a·class="reference·internal"·href="../howto/csrf.html#using-csrf"><span·class="std·std-ref">How·to·use·Django’s·CSRF·protection</span></a>.</p>
93 <section·id="s-how-it-works">94 <section·id="s-how-it-works">
94 <span·id="s-how-csrf-works"></span><span·id="how-it-works"></span><span·id="how-csrf-works"></span><h2>How·it·works<a·class="headerlink"·href="#how-it-works"·title="Link·to·this·heading">¶</a></h2>95 <span·id="s-how-csrf-works"></span><span·id="how-it-works"></span><span·id="how-csrf-works"></span><h2>How·it·works<a·class="headerlink"·href="#how-it-works"·title="Link·to·this·heading">¶</a></h2>
95 <p>The·CSRF·protection·is·based·on·the·following·things:</p>96 <p>The·CSRF·protection·is·based·on·the·following·things:</p>
96 <ol·class="arabic">97 <ol·class="arabic">
97 <li><p>A·CSRF·cookie·that·is·a·random·secret·value,·which·other·sites·will·not·have98 <li><p>A·CSRF·cookie·that·is·a·random·secret·value,·which·other·sites·will·not·have
98 access·to.</p>99 access·to.</p>
99 <p><code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·sends·this·cookie·with·the·response·whenever100 <p><code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·sends·this·cookie·with·the·response·whenever
100 <code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.csrf.get_token()</span></code>·is·called.·It·can·also·send·it·in101 <code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.csrf.get_token()</span></code>·is·called.·It·can·also·send·it·in
101 other·cases.·For·security·reasons,·the·value·of·the·secret·is·changed·each102 other·cases.·For·security·reasons,·the·value·of·the·secret·is·changed·each
102 time·a·user·logs·in.</p>103 time·a·user·logs·in.</p>
103 </li>104 </li>
104 <li><p>A·hidden·form·field·with·the·name·csrfmiddlewaretoken,·present·in·all105 <li><p>A·hidden·form·field·with·the·name·csrfmiddlewaretoken,·present·in·all
105 outgoing·POST·forms.</p>106 outgoing·POST·forms.</p>
106 <p>In·order·to·protect·against·<a·class="reference·external"·href="https://www.breachattack.com/">BREACH</a>·attacks,·the·value·of·this·field·is107 <p>In·order·to·protect·against·<a·class="reference·external"·href="https://www.breachattack.com/">BREACH</a>·attacks,·the·value·of·this·field·is
107 not·simply·the·secret.·It·is·scrambled·differently·with·each·response·using108 not·simply·the·secret.·It·is·scrambled·differently·with·each·response·using
108 a·mask.·The·mask·is·generated·randomly·on·every·call·to·<code·class="docutils·literal·notranslate"><span·class="pre">get_token()</span></code>,·so109 a·mask.·The·mask·is·generated·randomly·on·every·call·to·<code·class="docutils·literal·notranslate"><span·class="pre">get_token()</span></code>,·so
109 the·form·field·value·is·different·each·time.</p>110 the·form·field·value·is·different·each·time.</p>
110 <p>This·part·is·done·by·the·template·tag.</p>111 <p>This·part·is·done·by·the·template·tag.</p>
111 </li>112 </li>
112 <li><p>For·all·incoming·requests·that·are·not·using·HTTP·GET,·HEAD,·OPTIONS·or113 <li><p>For·all·incoming·requests·that·are·not·using·HTTP·GET,·HEAD,·OPTIONS·or
113 TRACE,·a·CSRF·cookie·must·be·present,·and·the·csrfmiddlewaretoken·field114 TRACE,·a·CSRF·cookie·must·be·present,·and·the·csrfmiddlewaretoken·field
114 must·be·present·and·correct.·If·it·isn’t,·the·user·will·get·a·403·error.</p>115 must·be·present·and·correct.·If·it·isn’t,·the·user·will·get·a·403·error.</p>
115 <p>When·validating·the·csrfmiddlewaretoken·field·value,·only·the·secret,116 <p>When·validating·the·csrfmiddlewaretoken·field·value,·only·the·secret,
116 not·the·full·token,·is·compared·with·the·secret·in·the·cookie·value.117 not·the·full·token,·is·compared·with·the·secret·in·the·cookie·value.
117 This·allows·the·use·of·ever-changing·tokens.·While·each·request·may·use·its118 This·allows·the·use·of·ever-changing·tokens.·While·each·request·may·use·its
118 own·token,·the·secret·remains·common·to·all.</p>119 own·token,·the·secret·remains·common·to·all.</p>
119 <p>This·check·is·done·by·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>.</p>120 <p>This·check·is·done·by·<code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>.</p>
120 </li>121 </li>
121 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·verifies·the·<a·class="reference·external"·href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin">Origin·header</a>,·if·provided·by·the122 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·verifies·the·<a·class="reference·external"·href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin">Origin·header</a>,·if·provided·by·the
122 browser,·against·the·current·host·and·the·<a·class="reference·internal"·href="settings.html#std-setting-CSRF_TRUSTED_ORIGINS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_TRUSTED_ORIGINS</span></code></a>123 browser,·against·the·current·host·and·the·<a·class="reference·internal"·href="settings.html#std-setting-CSRF_TRUSTED_ORIGINS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_TRUSTED_ORIGINS</span></code></a>
Offset 143, 18 lines modifiedOffset 144, 18 lines modified
143 </ol>144 </ol>
144 <div·class="versionchanged">145 <div·class="versionchanged">
145 <span·class="title">Changed·in·Django·4.1:</span>·<p>In·older·versions,·the·CSRF·cookie·value·was·masked.</p>146 <span·class="title">Changed·in·Django·4.1:</span>·<p>In·older·versions,·the·CSRF·cookie·value·was·masked.</p>
146 </div>147 </div>
147 <p>This·ensures·that·only·forms·that·have·originated·from·trusted·domains·can·be148 <p>This·ensures·that·only·forms·that·have·originated·from·trusted·domains·can·be
148 used·to·POST·data·back.</p>149 used·to·POST·data·back.</p>
149 <p>It·deliberately·ignores·GET·requests·(and·other·requests·that·are·defined·as150 <p>It·deliberately·ignores·GET·requests·(and·other·requests·that·are·defined·as
150 safe·by·<span·class="target"·id="index-1"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>).·These·requests·ought·never·to·have·any151 safe·by·<span·class="target"·id="index-1"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>).·These·requests·ought·never·to·have·any
151 potentially·dangerous·side·effects,·and·so·a·CSRF·attack·with·a·GET·request152 potentially·dangerous·side·effects,·and·so·a·CSRF·attack·with·a·GET·request
152 ought·to·be·harmless.·<span·class="target"·id="index-2"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>·defines·POST,·PUT,·and·DELETE153 ought·to·be·harmless.·<span·class="target"·id="index-2"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-9.2.1"><strong>RFC·9110#section-9.2.1</strong></a>·defines·POST,·PUT,·and·DELETE
153 as·unsafe,·and·all·other·methods·are·also·assumed·to·be·unsafe,·for·maximum154 as·unsafe,·and·all·other·methods·are·also·assumed·to·be·unsafe,·for·maximum
154 protection.</p>155 protection.</p>
155 <p>The·CSRF·protection·cannot·protect·against·man-in-the-middle·attacks,·so·use156 <p>The·CSRF·protection·cannot·protect·against·man-in-the-middle·attacks,·so·use
156 <a·class="reference·internal"·href="../topics/security.html#security-recommendation-ssl"><span·class="std·std-ref">HTTPS</span></a>·with157 <a·class="reference·internal"·href="../topics/security.html#security-recommendation-ssl"><span·class="std·std-ref">HTTPS</span></a>·with
157 <a·class="reference·internal"·href="middleware.html#http-strict-transport-security"><span·class="std·std-ref">HTTP·Strict·Transport·Security</span></a>.·It·also·assumes·<a·class="reference·internal"·href="../topics/security.html#host-headers-virtual-hosting"><span·class="std·std-ref">validation·of158 <a·class="reference·internal"·href="middleware.html#http-strict-transport-security"><span·class="std·std-ref">HTTP·Strict·Transport·Security</span></a>.·It·also·assumes·<a·class="reference·internal"·href="../topics/security.html#host-headers-virtual-hosting"><span·class="std·std-ref">validation·of
158 the·HOST·header</span></a>·and·that·there·aren’t·any159 the·HOST·header</span></a>·and·that·there·aren’t·any
159 <a·class="reference·internal"·href="../topics/security.html#cross-site-scripting"><span·class="std·std-ref">cross-site·scripting·vulnerabilities</span></a>·on·your·site160 <a·class="reference·internal"·href="../topics/security.html#cross-site-scripting"><span·class="std·std-ref">cross-site·scripting·vulnerabilities</span></a>·on·your·site
160 (because·XSS·vulnerabilities·already·let·an·attacker·do·anything·a·CSRF161 (because·XSS·vulnerabilities·already·let·an·attacker·do·anything·a·CSRF
Offset 162, 15 lines modifiedOffset 163, 15 lines modified
162 <div·class="admonition-removing-the-referer-header·admonition">163 <div·class="admonition-removing-the-referer-header·admonition">
163 <p·class="admonition-title">Removing·the·<code·class="docutils·literal·notranslate"><span·class="pre">Referer</span></code>·header</p>164 <p·class="admonition-title">Removing·the·<code·class="docutils·literal·notranslate"><span·class="pre">Referer</span></code>·header</p>
164 <p>To·avoid·disclosing·the·referrer·URL·to·third-party·sites,·you·might·want165 <p>To·avoid·disclosing·the·referrer·URL·to·third-party·sites,·you·might·want
165 to·<a·class="reference·external"·href="https://www.w3.org/TR/referrer-policy/#referrer-policy-delivery">disable·the·referer</a>·on·your·site’s·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;a&gt;</span></code>·tags.·For·example,·you166 to·<a·class="reference·external"·href="https://www.w3.org/TR/referrer-policy/#referrer-policy-delivery">disable·the·referer</a>·on·your·site’s·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;a&gt;</span></code>·tags.·For·example,·you
166 might·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;meta</span>·<span·class="pre">name=&quot;referrer&quot;</span>·<span·class="pre">content=&quot;no-referrer&quot;&gt;</span></code>·tag·or167 might·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;meta</span>·<span·class="pre">name=&quot;referrer&quot;</span>·<span·class="pre">content=&quot;no-referrer&quot;&gt;</span></code>·tag·or
167 include·the·<code·class="docutils·literal·notranslate"><span·class="pre">Referrer-Policy:</span>·<span·class="pre">no-referrer</span></code>·header.·Due·to·the·CSRF168 include·the·<code·class="docutils·literal·notranslate"><span·class="pre">Referrer-Policy:</span>·<span·class="pre">no-referrer</span></code>·header.·Due·to·the·CSRF
168 protection’s·strict·referer·checking·on·HTTPS·requests,·those·techniques169 protection’s·strict·referer·checking·on·HTTPS·requests,·those·techniques
169 cause·a·CSRF·failure·on·requests·with·unsafe·methods.·Instead,·use170 cause·a·CSRF·failure·on·requests·with·unsafe·methods.·Instead,·use
170 alternatives·like·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;a</span>·<span·class="pre">rel=&quot;noreferrer&quot;</span>·<span·class="pre">...&gt;&quot;</span></code>·for·links·to·third-party171 alternatives·like·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;a</span>·<span·class="pre">rel=&quot;noreferrer&quot;</span>·<span·class="pre">...&gt;&quot;</span></code>·for·links·to·third-party
171 sites.</p>172 sites.</p>
172 </div>173 </div>
173 </section>174 </section>
174 <section·id="s-limitations">175 <section·id="s-limitations">
175 <span·id="s-csrf-limitations"></span><span·id="limitations"></span><span·id="csrf-limitations"></span><h2>Limitations<a·class="headerlink"·href="#limitations"·title="Link·to·this·heading">¶</a></h2>176 <span·id="s-csrf-limitations"></span><span·id="limitations"></span><span·id="csrf-limitations"></span><h2>Limitations<a·class="headerlink"·href="#limitations"·title="Link·to·this·heading">¶</a></h2>
176 <p>Subdomains·within·a·site·will·be·able·to·set·cookies·on·the·client·for·the·whole177 <p>Subdomains·within·a·site·will·be·able·to·set·cookies·on·the·client·for·the·whole
Offset 184, 15 lines modifiedOffset 185, 15 lines modified
184 <section·id="s-module-django.views.decorators.csrf">185 <section·id="s-module-django.views.decorators.csrf">
185 <span·id="s-utilities"></span><span·id="module-django.views.decorators.csrf"></span><span·id="utilities"></span><h2>Utilities<a·class="headerlink"·href="#module-django.views.decorators.csrf"·title="Link·to·this·heading">¶</a></h2>186 <span·id="s-utilities"></span><span·id="module-django.views.decorators.csrf"></span><span·id="utilities"></span><h2>Utilities<a·class="headerlink"·href="#module-django.views.decorators.csrf"·title="Link·to·this·heading">¶</a></h2>
186 <p>The·examples·below·assume·you·are·using·function-based·views.·If·you187 <p>The·examples·below·assume·you·are·using·function-based·views.·If·you
187 are·working·with·class-based·views,·you·can·refer·to·<a·class="reference·internal"·href="../topics/class-based-views/intro.html#id1"><span·class="std·std-ref">Decorating188 are·working·with·class-based·views,·you·can·refer·to·<a·class="reference·internal"·href="../topics/class-based-views/intro.html#id1"><span·class="std·std-ref">Decorating
188 class-based·views</span></a>.</p>189 class-based·views</span></a>.</p>
189 <dl·class="py·function">190 <dl·class="py·function">
190 <dt·class="sig·sig-object·py"·id="django.views.decorators.csrf.csrf_exempt">191 <dt·class="sig·sig-object·py"·id="django.views.decorators.csrf.csrf_exempt">
191 <span·class="sig-name·descname"><span·class="pre">csrf_exempt</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">view</span></span></em>)<a·class="reference·internal"·href="../_modules/django/views/decorators/csrf.html#csrf_exempt"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.csrf.csrf_exempt"·title="Link·to·this·definition">¶</a></dt>192 <span·class="sig-name·descname"><span·class="pre">csrf_exempt</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">view</span></span></em>)<a·class="reference·internal"·href="../_modules/django/views/decorators/csrf.html#csrf_exempt"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.csrf.csrf_exempt"·title="Link·to·this·definition">¶</a></dt>
Max diff block lines reached; 3695/16143 bytes (22.89%) of diff not shown.
10.6 KB
html2text {}
Max HTML report size reached
39.3 KB
./usr/share/doc/python-django-doc/html/ref/databases.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Databases·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Databases·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="django-admin·and·manage.py"·href="django-admin.html"·/>15 ····<link·rel="next"·title="django-admin·and·manage.py"·href="django-admin.html"·/>
15 ····<link·rel="prev"·title="Cross·Site·Request·Forgery·protection"·href="csrf.html"·/>16 ····<link·rel="prev"·title="Cross·Site·Request·Forgery·protection"·href="csrf.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 161, 25 lines modifiedOffset 162, 25 lines modified
161 request-response·cycle,·the·connection·will·remain·open·until·explicitly162 request-response·cycle,·the·connection·will·remain·open·until·explicitly
162 closed,·or·timeout·occurs.</p>163 closed,·or·timeout·occurs.</p>
163 </section>164 </section>
164 </section>165 </section>
165 <section·id="s-encoding">166 <section·id="s-encoding">
166 <span·id="encoding"></span><h3>Encoding<a·class="headerlink"·href="#encoding"·title="Link·to·this·heading">¶</a></h3>167 <span·id="encoding"></span><h3>Encoding<a·class="headerlink"·href="#encoding"·title="Link·to·this·heading">¶</a></h3>
167 <p>Django·assumes·that·all·databases·use·UTF-8·encoding.·Using·other·encodings·may168 <p>Django·assumes·that·all·databases·use·UTF-8·encoding.·Using·other·encodings·may
168 result·in·unexpected·behavior·such·as·value·too·long·errors·from·your169 result·in·unexpected·behavior·such·as·«value·too·long»·errors·from·your
169 database·for·data·that·is·valid·in·Django.·See·the·database·specific·notes170 database·for·data·that·is·valid·in·Django.·See·the·database·specific·notes
170 below·for·information·on·how·to·set·up·your·database·correctly.</p>171 below·for·information·on·how·to·set·up·your·database·correctly.</p>
171 </section>172 </section>
172 </section>173 </section>
173 <section·id="s-postgresql-notes">174 <section·id="s-postgresql-notes">
174 <span·id="s-id1"></span><span·id="postgresql-notes"></span><span·id="id1"></span><h2>PostgreSQL·notes<a·class="headerlink"·href="#postgresql-notes"·title="Link·to·this·heading">¶</a></h2>175 <span·id="s-id1"></span><span·id="postgresql-notes"></span><span·id="id1"></span><h2>PostgreSQL·notes<a·class="headerlink"·href="#postgresql-notes"·title="Link·to·this·heading">¶</a></h2>
175 <p>Django·supports·PostgreSQL·12·and·higher.·<a·class="reference·external"·href="https://www.psycopg.org/psycopg3/">psycopg</a>·3.1.8+·or·<a·class="reference·external"·href="https://www.psycopg.org/">psycopg2</a>176 <p>Django·supports·PostgreSQL·12·and·higher.·<a·class="reference·external"·href="https://www.psycopg.org/psycopg3/">psycopg</a>·3.1.8+·or·<a·class="reference·external"·href="https://www.psycopg.org/">psycopg2</a>
176 2.8.4+·is·required,·though·the·latest·<a·class="reference·external"·href="https://www.psycopg.org/psycopg3/">psycopg</a>·3.1.8+·is·recommended.</p>177 2.8.4+·is·required,·though·the·latest·<a·class="reference·external"·href="https://www.psycopg.org/psycopg3/">psycopg</a>·3.1.8+·is·recommended.</p>
177 <div·class="admonition·note">178 <div·class="admonition·note">
178 <p·class="admonition-title">Note</p>179 <p·class="admonition-title">Nota</p>
179 <p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">psycopg2</span></code>·is·likely·to·be·deprecated·and·removed·at·some180 <p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">psycopg2</span></code>·is·likely·to·be·deprecated·and·removed·at·some
180 point·in·the·future.</p>181 point·in·the·future.</p>
181 </div>182 </div>
182 <div·class="versionchanged">183 <div·class="versionchanged">
183 <span·class="title">Changed·in·Django·4.2:</span>·<p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">psycopg</span></code>·3.1.8+·was·added.</p>184 <span·class="title">Changed·in·Django·4.2:</span>·<p>Support·for·<code·class="docutils·literal·notranslate"><span·class="pre">psycopg</span></code>·3.1.8+·was·added.</p>
184 </div>185 </div>
185 <section·id="s-postgresql-connection-settings">186 <section·id="s-postgresql-connection-settings">
Offset 215, 15 lines modifiedOffset 216, 15 lines modified
215 <div·class="literal-block-wrapper·docutils·container"·id="id17">216 <div·class="literal-block-wrapper·docutils·container"·id="id17">
216 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">.my_pgpass</span></code></span><a·class="headerlink"·href="#id17"·title="Link·to·this·code">¶</a></div>217 <div·class="code-block-caption"><span·class="caption-text"><code·class="docutils·literal·notranslate"><span·class="pre">.my_pgpass</span></code></span><a·class="headerlink"·href="#id17"·title="Link·to·this·code">¶</a></div>
217 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>localhost:5432:NAME:USER:PASSWORD218 <div·class="highlight-text·notranslate"><div·class="highlight"><pre><span></span>localhost:5432:NAME:USER:PASSWORD
218 </pre></div>219 </pre></div>
219 </div>220 </div>
220 </div>221 </div>
221 <div·class="admonition·warning">222 <div·class="admonition·warning">
222 <p·class="admonition-title">Warning</p>223 <p·class="admonition-title">Avvertimento</p>
223 <p>Using·a·service·name·for·testing·purposes·is·not·supported.·This224 <p>Using·a·service·name·for·testing·purposes·is·not·supported.·This
224 <a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33685">may·be·implemented·later</a>.</p>225 <a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33685">may·be·implemented·later</a>.</p>
225 </div>226 </div>
226 </section>227 </section>
227 <section·id="s-optimizing-postgresql-s-configuration">228 <section·id="s-optimizing-postgresql-s-configuration">
228 <span·id="optimizing-postgresql-s-configuration"></span><h3>Optimizing·PostgreSQL’s·configuration<a·class="headerlink"·href="#optimizing-postgresql-s-configuration"·title="Link·to·this·heading">¶</a></h3>229 <span·id="optimizing-postgresql-s-configuration"></span><h3>Optimizing·PostgreSQL’s·configuration<a·class="headerlink"·href="#optimizing-postgresql-s-configuration"·title="Link·to·this·heading">¶</a></h3>
229 <p>Django·needs·the·following·parameters·for·its·database·connections:</p>230 <p>Django·needs·the·following·parameters·for·its·database·connections:</p>
Offset 262, 15 lines modifiedOffset 263, 15 lines modified
262 ····<span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">:</span>·<span·class="p">{</span>263 ····<span·class="s2">&quot;OPTIONS&quot;</span><span·class="p">:</span>·<span·class="p">{</span>
263 ········<span·class="s2">&quot;isolation_level&quot;</span><span·class="p">:</span>·<span·class="n">IsolationLevel</span><span·class="o">.</span><span·class="n">SERIALIZABLE</span><span·class="p">,</span>264 ········<span·class="s2">&quot;isolation_level&quot;</span><span·class="p">:</span>·<span·class="n">IsolationLevel</span><span·class="o">.</span><span·class="n">SERIALIZABLE</span><span·class="p">,</span>
264 ····<span·class="p">},</span>265 ····<span·class="p">},</span>
265 <span·class="p">}</span>266 <span·class="p">}</span>
266 </pre></div>267 </pre></div>
267 </div>268 </div>
268 <div·class="admonition·note">269 <div·class="admonition·note">
269 <p·class="admonition-title">Note</p>270 <p·class="admonition-title">Nota</p>
270 <p>Under·higher·isolation·levels,·your·application·should·be·prepared·to271 <p>Under·higher·isolation·levels,·your·application·should·be·prepared·to
271 handle·exceptions·raised·on·serialization·failures.·This·option·is272 handle·exceptions·raised·on·serialization·failures.·This·option·is
272 designed·for·advanced·uses.</p>273 designed·for·advanced·uses.</p>
273 </div>274 </div>
274 <div·class="versionchanged">275 <div·class="versionchanged">
275 <span·class="title">Changed·in·Django·4.2:</span>·<p><code·class="docutils·literal·notranslate"><span·class="pre">IsolationLevel</span></code>·was·added.</p>276 <span·class="title">Changed·in·Django·4.2:</span>·<p><code·class="docutils·literal·notranslate"><span·class="pre">IsolationLevel</span></code>·was·added.</p>
276 </div>277 </div>
Offset 396, 15 lines modifiedOffset 397, 15 lines modified
396 a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createdatabase.html">template</a>·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">'template0'</span></code>)·from·which·to·create·a·test·database.</p>397 a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createdatabase.html">template</a>·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">'template0'</span></code>)·from·which·to·create·a·test·database.</p>
397 </section>398 </section>
398 <section·id="s-speeding-up-test-execution-with-non-durable-settings">399 <section·id="s-speeding-up-test-execution-with-non-durable-settings">
399 <span·id="speeding-up-test-execution-with-non-durable-settings"></span><h3>Speeding·up·test·execution·with·non-durable·settings<a·class="headerlink"·href="#speeding-up-test-execution-with-non-durable-settings"·title="Link·to·this·heading">¶</a></h3>400 <span·id="speeding-up-test-execution-with-non-durable-settings"></span><h3>Speeding·up·test·execution·with·non-durable·settings<a·class="headerlink"·href="#speeding-up-test-execution-with-non-durable-settings"·title="Link·to·this·heading">¶</a></h3>
400 <p>You·can·speed·up·test·execution·times·by·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/non-durability.html">configuring·PostgreSQL·to·be401 <p>You·can·speed·up·test·execution·times·by·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/non-durability.html">configuring·PostgreSQL·to·be
401 non-durable</a>.</p>402 non-durable</a>.</p>
402 <div·class="admonition·warning">403 <div·class="admonition·warning">
403 <p·class="admonition-title">Warning</p>404 <p·class="admonition-title">Avvertimento</p>
404 <p>This·is·dangerous:·it·will·make·your·database·more·susceptible·to·data·loss405 <p>This·is·dangerous:·it·will·make·your·database·more·susceptible·to·data·loss
405 or·corruption·in·the·case·of·a·server·crash·or·power·loss.·Only·use·this·on406 or·corruption·in·the·case·of·a·server·crash·or·power·loss.·Only·use·this·on
406 a·development·machine·where·you·can·easily·restore·the·entire·contents·of407 a·development·machine·where·you·can·easily·restore·the·entire·contents·of
407 all·databases·in·the·cluster.</p>408 all·databases·in·the·cluster.</p>
408 </div>409 </div>
409 </section>410 </section>
410 </section>411 </section>
Offset 429, 15 lines modifiedOffset 430, 15 lines modified
429 <section·id="s-storage-engines">430 <section·id="s-storage-engines">
430 <span·id="s-mysql-storage-engines"></span><span·id="storage-engines"></span><span·id="mysql-storage-engines"></span><h3>Storage·engines<a·class="headerlink"·href="#storage-engines"·title="Link·to·this·heading">¶</a></h3>431 <span·id="s-mysql-storage-engines"></span><span·id="storage-engines"></span><span·id="mysql-storage-engines"></span><h3>Storage·engines<a·class="headerlink"·href="#storage-engines"·title="Link·to·this·heading">¶</a></h3>
431 <p>MySQL·has·several·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/storage-engines.html">storage·engines</a>.·You·can·change·the·default·storage·engine432 <p>MySQL·has·several·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/storage-engines.html">storage·engines</a>.·You·can·change·the·default·storage·engine
432 in·the·server·configuration.</p>433 in·the·server·configuration.</p>
433 <p>MySQL’s·default·storage·engine·is·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/innodb-storage-engine.html">InnoDB</a>.·This·engine·is·fully·transactional434 <p>MySQL’s·default·storage·engine·is·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/innodb-storage-engine.html">InnoDB</a>.·This·engine·is·fully·transactional
434 and·supports·foreign·key·references.·It’s·the·recommended·choice.·However,·the435 and·supports·foreign·key·references.·It’s·the·recommended·choice.·However,·the
435 InnoDB·autoincrement·counter·is·lost·on·a·MySQL·restart·because·it·does·not436 InnoDB·autoincrement·counter·is·lost·on·a·MySQL·restart·because·it·does·not
436 remember·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTO_INCREMENT</span></code>·value,·instead·recreating·it·as·max(id)+1.437 remember·the·<code·class="docutils·literal·notranslate"><span·class="pre">AUTO_INCREMENT</span></code>·value,·instead·recreating·it·as·«max(id)+1».
437 This·may·result·in·an·inadvertent·reuse·of·<a·class="reference·internal"·href="models/fields.html#django.db.models.AutoField"·title="django.db.models.AutoField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AutoField</span></code></a>438 This·may·result·in·an·inadvertent·reuse·of·<a·class="reference·internal"·href="models/fields.html#django.db.models.AutoField"·title="django.db.models.AutoField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AutoField</span></code></a>
438 values.</p>439 values.</p>
439 <p>The·main·drawbacks·of·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/myisam-storage-engine.html">MyISAM</a>·are·that·it·doesn’t·support·transactions·or440 <p>The·main·drawbacks·of·<a·class="reference·external"·href="https://dev.mysql.com/doc/refman/en/myisam-storage-engine.html">MyISAM</a>·are·that·it·doesn’t·support·transactions·or
440 enforce·foreign-key·constraints.</p>441 enforce·foreign-key·constraints.</p>
441 </section>442 </section>
Max diff block lines reached; 15197/24078 bytes (63.12%) of diff not shown.
15.7 KB
html2text {}
Max HTML report size reached
46.3 KB
./usr/share/doc/python-django-doc/html/ref/django-admin.html
Max HTML report size reached
70.5 KB
./usr/share/doc/python-django-doc/html/ref/exceptions.html
Max HTML report size reached
27.7 KB
./usr/share/doc/python-django-doc/html/ref/files/file.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·File·object·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·File·object·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="File·storage·API"·href="storage.html"·/>15 ····<link·rel="next"·title="File·storage·API"·href="storage.html"·/>
15 ····<link·rel="prev"·title="File·handling"·href="index.html"·/>16 ····<link·rel="prev"·title="File·handling"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="the-file-object"></span><h1>The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object<a·class="headerlink"·href="#the-file-object"·title="Link·to·this·heading">¶</a></h1>82 <span·id="the-file-object"></span><h1>The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object<a·class="headerlink"·href="#the-file-object"·title="Link·to·this·heading">¶</a></h1>
82 <p>The·<a·class="reference·internal"·href="index.html#module-django.core.files"·title="django.core.files:·File·handling·and·storage"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.core.files</span></code></a>·module·and·its·submodules·contain·built-in·classes83 <p>The·<a·class="reference·internal"·href="index.html#module-django.core.files"·title="django.core.files:·File·handling·and·storage"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.core.files</span></code></a>·module·and·its·submodules·contain·built-in·classes
83 for·basic·file·handling·in·Django.</p>84 for·basic·file·handling·in·Django.</p>
84 <section·id="s-the-file-class">85 <section·id="s-the-file-class">
85 <span·id="the-file-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·class<a·class="headerlink"·href="#the-file-class"·title="Link·to·this·heading">¶</a></h2>86 <span·id="the-file-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·class<a·class="headerlink"·href="#the-file-class"·title="Link·to·this·heading">¶</a></h2>
86 <dl·class="py·class">87 <dl·class="py·class">
87 <dt·class="sig·sig-object·py"·id="django.core.files.File">88 <dt·class="sig·sig-object·py"·id="django.core.files.File">
88 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">File</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">file_object</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File"·title="Link·to·this·definition">¶</a></dt>89 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">File</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">file_object</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File"·title="Link·to·this·definition">¶</a></dt>
89 <dd><p>The·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·class·is·a·thin·wrapper·around·a·Python90 <dd><p>The·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·class·is·a·thin·wrapper·around·a·Python
90 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-file-object"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">file·object</span></a>·with·some·Django-specific·additions.91 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/glossary.html#term-file-object"·title="(in·Python·v3.12)"><span·class="xref·std·std-term">file·object</span></a>·with·some·Django-specific·additions.
91 Internally,·Django·uses·this·class·when·it·needs·to·represent·a·file.</p>92 Internally,·Django·uses·this·class·when·it·needs·to·represent·a·file.</p>
92 <p><a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·objects·have·the·following·attributes·and·methods:</p>93 <p><a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·objects·have·the·following·attributes·and·methods:</p>
93 <dl·class="py·attribute">94 <dl·class="py·attribute">
94 <dt·class="sig·sig-object·py"·id="django.core.files.File.name">95 <dt·class="sig·sig-object·py"·id="django.core.files.File.name">
95 <span·class="sig-name·descname"><span·class="pre">name</span></span><a·class="headerlink"·href="#django.core.files.File.name"·title="Link·to·this·definition">¶</a></dt>96 <span·class="sig-name·descname"><span·class="pre">name</span></span><a·class="headerlink"·href="#django.core.files.File.name"·title="Link·to·this·definition">¶</a></dt>
Offset 124, 49 lines modifiedOffset 125, 49 lines modified
124 <dt·class="sig·sig-object·py"·id="django.core.files.File.mode">125 <dt·class="sig·sig-object·py"·id="django.core.files.File.mode">
125 <span·class="sig-name·descname"><span·class="pre">mode</span></span><a·class="headerlink"·href="#django.core.files.File.mode"·title="Link·to·this·definition">¶</a></dt>126 <span·class="sig-name·descname"><span·class="pre">mode</span></span><a·class="headerlink"·href="#django.core.files.File.mode"·title="Link·to·this·definition">¶</a></dt>
126 <dd><p>The·read/write·mode·for·the·file.</p>127 <dd><p>The·read/write·mode·for·the·file.</p>
127 </dd></dl>128 </dd></dl>
  
128 <dl·class="py·method">129 <dl·class="py·method">
129 <dt·class="sig·sig-object·py"·id="django.core.files.File.open">130 <dt·class="sig·sig-object·py"·id="django.core.files.File.open">
130 <span·class="sig-name·descname"><span·class="pre">open</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">mode</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.open"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File.open"·title="Link·to·this·definition">¶</a></dt>131 <span·class="sig-name·descname"><span·class="pre">open</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">mode</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.open"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File.open"·title="Link·to·this·definition">¶</a></dt>
131 <dd><p>Open·or·reopen·the·file·(which·also·does·<code·class="docutils·literal·notranslate"><span·class="pre">File.seek(0)</span></code>).132 <dd><p>Open·or·reopen·the·file·(which·also·does·<code·class="docutils·literal·notranslate"><span·class="pre">File.seek(0)</span></code>).
132 The·<code·class="docutils·literal·notranslate"><span·class="pre">mode</span></code>·argument·allows·the·same·values133 The·<code·class="docutils·literal·notranslate"><span·class="pre">mode</span></code>·argument·allows·the·same·values
133 as·Python’s·built-in·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#open"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">open()</span></code></a>.</p>134 as·Python’s·built-in·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#open"·title="(in·Python·v3.12)"><code·class="docutils·literal·notranslate"><span·class="pre">open()</span></code></a>.</p>
134 <p>When·reopening·a·file,·<code·class="docutils·literal·notranslate"><span·class="pre">mode</span></code>·will·override·whatever·mode·the·file135 <p>When·reopening·a·file,·<code·class="docutils·literal·notranslate"><span·class="pre">mode</span></code>·will·override·whatever·mode·the·file
135 was·originally·opened·with;·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·means·to·reopen·with·the·original136 was·originally·opened·with;·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·means·to·reopen·with·the·original
136 mode.</p>137 mode.</p>
137 <p>It·can·be·used·as·a·context·manager,·e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">with</span>·<span·class="pre">file.open()</span>·<span·class="pre">as</span>·<span·class="pre">f:</span></code>.</p>138 <p>It·can·be·used·as·a·context·manager,·e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">with</span>·<span·class="pre">file.open()</span>·<span·class="pre">as</span>·<span·class="pre">f:</span></code>.</p>
138 </dd></dl>139 </dd></dl>
  
139 <dl·class="py·method">140 <dl·class="py·method">
140 <dt·class="sig·sig-object·py"·id="django.core.files.File.__iter__">141 <dt·class="sig·sig-object·py"·id="django.core.files.File.__iter__">
141 <span·class="sig-name·descname"><span·class="pre">__iter__</span></span>()<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.__iter__"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File.__iter__"·title="Link·to·this·definition">¶</a></dt>142 <span·class="sig-name·descname"><span·class="pre">__iter__</span></span>()<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.__iter__"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File.__iter__"·title="Link·to·this·definition">¶</a></dt>
142 <dd><p>Iterate·over·the·file·yielding·one·line·at·a·time.</p>143 <dd><p>Iterate·over·the·file·yielding·one·line·at·a·time.</p>
143 </dd></dl>144 </dd></dl>
  
144 <dl·class="py·method">145 <dl·class="py·method">
145 <dt·class="sig·sig-object·py"·id="django.core.files.File.chunks">146 <dt·class="sig·sig-object·py"·id="django.core.files.File.chunks">
146 <span·class="sig-name·descname"><span·class="pre">chunks</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">chunk_size</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.chunks"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File.chunks"·title="Link·to·this·definition">¶</a></dt>147 <span·class="sig-name·descname"><span·class="pre">chunks</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">chunk_size</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.chunks"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File.chunks"·title="Link·to·this·definition">¶</a></dt>
147 <dd><p>Iterate·over·the·file·yielding·chunks·of·a·given·size.·<code·class="docutils·literal·notranslate"><span·class="pre">chunk_size</span></code>148 <dd><p>Iterate·over·the·file·yielding·«chunks»·of·a·given·size.·<code·class="docutils·literal·notranslate"><span·class="pre">chunk_size</span></code>
148 defaults·to·64·KB.</p>149 defaults·to·64·KB.</p>
149 <p>This·is·especially·useful·with·very·large·files·since·it·allows·them·to150 <p>This·is·especially·useful·with·very·large·files·since·it·allows·them·to
150 be·streamed·off·disk·and·avoids·storing·the·whole·file·in·memory.</p>151 be·streamed·off·disk·and·avoids·storing·the·whole·file·in·memory.</p>
151 </dd></dl>152 </dd></dl>
  
152 <dl·class="py·method">153 <dl·class="py·method">
153 <dt·class="sig·sig-object·py"·id="django.core.files.File.multiple_chunks">154 <dt·class="sig·sig-object·py"·id="django.core.files.File.multiple_chunks">
154 <span·class="sig-name·descname"><span·class="pre">multiple_chunks</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">chunk_size</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.multiple_chunks"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File.multiple_chunks"·title="Link·to·this·definition">¶</a></dt>155 <span·class="sig-name·descname"><span·class="pre">multiple_chunks</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">chunk_size</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.multiple_chunks"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File.multiple_chunks"·title="Link·to·this·definition">¶</a></dt>
155 <dd><p>Returns·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·if·the·file·is·large·enough·to·require·multiple·chunks156 <dd><p>Returns·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·if·the·file·is·large·enough·to·require·multiple·chunks
156 to·access·all·of·its·content·give·some·<code·class="docutils·literal·notranslate"><span·class="pre">chunk_size</span></code>.</p>157 to·access·all·of·its·content·give·some·<code·class="docutils·literal·notranslate"><span·class="pre">chunk_size</span></code>.</p>
157 </dd></dl>158 </dd></dl>
  
158 <dl·class="py·method">159 <dl·class="py·method">
159 <dt·class="sig·sig-object·py"·id="django.core.files.File.close">160 <dt·class="sig·sig-object·py"·id="django.core.files.File.close">
160 <span·class="sig-name·descname"><span·class="pre">close</span></span>()<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.close"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.File.close"·title="Link·to·this·definition">¶</a></dt>161 <span·class="sig-name·descname"><span·class="pre">close</span></span>()<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#File.close"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.File.close"·title="Link·to·this·definition">¶</a></dt>
161 <dd><p>Close·the·file.</p>162 <dd><p>Close·the·file.</p>
162 </dd></dl>163 </dd></dl>
  
163 <p>In·addition·to·the·listed·methods,·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·exposes164 <p>In·addition·to·the·listed·methods,·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·exposes
164 the·following·attributes·and·methods·of·its·<code·class="docutils·literal·notranslate"><span·class="pre">file</span></code>·object:165 the·following·attributes·and·methods·of·its·<code·class="docutils·literal·notranslate"><span·class="pre">file</span></code>·object:
165 <code·class="docutils·literal·notranslate"><span·class="pre">encoding</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">fileno</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">flush</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">isatty</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">newlines</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">read</span></code>,166 <code·class="docutils·literal·notranslate"><span·class="pre">encoding</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">fileno</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">flush</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">isatty</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">newlines</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">read</span></code>,
166 <code·class="docutils·literal·notranslate"><span·class="pre">readinto</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">readline</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">readlines</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">seek</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">tell</span></code>,167 <code·class="docutils·literal·notranslate"><span·class="pre">readinto</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">readline</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">readlines</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">seek</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">tell</span></code>,
Offset 175, 15 lines modifiedOffset 176, 15 lines modified
175 </dd></dl>176 </dd></dl>
  
176 </section>177 </section>
177 <section·id="s-the-contentfile-class">178 <section·id="s-the-contentfile-class">
178 <span·id="the-contentfile-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentFile</span></code>·class<a·class="headerlink"·href="#the-contentfile-class"·title="Link·to·this·heading">¶</a></h2>179 <span·id="the-contentfile-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentFile</span></code>·class<a·class="headerlink"·href="#the-contentfile-class"·title="Link·to·this·heading">¶</a></h2>
179 <dl·class="py·class">180 <dl·class="py·class">
180 <dt·class="sig·sig-object·py"·id="django.core.files.base.ContentFile">181 <dt·class="sig·sig-object·py"·id="django.core.files.base.ContentFile">
181 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ContentFile</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">content</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#ContentFile"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.core.files.base.ContentFile"·title="Link·to·this·definition">¶</a></dt>182 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ContentFile</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">content</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/core/files/base.html#ContentFile"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.core.files.base.ContentFile"·title="Link·to·this·definition">¶</a></dt>
182 <dd><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentFile</span></code>·class·inherits·from·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>,183 <dd><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">ContentFile</span></code>·class·inherits·from·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>,
183 but·unlike·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·it·operates·on·string·content184 but·unlike·<a·class="reference·internal"·href="#django.core.files.File"·title="django.core.files.File"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">File</span></code></a>·it·operates·on·string·content
184 (bytes·also·supported),·rather·than·an·actual·file.·For·example:</p>185 (bytes·also·supported),·rather·than·an·actual·file.·For·example:</p>
185 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.files.base</span>·<span·class="kn">import</span>·<span·class="n">ContentFile</span>186 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.files.base</span>·<span·class="kn">import</span>·<span·class="n">ContentFile</span>
  
186 <span·class="n">f1</span>·<span·class="o">=</span>·<span·class="n">ContentFile</span><span·class="p">(</span><span·class="s2">&quot;esta·frase·está·en·español&quot;</span><span·class="p">)</span>187 <span·class="n">f1</span>·<span·class="o">=</span>·<span·class="n">ContentFile</span><span·class="p">(</span><span·class="s2">&quot;esta·frase·está·en·español&quot;</span><span·class="p">)</span>
187 <span·class="n">f2</span>·<span·class="o">=</span>·<span·class="n">ContentFile</span><span·class="p">(</span><span·class="sa">b</span><span·class="s2">&quot;these·are·bytes&quot;</span><span·class="p">)</span>188 <span·class="n">f2</span>·<span·class="o">=</span>·<span·class="n">ContentFile</span><span·class="p">(</span><span·class="sa">b</span><span·class="s2">&quot;these·are·bytes&quot;</span><span·class="p">)</span>
Offset 192, 15 lines modifiedOffset 193, 15 lines modified
192 </dd></dl>193 </dd></dl>
  
193 </section>194 </section>
194 <section·id="s-the-imagefile-class">195 <section·id="s-the-imagefile-class">
195 <span·id="the-imagefile-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">ImageFile</span></code>·class<a·class="headerlink"·href="#the-imagefile-class"·title="Link·to·this·heading">¶</a></h2>196 <span·id="the-imagefile-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">ImageFile</span></code>·class<a·class="headerlink"·href="#the-imagefile-class"·title="Link·to·this·heading">¶</a></h2>
Max diff block lines reached; 3996/21527 bytes (18.56%) of diff not shown.
6.57 KB
html2text {}
Max HTML report size reached
6.13 KB
./usr/share/doc/python-django-doc/html/ref/files/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>File·handling·&#8212;·Django·4.2.16·documentation</title>6 ····<title>File·handling·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·File·object"·href="file.html"·/>15 ····<link·rel="next"·title="The·File·object"·href="file.html"·/>
15 ····<link·rel="prev"·title="Django·Exceptions"·href="../exceptions.html"·/>16 ····<link·rel="prev"·title="Django·Exceptions"·href="../exceptions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 ······113 ······
113 ········114 ········
114 ··········<div·class="yui-b"·id="sidebar">115 ··········<div·class="yui-b"·id="sidebar">
115 ············116 ············
116 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">117 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
117 ········<div·class="sphinxsidebarwrapper">118 ········<div·class="sphinxsidebarwrapper">
118 ··<div>119 ··<div>
119 ····<h4>Previous·topic</h4>120 ····<h4>Argomento·precedente</h4>
120 ····<p·class="topless"><a·href="../exceptions.html"121 ····<p·class="topless"><a·href="../exceptions.html"
121 ··························title="previous·chapter">Django·Exceptions</a></p>122 ··························title="capitolo·precedente">Django·Exceptions</a></p>
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Next·topic</h4>125 ····<h4>Argomento·successivo</h4>
125 ····<p·class="topless"><a·href="file.html"126 ····<p·class="topless"><a·href="file.html"
126 ··························title="next·chapter">The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object</a></p>127 ··························title="capitolo·successivo">The·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object</a></p>
127 ··</div>128 ··</div>
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../../search.html"·method="get">132 ····<form·class="search"·action="../../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
2.17 KB
html2text {}
Max HTML report size reached
64.5 KB
./usr/share/doc/python-django-doc/html/ref/files/storage.html
Max HTML report size reached
46.4 KB
./usr/share/doc/python-django-doc/html/ref/files/uploads.html
Max HTML report size reached
66.4 KB
./usr/share/doc/python-django-doc/html/ref/forms/api.html
Max HTML report size reached
135 KB
./usr/share/doc/python-django-doc/html/ref/forms/fields.html
Max HTML report size reached
12.7 KB
./usr/share/doc/python-django-doc/html/ref/forms/formsets.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Formset·Functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Formset·Functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·form·rendering·API"·href="renderers.html"·/>15 ····<link·rel="next"·title="The·form·rendering·API"·href="renderers.html"·/>
15 ····<link·rel="prev"·title="Model·Form·Functions"·href="models.html"·/>16 ····<link·rel="prev"·title="Model·Form·Functions"·href="models.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="formset-functions"></span><h1>Formset·Functions<a·class="headerlink"·href="#formset-functions"·title="Link·to·this·heading">¶</a></h1>82 <span·id="formset-functions"></span><h1>Formset·Functions<a·class="headerlink"·href="#formset-functions"·title="Link·to·this·heading">¶</a></h1>
82 <p>Formset·API·reference.·For·introductory·material·about·formsets,·see·the83 <p>Formset·API·reference.·For·introductory·material·about·formsets,·see·the
83 <a·class="reference·internal"·href="../../topics/forms/formsets.html"><span·class="doc">Formsets</span></a>·topic·guide.</p>84 <a·class="reference·internal"·href="../../topics/forms/formsets.html"><span·class="doc">Formsets</span></a>·topic·guide.</p>
84 <section·id="s-formset-factory">85 <section·id="s-formset-factory">
85 <span·id="s-module-django.forms.formsets"></span><span·id="formset-factory"></span><span·id="module-django.forms.formsets"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">formset_factory</span></code><a·class="headerlink"·href="#formset-factory"·title="Link·to·this·heading">¶</a></h2>86 <span·id="s-module-django.forms.formsets"></span><span·id="formset-factory"></span><span·id="module-django.forms.formsets"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">formset_factory</span></code><a·class="headerlink"·href="#formset-factory"·title="Link·to·this·heading">¶</a></h2>
86 <dl·class="py·function">87 <dl·class="py·function">
87 <dt·class="sig·sig-object·py"·id="django.forms.formsets.formset_factory">88 <dt·class="sig·sig-object·py"·id="django.forms.formsets.formset_factory">
88 <span·class="sig-name·descname"><span·class="pre">formset_factory</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">form</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">formset</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">BaseFormSet</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">extra</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">1</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_order</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_delete</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">max_num</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validate_max</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">min_num</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validate_min</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">absolute_max</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_delete_extra</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">renderer</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#formset_factory"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.formset_factory"·title="Link·to·this·definition">¶</a></dt>89 <span·class="sig-name·descname"><span·class="pre">formset_factory</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">form</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">formset</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">BaseFormSet</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">extra</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">1</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_order</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_delete</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">max_num</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validate_max</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">min_num</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">validate_min</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">absolute_max</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">can_delete_extra</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">renderer</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#formset_factory"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.formset_factory"·title="Link·to·this·definition">¶</a></dt>
89 <dd><p>Returns·a·<code·class="docutils·literal·notranslate"><span·class="pre">FormSet</span></code>·class·for·the·given·<code·class="docutils·literal·notranslate"><span·class="pre">form</span></code>·class.</p>90 <dd><p>Returns·a·<code·class="docutils·literal·notranslate"><span·class="pre">FormSet</span></code>·class·for·the·given·<code·class="docutils·literal·notranslate"><span·class="pre">form</span></code>·class.</p>
90 <p>See·<a·class="reference·internal"·href="../../topics/forms/formsets.html"><span·class="doc">formsets</span></a>·for·example·usage.</p>91 <p>See·<a·class="reference·internal"·href="../../topics/forms/formsets.html"><span·class="doc">formsets</span></a>·for·example·usage.</p>
91 </dd></dl>92 </dd></dl>
  
92 </section>93 </section>
93 </section>94 </section>
  
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#formset-factory"><code·class="docutils·literal·notranslate"><span·class="pre">formset_factory</span></code></a></li>111 <li><a·class="reference·internal"·href="#formset-factory"><code·class="docutils·literal·notranslate"><span·class="pre">formset_factory</span></code></a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="models.html"118 ····<p·class="topless"><a·href="models.html"
118 ··························title="previous·chapter">Model·Form·Functions</a></p>119 ··························title="capitolo·precedente">Model·Form·Functions</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="renderers.html"123 ····<p·class="topless"><a·href="renderers.html"
123 ··························title="next·chapter">The·form·rendering·API</a></p>124 ··························title="capitolo·successivo">The·form·rendering·API</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../../search.html"·method="get">129 ····<form·class="search"·action="../../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.49 KB
html2text {}
Max HTML report size reached
8.98 KB
./usr/share/doc/python-django-doc/html/ref/forms/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Forms·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Forms·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·Forms·API"·href="api.html"·/>15 ····<link·rel="next"·title="The·Forms·API"·href="api.html"·/>
15 ····<link·rel="prev"·title="Uploaded·Files·and·Upload·Handlers"·href="../files/uploads.html"·/>16 ····<link·rel="prev"·title="Uploaded·Files·and·Upload·Handlers"·href="../files/uploads.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 <ul>86 <ul>
86 <li·class="toctree-l1"><a·class="reference·internal"·href="api.html">The·Forms·API</a><ul>87 <li·class="toctree-l1"><a·class="reference·internal"·href="api.html">The·Forms·API</a><ul>
87 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#bound-and-unbound-forms">Bound·and·unbound·forms</a></li>88 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#bound-and-unbound-forms">Bound·and·unbound·forms</a></li>
88 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#using-forms-to-validate-data">Using·forms·to·validate·data</a></li>89 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#using-forms-to-validate-data">Using·forms·to·validate·data</a></li>
89 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#initial-form-values">Initial·form·values</a></li>90 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#initial-form-values">Initial·form·values</a></li>
90 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#checking-which-form-data-has-changed">Checking·which·form·data·has·changed</a></li>91 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#checking-which-form-data-has-changed">Checking·which·form·data·has·changed</a></li>
91 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#accessing-the-fields-from-the-form">Accessing·the·fields·from·the·form</a></li>92 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#accessing-the-fields-from-the-form">Accessing·the·fields·from·the·form</a></li>
92 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#accessing-clean-data">Accessing·clean·data</a></li>93 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#accessing-clean-data">Accessing·«clean»·data</a></li>
93 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#outputting-forms-as-html">Outputting·forms·as·HTML</a></li>94 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#outputting-forms-as-html">Outputting·forms·as·HTML</a></li>
94 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#more-granular-output">More·granular·output</a></li>95 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#more-granular-output">More·granular·output</a></li>
95 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#customizing-boundfield">Customizing·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code></a></li>96 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#customizing-boundfield">Customizing·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code></a></li>
96 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#binding-uploaded-files-to-a-form">Binding·uploaded·files·to·a·form</a></li>97 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#binding-uploaded-files-to-a-form">Binding·uploaded·files·to·a·form</a></li>
97 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#subclassing-forms">Subclassing·forms</a></li>98 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#subclassing-forms">Subclassing·forms</a></li>
98 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#prefixes-for-forms">Prefixes·for·forms</a></li>99 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#prefixes-for-forms">Prefixes·for·forms</a></li>
99 </ul>100 </ul>
Offset 153, 37 lines modifiedOffset 154, 37 lines modified
153 ······154 ······
154 ········155 ········
155 ··········<div·class="yui-b"·id="sidebar">156 ··········<div·class="yui-b"·id="sidebar">
156 ············157 ············
157 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">158 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
158 ········<div·class="sphinxsidebarwrapper">159 ········<div·class="sphinxsidebarwrapper">
159 ··<div>160 ··<div>
160 ····<h4>Previous·topic</h4>161 ····<h4>Argomento·precedente</h4>
161 ····<p·class="topless"><a·href="../files/uploads.html"162 ····<p·class="topless"><a·href="../files/uploads.html"
162 ··························title="previous·chapter">Uploaded·Files·and·Upload·Handlers</a></p>163 ··························title="capitolo·precedente">Uploaded·Files·and·Upload·Handlers</a></p>
163 ··</div>164 ··</div>
164 ··<div>165 ··<div>
165 ····<h4>Next·topic</h4>166 ····<h4>Argomento·successivo</h4>
166 ····<p·class="topless"><a·href="api.html"167 ····<p·class="topless"><a·href="api.html"
167 ··························title="next·chapter">The·Forms·API</a></p>168 ··························title="capitolo·successivo">The·Forms·API</a></p>
168 ··</div>169 ··</div>
169 <search·id="searchbox"·style="display:·none"·role="search">170 <search·id="searchbox"·style="display:·none"·role="search">
170 ··<h3·id="searchlabel">Quick·search</h3>171 ··<h3·id="searchlabel">Ricerca·veloce</h3>
171 ····<div·class="searchformwrapper">172 ····<div·class="searchformwrapper">
172 ····<form·class="search"·action="../../search.html"·method="get">173 ····<form·class="search"·action="../../search.html"·method="get">
173 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>174 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
174 ······<input·type="submit"·value="Go"·/>175 ······<input·type="submit"·value="Vai"·/>
175 ····</form>176 ····</form>
176 ····</div>177 ····</div>
177 </search>178 </search>
178 <script>document.getElementById('searchbox').style.display·=·"block"</script>179 <script>document.getElementById('searchbox').style.display·=·"block"</script>
179 ········</div>180 ········</div>
180 ······</div>181 ······</div>
181 ··············<h3>Last·update:</h3>182 ··············<h3>Last·update:</h3>
182 ··············<p·class="topless">Sep·03,·2024</p>183 ··············<p·class="topless">set·03,·2024</p>
183 ··········</div>184 ··········</div>
184 ········185 ········
185 ······186 ······
186 ····</div>187 ····</div>
  
187 ····<div·id="ft">188 ····<div·id="ft">
188 ······<div·class="nav">189 ······<div·class="nav">
3.29 KB
html2text {}
Max HTML report size reached
41.7 KB
./usr/share/doc/python-django-doc/html/ref/forms/models.html
Max HTML report size reached
32.1 KB
./usr/share/doc/python-django-doc/html/ref/forms/renderers.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>The·form·rendering·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>The·form·rendering·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Widgets"·href="widgets.html"·/>15 ····<link·rel="next"·title="Widgets"·href="widgets.html"·/>
15 ····<link·rel="prev"·title="Formset·Functions"·href="formsets.html"·/>16 ····<link·rel="prev"·title="Formset·Functions"·href="formsets.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 105, 26 lines modifiedOffset 106, 26 lines modified
105 discussion.</p>106 discussion.</p>
106 <p>Use·one·of·the·<a·class="reference·internal"·href="#built-in-template-form-renderers"><span·class="std·std-ref">built-in·template·form·renderers</span></a>·or·implement·your·own.·Custom·renderers107 <p>Use·one·of·the·<a·class="reference·internal"·href="#built-in-template-form-renderers"><span·class="std·std-ref">built-in·template·form·renderers</span></a>·or·implement·your·own.·Custom·renderers
107 must·implement·a·<code·class="docutils·literal·notranslate"><span·class="pre">render(template_name,</span>·<span·class="pre">context,</span>·<span·class="pre">request=None)</span></code>·method.·It108 must·implement·a·<code·class="docutils·literal·notranslate"><span·class="pre">render(template_name,</span>·<span·class="pre">context,</span>·<span·class="pre">request=None)</span></code>·method.·It
108 should·return·a·rendered·templates·(as·a·string)·or·raise109 should·return·a·rendered·templates·(as·a·string)·or·raise
109 <a·class="reference·internal"·href="../../topics/templates.html#django.template.TemplateDoesNotExist"·title="django.template.TemplateDoesNotExist"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">TemplateDoesNotExist</span></code></a>.</p>110 <a·class="reference·internal"·href="../../topics/templates.html#django.template.TemplateDoesNotExist"·title="django.template.TemplateDoesNotExist"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">TemplateDoesNotExist</span></code></a>.</p>
110 <dl·class="py·class">111 <dl·class="py·class">
111 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer">112 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer">
112 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseRenderer</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer"·title="Link·to·this·definition">¶</a></dt>113 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseRenderer</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer"·title="Link·to·this·definition">¶</a></dt>
113 <dd><p>The·base·class·for·the·built-in·form·renderers.</p>114 <dd><p>The·base·class·for·the·built-in·form·renderers.</p>
114 <dl·class="py·attribute">115 <dl·class="py·attribute">
115 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.form_template_name">116 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.form_template_name">
116 <span·class="sig-name·descname"><span·class="pre">form_template_name</span></span><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.form_template_name"·title="Link·to·this·definition">¶</a></dt>117 <span·class="sig-name·descname"><span·class="pre">form_template_name</span></span><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.form_template_name"·title="Link·to·this·definition">¶</a></dt>
117 <dd><div·class="versionadded">118 <dd><div·class="versionadded">
118 <span·class="title">New·in·Django·4.1.</span>·</div>119 <span·class="title">New·in·Django·4.1.</span>·</div>
119 <p>The·default·name·of·the·template·to·use·to·render·a·form.</p>120 <p>The·default·name·of·the·template·to·use·to·render·a·form.</p>
120 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/default.html&quot;</span></code>,·which·is·a·proxy·for121 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/default.html&quot;</span></code>,·which·is·a·proxy·for
121 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/table.html&quot;</span></code>.</p>122 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/table.html&quot;</span></code>.</p>
122 <div·class="deprecated">123 <div·class="deprecated">
123 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.1.</span></p>124 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.1.</span></p>
124 </div>125 </div>
125 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/default.html&quot;</span></code>·template·is·deprecated·and·will·be126 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/default.html&quot;</span></code>·template·is·deprecated·and·will·be
126 removed·in·Django·5.0.·The·default·will·become127 removed·in·Django·5.0.·The·default·will·become
127 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/div.html&quot;</span></code>·at·that·time.</p>128 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/div.html&quot;</span></code>·at·that·time.</p>
128 </dd></dl>129 </dd></dl>
  
129 <dl·class="py·attribute">130 <dl·class="py·attribute">
Offset 132, 59 lines modifiedOffset 133, 59 lines modified
132 <span·class="sig-name·descname"><span·class="pre">formset_template_name</span></span><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.formset_template_name"·title="Link·to·this·definition">¶</a></dt>133 <span·class="sig-name·descname"><span·class="pre">formset_template_name</span></span><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.formset_template_name"·title="Link·to·this·definition">¶</a></dt>
133 <dd><div·class="versionadded">134 <dd><div·class="versionadded">
134 <span·class="title">New·in·Django·4.1.</span>·</div>135 <span·class="title">New·in·Django·4.1.</span>·</div>
135 <p>The·default·name·of·the·template·to·use·to·render·a·formset.</p>136 <p>The·default·name·of·the·template·to·use·to·render·a·formset.</p>
136 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formsets/default.html&quot;</span></code>,·which·is·a·proxy137 <p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formsets/default.html&quot;</span></code>,·which·is·a·proxy
137 for·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formsets/table.html&quot;</span></code>.</p>138 for·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formsets/table.html&quot;</span></code>.</p>
138 <div·class="deprecated">139 <div·class="deprecated">
139 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.1.</span></p>140 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.1.</span></p>
140 </div>141 </div>
141 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formset/default.html&quot;</span></code>·template·is·deprecated·and142 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formset/default.html&quot;</span></code>·template·is·deprecated·and
142 will·be·removed·in·Django·5.0.·The·default·will·become143 will·be·removed·in·Django·5.0.·The·default·will·become
143 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formset/div.html&quot;</span></code>·template.</p>144 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/formset/div.html&quot;</span></code>·template.</p>
144 </dd></dl>145 </dd></dl>
  
145 <dl·class="py·method">146 <dl·class="py·method">
146 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.get_template">147 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.get_template">
147 <span·class="sig-name·descname"><span·class="pre">get_template</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer.get_template"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.get_template"·title="Link·to·this·definition">¶</a></dt>148 <span·class="sig-name·descname"><span·class="pre">get_template</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer.get_template"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.get_template"·title="Link·to·this·definition">¶</a></dt>
148 <dd><p>Subclasses·must·implement·this·method·with·the·appropriate·template149 <dd><p>Subclasses·must·implement·this·method·with·the·appropriate·template
149 finding·logic.</p>150 finding·logic.</p>
150 </dd></dl>151 </dd></dl>
  
151 <dl·class="py·method">152 <dl·class="py·method">
152 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.render">153 <dt·class="sig·sig-object·py"·id="django.forms.renderers.BaseRenderer.render">
153 <span·class="sig-name·descname"><span·class="pre">render</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">context</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer.render"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.render"·title="Link·to·this·definition">¶</a></dt>154 <span·class="sig-name·descname"><span·class="pre">render</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">context</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#BaseRenderer.render"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.BaseRenderer.render"·title="Link·to·this·definition">¶</a></dt>
154 <dd><p>Renders·the·given·template,·or·raises155 <dd><p>Renders·the·given·template,·or·raises
155 <a·class="reference·internal"·href="../../topics/templates.html#django.template.TemplateDoesNotExist"·title="django.template.TemplateDoesNotExist"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">TemplateDoesNotExist</span></code></a>.</p>156 <a·class="reference·internal"·href="../../topics/templates.html#django.template.TemplateDoesNotExist"·title="django.template.TemplateDoesNotExist"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">TemplateDoesNotExist</span></code></a>.</p>
156 </dd></dl>157 </dd></dl>
  
157 </dd></dl>158 </dd></dl>
  
158 </section>159 </section>
159 <section·id="s-built-in-template-form-renderers">160 <section·id="s-built-in-template-form-renderers">
160 <span·id="s-id1"></span><span·id="built-in-template-form-renderers"></span><span·id="id1"></span><h2>Built-in-template·form·renderers<a·class="headerlink"·href="#built-in-template-form-renderers"·title="Link·to·this·heading">¶</a></h2>161 <span·id="s-id1"></span><span·id="built-in-template-form-renderers"></span><span·id="id1"></span><h2>Built-in-template·form·renderers<a·class="headerlink"·href="#built-in-template-form-renderers"·title="Link·to·this·heading">¶</a></h2>
161 <section·id="s-djangotemplates">162 <section·id="s-djangotemplates">
162 <span·id="djangotemplates"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code><a·class="headerlink"·href="#djangotemplates"·title="Link·to·this·heading">¶</a></h3>163 <span·id="djangotemplates"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code><a·class="headerlink"·href="#djangotemplates"·title="Link·to·this·heading">¶</a></h3>
163 <dl·class="py·class">164 <dl·class="py·class">
164 <dt·class="sig·sig-object·py"·id="django.forms.renderers.DjangoTemplates">165 <dt·class="sig·sig-object·py"·id="django.forms.renderers.DjangoTemplates">
165 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">DjangoTemplates</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#DjangoTemplates"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.DjangoTemplates"·title="Link·to·this·definition">¶</a></dt>166 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">DjangoTemplates</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#DjangoTemplates"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.DjangoTemplates"·title="Link·to·this·definition">¶</a></dt>
166 <dd></dd></dl>167 <dd></dd></dl>
  
167 <p>This·renderer·uses·a·standalone168 <p>This·renderer·uses·a·standalone
168 <a·class="reference·internal"·href="../../topics/templates.html#django.template.backends.django.DjangoTemplates"·title="django.template.backends.django.DjangoTemplates"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code></a>169 <a·class="reference·internal"·href="../../topics/templates.html#django.template.backends.django.DjangoTemplates"·title="django.template.backends.django.DjangoTemplates"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code></a>
169 engine·(unconnected·to·what·you·might·have·configured·in·the170 engine·(unconnected·to·what·you·might·have·configured·in·the
170 <a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>·setting).·It·loads·templates·first·from·the·built-in·form171 <a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>·setting).·It·loads·templates·first·from·the·built-in·form
171 templates·directory·in·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/forms/templates">django/forms/templates</a>·and·then·from·the172 templates·directory·in·<a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/forms/templates">django/forms/templates</a>·and·then·from·the
172 installed·apps·templates·directories·using·the·<a·class="reference·internal"·href="../templates/api.html#django.template.loaders.app_directories.Loader"·title="django.template.loaders.app_directories.Loader"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">app_directories</span></code></a>·loader.</p>173 installed·apps·templates·directories·using·the·<a·class="reference·internal"·href="../templates/api.html#django.template.loaders.app_directories.Loader"·title="django.template.loaders.app_directories.Loader"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">app_directories</span></code></a>·loader.</p>
173 <p>If·you·want·to·render·templates·with·customizations·from·your174 <p>If·you·want·to·render·templates·with·customizations·from·your
174 <a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>·setting,·such·as·context·processors·for·example,·use·the175 <a·class="reference·internal"·href="../settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>·setting,·such·as·context·processors·for·example,·use·the
175 <a·class="reference·internal"·href="#django.forms.renderers.TemplatesSetting"·title="django.forms.renderers.TemplatesSetting"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplatesSetting</span></code></a>·renderer.</p>176 <a·class="reference·internal"·href="#django.forms.renderers.TemplatesSetting"·title="django.forms.renderers.TemplatesSetting"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplatesSetting</span></code></a>·renderer.</p>
176 <dl·class="py·class">177 <dl·class="py·class">
177 <dt·class="sig·sig-object·py"·id="django.forms.renderers.DjangoDivFormRenderer">178 <dt·class="sig·sig-object·py"·id="django.forms.renderers.DjangoDivFormRenderer">
178 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">DjangoDivFormRenderer</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#DjangoDivFormRenderer"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.DjangoDivFormRenderer"·title="Link·to·this·definition">¶</a></dt>179 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">DjangoDivFormRenderer</span></span><a·class="reference·internal"·href="../../_modules/django/forms/renderers.html#DjangoDivFormRenderer"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.renderers.DjangoDivFormRenderer"·title="Link·to·this·definition">¶</a></dt>
179 <dd></dd></dl>180 <dd></dd></dl>
  
180 <div·class="versionadded">181 <div·class="versionadded">
181 <span·class="title">New·in·Django·4.1.</span>·</div>182 <span·class="title">New·in·Django·4.1.</span>·</div>
182 <p>Subclass·of·<a·class="reference·internal"·href="#django.forms.renderers.DjangoTemplates"·title="django.forms.renderers.DjangoTemplates"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code></a>·that·specifies183 <p>Subclass·of·<a·class="reference·internal"·href="#django.forms.renderers.DjangoTemplates"·title="django.forms.renderers.DjangoTemplates"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code></a>·that·specifies
183 <a·class="reference·internal"·href="#django.forms.renderers.BaseRenderer.form_template_name"·title="django.forms.renderers.BaseRenderer.form_template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_template_name</span></code></a>·and184 <a·class="reference·internal"·href="#django.forms.renderers.BaseRenderer.form_template_name"·title="django.forms.renderers.BaseRenderer.form_template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_template_name</span></code></a>·and
184 <a·class="reference·internal"·href="#django.forms.renderers.BaseRenderer.formset_template_name"·title="django.forms.renderers.BaseRenderer.formset_template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">formset_template_name</span></code></a>·as·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/div.html&quot;</span></code>·and185 <a·class="reference·internal"·href="#django.forms.renderers.BaseRenderer.formset_template_name"·title="django.forms.renderers.BaseRenderer.formset_template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">formset_template_name</span></code></a>·as·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;django/forms/div.html&quot;</span></code>·and
Offset 199, 29 lines modifiedOffset 200, 29 lines modified
Max diff block lines reached; 8354/23614 bytes (35.38%) of diff not shown.
8.91 KB
html2text {}
Max HTML report size reached
13.1 KB
./usr/share/doc/python-django-doc/html/ref/forms/validation.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Form·and·field·validation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Form·and·field·validation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Logging"·href="../logging.html"·/>15 ····<link·rel="next"·title="Logging"·href="../logging.html"·/>
15 ····<link·rel="prev"·title="Widgets"·href="widgets.html"·/>16 ····<link·rel="prev"·title="Widgets"·href="widgets.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 137, 23 lines modifiedOffset 138, 23 lines modified
137 the·data.</p>138 the·data.</p>
138 <p>The·return·value·of·this·method·replaces·the·existing·value·in139 <p>The·return·value·of·this·method·replaces·the·existing·value·in
139 <code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>,·so·it·must·be·the·field’s·value·from·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>·(even140 <code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>,·so·it·must·be·the·field’s·value·from·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>·(even
140 if·this·method·didn’t·change·it)·or·a·new·cleaned·value.</p>141 if·this·method·didn’t·change·it)·or·a·new·cleaned·value.</p>
141 </li>142 </li>
142 <li><p>The·form·subclass’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·can·perform·validation·that·requires143 <li><p>The·form·subclass’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·can·perform·validation·that·requires
143 access·to·multiple·form·fields.·This·is·where·you·might·put·in·checks·such·as144 access·to·multiple·form·fields.·This·is·where·you·might·put·in·checks·such·as
144 if·field·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·is·supplied,·field·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·must·contain·a·valid·email·address.145 «if·field·<code·class="docutils·literal·notranslate"><span·class="pre">A</span></code>·is·supplied,·field·<code·class="docutils·literal·notranslate"><span·class="pre">B</span></code>·must·contain·a·valid·email·address».
145 This·method·can·return·a·completely·different·dictionary·if·it·wishes,·which146 This·method·can·return·a·completely·different·dictionary·if·it·wishes,·which
146 will·be·used·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>.</p>147 will·be·used·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>.</p>
147 <p>Since·the·field·validation·methods·have·been·run·by·the·time·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·is148 <p>Since·the·field·validation·methods·have·been·run·by·the·time·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·is
148 called,·you·also·have·access·to·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">errors</span></code>·attribute·which149 called,·you·also·have·access·to·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">errors</span></code>·attribute·which
149 contains·all·the·errors·raised·by·cleaning·of·individual·fields.</p>150 contains·all·the·errors·raised·by·cleaning·of·individual·fields.</p>
150 <p>Note·that·any·errors·raised·by·your·<a·class="reference·internal"·href="api.html#django.forms.Form.clean"·title="django.forms.Form.clean"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code></a>·override·will·not151 <p>Note·that·any·errors·raised·by·your·<a·class="reference·internal"·href="api.html#django.forms.Form.clean"·title="django.forms.Form.clean"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code></a>·override·will·not
151 be·associated·with·any·field·in·particular.·They·go·into·a·special152 be·associated·with·any·field·in·particular.·They·go·into·a·special
152 field·(called·<code·class="docutils·literal·notranslate"><span·class="pre">__all__</span></code>),·which·you·can·access·via·the153 «field»·(called·<code·class="docutils·literal·notranslate"><span·class="pre">__all__</span></code>),·which·you·can·access·via·the
153 <a·class="reference·internal"·href="api.html#django.forms.Form.non_field_errors"·title="django.forms.Form.non_field_errors"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">non_field_errors()</span></code></a>·method·if·you·need·to.·If·you154 <a·class="reference·internal"·href="api.html#django.forms.Form.non_field_errors"·title="django.forms.Form.non_field_errors"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">non_field_errors()</span></code></a>·method·if·you·need·to.·If·you
154 want·to·attach·errors·to·a·specific·field·in·the·form,·you·need·to·call155 want·to·attach·errors·to·a·specific·field·in·the·form,·you·need·to·call
155 <a·class="reference·internal"·href="api.html#django.forms.Form.add_error"·title="django.forms.Form.add_error"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">add_error()</span></code></a>.</p>156 <a·class="reference·internal"·href="api.html#django.forms.Form.add_error"·title="django.forms.Form.add_error"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">add_error()</span></code></a>.</p>
156 <p>Also·note·that·there·are·special·considerations·when·overriding157 <p>Also·note·that·there·are·special·considerations·when·overriding
157 the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·subclass.·(see·the158 the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·subclass.·(see·the
158 <a·class="reference·internal"·href="../../topics/forms/modelforms.html#overriding-modelform-clean-method"><span·class="std·std-ref">ModelForm·documentation</span></a>·for·more·information)</p>159 <a·class="reference·internal"·href="../../topics/forms/modelforms.html#overriding-modelform-clean-method"><span·class="std·std-ref">ModelForm·documentation</span></a>·for·more·information)</p>
159 </li>160 </li>
Offset 433, 15 lines modifiedOffset 434, 15 lines modified
433 ····<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">clean</span><span·class="p">()</span>434 ····<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">clean</span><span·class="p">()</span>
434 ····<span·class="n">cc_myself</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;cc_myself&quot;</span><span·class="p">)</span>435 ····<span·class="n">cc_myself</span>·<span·class="o">=</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">cleaned_data</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="s2">&quot;cc_myself&quot;</span><span·class="p">)</span>
435 ····<span·class="o">...</span>436 ····<span·class="o">...</span>
436 </pre></div>437 </pre></div>
437 </div>438 </div>
438 <p>The·second·approach·for·reporting·validation·errors·might·involve·assigning·the439 <p>The·second·approach·for·reporting·validation·errors·might·involve·assigning·the
439 error·message·to·one·of·the·fields.·In·this·case,·let’s·assign·an·error·message440 error·message·to·one·of·the·fields.·In·this·case,·let’s·assign·an·error·message
440 to·both·the·subject·and·cc_myself·rows·in·the·form·display.·Be·careful·when441 to·both·the·«subject»·and·«cc_myself»·rows·in·the·form·display.·Be·careful·when
441 doing·this·in·practice,·since·it·can·lead·to·confusing·form·output.·We’re442 doing·this·in·practice,·since·it·can·lead·to·confusing·form·output.·We’re
442 showing·what·is·possible·here·and·leaving·it·up·to·you·and·your·designers·to443 showing·what·is·possible·here·and·leaving·it·up·to·you·and·your·designers·to
443 work·out·what·works·effectively·in·your·particular·situation.·Our·new·code444 work·out·what·works·effectively·in·your·particular·situation.·Our·new·code
444 (replacing·the·previous·sample)·looks·like·this:</p>445 (replacing·the·previous·sample)·looks·like·this:</p>
445 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>446 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
  
  
Offset 495, 37 lines modifiedOffset 496, 37 lines modified
495 </li>496 </li>
496 </ul>497 </ul>
497 </li>498 </li>
498 </ul>499 </ul>
  
499 ··</div>500 ··</div>
500 ··<div>501 ··<div>
501 ····<h4>Previous·topic</h4>502 ····<h4>Argomento·precedente</h4>
502 ····<p·class="topless"><a·href="widgets.html"503 ····<p·class="topless"><a·href="widgets.html"
503 ··························title="previous·chapter">Widgets</a></p>504 ··························title="capitolo·precedente">Widgets</a></p>
504 ··</div>505 ··</div>
505 ··<div>506 ··<div>
506 ····<h4>Next·topic</h4>507 ····<h4>Argomento·successivo</h4>
507 ····<p·class="topless"><a·href="../logging.html"508 ····<p·class="topless"><a·href="../logging.html"
508 ··························title="next·chapter">Logging</a></p>509 ··························title="capitolo·successivo">Logging</a></p>
509 ··</div>510 ··</div>
510 <search·id="searchbox"·style="display:·none"·role="search">511 <search·id="searchbox"·style="display:·none"·role="search">
511 ··<h3·id="searchlabel">Quick·search</h3>512 ··<h3·id="searchlabel">Ricerca·veloce</h3>
512 ····<div·class="searchformwrapper">513 ····<div·class="searchformwrapper">
513 ····<form·class="search"·action="../../search.html"·method="get">514 ····<form·class="search"·action="../../search.html"·method="get">
514 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>515 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
515 ······<input·type="submit"·value="Go"·/>516 ······<input·type="submit"·value="Vai"·/>
516 ····</form>517 ····</form>
517 ····</div>518 ····</div>
518 </search>519 </search>
519 <script>document.getElementById('searchbox').style.display·=·"block"</script>520 <script>document.getElementById('searchbox').style.display·=·"block"</script>
520 ········</div>521 ········</div>
521 ······</div>522 ······</div>
522 ··············<h3>Last·update:</h3>523 ··············<h3>Last·update:</h3>
523 ··············<p·class="topless">Sep·03,·2024</p>524 ··············<p·class="topless">set·03,·2024</p>
524 ··········</div>525 ··········</div>
525 ········526 ········
526 ······527 ······
527 ····</div>528 ····</div>
  
528 ····<div·id="ft">529 ····<div·id="ft">
529 ······<div·class="nav">530 ······<div·class="nav">
4.99 KB
html2text {}
Max HTML report size reached
114 KB
./usr/share/doc/python-django-doc/html/ref/forms/widgets.html
Max HTML report size reached
6.74 KB
./usr/share/doc/python-django-doc/html/ref/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>API·Reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>API·Reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Applications"·href="applications.html"·/>15 ····<link·rel="next"·title="Applications"·href="applications.html"·/>
15 ····<link·rel="prev"·title="Troubleshooting"·href="../faq/troubleshooting.html"·/>16 ····<link·rel="prev"·title="Troubleshooting"·href="../faq/troubleshooting.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../faq/troubleshooting.html"·title="Troubleshooting">previous</a>67 ····&laquo;·<a·href="../faq/troubleshooting.html"·title="Troubleshooting">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="applications.html"·title="Applications">next</a>·&raquo;</div>71 ····<a·href="applications.html"·title="Applications">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 122, 47 lines modifiedOffset 123, 47 lines modified
122 ······123 ······
123 ········124 ········
124 ··········<div·class="yui-b"·id="sidebar">125 ··········<div·class="yui-b"·id="sidebar">
125 ············126 ············
126 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">127 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
127 ········<div·class="sphinxsidebarwrapper">128 ········<div·class="sphinxsidebarwrapper">
128 ··<div>129 ··<div>
129 ····<h4>Previous·topic</h4>130 ····<h4>Argomento·precedente</h4>
130 ····<p·class="topless"><a·href="../faq/troubleshooting.html"131 ····<p·class="topless"><a·href="../faq/troubleshooting.html"
131 ··························title="previous·chapter">Troubleshooting</a></p>132 ··························title="capitolo·precedente">Troubleshooting</a></p>
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Next·topic</h4>135 ····<h4>Argomento·successivo</h4>
135 ····<p·class="topless"><a·href="applications.html"136 ····<p·class="topless"><a·href="applications.html"
136 ··························title="next·chapter">Applications</a></p>137 ··························title="capitolo·successivo">Applications</a></p>
137 ··</div>138 ··</div>
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../search.html"·method="get">142 ····<form·class="search"·action="../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
158 ····&laquo;·<a·href="../faq/troubleshooting.html"·title="Troubleshooting">previous</a>159 ····&laquo;·<a·href="../faq/troubleshooting.html"·title="Troubleshooting">previous</a>
159 ·····|160 ·····|
160 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>161 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
161 ···|162 ···|
162 ····<a·href="applications.html"·title="Applications">next</a>·&raquo;</div>163 ····<a·href="applications.html"·title="Applications">next</a>·&raquo;</div>
163 ····</div>164 ····</div>
164 ··</div>165 ··</div>
  
165 ······<div·class="clearer"></div>166 ······<div·class="clearer"></div>
166 ····</div>167 ····</div>
2.13 KB
html2text {}
Max HTML report size reached
25.3 KB
./usr/share/doc/python-django-doc/html/ref/logging.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Logging·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Logging·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Middleware"·href="middleware.html"·/>15 ····<link·rel="next"·title="Middleware"·href="middleware.html"·/>
15 ····<link·rel="prev"·title="Form·and·field·validation"·href="forms/validation.html"·/>16 ····<link·rel="prev"·title="Form·and·field·validation"·href="forms/validation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-logging">79 ··········<div·class="yui-g"·id="ref-logging">
79 ············80 ············
80 ··<section·id="s-logging">81 ··<section·id="s-logging">
81 <span·id="s-logging-ref"></span><span·id="logging"></span><span·id="logging-ref"></span><h1>Logging<a·class="headerlink"·href="#logging"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-logging-ref"></span><span·id="logging"></span><span·id="logging-ref"></span><h1>Logging<a·class="headerlink"·href="#logging"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·seealso">83 <div·class="admonition·seealso">
83 <p·class="admonition-title">See·also</p>84 <p·class="admonition-title">Vedi·anche</p>
84 <ul·class="simple">85 <ul·class="simple">
85 <li><p><a·class="reference·internal"·href="../howto/logging.html#logging-how-to"><span·class="std·std-ref">How·to·configure·and·use·logging</span></a></p></li>86 <li><p><a·class="reference·internal"·href="../howto/logging.html#logging-how-to"><span·class="std·std-ref">How·to·configure·and·use·logging</span></a></p></li>
86 <li><p><a·class="reference·internal"·href="../topics/logging.html#logging-explanation"><span·class="std·std-ref">Django·logging·overview</span></a></p></li>87 <li><p><a·class="reference·internal"·href="../topics/logging.html#logging-explanation"><span·class="std·std-ref">Django·logging·overview</span></a></p></li>
87 </ul>88 </ul>
88 </div>89 </div>
89 <p·id="module-django.utils.log">Django’s·logging·module·extends·Python’s·builtin·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/logging.html#module-logging"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">logging</span></code></a>.</p>90 <p·id="module-django.utils.log">Django’s·logging·module·extends·Python’s·builtin·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/logging.html#module-logging"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">logging</span></code></a>.</p>
90 <p>Logging·is·configured·as·part·of·the·general·Django·<a·class="reference·internal"·href="applications.html#django.setup"·title="django.setup"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.setup()</span></code></a>91 <p>Logging·is·configured·as·part·of·the·general·Django·<a·class="reference·internal"·href="applications.html#django.setup"·title="django.setup"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.setup()</span></code></a>
Offset 303, 21 lines modifiedOffset 304, 21 lines modified
303 </section>304 </section>
304 <section·id="s-handlers">305 <section·id="s-handlers">
305 <span·id="handlers"></span><h3>Handlers<a·class="headerlink"·href="#handlers"·title="Link·to·this·heading">¶</a></h3>306 <span·id="handlers"></span><h3>Handlers<a·class="headerlink"·href="#handlers"·title="Link·to·this·heading">¶</a></h3>
306 <p>Django·provides·one·log·handler·in·addition·to·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/logging.handlers.html#module-logging.handlers"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">those</span>·<span·class="pre">provided</span>·<span·class="pre">by</span>·<span·class="pre">the</span>307 <p>Django·provides·one·log·handler·in·addition·to·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/logging.handlers.html#module-logging.handlers"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">those</span>·<span·class="pre">provided</span>·<span·class="pre">by</span>·<span·class="pre">the</span>
307 <span·class="pre">Python</span>·<span·class="pre">logging</span>·<span·class="pre">module</span></code></a>.</p>308 <span·class="pre">Python</span>·<span·class="pre">logging</span>·<span·class="pre">module</span></code></a>.</p>
308 <dl·class="py·class">309 <dl·class="py·class">
309 <dt·class="sig·sig-object·py"·id="django.utils.log.AdminEmailHandler">310 <dt·class="sig·sig-object·py"·id="django.utils.log.AdminEmailHandler">
310 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">AdminEmailHandler</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">include_html</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">email_backend</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">reporter_class</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#AdminEmailHandler"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.utils.log.AdminEmailHandler"·title="Link·to·this·definition">¶</a></dt>311 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">AdminEmailHandler</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">include_html</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">email_backend</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">reporter_class</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#AdminEmailHandler"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.utils.log.AdminEmailHandler"·title="Link·to·this·definition">¶</a></dt>
311 <dd><p>This·handler·sends·an·email·to·the·site·<a·class="reference·internal"·href="settings.html#std-setting-ADMINS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ADMINS</span></code></a>·for·each·log312 <dd><p>This·handler·sends·an·email·to·the·site·<a·class="reference·internal"·href="settings.html#std-setting-ADMINS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ADMINS</span></code></a>·for·each·log
312 message·it·receives.</p>313 message·it·receives.</p>
313 <p>If·the·log·record·contains·a·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·attribute,·the·full·details314 <p>If·the·log·record·contains·a·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·attribute,·the·full·details
314 of·the·request·will·be·included·in·the·email.·The·email·subject·will315 of·the·request·will·be·included·in·the·email.·The·email·subject·will
315 include·the·phrase·internal·IP·if·the·client’s·IP·address·is·in·the316 include·the·phrase·«internal·IP»·if·the·client’s·IP·address·is·in·the
316 <a·class="reference·internal"·href="settings.html#std-setting-INTERNAL_IPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INTERNAL_IPS</span></code></a>·setting;·if·not,·it·will·include·EXTERNAL·IP.</p>317 <a·class="reference·internal"·href="settings.html#std-setting-INTERNAL_IPS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">INTERNAL_IPS</span></code></a>·setting;·if·not,·it·will·include·«EXTERNAL·IP».</p>
317 <p>If·the·log·record·contains·stack·trace·information,·that·stack318 <p>If·the·log·record·contains·stack·trace·information,·that·stack
318 trace·will·be·included·in·the·email.</p>319 trace·will·be·included·in·the·email.</p>
319 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">include_html</span></code>·argument·of·<code·class="docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code>·is·used·to320 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">include_html</span></code>·argument·of·<code·class="docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code>·is·used·to
320 control·whether·the·traceback·email·includes·an·HTML·attachment321 control·whether·the·traceback·email·includes·an·HTML·attachment
321 containing·the·full·content·of·the·debug·web·page·that·would·have·been322 containing·the·full·content·of·the·debug·web·page·that·would·have·been
322 produced·if·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·were·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·To·set·this·value·in·your323 produced·if·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·were·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·To·set·this·value·in·your
323 configuration,·include·it·in·the·handler·definition·for324 configuration,·include·it·in·the·handler·definition·for
Offset 358, 30 lines modifiedOffset 359, 30 lines modified
358 ········<span·class="s2">&quot;reporter_class&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;somepackage.error_reporter.CustomErrorReporter&quot;</span><span·class="p">,</span>359 ········<span·class="s2">&quot;reporter_class&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;somepackage.error_reporter.CustomErrorReporter&quot;</span><span·class="p">,</span>
359 ····<span·class="p">},</span>360 ····<span·class="p">},</span>
360 <span·class="p">}</span>361 <span·class="p">}</span>
361 </pre></div>362 </pre></div>
362 </div>363 </div>
363 <dl·class="py·method">364 <dl·class="py·method">
364 <dt·class="sig·sig-object·py"·id="django.utils.log.AdminEmailHandler.send_mail">365 <dt·class="sig·sig-object·py"·id="django.utils.log.AdminEmailHandler.send_mail">
365 <span·class="sig-name·descname"><span·class="pre">send_mail</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">subject</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#AdminEmailHandler.send_mail"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.utils.log.AdminEmailHandler.send_mail"·title="Link·to·this·definition">¶</a></dt>366 <span·class="sig-name·descname"><span·class="pre">send_mail</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">subject</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">message</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#AdminEmailHandler.send_mail"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.utils.log.AdminEmailHandler.send_mail"·title="Link·to·this·definition">¶</a></dt>
366 <dd><p>Sends·emails·to·admin·users.·To·customize·this·behavior,·you·can367 <dd><p>Sends·emails·to·admin·users.·To·customize·this·behavior,·you·can
367 subclass·the·<a·class="reference·internal"·href="#django.utils.log.AdminEmailHandler"·title="django.utils.log.AdminEmailHandler"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code></a>·class·and368 subclass·the·<a·class="reference·internal"·href="#django.utils.log.AdminEmailHandler"·title="django.utils.log.AdminEmailHandler"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code></a>·class·and
368 override·this·method.</p>369 override·this·method.</p>
369 </dd></dl>370 </dd></dl>
  
370 </dd></dl>371 </dd></dl>
  
371 </section>372 </section>
372 <section·id="s-filters">373 <section·id="s-filters">
373 <span·id="filters"></span><h3>Filters<a·class="headerlink"·href="#filters"·title="Link·to·this·heading">¶</a></h3>374 <span·id="filters"></span><h3>Filters<a·class="headerlink"·href="#filters"·title="Link·to·this·heading">¶</a></h3>
374 <p>Django·provides·some·log·filters·in·addition·to·those·provided·by·the·Python375 <p>Django·provides·some·log·filters·in·addition·to·those·provided·by·the·Python
375 logging·module.</p>376 logging·module.</p>
376 <dl·class="py·class">377 <dl·class="py·class">
377 <dt·class="sig·sig-object·py"·id="django.utils.log.CallbackFilter">378 <dt·class="sig·sig-object·py"·id="django.utils.log.CallbackFilter">
378 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CallbackFilter</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">callback</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#CallbackFilter"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.utils.log.CallbackFilter"·title="Link·to·this·definition">¶</a></dt>379 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CallbackFilter</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">callback</span></span></em>)<a·class="reference·internal"·href="../_modules/django/utils/log.html#CallbackFilter"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.utils.log.CallbackFilter"·title="Link·to·this·definition">¶</a></dt>
379 <dd><p>This·filter·accepts·a·callback·function·(which·should·accept·a·single380 <dd><p>This·filter·accepts·a·callback·function·(which·should·accept·a·single
380 argument,·the·record·to·be·logged),·and·calls·it·for·each·record·that381 argument,·the·record·to·be·logged),·and·calls·it·for·each·record·that
381 passes·through·the·filter.·Handling·of·that·record·will·not·proceed·if·the382 passes·through·the·filter.·Handling·of·that·record·will·not·proceed·if·the
382 callback·returns·False.</p>383 callback·returns·False.</p>
383 <p>For·instance,·to·filter·out·<a·class="reference·internal"·href="exceptions.html#django.http.UnreadablePostError"·title="django.http.UnreadablePostError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">UnreadablePostError</span></code></a>384 <p>For·instance,·to·filter·out·<a·class="reference·internal"·href="exceptions.html#django.http.UnreadablePostError"·title="django.http.UnreadablePostError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">UnreadablePostError</span></code></a>
384 (raised·when·a·user·cancels·an·upload)·from·the·admin·emails,·you·would385 (raised·when·a·user·cancels·an·upload)·from·the·admin·emails,·you·would
385 create·a·filter·function:</p>386 create·a·filter·function:</p>
Offset 416, 15 lines modifiedOffset 417, 15 lines modified
416 <span·class="p">}</span>417 <span·class="p">}</span>
417 </pre></div>418 </pre></div>
418 </div>419 </div>
419 </dd></dl>420 </dd></dl>
  
420 <dl·class="py·class">421 <dl·class="py·class">
421 <dt·class="sig·sig-object·py"·id="django.utils.log.RequireDebugFalse">422 <dt·class="sig·sig-object·py"·id="django.utils.log.RequireDebugFalse">
422 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RequireDebugFalse</span></span><a·class="reference·internal"·href="../_modules/django/utils/log.html#RequireDebugFalse"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.utils.log.RequireDebugFalse"·title="Link·to·this·definition">¶</a></dt>423 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RequireDebugFalse</span></span><a·class="reference·internal"·href="../_modules/django/utils/log.html#RequireDebugFalse"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.utils.log.RequireDebugFalse"·title="Link·to·this·definition">¶</a></dt>
423 <dd><p>This·filter·will·only·pass·on·records·when·settings.DEBUG·is·False.</p>424 <dd><p>This·filter·will·only·pass·on·records·when·settings.DEBUG·is·False.</p>
424 <p>This·filter·is·used·as·follows·in·the·default·<a·class="reference·internal"·href="settings.html#std-setting-LOGGING"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LOGGING</span></code></a>425 <p>This·filter·is·used·as·follows·in·the·default·<a·class="reference·internal"·href="settings.html#std-setting-LOGGING"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LOGGING</span></code></a>
425 configuration·to·ensure·that·the·<a·class="reference·internal"·href="#django.utils.log.AdminEmailHandler"·title="django.utils.log.AdminEmailHandler"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code></a>·only·sends426 configuration·to·ensure·that·the·<a·class="reference·internal"·href="#django.utils.log.AdminEmailHandler"·title="django.utils.log.AdminEmailHandler"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AdminEmailHandler</span></code></a>·only·sends
426 error·emails·to·admins·when·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>:</p>427 error·emails·to·admins·when·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>:</p>
427 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">LOGGING</span>·<span·class="o">=</span>·<span·class="p">{</span>428 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">LOGGING</span>·<span·class="o">=</span>·<span·class="p">{</span>
428 ····<span·class="c1">#·...</span>429 ····<span·class="c1">#·...</span>
429 ····<span·class="s2">&quot;filters&quot;</span><span·class="p">:</span>·<span·class="p">{</span>430 ····<span·class="s2">&quot;filters&quot;</span><span·class="p">:</span>·<span·class="p">{</span>
Offset 443, 15 lines modifiedOffset 444, 15 lines modified
443 <span·class="p">}</span>444 <span·class="p">}</span>
444 </pre></div>445 </pre></div>
Max diff block lines reached; 3087/18000 bytes (17.15%) of diff not shown.
7.59 KB
html2text {}
Max HTML report size reached
63.3 KB
./usr/share/doc/python-django-doc/html/ref/middleware.html
Max HTML report size reached
84.9 KB
./usr/share/doc/python-django-doc/html/ref/migration-operations.html
Max HTML report size reached
6.14 KB
./usr/share/doc/python-django-doc/html/ref/models/class.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Model·class·reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Model·class·reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Model·Meta·options"·href="options.html"·/>15 ····<link·rel="next"·title="Model·Meta·options"·href="options.html"·/>
15 ····<link·rel="prev"·title="Related·objects·reference"·href="relations.html"·/>16 ····<link·rel="prev"·title="Related·objects·reference"·href="relations.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 165, 37 lines modifiedOffset 166, 37 lines modified
165 </li>166 </li>
166 </ul>167 </ul>
167 </li>168 </li>
168 </ul>169 </ul>
  
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Previous·topic</h4>172 ····<h4>Argomento·precedente</h4>
172 ····<p·class="topless"><a·href="relations.html"173 ····<p·class="topless"><a·href="relations.html"
173 ··························title="previous·chapter">Related·objects·reference</a></p>174 ··························title="capitolo·precedente">Related·objects·reference</a></p>
174 ··</div>175 ··</div>
175 ··<div>176 ··<div>
176 ····<h4>Next·topic</h4>177 ····<h4>Argomento·successivo</h4>
177 ····<p·class="topless"><a·href="options.html"178 ····<p·class="topless"><a·href="options.html"
178 ··························title="next·chapter">Model·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·options</a></p>179 ··························title="capitolo·successivo">Model·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·options</a></p>
179 ··</div>180 ··</div>
180 <search·id="searchbox"·style="display:·none"·role="search">181 <search·id="searchbox"·style="display:·none"·role="search">
181 ··<h3·id="searchlabel">Quick·search</h3>182 ··<h3·id="searchlabel">Ricerca·veloce</h3>
182 ····<div·class="searchformwrapper">183 ····<div·class="searchformwrapper">
183 ····<form·class="search"·action="../../search.html"·method="get">184 ····<form·class="search"·action="../../search.html"·method="get">
184 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>185 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
185 ······<input·type="submit"·value="Go"·/>186 ······<input·type="submit"·value="Vai"·/>
186 ····</form>187 ····</form>
187 ····</div>188 ····</div>
188 </search>189 </search>
189 <script>document.getElementById('searchbox').style.display·=·"block"</script>190 <script>document.getElementById('searchbox').style.display·=·"block"</script>
190 ········</div>191 ········</div>
191 ······</div>192 ······</div>
192 ··············<h3>Last·update:</h3>193 ··············<h3>Last·update:</h3>
193 ··············<p·class="topless">Sep·03,·2024</p>194 ··············<p·class="topless">set·03,·2024</p>
194 ··········</div>195 ··········</div>
195 ········196 ········
196 ······197 ······
197 ····</div>198 ····</div>
  
198 ····<div·id="ft">199 ····<div·id="ft">
199 ······<div·class="nav">200 ······<div·class="nav">
2.27 KB
html2text {}
Max HTML report size reached
19.5 KB
./usr/share/doc/python-django-doc/html/ref/models/conditional-expressions.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Conditional·Expressions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Conditional·Expressions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Database·Functions"·href="database-functions.html"·/>15 ····<link·rel="next"·title="Database·Functions"·href="database-functions.html"·/>
15 ····<link·rel="prev"·title="Query·Expressions"·href="expressions.html"·/>16 ····<link·rel="prev"·title="Query·Expressions"·href="expressions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 15 lines modifiedOffset 109, 15 lines modified
108 ····<span·class="p">)</span>109 ····<span·class="p">)</span>
109 </pre></div>110 </pre></div>
110 </div>111 </div>
111 <section·id="s-when">112 <section·id="s-when">
112 <span·id="when"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">When</span></code><a·class="headerlink"·href="#when"·title="Link·to·this·heading">¶</a></h3>113 <span·id="when"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">When</span></code><a·class="headerlink"·href="#when"·title="Link·to·this·heading">¶</a></h3>
113 <dl·class="py·class">114 <dl·class="py·class">
114 <dt·class="sig·sig-object·py"·id="django.db.models.expressions.When">115 <dt·class="sig·sig-object·py"·id="django.db.models.expressions.When">
115 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">When</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">then</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">lookups</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/expressions.html#When"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.expressions.When"·title="Link·to·this·definition">¶</a></dt>116 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">When</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">then</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">lookups</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/expressions.html#When"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.expressions.When"·title="Link·to·this·definition">¶</a></dt>
116 <dd></dd></dl>117 <dd></dd></dl>
  
117 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object·is·used·to·encapsulate·a·condition·and·its·result·for·use118 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object·is·used·to·encapsulate·a·condition·and·its·result·for·use
118 in·the·conditional·expression.·Using·a·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object·is·similar·to·using119 in·the·conditional·expression.·Using·a·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object·is·similar·to·using
119 the·<a·class="reference·internal"·href="querysets.html#django.db.models.query.QuerySet.filter"·title="django.db.models.query.QuerySet.filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">filter()</span></code></a>·method.·The·condition·can120 the·<a·class="reference·internal"·href="querysets.html#django.db.models.query.QuerySet.filter"·title="django.db.models.query.QuerySet.filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">filter()</span></code></a>·method.·The·condition·can
120 be·specified·using·<a·class="reference·internal"·href="querysets.html#field-lookups"><span·class="std·std-ref">field·lookups</span></a>,121 be·specified·using·<a·class="reference·internal"·href="querysets.html#field-lookups"><span·class="std·std-ref">field·lookups</span></a>,
121 <a·class="reference·internal"·href="querysets.html#django.db.models.Q"·title="django.db.models.Q"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Q</span></code></a>·objects,·or·<a·class="reference·internal"·href="expressions.html#django.db.models.Expression"·title="django.db.models.Expression"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Expression</span></code></a>122 <a·class="reference·internal"·href="querysets.html#django.db.models.Q"·title="django.db.models.Q"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Q</span></code></a>·objects,·or·<a·class="reference·internal"·href="expressions.html#django.db.models.Expression"·title="django.db.models.Expression"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Expression</span></code></a>
Offset 154, 30 lines modifiedOffset 155, 30 lines modified
154 <span·class="gp">...·</span>····<span·class="o">&amp;</span>·<span·class="n">LessThan</span><span·class="p">(</span><span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;registered_on&quot;</span><span·class="p">),</span>·<span·class="n">date</span><span·class="p">(</span><span·class="mi">2015</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)),</span>155 <span·class="gp">...·</span>····<span·class="o">&amp;</span>·<span·class="n">LessThan</span><span·class="p">(</span><span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;registered_on&quot;</span><span·class="p">),</span>·<span·class="n">date</span><span·class="p">(</span><span·class="mi">2015</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">)),</span>
155 <span·class="gp">...·</span>····<span·class="n">then</span><span·class="o">=</span><span·class="s2">&quot;account_type&quot;</span><span·class="p">,</span>156 <span·class="gp">...·</span>····<span·class="n">then</span><span·class="o">=</span><span·class="s2">&quot;account_type&quot;</span><span·class="p">,</span>
156 <span·class="gp">...·</span><span·class="p">)</span>157 <span·class="gp">...·</span><span·class="p">)</span>
157 </pre></div>158 </pre></div>
158 </div>159 </div>
159 <p>Keep·in·mind·that·each·of·these·values·can·be·an·expression.</p>160 <p>Keep·in·mind·that·each·of·these·values·can·be·an·expression.</p>
160 <div·class="admonition·note">161 <div·class="admonition·note">
161 <p·class="admonition-title">Note</p>162 <p·class="admonition-title">Nota</p>
162 <p>Since·the·<code·class="docutils·literal·notranslate"><span·class="pre">then</span></code>·keyword·argument·is·reserved·for·the·result·of·the163 <p>Since·the·<code·class="docutils·literal·notranslate"><span·class="pre">then</span></code>·keyword·argument·is·reserved·for·the·result·of·the
163 <code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>,·there·is·a·potential·conflict·if·a164 <code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>,·there·is·a·potential·conflict·if·a
164 <a·class="reference·internal"·href="instances.html#django.db.models.Model"·title="django.db.models.Model"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Model</span></code></a>·has·a·field·named·<code·class="docutils·literal·notranslate"><span·class="pre">then</span></code>.·This·can·be165 <a·class="reference·internal"·href="instances.html#django.db.models.Model"·title="django.db.models.Model"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Model</span></code></a>·has·a·field·named·<code·class="docutils·literal·notranslate"><span·class="pre">then</span></code>.·This·can·be
165 resolved·in·two·ways:</p>166 resolved·in·two·ways:</p>
166 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">When</span><span·class="p">(</span><span·class="n">then__exact</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">then</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>167 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">When</span><span·class="p">(</span><span·class="n">then__exact</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="n">then</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>
167 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">When</span><span·class="p">(</span><span·class="n">Q</span><span·class="p">(</span><span·class="n">then</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">),</span>·<span·class="n">then</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>168 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">When</span><span·class="p">(</span><span·class="n">Q</span><span·class="p">(</span><span·class="n">then</span><span·class="o">=</span><span·class="mi">0</span><span·class="p">),</span>·<span·class="n">then</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">)</span>
168 </pre></div>169 </pre></div>
169 </div>170 </div>
170 </div>171 </div>
171 </section>172 </section>
172 <section·id="s-case">173 <section·id="s-case">
173 <span·id="case"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Case</span></code><a·class="headerlink"·href="#case"·title="Link·to·this·heading">¶</a></h3>174 <span·id="case"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Case</span></code><a·class="headerlink"·href="#case"·title="Link·to·this·heading">¶</a></h3>
174 <dl·class="py·class">175 <dl·class="py·class">
175 <dt·class="sig·sig-object·py"·id="django.db.models.expressions.Case">176 <dt·class="sig·sig-object·py"·id="django.db.models.expressions.Case">
176 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Case</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">cases</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">extra</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/expressions.html#Case"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.expressions.Case"·title="Link·to·this·definition">¶</a></dt>177 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Case</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">cases</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">extra</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/expressions.html#Case"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.expressions.Case"·title="Link·to·this·definition">¶</a></dt>
177 <dd></dd></dl>178 <dd></dd></dl>
  
178 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Case()</span></code>·expression·is·like·the·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#if"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">if</span></code></a>··<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#elif"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">elif</span></code></a>·179 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Case()</span></code>·expression·is·like·the·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#if"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">if</span></code></a>··<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#elif"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">elif</span></code></a>·
179 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#else"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">else</span></code></a>·statement·in·<code·class="docutils·literal·notranslate"><span·class="pre">Python</span></code>.·Each·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·in·the·provided180 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#else"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">else</span></code></a>·statement·in·<code·class="docutils·literal·notranslate"><span·class="pre">Python</span></code>.·Each·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·in·the·provided
180 <code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·objects·is·evaluated·in·order,·until·one·evaluates·to·a181 <code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·objects·is·evaluated·in·order,·until·one·evaluates·to·a
181 truthful·value.·The·<code·class="docutils·literal·notranslate"><span·class="pre">result</span></code>·expression·from·the·matching·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object182 truthful·value.·The·<code·class="docutils·literal·notranslate"><span·class="pre">result</span></code>·expression·from·the·matching·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·object
182 is·returned.</p>183 is·returned.</p>
Offset 228, 15 lines modifiedOffset 229, 15 lines modified
228 <span·class="gp">...·</span>········<span·class="n">default</span><span·class="o">=</span><span·class="n">Value</span><span·class="p">(</span><span·class="s2">&quot;0%&quot;</span><span·class="p">),</span>229 <span·class="gp">...·</span>········<span·class="n">default</span><span·class="o">=</span><span·class="n">Value</span><span·class="p">(</span><span·class="s2">&quot;0%&quot;</span><span·class="p">),</span>
229 <span·class="gp">...·</span>····<span·class="p">)</span>230 <span·class="gp">...·</span>····<span·class="p">)</span>
230 <span·class="gp">...·</span><span·class="p">)</span><span·class="o">.</span><span·class="n">values_list</span><span·class="p">(</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;discount&quot;</span><span·class="p">)</span>231 <span·class="gp">...·</span><span·class="p">)</span><span·class="o">.</span><span·class="n">values_list</span><span·class="p">(</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;discount&quot;</span><span·class="p">)</span>
231 <span·class="go">&lt;QuerySet·[(&#39;Jane·Doe&#39;,·&#39;5%&#39;),·(&#39;James·Smith&#39;,·&#39;0%&#39;),·(&#39;Jack·Black&#39;,·&#39;10%&#39;)]&gt;</span>232 <span·class="go">&lt;QuerySet·[(&#39;Jane·Doe&#39;,·&#39;5%&#39;),·(&#39;James·Smith&#39;,·&#39;0%&#39;),·(&#39;Jack·Black&#39;,·&#39;10%&#39;)]&gt;</span>
232 </pre></div>233 </pre></div>
233 </div>234 </div>
234 <div·class="admonition·note">235 <div·class="admonition·note">
235 <p·class="admonition-title">Note</p>236 <p·class="admonition-title">Nota</p>
236 <p>Remember·that·the·conditions·are·evaluated·in·order,·so·in·the·above237 <p>Remember·that·the·conditions·are·evaluated·in·order,·so·in·the·above
237 example·we·get·the·correct·result·even·though·the·second·condition·matches238 example·we·get·the·correct·result·even·though·the·second·condition·matches
238 both·Jane·Doe·and·Jack·Black.·This·works·just·like·an·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#if"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·239 both·Jane·Doe·and·Jack·Black.·This·works·just·like·an·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#if"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·
239 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#elif"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">elif</span></code></a>··<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#else"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">else</span></code></a>·statement·in·<code·class="docutils·literal·notranslate"><span·class="pre">Python</span></code>.</p>240 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#elif"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">elif</span></code></a>··<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/reference/compound_stmts.html#else"·title="(in·Python·v3.12)"><code·class="xref·std·std-keyword·docutils·literal·notranslate"><span·class="pre">else</span></code></a>·statement·in·<code·class="docutils·literal·notranslate"><span·class="pre">Python</span></code>.</p>
240 </div>241 </div>
241 <p><code·class="docutils·literal·notranslate"><span·class="pre">Case()</span></code>·also·works·in·a·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·clause.·For·example,·to·find·gold242 <p><code·class="docutils·literal·notranslate"><span·class="pre">Case()</span></code>·also·works·in·a·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·clause.·For·example,·to·find·gold
242 clients·that·registered·more·than·a·month·ago·and·platinum·clients·that243 clients·that·registered·more·than·a·month·ago·and·platinum·clients·that
Offset 378, 37 lines modifiedOffset 379, 37 lines modified
378 </li>379 </li>
379 </ul>380 </ul>
380 </li>381 </li>
381 </ul>382 </ul>
  
382 ··</div>383 ··</div>
383 ··<div>384 ··<div>
384 ····<h4>Previous·topic</h4>385 ····<h4>Argomento·precedente</h4>
385 ····<p·class="topless"><a·href="expressions.html"386 ····<p·class="topless"><a·href="expressions.html"
386 ··························title="previous·chapter">Query·Expressions</a></p>387 ··························title="capitolo·precedente">Query·Expressions</a></p>
387 ··</div>388 ··</div>
388 ··<div>389 ··<div>
389 ····<h4>Next·topic</h4>390 ····<h4>Argomento·successivo</h4>
390 ····<p·class="topless"><a·href="database-functions.html"391 ····<p·class="topless"><a·href="database-functions.html"
391 ··························title="next·chapter">Database·Functions</a></p>392 ··························title="capitolo·successivo">Database·Functions</a></p>
392 ··</div>393 ··</div>
393 <search·id="searchbox"·style="display:·none"·role="search">394 <search·id="searchbox"·style="display:·none"·role="search">
394 ··<h3·id="searchlabel">Quick·search</h3>395 ··<h3·id="searchlabel">Ricerca·veloce</h3>
395 ····<div·class="searchformwrapper">396 ····<div·class="searchformwrapper">
396 ····<form·class="search"·action="../../search.html"·method="get">397 ····<form·class="search"·action="../../search.html"·method="get">
397 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>398 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
398 ······<input·type="submit"·value="Go"·/>399 ······<input·type="submit"·value="Vai"·/>
399 ····</form>400 ····</form>
400 ····</div>401 ····</div>
Max diff block lines reached; 342/14612 bytes (2.34%) of diff not shown.
5.13 KB
html2text {}
Max HTML report size reached
26.0 KB
./usr/share/doc/python-django-doc/html/ref/models/constraints.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Constraints·reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Constraints·reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Model·_meta·API"·href="meta.html"·/>15 ····<link·rel="next"·title="Model·_meta·API"·href="meta.html"·/>
15 ····<link·rel="prev"·title="Model·index·reference"·href="indexes.html"·/>16 ····<link·rel="prev"·title="Model·index·reference"·href="indexes.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 25 lines modifiedOffset 108, 25 lines modified
107 </div>108 </div>
108 <div·class="admonition-validation-of-constraints-with-jsonfield·admonition">109 <div·class="admonition-validation-of-constraints-with-jsonfield·admonition">
109 <p·class="admonition-title">Validation·of·Constraints·with·<code·class="docutils·literal·notranslate"><span·class="pre">JSONField</span></code></p>110 <p·class="admonition-title">Validation·of·Constraints·with·<code·class="docutils·literal·notranslate"><span·class="pre">JSONField</span></code></p>
110 <p>Constraints·containing·<a·class="reference·internal"·href="fields.html#django.db.models.JSONField"·title="django.db.models.JSONField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">JSONField</span></code></a>·may·not·raise111 <p>Constraints·containing·<a·class="reference·internal"·href="fields.html#django.db.models.JSONField"·title="django.db.models.JSONField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">JSONField</span></code></a>·may·not·raise
111 validation·errors·as·key,·index,·and·path·transforms·have·many112 validation·errors·as·key,·index,·and·path·transforms·have·many
112 database-specific·caveats.·This·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/34059">may·be·fully·supported·later</a>.</p>113 database-specific·caveats.·This·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/34059">may·be·fully·supported·later</a>.</p>
113 <p>You·should·always·check·that·there·are·no·log·messages,·in·the114 <p>You·should·always·check·that·there·are·no·log·messages,·in·the
114 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.models</span></code>·logger,·like·<em>Got·a·database·error·calling·check()·on115 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.models</span></code>·logger,·like·<em>«Got·a·database·error·calling·check()·on
115 </em>·to·confirm·it’s·validated·properly.</p>116 »</em>·to·confirm·it’s·validated·properly.</p>
116 </div>117 </div>
117 <div·class="versionchanged">118 <div·class="versionchanged">
118 <span·class="title">Changed·in·Django·4.1:</span>·<p>In·older·versions,·constraints·were·not·checked·during·model·validation.</p>119 <span·class="title">Changed·in·Django·4.1:</span>·<p>In·older·versions,·constraints·were·not·checked·during·model·validation.</p>
119 </div>120 </div>
120 <section·id="s-baseconstraint">121 <section·id="s-baseconstraint">
121 <span·id="baseconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">BaseConstraint</span></code><a·class="headerlink"·href="#baseconstraint"·title="Link·to·this·heading">¶</a></h2>122 <span·id="baseconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">BaseConstraint</span></code><a·class="headerlink"·href="#baseconstraint"·title="Link·to·this·heading">¶</a></h2>
122 <dl·class="py·class">123 <dl·class="py·class">
123 <dt·class="sig·sig-object·py"·id="django.db.models.BaseConstraint">124 <dt·class="sig·sig-object·py"·id="django.db.models.BaseConstraint">
124 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseConstraint</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#BaseConstraint"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.BaseConstraint"·title="Link·to·this·definition">¶</a></dt>125 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseConstraint</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#BaseConstraint"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.BaseConstraint"·title="Link·to·this·definition">¶</a></dt>
125 <dd><p>Base·class·for·all·constraints.·Subclasses·must·implement126 <dd><p>Base·class·for·all·constraints.·Subclasses·must·implement
126 <code·class="docutils·literal·notranslate"><span·class="pre">constraint_sql()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">create_sql()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">remove_sql()</span></code>·and127 <code·class="docutils·literal·notranslate"><span·class="pre">constraint_sql()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">create_sql()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">remove_sql()</span></code>·and
127 <code·class="docutils·literal·notranslate"><span·class="pre">validate()</span></code>·methods.</p>128 <code·class="docutils·literal·notranslate"><span·class="pre">validate()</span></code>·methods.</p>
128 </dd></dl>129 </dd></dl>
  
129 <p>All·constraints·have·the·following·parameters·in·common:</p>130 <p>All·constraints·have·the·following·parameters·in·common:</p>
130 <section·id="s-name">131 <section·id="s-name">
Offset 153, 30 lines modifiedOffset 154, 30 lines modified
153 </section>154 </section>
154 <section·id="s-validate">155 <section·id="s-validate">
155 <span·id="validate"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">validate()</span></code><a·class="headerlink"·href="#validate"·title="Link·to·this·heading">¶</a></h3>156 <span·id="validate"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">validate()</span></code><a·class="headerlink"·href="#validate"·title="Link·to·this·heading">¶</a></h3>
156 <div·class="versionadded">157 <div·class="versionadded">
157 <span·class="title">New·in·Django·4.1.</span>·</div>158 <span·class="title">New·in·Django·4.1.</span>·</div>
158 <dl·class="py·method">159 <dl·class="py·method">
159 <dt·class="sig·sig-object·py"·id="django.db.models.BaseConstraint.validate">160 <dt·class="sig·sig-object·py"·id="django.db.models.BaseConstraint.validate">
160 <span·class="sig-prename·descclassname"><span·class="pre">BaseConstraint.</span></span><span·class="sig-name·descname"><span·class="pre">validate</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">instance</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exclude</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">DEFAULT_DB_ALIAS</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#BaseConstraint.validate"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.BaseConstraint.validate"·title="Link·to·this·definition">¶</a></dt>161 <span·class="sig-prename·descclassname"><span·class="pre">BaseConstraint.</span></span><span·class="sig-name·descname"><span·class="pre">validate</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">model</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">instance</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exclude</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">DEFAULT_DB_ALIAS</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#BaseConstraint.validate"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.BaseConstraint.validate"·title="Link·to·this·definition">¶</a></dt>
161 <dd></dd></dl>162 <dd></dd></dl>
  
162 <p>Validates·that·the·constraint,·defined·on·<code·class="docutils·literal·notranslate"><span·class="pre">model</span></code>,·is·respected·on·the163 <p>Validates·that·the·constraint,·defined·on·<code·class="docutils·literal·notranslate"><span·class="pre">model</span></code>,·is·respected·on·the
163 <code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code>.·This·will·do·a·query·on·the·database·to·ensure·that·the164 <code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code>.·This·will·do·a·query·on·the·database·to·ensure·that·the
164 constraint·is·respected.·If·fields·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">exclude</span></code>·list·are·needed·to165 constraint·is·respected.·If·fields·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">exclude</span></code>·list·are·needed·to
165 validate·the·constraint,·the·constraint·is·ignored.</p>166 validate·the·constraint,·the·constraint·is·ignored.</p>
166 <p>Raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">ValidationError</span></code>·if·the·constraint·is·violated.</p>167 <p>Raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">ValidationError</span></code>·if·the·constraint·is·violated.</p>
167 <p>This·method·must·be·implemented·by·a·subclass.</p>168 <p>This·method·must·be·implemented·by·a·subclass.</p>
168 </section>169 </section>
169 </section>170 </section>
170 <section·id="s-checkconstraint">171 <section·id="s-checkconstraint">
171 <span·id="checkconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">CheckConstraint</span></code><a·class="headerlink"·href="#checkconstraint"·title="Link·to·this·heading">¶</a></h2>172 <span·id="checkconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">CheckConstraint</span></code><a·class="headerlink"·href="#checkconstraint"·title="Link·to·this·heading">¶</a></h2>
172 <dl·class="py·class">173 <dl·class="py·class">
173 <dt·class="sig·sig-object·py"·id="django.db.models.CheckConstraint">174 <dt·class="sig·sig-object·py"·id="django.db.models.CheckConstraint">
174 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CheckConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">check</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#CheckConstraint"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.CheckConstraint"·title="Link·to·this·definition">¶</a></dt>175 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">CheckConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">check</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#CheckConstraint"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.CheckConstraint"·title="Link·to·this·definition">¶</a></dt>
175 <dd><p>Creates·a·check·constraint·in·the·database.</p>176 <dd><p>Creates·a·check·constraint·in·the·database.</p>
176 </dd></dl>177 </dd></dl>
  
177 <section·id="s-check">178 <section·id="s-check">
178 <span·id="check"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">check</span></code><a·class="headerlink"·href="#check"·title="Link·to·this·heading">¶</a></h3>179 <span·id="check"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">check</span></code><a·class="headerlink"·href="#check"·title="Link·to·this·heading">¶</a></h3>
179 <dl·class="py·attribute">180 <dl·class="py·attribute">
180 <dt·class="sig·sig-object·py"·id="django.db.models.CheckConstraint.check">181 <dt·class="sig·sig-object·py"·id="django.db.models.CheckConstraint.check">
Offset 202, 15 lines modifiedOffset 203, 15 lines modified
202 </div>203 </div>
203 </section>204 </section>
204 </section>205 </section>
205 <section·id="s-uniqueconstraint">206 <section·id="s-uniqueconstraint">
206 <span·id="uniqueconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">UniqueConstraint</span></code><a·class="headerlink"·href="#uniqueconstraint"·title="Link·to·this·heading">¶</a></h2>207 <span·id="uniqueconstraint"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">UniqueConstraint</span></code><a·class="headerlink"·href="#uniqueconstraint"·title="Link·to·this·heading">¶</a></h2>
207 <dl·class="py·class">208 <dl·class="py·class">
208 <dt·class="sig·sig-object·py"·id="django.db.models.UniqueConstraint">209 <dt·class="sig·sig-object·py"·id="django.db.models.UniqueConstraint">
209 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">UniqueConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fields</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">deferrable</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#UniqueConstraint"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.UniqueConstraint"·title="Link·to·this·definition">¶</a></dt>210 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">UniqueConstraint</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fields</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">deferrable</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">violation_error_message</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/constraints.html#UniqueConstraint"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.UniqueConstraint"·title="Link·to·this·definition">¶</a></dt>
210 <dd><p>Creates·a·unique·constraint·in·the·database.</p>211 <dd><p>Creates·a·unique·constraint·in·the·database.</p>
211 </dd></dl>212 </dd></dl>
  
212 <section·id="s-expressions">213 <section·id="s-expressions">
213 <span·id="expressions"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code><a·class="headerlink"·href="#expressions"·title="Link·to·this·heading">¶</a></h3>214 <span·id="expressions"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code><a·class="headerlink"·href="#expressions"·title="Link·to·this·heading">¶</a></h3>
214 <dl·class="py·attribute">215 <dl·class="py·attribute">
215 <dt·class="sig·sig-object·py"·id="django.db.models.UniqueConstraint.expressions">216 <dt·class="sig·sig-object·py"·id="django.db.models.UniqueConstraint.expressions">
Offset 281, 15 lines modifiedOffset 282, 15 lines modified
281 enforced·immediately·after·every·command.</p>282 enforced·immediately·after·every·command.</p>
282 <div·class="admonition-mysql-mariadb-and-sqlite·admonition">283 <div·class="admonition-mysql-mariadb-and-sqlite·admonition">
283 <p·class="admonition-title">MySQL,·MariaDB,·and·SQLite.</p>284 <p·class="admonition-title">MySQL,·MariaDB,·and·SQLite.</p>
284 <p>Deferrable·unique·constraints·are·ignored·on·MySQL,·MariaDB,·and·SQLite·as285 <p>Deferrable·unique·constraints·are·ignored·on·MySQL,·MariaDB,·and·SQLite·as
285 neither·supports·them.</p>286 neither·supports·them.</p>
286 </div>287 </div>
287 <div·class="admonition·warning">288 <div·class="admonition·warning">
288 <p·class="admonition-title">Warning</p>289 <p·class="admonition-title">Avvertimento</p>
289 <p>Deferred·unique·constraints·may·lead·to·a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createtable.html#id-1.9.3.85.9.4">performance·penalty</a>.</p>290 <p>Deferred·unique·constraints·may·lead·to·a·<a·class="reference·external"·href="https://www.postgresql.org/docs/current/sql-createtable.html#id-1.9.3.85.9.4">performance·penalty</a>.</p>
290 </div>291 </div>
291 </section>292 </section>
292 <section·id="s-include">293 <section·id="s-include">
293 <span·id="include"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">include</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h3>294 <span·id="include"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">include</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h3>
294 <dl·class="py·attribute">295 <dl·class="py·attribute">
Max diff block lines reached; 1641/19007 bytes (8.63%) of diff not shown.
7.3 KB
html2text {}
Max HTML report size reached
320 KB
./usr/share/doc/python-django-doc/html/ref/models/database-functions.html
Max HTML report size reached
75.0 KB
./usr/share/doc/python-django-doc/html/ref/models/expressions.html
Max HTML report size reached
234 KB
./usr/share/doc/python-django-doc/html/ref/models/fields.html
Max HTML report size reached
5.95 KB
./usr/share/doc/python-django-doc/html/ref/models/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Models·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Models·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Model·field·reference"·href="fields.html"·/>15 ····<link·rel="next"·title="Model·field·reference"·href="fields.html"·/>
15 ····<link·rel="prev"·title="Migration·Operations"·href="../migration-operations.html"·/>16 ····<link·rel="prev"·title="Migration·Operations"·href="../migration-operations.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 ······108 ······
108 ········109 ········
109 ··········<div·class="yui-b"·id="sidebar">110 ··········<div·class="yui-b"·id="sidebar">
110 ············111 ············
111 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">112 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
112 ········<div·class="sphinxsidebarwrapper">113 ········<div·class="sphinxsidebarwrapper">
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="../migration-operations.html"116 ····<p·class="topless"><a·href="../migration-operations.html"
116 ··························title="previous·chapter">Migration·Operations</a></p>117 ··························title="capitolo·precedente">Migration·Operations</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="fields.html"121 ····<p·class="topless"><a·href="fields.html"
121 ··························title="next·chapter">Model·field·reference</a></p>122 ··························title="capitolo·successivo">Model·field·reference</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../../search.html"·method="get">127 ····<form·class="search"·action="../../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
14.0 KB
./usr/share/doc/python-django-doc/html/ref/models/indexes.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Model·index·reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Model·index·reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Constraints·reference"·href="constraints.html"·/>15 ····<link·rel="next"·title="Constraints·reference"·href="constraints.html"·/>
15 ····<link·rel="prev"·title="Model·field·reference"·href="fields.html"·/>16 ····<link·rel="prev"·title="Model·field·reference"·href="fields.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 90, 15 lines modifiedOffset 91, 15 lines modified
90 to·use·<code·class="docutils·literal·notranslate"><span·class="pre">from</span>·<span·class="pre">django.db</span>·<span·class="pre">import</span>·<span·class="pre">models</span></code>·and·refer·to·the·indexes·as91 to·use·<code·class="docutils·literal·notranslate"><span·class="pre">from</span>·<span·class="pre">django.db</span>·<span·class="pre">import</span>·<span·class="pre">models</span></code>·and·refer·to·the·indexes·as
91 <code·class="docutils·literal·notranslate"><span·class="pre">models.&lt;IndexClass&gt;</span></code>.</p>92 <code·class="docutils·literal·notranslate"><span·class="pre">models.&lt;IndexClass&gt;</span></code>.</p>
92 </div>93 </div>
93 <section·id="s-index-options">94 <section·id="s-index-options">
94 <span·id="index-options"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Index</span></code>·options<a·class="headerlink"·href="#index-options"·title="Link·to·this·heading">¶</a></h2>95 <span·id="index-options"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Index</span></code>·options<a·class="headerlink"·href="#index-options"·title="Link·to·this·heading">¶</a></h2>
95 <dl·class="py·class">96 <dl·class="py·class">
96 <dt·class="sig·sig-object·py"·id="django.db.models.Index">97 <dt·class="sig·sig-object·py"·id="django.db.models.Index">
97 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Index</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fields</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">db_tablespace</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/indexes.html#Index"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Index"·title="Link·to·this·definition">¶</a></dt>98 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Index</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">expressions</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">fields</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">db_tablespace</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">opclasses</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">()</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">condition</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/indexes.html#Index"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Index"·title="Link·to·this·definition">¶</a></dt>
98 <dd><p>Creates·an·index·(B-Tree)·in·the·database.</p>99 <dd><p>Creates·an·index·(B-Tree)·in·the·database.</p>
99 </dd></dl>100 </dd></dl>
  
100 <section·id="s-expressions">101 <section·id="s-expressions">
101 <span·id="expressions"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code><a·class="headerlink"·href="#expressions"·title="Link·to·this·heading">¶</a></h3>102 <span·id="expressions"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code><a·class="headerlink"·href="#expressions"·title="Link·to·this·heading">¶</a></h3>
102 <dl·class="py·attribute">103 <dl·class="py·attribute">
103 <dt·class="sig·sig-object·py"·id="django.db.models.Index.expressions">104 <dt·class="sig·sig-object·py"·id="django.db.models.Index.expressions">
Offset 194, 15 lines modifiedOffset 195, 15 lines modified
194 index·is·created·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">db_tablespace</span></code>·of·the·field.</p>195 index·is·created·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">db_tablespace</span></code>·of·the·field.</p>
195 <p>If·<a·class="reference·internal"·href="fields.html#django.db.models.Field.db_tablespace"·title="django.db.models.Field.db_tablespace"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Field.db_tablespace</span></code></a>·isn’t·specified·(or·if·the·index·uses·multiple196 <p>If·<a·class="reference·internal"·href="fields.html#django.db.models.Field.db_tablespace"·title="django.db.models.Field.db_tablespace"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Field.db_tablespace</span></code></a>·isn’t·specified·(or·if·the·index·uses·multiple
196 fields),·the·index·is·created·in·tablespace·specified·in·the197 fields),·the·index·is·created·in·tablespace·specified·in·the
197 <a·class="reference·internal"·href="options.html#django.db.models.Options.db_tablespace"·title="django.db.models.Options.db_tablespace"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">db_tablespace</span></code></a>·option·inside·the·model’s198 <a·class="reference·internal"·href="options.html#django.db.models.Options.db_tablespace"·title="django.db.models.Options.db_tablespace"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">db_tablespace</span></code></a>·option·inside·the·model’s
198 <code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Meta</span></code>.·If·neither·of·those·tablespaces·are·set,·the·index·is·created199 <code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Meta</span></code>.·If·neither·of·those·tablespaces·are·set,·the·index·is·created
199 in·the·same·tablespace·as·the·table.</p>200 in·the·same·tablespace·as·the·table.</p>
200 <div·class="admonition·seealso">201 <div·class="admonition·seealso">
201 <p·class="admonition-title">See·also</p>202 <p·class="admonition-title">Vedi·anche</p>
202 <p>For·a·list·of·PostgreSQL-specific·indexes,·see203 <p>For·a·list·of·PostgreSQL-specific·indexes,·see
203 <a·class="reference·internal"·href="../contrib/postgres/indexes.html#module-django.contrib.postgres.indexes"·title="django.contrib.postgres.indexes"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.indexes</span></code></a>.</p>204 <a·class="reference·internal"·href="../contrib/postgres/indexes.html#module-django.contrib.postgres.indexes"·title="django.contrib.postgres.indexes"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.indexes</span></code></a>.</p>
204 </div>205 </div>
205 </section>206 </section>
206 <section·id="s-opclasses">207 <section·id="s-opclasses">
207 <span·id="opclasses"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">opclasses</span></code><a·class="headerlink"·href="#opclasses"·title="Link·to·this·heading">¶</a></h3>208 <span·id="opclasses"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">opclasses</span></code><a·class="headerlink"·href="#opclasses"·title="Link·to·this·heading">¶</a></h3>
208 <dl·class="py·attribute">209 <dl·class="py·attribute">
Offset 320, 37 lines modifiedOffset 321, 37 lines modified
320 </li>321 </li>
321 </ul>322 </ul>
322 </li>323 </li>
323 </ul>324 </ul>
  
324 ··</div>325 ··</div>
325 ··<div>326 ··<div>
326 ····<h4>Previous·topic</h4>327 ····<h4>Argomento·precedente</h4>
327 ····<p·class="topless"><a·href="fields.html"328 ····<p·class="topless"><a·href="fields.html"
328 ··························title="previous·chapter">Model·field·reference</a></p>329 ··························title="capitolo·precedente">Model·field·reference</a></p>
329 ··</div>330 ··</div>
330 ··<div>331 ··<div>
331 ····<h4>Next·topic</h4>332 ····<h4>Argomento·successivo</h4>
332 ····<p·class="topless"><a·href="constraints.html"333 ····<p·class="topless"><a·href="constraints.html"
333 ··························title="next·chapter">Constraints·reference</a></p>334 ··························title="capitolo·successivo">Constraints·reference</a></p>
334 ··</div>335 ··</div>
335 <search·id="searchbox"·style="display:·none"·role="search">336 <search·id="searchbox"·style="display:·none"·role="search">
336 ··<h3·id="searchlabel">Quick·search</h3>337 ··<h3·id="searchlabel">Ricerca·veloce</h3>
337 ····<div·class="searchformwrapper">338 ····<div·class="searchformwrapper">
338 ····<form·class="search"·action="../../search.html"·method="get">339 ····<form·class="search"·action="../../search.html"·method="get">
339 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>340 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
340 ······<input·type="submit"·value="Go"·/>341 ······<input·type="submit"·value="Vai"·/>
341 ····</form>342 ····</form>
342 ····</div>343 ····</div>
343 </search>344 </search>
344 <script>document.getElementById('searchbox').style.display·=·"block"</script>345 <script>document.getElementById('searchbox').style.display·=·"block"</script>
345 ········</div>346 ········</div>
346 ······</div>347 ······</div>
347 ··············<h3>Last·update:</h3>348 ··············<h3>Last·update:</h3>
348 ··············<p·class="topless">Sep·03,·2024</p>349 ··············<p·class="topless">set·03,·2024</p>
349 ··········</div>350 ··········</div>
350 ········351 ········
351 ······352 ······
352 ····</div>353 ····</div>
  
353 ····<div·id="ft">354 ····<div·id="ft">
354 ······<div·class="nav">355 ······<div·class="nav">
4.17 KB
html2text {}
Max HTML report size reached
80.7 KB
./usr/share/doc/python-django-doc/html/ref/models/instances.html
Max HTML report size reached
19.3 KB
./usr/share/doc/python-django-doc/html/ref/models/lookups.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Lookup·API·reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Lookup·API·reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Query·Expressions"·href="expressions.html"·/>15 ····<link·rel="next"·title="Query·Expressions"·href="expressions.html"·/>
15 ····<link·rel="prev"·title="QuerySet·API·reference"·href="querysets.html"·/>16 ····<link·rel="prev"·title="QuerySet·API·reference"·href="querysets.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 217, 15 lines modifiedOffset 218, 15 lines modified
217 </dd></dl>218 </dd></dl>
  
218 </section>219 </section>
219 <section·id="s-transform-reference">220 <section·id="s-transform-reference">
220 <span·id="transform-reference"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·reference<a·class="headerlink"·href="#transform-reference"·title="Link·to·this·heading">¶</a></h2>221 <span·id="transform-reference"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·reference<a·class="headerlink"·href="#transform-reference"·title="Link·to·this·heading">¶</a></h2>
221 <dl·class="py·class">222 <dl·class="py·class">
222 <dt·class="sig·sig-object·py"·id="django.db.models.Transform">223 <dt·class="sig·sig-object·py"·id="django.db.models.Transform">
223 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Transform</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Transform"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Transform"·title="Link·to·this·definition">¶</a></dt>224 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Transform</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Transform"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Transform"·title="Link·to·this·definition">¶</a></dt>
224 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·is·a·generic·class·to·implement·field·transformations.·A225 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·is·a·generic·class·to·implement·field·transformations.·A
225 prominent·example·is·<code·class="docutils·literal·notranslate"><span·class="pre">__year</span></code>·that·transforms·a·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·into·a226 prominent·example·is·<code·class="docutils·literal·notranslate"><span·class="pre">__year</span></code>·that·transforms·a·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·into·a
226 <code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>.</p>227 <code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>.</p>
227 <p>The·notation·to·use·a·<code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·in·a·lookup·expression·is228 <p>The·notation·to·use·a·<code·class="docutils·literal·notranslate"><span·class="pre">Transform</span></code>·in·a·lookup·expression·is
228 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;expression&gt;__&lt;transformation&gt;</span></code>·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">date__year</span></code>).</p>229 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;expression&gt;__&lt;transformation&gt;</span></code>·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">date__year</span></code>).</p>
229 <p>This·class·follows·the·<a·class="reference·internal"·href="#query-expression"><span·class="std·std-ref">Query·Expression·API</span></a>,·which230 <p>This·class·follows·the·<a·class="reference·internal"·href="#query-expression"><span·class="std·std-ref">Query·Expression·API</span></a>,·which
230 implies·that·you·can·use·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;expression&gt;__&lt;transform1&gt;__&lt;transform2&gt;</span></code>.·It’s231 implies·that·you·can·use·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;expression&gt;__&lt;transform1&gt;__&lt;transform2&gt;</span></code>.·It’s
Offset 266, 15 lines modifiedOffset 267, 15 lines modified
266 </dd></dl>267 </dd></dl>
  
267 </section>268 </section>
268 <section·id="s-lookup-reference">269 <section·id="s-lookup-reference">
269 <span·id="lookup-reference"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·reference<a·class="headerlink"·href="#lookup-reference"·title="Link·to·this·heading">¶</a></h2>270 <span·id="lookup-reference"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·reference<a·class="headerlink"·href="#lookup-reference"·title="Link·to·this·heading">¶</a></h2>
270 <dl·class="py·class">271 <dl·class="py·class">
271 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup">272 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup">
272 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Lookup</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup"·title="Link·to·this·definition">¶</a></dt>273 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Lookup</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup"·title="Link·to·this·definition">¶</a></dt>
273 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·is·a·generic·class·to·implement·lookups.·A·lookup·is·a·query274 <dd><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·is·a·generic·class·to·implement·lookups.·A·lookup·is·a·query
274 expression·with·a·left-hand·side,·<a·class="reference·internal"·href="#django.db.models.Lookup.lhs"·title="django.db.models.Lookup.lhs"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">lhs</span></code></a>;·a·right-hand·side,275 expression·with·a·left-hand·side,·<a·class="reference·internal"·href="#django.db.models.Lookup.lhs"·title="django.db.models.Lookup.lhs"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">lhs</span></code></a>;·a·right-hand·side,
275 <a·class="reference·internal"·href="#django.db.models.Lookup.rhs"·title="django.db.models.Lookup.rhs"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">rhs</span></code></a>;·and·a·<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·that·is·used·to·produce·a·boolean276 <a·class="reference·internal"·href="#django.db.models.Lookup.rhs"·title="django.db.models.Lookup.rhs"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">rhs</span></code></a>;·and·a·<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·that·is·used·to·produce·a·boolean
276 comparison·between·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">rhs</span></code>·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span>·<span·class="pre">in</span>·<span·class="pre">rhs</span></code>·or277 comparison·between·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">rhs</span></code>·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span>·<span·class="pre">in</span>·<span·class="pre">rhs</span></code>·or
277 <code·class="docutils·literal·notranslate"><span·class="pre">lhs</span>·<span·class="pre">&gt;</span>·<span·class="pre">rhs</span></code>.</p>278 <code·class="docutils·literal·notranslate"><span·class="pre">lhs</span>·<span·class="pre">&gt;</span>·<span·class="pre">rhs</span></code>.</p>
278 <p>The·primary·notation·to·use·a·lookup·in·an·expression·is279 <p>The·primary·notation·to·use·a·lookup·in·an·expression·is
279 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;lhs&gt;__&lt;lookup_name&gt;=&lt;rhs&gt;</span></code>.·Lookups·can·also·be·used·directly·in280 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;lhs&gt;__&lt;lookup_name&gt;=&lt;rhs&gt;</span></code>.·Lookups·can·also·be·used·directly·in
Offset 307, 27 lines modifiedOffset 308, 27 lines modified
307 <span·class="sig-name·descname"><span·class="pre">lookup_name</span></span><a·class="headerlink"·href="#django.db.models.Lookup.lookup_name"·title="Link·to·this·definition">¶</a></dt>308 <span·class="sig-name·descname"><span·class="pre">lookup_name</span></span><a·class="headerlink"·href="#django.db.models.Lookup.lookup_name"·title="Link·to·this·definition">¶</a></dt>
308 <dd><p>The·name·of·this·lookup,·used·to·identify·it·on·parsing·query309 <dd><p>The·name·of·this·lookup,·used·to·identify·it·on·parsing·query
309 expressions.·It·cannot·contain·the·string·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;__&quot;</span></code>.</p>310 expressions.·It·cannot·contain·the·string·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;__&quot;</span></code>.</p>
310 </dd></dl>311 </dd></dl>
  
311 <dl·class="py·method">312 <dl·class="py·method">
312 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup.process_lhs">313 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup.process_lhs">
313 <span·class="sig-name·descname"><span·class="pre">process_lhs</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">compiler</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">connection</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">lhs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup.process_lhs"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup.process_lhs"·title="Link·to·this·definition">¶</a></dt>314 <span·class="sig-name·descname"><span·class="pre">process_lhs</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">compiler</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">connection</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">lhs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup.process_lhs"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup.process_lhs"·title="Link·to·this·definition">¶</a></dt>
314 <dd><p>Returns·a·tuple·<code·class="docutils·literal·notranslate"><span·class="pre">(lhs_string,</span>·<span·class="pre">lhs_params)</span></code>,·as·returned·by315 <dd><p>Returns·a·tuple·<code·class="docutils·literal·notranslate"><span·class="pre">(lhs_string,</span>·<span·class="pre">lhs_params)</span></code>,·as·returned·by
315 <code·class="docutils·literal·notranslate"><span·class="pre">compiler.compile(lhs)</span></code>.·This·method·can·be·overridden·to·tune·how316 <code·class="docutils·literal·notranslate"><span·class="pre">compiler.compile(lhs)</span></code>.·This·method·can·be·overridden·to·tune·how
316 the·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·is·processed.</p>317 the·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·is·processed.</p>
317 <p><code·class="docutils·literal·notranslate"><span·class="pre">compiler</span></code>·is·an·<code·class="docutils·literal·notranslate"><span·class="pre">SQLCompiler</span></code>·object,·to·be·used·like318 <p><code·class="docutils·literal·notranslate"><span·class="pre">compiler</span></code>·is·an·<code·class="docutils·literal·notranslate"><span·class="pre">SQLCompiler</span></code>·object,·to·be·used·like
318 <code·class="docutils·literal·notranslate"><span·class="pre">compiler.compile(lhs)</span></code>·for·compiling·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>.·The·<code·class="docutils·literal·notranslate"><span·class="pre">connection</span></code>319 <code·class="docutils·literal·notranslate"><span·class="pre">compiler.compile(lhs)</span></code>·for·compiling·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>.·The·<code·class="docutils·literal·notranslate"><span·class="pre">connection</span></code>
319 can·be·used·for·compiling·vendor·specific·SQL.·If·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·is·not320 can·be·used·for·compiling·vendor·specific·SQL.·If·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·is·not
320 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>,·use·it·as·the·processed·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">self.lhs</span></code>.</p>321 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>,·use·it·as·the·processed·<code·class="docutils·literal·notranslate"><span·class="pre">lhs</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">self.lhs</span></code>.</p>
321 </dd></dl>322 </dd></dl>
  
322 <dl·class="py·method">323 <dl·class="py·method">
323 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup.process_rhs">324 <dt·class="sig·sig-object·py"·id="django.db.models.Lookup.process_rhs">
324 <span·class="sig-name·descname"><span·class="pre">process_rhs</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">compiler</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">connection</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup.process_rhs"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup.process_rhs"·title="Link·to·this·definition">¶</a></dt>325 <span·class="sig-name·descname"><span·class="pre">process_rhs</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">compiler</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">connection</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/lookups.html#Lookup.process_rhs"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Lookup.process_rhs"·title="Link·to·this·definition">¶</a></dt>
325 <dd><p>Behaves·the·same·way·as·<a·class="reference·internal"·href="#django.db.models.Lookup.process_lhs"·title="django.db.models.Lookup.process_lhs"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">process_lhs()</span></code></a>,·for·the·right-hand·side.</p>326 <dd><p>Behaves·the·same·way·as·<a·class="reference·internal"·href="#django.db.models.Lookup.process_lhs"·title="django.db.models.Lookup.process_lhs"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">process_lhs()</span></code></a>,·for·the·right-hand·side.</p>
326 </dd></dl>327 </dd></dl>
  
327 </dd></dl>328 </dd></dl>
  
328 </section>329 </section>
329 </section>330 </section>
Offset 352, 37 lines modifiedOffset 353, 37 lines modified
352 <li><a·class="reference·internal"·href="#lookup-reference"><code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·reference</a></li>353 <li><a·class="reference·internal"·href="#lookup-reference"><code·class="docutils·literal·notranslate"><span·class="pre">Lookup</span></code>·reference</a></li>
353 </ul>354 </ul>
354 </li>355 </li>
355 </ul>356 </ul>
  
356 ··</div>357 ··</div>
357 ··<div>358 ··<div>
358 ····<h4>Previous·topic</h4>359 ····<h4>Argomento·precedente</h4>
359 ····<p·class="topless"><a·href="querysets.html"360 ····<p·class="topless"><a·href="querysets.html"
360 ··························title="previous·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·API·reference</a></p>361 ··························title="capitolo·precedente"><code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·API·reference</a></p>
361 ··</div>362 ··</div>
362 ··<div>363 ··<div>
363 ····<h4>Next·topic</h4>364 ····<h4>Argomento·successivo</h4>
364 ····<p·class="topless"><a·href="expressions.html"365 ····<p·class="topless"><a·href="expressions.html"
365 ··························title="next·chapter">Query·Expressions</a></p>366 ··························title="capitolo·successivo">Query·Expressions</a></p>
366 ··</div>367 ··</div>
367 <search·id="searchbox"·style="display:·none"·role="search">368 <search·id="searchbox"·style="display:·none"·role="search">
368 ··<h3·id="searchlabel">Quick·search</h3>369 ··<h3·id="searchlabel">Ricerca·veloce</h3>
369 ····<div·class="searchformwrapper">370 ····<div·class="searchformwrapper">
370 ····<form·class="search"·action="../../search.html"·method="get">371 ····<form·class="search"·action="../../search.html"·method="get">
371 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>372 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
372 ······<input·type="submit"·value="Go"·/>373 ······<input·type="submit"·value="Vai"·/>
373 ····</form>374 ····</form>
374 ····</div>375 ····</div>
375 </search>376 </search>
376 <script>document.getElementById('searchbox').style.display·=·"block"</script>377 <script>document.getElementById('searchbox').style.display·=·"block"</script>
377 ········</div>378 ········</div>
Max diff block lines reached; 233/13796 bytes (1.69%) of diff not shown.
5.68 KB
html2text {}
Max HTML report size reached
19.0 KB
./usr/share/doc/python-django-doc/html/ref/models/meta.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Model·_meta·API·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Model·_meta·API·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Related·objects·reference"·href="relations.html"·/>15 ····<link·rel="next"·title="Related·objects·reference"·href="relations.html"·/>
15 ····<link·rel="prev"·title="Constraints·reference"·href="constraints.html"·/>16 ····<link·rel="prev"·title="Constraints·reference"·href="constraints.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="ref-models-meta">79 ··········<div·class="yui-g"·id="ref-models-meta">
79 ············80 ············
80 ··<section·id="s-module-django.db.models.options">81 ··<section·id="s-module-django.db.models.options">
81 <span·id="s-model-meta-api"></span><span·id="module-django.db.models.options"></span><span·id="model-meta-api"></span><h1>Model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API<a·class="headerlink"·href="#module-django.db.models.options"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-model-meta-api"></span><span·id="module-django.db.models.options"></span><span·id="model-meta-api"></span><h1>Model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API<a·class="headerlink"·href="#module-django.db.models.options"·title="Link·to·this·heading">¶</a></h1>
82 <dl·class="py·class">83 <dl·class="py·class">
83 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options">84 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options">
84 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Options</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options"·title="Link·to·this·definition">¶</a></dt>85 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Options</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options"·title="Link·to·this·definition">¶</a></dt>
85 <dd></dd></dl>86 <dd></dd></dl>
  
86 <p>The·model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API·is·at·the·core·of·the·Django·ORM.·It·enables·other87 <p>The·model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API·is·at·the·core·of·the·Django·ORM.·It·enables·other
87 parts·of·the·system·such·as·lookups,·queries,·forms,·and·the·admin·to88 parts·of·the·system·such·as·lookups,·queries,·forms,·and·the·admin·to
88 understand·the·capabilities·of·each·model.·The·API·is·accessible·through89 understand·the·capabilities·of·each·model.·The·API·is·accessible·through
89 the·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·attribute·of·each·model·class,·which·is·an·instance·of·an90 the·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·attribute·of·each·model·class,·which·is·an·instance·of·an
90 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.options.Options</span></code>·object.</p>91 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.options.Options</span></code>·object.</p>
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 </ul>97 </ul>
97 <section·id="s-field-access-api">98 <section·id="s-field-access-api">
98 <span·id="s-model-meta-field-api"></span><span·id="field-access-api"></span><span·id="model-meta-field-api"></span><h2>Field·access·API<a·class="headerlink"·href="#field-access-api"·title="Link·to·this·heading">¶</a></h2>99 <span·id="s-model-meta-field-api"></span><span·id="field-access-api"></span><span·id="model-meta-field-api"></span><h2>Field·access·API<a·class="headerlink"·href="#field-access-api"·title="Link·to·this·heading">¶</a></h2>
99 <section·id="s-retrieving-a-single-field-instance-of-a-model-by-name">100 <section·id="s-retrieving-a-single-field-instance-of-a-model-by-name">
100 <span·id="retrieving-a-single-field-instance-of-a-model-by-name"></span><h3>Retrieving·a·single·field·instance·of·a·model·by·name<a·class="headerlink"·href="#retrieving-a-single-field-instance-of-a-model-by-name"·title="Link·to·this·heading">¶</a></h3>101 <span·id="retrieving-a-single-field-instance-of-a-model-by-name"></span><h3>Retrieving·a·single·field·instance·of·a·model·by·name<a·class="headerlink"·href="#retrieving-a-single-field-instance-of-a-model-by-name"·title="Link·to·this·heading">¶</a></h3>
101 <dl·class="py·method">102 <dl·class="py·method">
102 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options.get_field">103 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options.get_field">
103 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">get_field</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">field_name</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options.get_field"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options.get_field"·title="Link·to·this·definition">¶</a></dt>104 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">get_field</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">field_name</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options.get_field"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options.get_field"·title="Link·to·this·definition">¶</a></dt>
104 <dd><p>Returns·the·field·instance·given·a·name·of·a·field.</p>105 <dd><p>Returns·the·field·instance·given·a·name·of·a·field.</p>
105 <p><code·class="docutils·literal·notranslate"><span·class="pre">field_name</span></code>·can·be·the·name·of·a·field·on·the·model,·a·field106 <p><code·class="docutils·literal·notranslate"><span·class="pre">field_name</span></code>·can·be·the·name·of·a·field·on·the·model,·a·field
106 on·an·abstract·or·inherited·model,·or·a·field·defined·on·another107 on·an·abstract·or·inherited·model,·or·a·field·defined·on·another
107 model·that·points·to·the·model.·In·the·latter·case,·the·<code·class="docutils·literal·notranslate"><span·class="pre">field_name</span></code>108 model·that·points·to·the·model.·In·the·latter·case,·the·<code·class="docutils·literal·notranslate"><span·class="pre">field_name</span></code>
108 will·be·(in·order·of·preference)·the·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey.related_query_name"·title="django.db.models.ForeignKey.related_query_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">related_query_name</span></code></a>109 will·be·(in·order·of·preference)·the·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey.related_query_name"·title="django.db.models.ForeignKey.related_query_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">related_query_name</span></code></a>
109 set·by·the·user,·the·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey.related_name"·title="django.db.models.ForeignKey.related_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">related_name</span></code></a>·set·by·the·user,·or110 set·by·the·user,·the·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey.related_name"·title="django.db.models.ForeignKey.related_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">related_name</span></code></a>·set·by·the·user,·or
110 the·name·automatically·generated·by·Django.</p>111 the·name·automatically·generated·by·Django.</p>
Offset 133, 29 lines modifiedOffset 134, 29 lines modified
133 </dd></dl>134 </dd></dl>
  
134 </section>135 </section>
135 <section·id="s-retrieving-all-field-instances-of-a-model">136 <section·id="s-retrieving-all-field-instances-of-a-model">
136 <span·id="retrieving-all-field-instances-of-a-model"></span><h3>Retrieving·all·field·instances·of·a·model<a·class="headerlink"·href="#retrieving-all-field-instances-of-a-model"·title="Link·to·this·heading">¶</a></h3>137 <span·id="retrieving-all-field-instances-of-a-model"></span><h3>Retrieving·all·field·instances·of·a·model<a·class="headerlink"·href="#retrieving-all-field-instances-of-a-model"·title="Link·to·this·heading">¶</a></h3>
137 <dl·class="py·method">138 <dl·class="py·method">
138 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options.get_fields">139 <dt·class="sig·sig-object·py"·id="django.db.models.options.Options.get_fields">
139 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">get_fields</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">include_parents</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include_hidden</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options.get_fields"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options.get_fields"·title="Link·to·this·definition">¶</a></dt>140 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">get_fields</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">include_parents</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">include_hidden</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/db/models/options.html#Options.get_fields"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.options.Options.get_fields"·title="Link·to·this·definition">¶</a></dt>
140 <dd><p>Returns·a·tuple·of·fields·associated·with·a·model.·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·accepts141 <dd><p>Returns·a·tuple·of·fields·associated·with·a·model.·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·accepts
141 two·parameters·that·can·be·used·to·control·which·fields·are·returned:</p>142 two·parameters·that·can·be·used·to·control·which·fields·are·returned:</p>
142 <dl·class="simple">143 <dl·class="simple">
143 <dt><code·class="docutils·literal·notranslate"><span·class="pre">include_parents</span></code></dt><dd><p><code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·by·default.·Recursively·includes·fields·defined·on·parent144 <dt><code·class="docutils·literal·notranslate"><span·class="pre">include_parents</span></code></dt><dd><p><code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·by·default.·Recursively·includes·fields·defined·on·parent
144 classes.·If·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·will·only·search·for145 classes.·If·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·will·only·search·for
145 fields·declared·directly·on·the·current·model.·Fields·from·models·that146 fields·declared·directly·on·the·current·model.·Fields·from·models·that
146 directly·inherit·from·abstract·models·or·proxy·classes·are·considered147 directly·inherit·from·abstract·models·or·proxy·classes·are·considered
147 to·be·local,·not·on·the·parent.</p>148 to·be·local,·not·on·the·parent.</p>
148 </dd>149 </dd>
149 <dt><code·class="docutils·literal·notranslate"><span·class="pre">include_hidden</span></code></dt><dd><p><code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·by·default.·If·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·will·include150 <dt><code·class="docutils·literal·notranslate"><span·class="pre">include_hidden</span></code></dt><dd><p><code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·by·default.·If·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">get_fields()</span></code>·will·include
150 fields·that·are·used·to·back·other·field’s·functionality.·This·will151 fields·that·are·used·to·back·other·field’s·functionality.·This·will
151 also·include·any·fields·that·have·a·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·(such152 also·include·any·fields·that·have·a·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·(such
152 as·<a·class="reference·internal"·href="fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>,·or153 as·<a·class="reference·internal"·href="fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>,·or
153 <a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>)·that·start·with·a·+.</p>154 <a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>)·that·start·with·a·«+».</p>
154 </dd>155 </dd>
155 </dl>156 </dl>
156 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth.models</span>·<span·class="kn">import</span>·<span·class="n">User</span>157 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.contrib.auth.models</span>·<span·class="kn">import</span>·<span·class="n">User</span>
157 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">User</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">get_fields</span><span·class="p">()</span>158 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">User</span><span·class="o">.</span><span·class="n">_meta</span><span·class="o">.</span><span·class="n">get_fields</span><span·class="p">()</span>
158 <span·class="go">(&lt;ManyToOneRel:·admin.logentry&gt;,</span>159 <span·class="go">(&lt;ManyToOneRel:·admin.logentry&gt;,</span>
159 <span·class="go">·&lt;django.db.models.fields.AutoField:·id&gt;,</span>160 <span·class="go">·&lt;django.db.models.fields.AutoField:·id&gt;,</span>
160 <span·class="go">·&lt;django.db.models.fields.CharField:·password&gt;,</span>161 <span·class="go">·&lt;django.db.models.fields.CharField:·password&gt;,</span>
Offset 218, 37 lines modifiedOffset 219, 37 lines modified
218 </li>219 </li>
219 </ul>220 </ul>
220 </li>221 </li>
221 </ul>222 </ul>
  
222 ··</div>223 ··</div>
223 ··<div>224 ··<div>
224 ····<h4>Previous·topic</h4>225 ····<h4>Argomento·precedente</h4>
225 ····<p·class="topless"><a·href="constraints.html"226 ····<p·class="topless"><a·href="constraints.html"
226 ··························title="previous·chapter">Constraints·reference</a></p>227 ··························title="capitolo·precedente">Constraints·reference</a></p>
227 ··</div>228 ··</div>
228 ··<div>229 ··<div>
229 ····<h4>Next·topic</h4>230 ····<h4>Argomento·successivo</h4>
230 ····<p·class="topless"><a·href="relations.html"231 ····<p·class="topless"><a·href="relations.html"
231 ··························title="next·chapter">Related·objects·reference</a></p>232 ··························title="capitolo·successivo">Related·objects·reference</a></p>
232 ··</div>233 ··</div>
233 <search·id="searchbox"·style="display:·none"·role="search">234 <search·id="searchbox"·style="display:·none"·role="search">
234 ··<h3·id="searchlabel">Quick·search</h3>235 ··<h3·id="searchlabel">Ricerca·veloce</h3>
235 ····<div·class="searchformwrapper">236 ····<div·class="searchformwrapper">
236 ····<form·class="search"·action="../../search.html"·method="get">237 ····<form·class="search"·action="../../search.html"·method="get">
237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>238 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
238 ······<input·type="submit"·value="Go"·/>239 ······<input·type="submit"·value="Vai"·/>
239 ····</form>240 ····</form>
240 ····</div>241 ····</div>
241 </search>242 </search>
Max diff block lines reached; 263/13577 bytes (1.94%) of diff not shown.
5.65 KB
html2text {}
Max HTML report size reached
18.4 KB
./usr/share/doc/python-django-doc/html/ref/models/options.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Model·Meta·options·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Model·Meta·options·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Model·instance·reference"·href="instances.html"·/>15 ····<link·rel="next"·title="Model·instance·reference"·href="instances.html"·/>
15 ····<link·rel="prev"·title="Model·class·reference"·href="class.html"·/>16 ····<link·rel="prev"·title="Model·class·reference"·href="class.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 130, 15 lines modifiedOffset 131, 15 lines modified
130 </div>131 </div>
131 </dd></dl>132 </dd></dl>
  
132 <section·id="s-table-names">133 <section·id="s-table-names">
133 <span·id="s-id1"></span><span·id="table-names"></span><span·id="id1"></span><h4>Table·names<a·class="headerlink"·href="#table-names"·title="Link·to·this·heading">¶</a></h4>134 <span·id="s-id1"></span><span·id="table-names"></span><span·id="id1"></span><h4>Table·names<a·class="headerlink"·href="#table-names"·title="Link·to·this·heading">¶</a></h4>
134 <p>To·save·you·time,·Django·automatically·derives·the·name·of·the·database·table135 <p>To·save·you·time,·Django·automatically·derives·the·name·of·the·database·table
135 from·the·name·of·your·model·class·and·the·app·that·contains·it.·A·model’s136 from·the·name·of·your·model·class·and·the·app·that·contains·it.·A·model’s
136 database·table·name·is·constructed·by·joining·the·model’s·app·label··the137 database·table·name·is·constructed·by·joining·the·model’s·«app·label»··the
137 name·you·used·in·<a·class="reference·internal"·href="../django-admin.html#django-admin-startapp"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span></code></a>··to·the·model’s138 name·you·used·in·<a·class="reference·internal"·href="../django-admin.html#django-admin-startapp"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span></code></a>··to·the·model’s
138 class·name,·with·an·underscore·between·them.</p>139 class·name,·with·an·underscore·between·them.</p>
139 <p>For·example,·if·you·have·an·app·<code·class="docutils·literal·notranslate"><span·class="pre">bookstore</span></code>·(as·created·by140 <p>For·example,·if·you·have·an·app·<code·class="docutils·literal·notranslate"><span·class="pre">bookstore</span></code>·(as·created·by
140 <code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span>·<span·class="pre">bookstore</span></code>),·a·model·defined·as·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Book</span></code>·will·have141 <code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span>·<span·class="pre">bookstore</span></code>),·a·model·defined·as·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Book</span></code>·will·have
141 a·database·table·named·<code·class="docutils·literal·notranslate"><span·class="pre">bookstore_book</span></code>.</p>142 a·database·table·named·<code·class="docutils·literal·notranslate"><span·class="pre">bookstore_book</span></code>.</p>
142 <p>To·override·the·database·table·name,·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">db_table</span></code>·parameter·in143 <p>To·override·the·database·table·name,·use·the·<code·class="docutils·literal·notranslate"><span·class="pre">db_table</span></code>·parameter·in
143 <code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Meta</span></code>.</p>144 <code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Meta</span></code>.</p>
Offset 252, 15 lines modifiedOffset 253, 15 lines modified
252 <span·id="managed"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">managed</span></code><a·class="headerlink"·href="#managed"·title="Link·to·this·heading">¶</a></h3>253 <span·id="managed"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">managed</span></code><a·class="headerlink"·href="#managed"·title="Link·to·this·heading">¶</a></h3>
253 <dl·class="py·attribute">254 <dl·class="py·attribute">
254 <dt·class="sig·sig-object·py"·id="django.db.models.Options.managed">255 <dt·class="sig·sig-object·py"·id="django.db.models.Options.managed">
255 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">managed</span></span><a·class="headerlink"·href="#django.db.models.Options.managed"·title="Link·to·this·definition">¶</a></dt>256 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">managed</span></span><a·class="headerlink"·href="#django.db.models.Options.managed"·title="Link·to·this·definition">¶</a></dt>
256 <dd><p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·meaning·Django·will·create·the·appropriate·database257 <dd><p>Defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·meaning·Django·will·create·the·appropriate·database
257 tables·in·<a·class="reference·internal"·href="../django-admin.html#django-admin-migrate"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">migrate</span></code></a>·or·as·part·of·migrations·and·remove·them·as258 tables·in·<a·class="reference·internal"·href="../django-admin.html#django-admin-migrate"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">migrate</span></code></a>·or·as·part·of·migrations·and·remove·them·as
258 part·of·a·<a·class="reference·internal"·href="../django-admin.html#django-admin-flush"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">flush</span></code></a>·management·command.·That·is,·Django259 part·of·a·<a·class="reference·internal"·href="../django-admin.html#django-admin-flush"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">flush</span></code></a>·management·command.·That·is,·Django
259 <em>manages</em>·the·database·tables·lifecycles.</p>260 <em>manages</em>·the·database·tables·lifecycles.</p>
260 <p>If·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·no·database·table·creation,·modification,·or·deletion261 <p>If·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·no·database·table·creation,·modification,·or·deletion
261 operations·will·be·performed·for·this·model.·This·is·useful·if·the·model262 operations·will·be·performed·for·this·model.·This·is·useful·if·the·model
262 represents·an·existing·table·or·a·database·view·that·has·been·created·by263 represents·an·existing·table·or·a·database·view·that·has·been·created·by
263 some·other·means.·This·is·the·<em>only</em>·difference·when·<code·class="docutils·literal·notranslate"><span·class="pre">managed=False</span></code>.·All264 some·other·means.·This·is·the·<em>only</em>·difference·when·<code·class="docutils·literal·notranslate"><span·class="pre">managed=False</span></code>.·All
264 other·aspects·of·model·handling·are·exactly·the·same·as·normal.·This265 other·aspects·of·model·handling·are·exactly·the·same·as·normal.·This
265 includes</p>266 includes</p>
266 <ol·class="arabic">267 <ol·class="arabic">
Offset 363, 16 lines modifiedOffset 364, 16 lines modified
363 <dt·class="sig·sig-object·py"·id="django.db.models.Options.ordering">364 <dt·class="sig·sig-object·py"·id="django.db.models.Options.ordering">
364 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">ordering</span></span><a·class="headerlink"·href="#django.db.models.Options.ordering"·title="Link·to·this·definition">¶</a></dt>365 <span·class="sig-prename·descclassname"><span·class="pre">Options.</span></span><span·class="sig-name·descname"><span·class="pre">ordering</span></span><a·class="headerlink"·href="#django.db.models.Options.ordering"·title="Link·to·this·definition">¶</a></dt>
365 <dd><p>The·default·ordering·for·the·object,·for·use·when·obtaining·lists·of·objects:</p>366 <dd><p>The·default·ordering·for·the·object,·for·use·when·obtaining·lists·of·objects:</p>
366 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;-order_date&quot;</span><span·class="p">]</span>367 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;-order_date&quot;</span><span·class="p">]</span>
367 </pre></div>368 </pre></div>
368 </div>369 </div>
369 <p>This·is·a·tuple·or·list·of·strings·and/or·query·expressions.·Each·string·is370 <p>This·is·a·tuple·or·list·of·strings·and/or·query·expressions.·Each·string·is
370 a·field·name·with·an·optional·-·prefix,·which·indicates·descending·order.371 a·field·name·with·an·optional·«-»·prefix,·which·indicates·descending·order.
371 Fields·without·a·leading·-·will·be·ordered·ascending.·Use·the·string·?372 Fields·without·a·leading·«-»·will·be·ordered·ascending.·Use·the·string·«?»
372 to·order·randomly.</p>373 to·order·randomly.</p>
373 <p>For·example,·to·order·by·a·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·field·ascending,·use·this:</p>374 <p>For·example,·to·order·by·a·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·field·ascending,·use·this:</p>
374 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">]</span>375 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">]</span>
375 </pre></div>376 </pre></div>
376 </div>377 </div>
377 <p>To·order·by·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·descending,·use·this:</p>378 <p>To·order·by·<code·class="docutils·literal·notranslate"><span·class="pre">pub_date</span></code>·descending,·use·this:</p>
378 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;-pub_date&quot;</span><span·class="p">]</span>379 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;-pub_date&quot;</span><span·class="p">]</span>
Offset 388, 15 lines modifiedOffset 389, 15 lines modified
  
388 <span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;author&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">asc</span><span·class="p">(</span><span·class="n">nulls_last</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)]</span>389 <span·class="n">ordering</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">F</span><span·class="p">(</span><span·class="s2">&quot;author&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">asc</span><span·class="p">(</span><span·class="n">nulls_last</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)]</span>
389 </pre></div>390 </pre></div>
390 </div>391 </div>
391 </dd></dl>392 </dd></dl>
  
392 <div·class="admonition·warning">393 <div·class="admonition·warning">
393 <p·class="admonition-title">Warning</p>394 <p·class="admonition-title">Avvertimento</p>
394 <p>Ordering·is·not·a·free·operation.·Each·field·you·add·to·the·ordering395 <p>Ordering·is·not·a·free·operation.·Each·field·you·add·to·the·ordering
395 incurs·a·cost·to·your·database.·Each·foreign·key·you·add·will396 incurs·a·cost·to·your·database.·Each·foreign·key·you·add·will
396 implicitly·include·all·of·its·default·orderings·as·well.</p>397 implicitly·include·all·of·its·default·orderings·as·well.</p>
397 <p>If·a·query·doesn’t·have·an·ordering·specified,·results·are·returned·from398 <p>If·a·query·doesn’t·have·an·ordering·specified,·results·are·returned·from
398 the·database·in·an·unspecified·order.·A·particular·ordering·is·guaranteed399 the·database·in·an·unspecified·order.·A·particular·ordering·is·guaranteed
399 only·when·ordering·by·a·set·of·fields·that·uniquely·identify·each·object·in400 only·when·ordering·by·a·set·of·fields·that·uniquely·identify·each·object·in
400 the·results.·For·example,·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·field·isn’t·unique,·ordering·by·it401 the·results.·For·example,·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·field·isn’t·unique,·ordering·by·it
Offset 561, 15 lines modifiedOffset 562, 15 lines modified
561 <code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">INDEX</span></code>·statement·will·be·issued.)</p>562 <code·class="docutils·literal·notranslate"><span·class="pre">CREATE</span>·<span·class="pre">INDEX</span></code>·statement·will·be·issued.)</p>
562 <p>For·convenience,·<code·class="docutils·literal·notranslate"><span·class="pre">index_together</span></code>·can·be·a·single·list·when·dealing·with·a·single563 <p>For·convenience,·<code·class="docutils·literal·notranslate"><span·class="pre">index_together</span></code>·can·be·a·single·list·when·dealing·with·a·single
563 set·of·fields:</p>564 set·of·fields:</p>
564 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">index_together</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;deadline&quot;</span><span·class="p">]</span>565 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">index_together</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;deadline&quot;</span><span·class="p">]</span>
565 </pre></div>566 </pre></div>
566 </div>567 </div>
567 <div·class="deprecated">568 <div·class="deprecated">
568 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2:·</span>Use·the·<a·class="reference·internal"·href="#django.db.models.Options.indexes"·title="django.db.models.Options.indexes"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">indexes</span></code></a>·option·instead.</p>569 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2:·</span>Use·the·<a·class="reference·internal"·href="#django.db.models.Options.indexes"·title="django.db.models.Options.indexes"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">indexes</span></code></a>·option·instead.</p>
569 </div>570 </div>
570 </dd></dl>571 </dd></dl>
  
571 </section>572 </section>
572 <section·id="s-constraints">573 <section·id="s-constraints">
573 <span·id="constraints"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">constraints</span></code><a·class="headerlink"·href="#constraints"·title="Link·to·this·heading">¶</a></h3>574 <span·id="constraints"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">constraints</span></code><a·class="headerlink"·href="#constraints"·title="Link·to·this·heading">¶</a></h3>
574 <dl·class="py·attribute">575 <dl·class="py·attribute">
Offset 696, 37 lines modifiedOffset 697, 37 lines modified
696 </li>697 </li>
697 </ul>698 </ul>
698 </li>699 </li>
699 </ul>700 </ul>
  
700 ··</div>701 ··</div>
Max diff block lines reached; 1441/11886 bytes (12.12%) of diff not shown.
6.65 KB
html2text {}
Max HTML report size reached
183 KB
./usr/share/doc/python-django-doc/html/ref/models/querysets.html
Max HTML report size reached
10.9 KB
./usr/share/doc/python-django-doc/html/ref/models/relations.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Related·objects·reference·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Related·objects·reference·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Model·class·reference"·href="class.html"·/>15 ····<link·rel="next"·title="Model·class·reference"·href="class.html"·/>
15 ····<link·rel="prev"·title="Model·_meta·API"·href="meta.html"·/>16 ····<link·rel="prev"·title="Model·_meta·API"·href="meta.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 78, 18 lines modifiedOffset 79, 18 lines modified
78 ··········<div·class="yui-g"·id="ref-models-relations">79 ··········<div·class="yui-g"·id="ref-models-relations">
79 ············80 ············
80 ··<section·id="s-related-objects-reference">81 ··<section·id="s-related-objects-reference">
81 <span·id="related-objects-reference"></span><h1>Related·objects·reference<a·class="headerlink"·href="#related-objects-reference"·title="Link·to·this·heading">¶</a></h1>82 <span·id="related-objects-reference"></span><h1>Related·objects·reference<a·class="headerlink"·href="#related-objects-reference"·title="Link·to·this·heading">¶</a></h1>
82 <dl·class="py·class">83 <dl·class="py·class">
83 <dt·class="sig·sig-object·py"·id="django.db.models.fields.related.RelatedManager">84 <dt·class="sig·sig-object·py"·id="django.db.models.fields.related.RelatedManager">
84 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RelatedManager</span></span><a·class="headerlink"·href="#django.db.models.fields.related.RelatedManager"·title="Link·to·this·definition">¶</a></dt>85 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">RelatedManager</span></span><a·class="headerlink"·href="#django.db.models.fields.related.RelatedManager"·title="Link·to·this·definition">¶</a></dt>
85 <dd><p>A·related·manager·is·a·manager·used·in·a·one-to-many·or·many-to-many86 <dd><p>A·«related·manager»·is·a·manager·used·in·a·one-to-many·or·many-to-many
86 related·context.·This·happens·in·two·cases:</p>87 related·context.·This·happens·in·two·cases:</p>
87 <ul>88 <ul>
88 <li><p>The·other·side·of·a·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·relation.89 <li><p>The·«other·side»·of·a·<a·class="reference·internal"·href="fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·relation.
89 That·is:</p>90 That·is:</p>
90 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>91 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
  
  
91 <span·class="k">class</span>·<span·class="nc">Blog</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>92 <span·class="k">class</span>·<span·class="nc">Blog</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
92 ····<span·class="c1">#·...</span>93 ····<span·class="c1">#·...</span>
93 ····<span·class="k">pass</span>94 ····<span·class="k">pass</span>
Offset 306, 15 lines modifiedOffset 307, 15 lines modified
306 intermediate·instance(s).</p>307 intermediate·instance(s).</p>
307 <div·class="versionchanged">308 <div·class="versionchanged">
308 <span·class="title">Changed·in·Django·4.2:</span>·<p><code·class="docutils·literal·notranslate"><span·class="pre">aset()</span></code>·method·was·added.</p>309 <span·class="title">Changed·in·Django·4.2:</span>·<p><code·class="docutils·literal·notranslate"><span·class="pre">aset()</span></code>·method·was·added.</p>
309 </div>310 </div>
310 </dd></dl>311 </dd></dl>
  
311 <div·class="admonition·note">312 <div·class="admonition·note">
312 <p·class="admonition-title">Note</p>313 <p·class="admonition-title">Nota</p>
313 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">add()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aadd()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">create()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">acreate()</span></code>,314 <p>Note·that·<code·class="docutils·literal·notranslate"><span·class="pre">add()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aadd()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">create()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">acreate()</span></code>,
314 <code·class="docutils·literal·notranslate"><span·class="pre">remove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aremove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">clear()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aclear()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">set()</span></code>,·and315 <code·class="docutils·literal·notranslate"><span·class="pre">remove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aremove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">clear()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aclear()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">set()</span></code>,·and
315 <code·class="docutils·literal·notranslate"><span·class="pre">aset()</span></code>·all·apply·database·changes·immediately·for·all·types·of316 <code·class="docutils·literal·notranslate"><span·class="pre">aset()</span></code>·all·apply·database·changes·immediately·for·all·types·of
316 related·fields.·In·other·words,·there·is·no·need·to·call317 related·fields.·In·other·words,·there·is·no·need·to·call
317 <code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">asave()</span></code>·on·either·end·of·the·relationship.</p>318 <code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">asave()</span></code>·on·either·end·of·the·relationship.</p>
318 <p>If·you·use·<a·class="reference·internal"·href="querysets.html#django.db.models.query.QuerySet.prefetch_related"·title="django.db.models.query.QuerySet.prefetch_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code></a>,319 <p>If·you·use·<a·class="reference·internal"·href="querysets.html#django.db.models.query.QuerySet.prefetch_related"·title="django.db.models.query.QuerySet.prefetch_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code></a>,
319 the·<code·class="docutils·literal·notranslate"><span·class="pre">add()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aadd()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">remove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aremove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">clear()</span></code>,320 the·<code·class="docutils·literal·notranslate"><span·class="pre">add()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aadd()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">remove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aremove()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">clear()</span></code>,
Offset 332, 37 lines modifiedOffset 333, 37 lines modified
332 ······333 ······
333 ········334 ········
334 ··········<div·class="yui-b"·id="sidebar">335 ··········<div·class="yui-b"·id="sidebar">
335 ············336 ············
336 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">337 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
337 ········<div·class="sphinxsidebarwrapper">338 ········<div·class="sphinxsidebarwrapper">
338 ··<div>339 ··<div>
339 ····<h4>Previous·topic</h4>340 ····<h4>Argomento·precedente</h4>
340 ····<p·class="topless"><a·href="meta.html"341 ····<p·class="topless"><a·href="meta.html"
341 ··························title="previous·chapter">Model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API</a></p>342 ··························title="capitolo·precedente">Model·<code·class="docutils·literal·notranslate"><span·class="pre">_meta</span></code>·API</a></p>
342 ··</div>343 ··</div>
343 ··<div>344 ··<div>
344 ····<h4>Next·topic</h4>345 ····<h4>Argomento·successivo</h4>
345 ····<p·class="topless"><a·href="class.html"346 ····<p·class="topless"><a·href="class.html"
346 ··························title="next·chapter">Model·class·reference</a></p>347 ··························title="capitolo·successivo">Model·class·reference</a></p>
347 ··</div>348 ··</div>
348 <search·id="searchbox"·style="display:·none"·role="search">349 <search·id="searchbox"·style="display:·none"·role="search">
349 ··<h3·id="searchlabel">Quick·search</h3>350 ··<h3·id="searchlabel">Ricerca·veloce</h3>
350 ····<div·class="searchformwrapper">351 ····<div·class="searchformwrapper">
351 ····<form·class="search"·action="../../search.html"·method="get">352 ····<form·class="search"·action="../../search.html"·method="get">
352 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>353 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
353 ······<input·type="submit"·value="Go"·/>354 ······<input·type="submit"·value="Vai"·/>
354 ····</form>355 ····</form>
355 ····</div>356 ····</div>
356 </search>357 </search>
357 <script>document.getElementById('searchbox').style.display·=·"block"</script>358 <script>document.getElementById('searchbox').style.display·=·"block"</script>
358 ········</div>359 ········</div>
359 ······</div>360 ······</div>
360 ··············<h3>Last·update:</h3>361 ··············<h3>Last·update:</h3>
361 ··············<p·class="topless">Sep·03,·2024</p>362 ··············<p·class="topless">set·03,·2024</p>
362 ··········</div>363 ··········</div>
363 ········364 ········
364 ······365 ······
365 ····</div>366 ····</div>
  
366 ····<div·id="ft">367 ····<div·id="ft">
367 ······<div·class="nav">368 ······<div·class="nav">
2.83 KB
html2text {}
Max HTML report size reached
43.2 KB
./usr/share/doc/python-django-doc/html/ref/paginator.html
Max HTML report size reached
143 KB
./usr/share/doc/python-django-doc/html/ref/request-response.html
Max HTML report size reached
51.8 KB
./usr/share/doc/python-django-doc/html/ref/schema-editor.html
Max HTML report size reached
125 KB
./usr/share/doc/python-django-doc/html/ref/settings.html
Max HTML report size reached
25.8 KB
./usr/share/doc/python-django-doc/html/ref/signals.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Signals·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Signals·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Templates"·href="templates/index.html"·/>15 ····<link·rel="next"·title="Templates"·href="templates/index.html"·/>
15 ····<link·rel="prev"·title="Settings"·href="settings.html"·/>16 ····<link·rel="prev"·title="Settings"·href="settings.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 78, 45 lines modifiedOffset 79, 45 lines modified
78 ··········<div·class="yui-g"·id="ref-signals">79 ··········<div·class="yui-g"·id="ref-signals">
79 ············80 ············
80 ··<section·id="s-signals">81 ··<section·id="s-signals">
81 <span·id="signals"></span><h1>Signals<a·class="headerlink"·href="#signals"·title="Link·to·this·heading">¶</a></h1>82 <span·id="signals"></span><h1>Signals<a·class="headerlink"·href="#signals"·title="Link·to·this·heading">¶</a></h1>
82 <p>A·list·of·all·the·signals·that·Django·sends.·All·built-in·signals·are·sent83 <p>A·list·of·all·the·signals·that·Django·sends.·All·built-in·signals·are·sent
83 using·the·<a·class="reference·internal"·href="../topics/signals.html#django.dispatch.Signal.send"·title="django.dispatch.Signal.send"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">send()</span></code></a>·method.</p>84 using·the·<a·class="reference·internal"·href="../topics/signals.html#django.dispatch.Signal.send"·title="django.dispatch.Signal.send"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">send()</span></code></a>·method.</p>
84 <div·class="admonition·seealso">85 <div·class="admonition·seealso">
85 <p·class="admonition-title">See·also</p>86 <p·class="admonition-title">Vedi·anche</p>
86 <p>See·the·documentation·on·the·<a·class="reference·internal"·href="../topics/signals.html"><span·class="doc">signal·dispatcher</span></a>·for87 <p>See·the·documentation·on·the·<a·class="reference·internal"·href="../topics/signals.html"><span·class="doc">signal·dispatcher</span></a>·for
87 information·regarding·how·to·register·for·and·receive·signals.</p>88 information·regarding·how·to·register·for·and·receive·signals.</p>
88 <p>The·<a·class="reference·internal"·href="../topics/auth/index.html"><span·class="doc">authentication·framework</span></a>·sends·<a·class="reference·internal"·href="contrib/auth.html#topics-auth-signals"><span·class="std·std-ref">signals·when89 <p>The·<a·class="reference·internal"·href="../topics/auth/index.html"><span·class="doc">authentication·framework</span></a>·sends·<a·class="reference·internal"·href="contrib/auth.html#topics-auth-signals"><span·class="std·std-ref">signals·when
89 a·user·is·logged·in·/·out</span></a>.</p>90 a·user·is·logged·in·/·out</span></a>.</p>
90 </div>91 </div>
91 <section·id="s-module-django.db.models.signals">92 <section·id="s-module-django.db.models.signals">
92 <span·id="s-model-signals"></span><span·id="module-django.db.models.signals"></span><span·id="model-signals"></span><h2>Model·signals<a·class="headerlink"·href="#module-django.db.models.signals"·title="Link·to·this·heading">¶</a></h2>93 <span·id="s-model-signals"></span><span·id="module-django.db.models.signals"></span><span·id="model-signals"></span><h2>Model·signals<a·class="headerlink"·href="#module-django.db.models.signals"·title="Link·to·this·heading">¶</a></h2>
93 <p>The·<a·class="reference·internal"·href="#module-django.db.models.signals"·title="django.db.models.signals:·Signals·sent·by·the·model·system."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.db.models.signals</span></code></a>·module·defines·a·set·of·signals·sent·by·the94 <p>The·<a·class="reference·internal"·href="#module-django.db.models.signals"·title="django.db.models.signals:·Signals·sent·by·the·model·system."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.db.models.signals</span></code></a>·module·defines·a·set·of·signals·sent·by·the
94 model·system.</p>95 model·system.</p>
95 <div·class="admonition·warning">96 <div·class="admonition·warning">
96 <p·class="admonition-title">Warning</p>97 <p·class="admonition-title">Avvertimento</p>
97 <p>Signals·can·make·your·code·harder·to·maintain.·Consider·implementing·a98 <p>Signals·can·make·your·code·harder·to·maintain.·Consider·implementing·a
98 helper·method·on·a·<a·class="reference·internal"·href="../topics/db/managers.html#custom-managers"><span·class="std·std-ref">custom·manager</span></a>,·to99 helper·method·on·a·<a·class="reference·internal"·href="../topics/db/managers.html#custom-managers"><span·class="std·std-ref">custom·manager</span></a>,·to
99 both·update·your·models·and·perform·additional·logic,·or·else100 both·update·your·models·and·perform·additional·logic,·or·else
100 <a·class="reference·internal"·href="../topics/db/models.html#overriding-model-methods"><span·class="std·std-ref">overriding·model·methods</span></a>·before·using101 <a·class="reference·internal"·href="../topics/db/models.html#overriding-model-methods"><span·class="std·std-ref">overriding·model·methods</span></a>·before·using
101 model·signals.</p>102 model·signals.</p>
102 </div>103 </div>
103 <div·class="admonition·warning">104 <div·class="admonition·warning">
104 <p·class="admonition-title">Warning</p>105 <p·class="admonition-title">Avvertimento</p>
105 <p>Many·of·these·signals·are·sent·by·various·model·methods·like106 <p>Many·of·these·signals·are·sent·by·various·model·methods·like
106 <code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>·or·<a·class="reference·internal"·href="models/instances.html#django.db.models.Model.save"·title="django.db.models.Model.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">save()</span></code></a>·that·you·can107 <code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>·or·<a·class="reference·internal"·href="models/instances.html#django.db.models.Model.save"·title="django.db.models.Model.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">save()</span></code></a>·that·you·can
107 override·in·your·own·code.</p>108 override·in·your·own·code.</p>
108 <p>If·you·override·these·methods·on·your·model,·you·must·call·the·parent·class109 <p>If·you·override·these·methods·on·your·model,·you·must·call·the·parent·class
109 methods·for·these·signals·to·be·sent.</p>110 methods·for·these·signals·to·be·sent.</p>
110 <p>Note·also·that·Django·stores·signal·handlers·as·weak·references·by·default,111 <p>Note·also·that·Django·stores·signal·handlers·as·weak·references·by·default,
111 so·if·your·handler·is·a·local·function,·it·may·be·garbage·collected.··To112 so·if·your·handler·is·a·local·function,·it·may·be·garbage·collected.··To
112 prevent·this,·pass·<code·class="docutils·literal·notranslate"><span·class="pre">weak=False</span></code>·when·you·call·the·signal’s·<a·class="reference·internal"·href="../topics/signals.html#django.dispatch.Signal.connect"·title="django.dispatch.Signal.connect"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">connect()</span></code></a>.</p>113 prevent·this,·pass·<code·class="docutils·literal·notranslate"><span·class="pre">weak=False</span></code>·when·you·call·the·signal’s·<a·class="reference·internal"·href="../topics/signals.html#django.dispatch.Signal.connect"·title="django.dispatch.Signal.connect"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">connect()</span></code></a>.</p>
113 </div>114 </div>
114 <div·class="admonition·note">115 <div·class="admonition·note">
115 <p·class="admonition-title">Note</p>116 <p·class="admonition-title">Nota</p>
116 <p>Model·signals·<code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code>·model·can·be·lazily·referenced·when·connecting·a117 <p>Model·signals·<code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code>·model·can·be·lazily·referenced·when·connecting·a
117 receiver·by·specifying·its·full·application·label.·For·example,·an118 receiver·by·specifying·its·full·application·label.·For·example,·an
118 <code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·model·defined·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·application·could·be·referenced119 <code·class="docutils·literal·notranslate"><span·class="pre">Question</span></code>·model·defined·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">polls</span></code>·application·could·be·referenced
119 as·<code·class="docutils·literal·notranslate"><span·class="pre">'polls.Question'</span></code>.·This·sort·of·reference·can·be·quite·handy·when120 as·<code·class="docutils·literal·notranslate"><span·class="pre">'polls.Question'</span></code>.·This·sort·of·reference·can·be·quite·handy·when
120 dealing·with·circular·import·dependencies·and·swappable·models.</p>121 dealing·with·circular·import·dependencies·and·swappable·models.</p>
121 </div>122 </div>
122 <section·id="s-pre-init">123 <section·id="s-pre-init">
Offset 173, 24 lines modifiedOffset 174, 24 lines modified
173 <p>Like·pre_init,·but·this·one·is·sent·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>·method·finishes.</p>174 <p>Like·pre_init,·but·this·one·is·sent·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>·method·finishes.</p>
174 <p>Arguments·sent·with·this·signal:</p>175 <p>Arguments·sent·with·this·signal:</p>
175 <dl>176 <dl>
176 <dt><code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code></dt><dd><p>As·above:·the·model·class·that·just·had·an·instance·created.</p>177 <dt><code·class="docutils·literal·notranslate"><span·class="pre">sender</span></code></dt><dd><p>As·above:·the·model·class·that·just·had·an·instance·created.</p>
177 </dd>178 </dd>
178 <dt><code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code></dt><dd><p>The·actual·instance·of·the·model·that’s·just·been·created.</p>179 <dt><code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code></dt><dd><p>The·actual·instance·of·the·model·that’s·just·been·created.</p>
179 <div·class="admonition·note">180 <div·class="admonition·note">
180 <p·class="admonition-title">Note</p>181 <p·class="admonition-title">Nota</p>
181 <p><a·class="reference·internal"·href="models/instances.html#django.db.models.Model._state"·title="django.db.models.Model._state"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">instance._state</span></code></a>·isn’t·set182 <p><a·class="reference·internal"·href="models/instances.html#django.db.models.Model._state"·title="django.db.models.Model._state"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">instance._state</span></code></a>·isn’t·set
182 before·sending·the·<code·class="docutils·literal·notranslate"><span·class="pre">post_init</span></code>·signal,·so·<code·class="docutils·literal·notranslate"><span·class="pre">_state</span></code>·attributes183 before·sending·the·<code·class="docutils·literal·notranslate"><span·class="pre">post_init</span></code>·signal,·so·<code·class="docutils·literal·notranslate"><span·class="pre">_state</span></code>·attributes
183 always·have·their·default·values.·For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">_state.db</span></code>·is184 always·have·their·default·values.·For·example,·<code·class="docutils·literal·notranslate"><span·class="pre">_state.db</span></code>·is
184 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p>185 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p>
185 </div>186 </div>
186 </dd>187 </dd>
187 </dl>188 </dl>
188 <div·class="admonition·warning">189 <div·class="admonition·warning">
189 <p·class="admonition-title">Warning</p>190 <p·class="admonition-title">Avvertimento</p>
190 <p>For·performance·reasons,·you·shouldn’t·perform·queries·in·receivers·of191 <p>For·performance·reasons,·you·shouldn’t·perform·queries·in·receivers·of
191 <code·class="docutils·literal·notranslate"><span·class="pre">pre_init</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">post_init</span></code>·signals·because·they·would·be·executed·for192 <code·class="docutils·literal·notranslate"><span·class="pre">pre_init</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">post_init</span></code>·signals·because·they·would·be·executed·for
192 each·instance·returned·during·queryset·iteration.</p>193 each·instance·returned·during·queryset·iteration.</p>
193 </div>194 </div>
194 </section>195 </section>
195 <section·id="s-pre-save">196 <section·id="s-pre-save">
196 <span·id="pre-save"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">pre_save</span></code><a·class="headerlink"·href="#pre-save"·title="Link·to·this·heading">¶</a></h3>197 <span·id="pre-save"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">pre_save</span></code><a·class="headerlink"·href="#pre-save"·title="Link·to·this·heading">¶</a></h3>
Offset 467, 15 lines modifiedOffset 468, 15 lines modified
467 <section·id="s-class-prepared">468 <section·id="s-class-prepared">
468 <span·id="class-prepared"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">class_prepared</span></code><a·class="headerlink"·href="#class-prepared"·title="Link·to·this·heading">¶</a></h3>469 <span·id="class-prepared"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">class_prepared</span></code><a·class="headerlink"·href="#class-prepared"·title="Link·to·this·heading">¶</a></h3>
469 <dl·class="py·data">470 <dl·class="py·data">
470 <dt·class="sig·sig-object·py"·id="django.db.models.signals.class_prepared">471 <dt·class="sig·sig-object·py"·id="django.db.models.signals.class_prepared">
471 <span·class="sig-prename·descclassname"><span·class="pre">django.db.models.signals.</span></span><span·class="sig-name·descname"><span·class="pre">class_prepared</span></span><a·class="headerlink"·href="#django.db.models.signals.class_prepared"·title="Link·to·this·definition">¶</a></dt>472 <span·class="sig-prename·descclassname"><span·class="pre">django.db.models.signals.</span></span><span·class="sig-name·descname"><span·class="pre">class_prepared</span></span><a·class="headerlink"·href="#django.db.models.signals.class_prepared"·title="Link·to·this·definition">¶</a></dt>
472 <dd></dd></dl>473 <dd></dd></dl>
  
473 <p>Sent·whenever·a·model·class·has·been·prepared··that·is,·once·a·model·has474 <p>Sent·whenever·a·model·class·has·been·«prepared»··that·is,·once·a·model·has
474 been·defined·and·registered·with·Django’s·model·system.·Django·uses·this475 been·defined·and·registered·with·Django’s·model·system.·Django·uses·this
475 signal·internally;·it’s·not·generally·used·in·third-party·applications.</p>476 signal·internally;·it’s·not·generally·used·in·third-party·applications.</p>
476 <p>Since·this·signal·is·sent·during·the·app·registry·population·process,·and477 <p>Since·this·signal·is·sent·during·the·app·registry·population·process,·and
477 <a·class="reference·internal"·href="applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">AppConfig.ready()</span></code></a>·runs·after·the·app478 <a·class="reference·internal"·href="applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">AppConfig.ready()</span></code></a>·runs·after·the·app
478 registry·is·fully·populated,·receivers·cannot·be·connected·in·that·method.479 registry·is·fully·populated,·receivers·cannot·be·connected·in·that·method.
479 One·possibility·is·to·connect·them·<code·class="docutils·literal·notranslate"><span·class="pre">AppConfig.__init__()</span></code>·instead,·taking480 One·possibility·is·to·connect·them·<code·class="docutils·literal·notranslate"><span·class="pre">AppConfig.__init__()</span></code>·instead,·taking
480 care·not·to·import·models·or·trigger·calls·to·the·app·registry.</p>481 care·not·to·import·models·or·trigger·calls·to·the·app·registry.</p>
Offset 596, 29 lines modifiedOffset 597, 29 lines modified
Max diff block lines reached; 7314/17574 bytes (41.62%) of diff not shown.
8.55 KB
html2text {}
Max HTML report size reached
34.2 KB
./usr/share/doc/python-django-doc/html/ref/template-response.html
Max HTML report size reached
86.2 KB
./usr/share/doc/python-django-doc/html/ref/templates/api.html
Max HTML report size reached
111 KB
./usr/share/doc/python-django-doc/html/ref/templates/builtins.html
Max HTML report size reached
7.13 KB
./usr/share/doc/python-django-doc/html/ref/templates/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Templates·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Templates·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="The·Django·template·language"·href="language.html"·/>15 ····<link·rel="next"·title="The·Django·template·language"·href="language.html"·/>
15 ····<link·rel="prev"·title="Signals"·href="../signals.html"·/>16 ····<link·rel="prev"·title="Signals"·href="../signals.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 115, 15 lines modifiedOffset 116, 15 lines modified
115 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#custom-loaders">Custom·loaders</a></li>116 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#custom-loaders">Custom·loaders</a></li>
116 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#template-origin">Template·origin</a></li>117 <li·class="toctree-l2"><a·class="reference·internal"·href="api.html#template-origin">Template·origin</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
120 </div>121 </div>
121 <div·class="admonition·seealso">122 <div·class="admonition·seealso">
122 <p·class="admonition-title">See·also</p>123 <p·class="admonition-title">Vedi·anche</p>
123 <p>For·information·on·writing·your·own·custom·tags·and·filters,·see124 <p>For·information·on·writing·your·own·custom·tags·and·filters,·see
124 <a·class="reference·internal"·href="../../howto/custom-template-tags.html"><span·class="doc">How·to·create·custom·template·tags·and·filters</span></a>.</p>125 <a·class="reference·internal"·href="../../howto/custom-template-tags.html"><span·class="doc">How·to·create·custom·template·tags·and·filters</span></a>.</p>
125 <p>To·learn·how·to·override·templates·in·other·Django·applications,·see126 <p>To·learn·how·to·override·templates·in·other·Django·applications,·see
126 <a·class="reference·internal"·href="../../howto/overriding-templates.html"><span·class="doc">How·to·override·templates</span></a>.</p>127 <a·class="reference·internal"·href="../../howto/overriding-templates.html"><span·class="doc">How·to·override·templates</span></a>.</p>
127 </div>128 </div>
128 </section>129 </section>
  
Offset 134, 37 lines modifiedOffset 135, 37 lines modified
134 ······135 ······
135 ········136 ········
136 ··········<div·class="yui-b"·id="sidebar">137 ··········<div·class="yui-b"·id="sidebar">
137 ············138 ············
138 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">139 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
139 ········<div·class="sphinxsidebarwrapper">140 ········<div·class="sphinxsidebarwrapper">
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="../signals.html"143 ····<p·class="topless"><a·href="../signals.html"
143 ··························title="previous·chapter">Signals</a></p>144 ··························title="capitolo·precedente">Signals</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="language.html"148 ····<p·class="topless"><a·href="language.html"
148 ··························title="next·chapter">The·Django·template·language</a></p>149 ··························title="capitolo·successivo">The·Django·template·language</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../../search.html"·method="get">154 ····<form·class="search"·action="../../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
2.47 KB
html2text {}
Max HTML report size reached
46.1 KB
./usr/share/doc/python-django-doc/html/ref/templates/language.html
Max HTML report size reached
23.5 KB
./usr/share/doc/python-django-doc/html/ref/unicode.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Unicode·data·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Unicode·data·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="django.urls·utility·functions"·href="urlresolvers.html"·/>15 ····<link·rel="next"·title="django.urls·utility·functions"·href="urlresolvers.html"·/>
15 ····<link·rel="prev"·title="TemplateResponse·and·SimpleTemplateResponse"·href="template-response.html"·/>16 ····<link·rel="prev"·title="TemplateResponse·and·SimpleTemplateResponse"·href="template-response.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 98, 23 lines modifiedOffset 99, 23 lines modified
98 <li><p>SQLite·users,·there·is·nothing·you·need·to·do.·SQLite·always·uses·UTF-899 <li><p>SQLite·users,·there·is·nothing·you·need·to·do.·SQLite·always·uses·UTF-8
99 for·internal·encoding.</p></li>100 for·internal·encoding.</p></li>
100 </ul>101 </ul>
101 <p>All·of·Django’s·database·backends·automatically·convert·strings·into102 <p>All·of·Django’s·database·backends·automatically·convert·strings·into
102 the·appropriate·encoding·for·talking·to·the·database.·They·also·automatically103 the·appropriate·encoding·for·talking·to·the·database.·They·also·automatically
103 convert·strings·retrieved·from·the·database·into·strings.·You·don’t·even·need104 convert·strings·retrieved·from·the·database·into·strings.·You·don’t·even·need
104 to·tell·Django·what·encoding·your·database·uses:·that·is·handled·transparently.</p>105 to·tell·Django·what·encoding·your·database·uses:·that·is·handled·transparently.</p>
105 <p>For·more,·see·the·section·The·database·API·below.</p>106 <p>For·more,·see·the·section·«The·database·API»·below.</p>
106 </section>107 </section>
107 <section·id="s-general-string-handling">108 <section·id="s-general-string-handling">
108 <span·id="general-string-handling"></span><h2>General·string·handling<a·class="headerlink"·href="#general-string-handling"·title="Link·to·this·heading">¶</a></h2>109 <span·id="general-string-handling"></span><h2>General·string·handling<a·class="headerlink"·href="#general-string-handling"·title="Link·to·this·heading">¶</a></h2>
109 <p>Whenever·you·use·strings·with·Django··e.g.,·in·database·lookups,·template110 <p>Whenever·you·use·strings·with·Django··e.g.,·in·database·lookups,·template
110 rendering·or·anywhere·else··you·have·two·choices·for·encoding·those·strings.111 rendering·or·anywhere·else··you·have·two·choices·for·encoding·those·strings.
111 You·can·use·normal·strings·or·bytestrings·(starting·with·a·b).</p>112 You·can·use·normal·strings·or·bytestrings·(starting·with·a·b).</p>
112 <div·class="admonition·warning">113 <div·class="admonition·warning">
113 <p·class="admonition-title">Warning</p>114 <p·class="admonition-title">Avvertimento</p>
114 <p>A·bytestring·does·not·carry·any·information·with·it·about·its·encoding.115 <p>A·bytestring·does·not·carry·any·information·with·it·about·its·encoding.
115 For·that·reason,·we·have·to·make·an·assumption,·and·Django·assumes·that·all116 For·that·reason,·we·have·to·make·an·assumption,·and·Django·assumes·that·all
116 bytestrings·are·in·UTF-8.</p>117 bytestrings·are·in·UTF-8.</p>
117 <p>If·you·pass·a·string·to·Django·that·has·been·encoded·in·some·other·format,118 <p>If·you·pass·a·string·to·Django·that·has·been·encoded·in·some·other·format,
118 things·will·go·wrong·in·interesting·ways.·Usually,·Django·will·raise·a119 things·will·go·wrong·in·interesting·ways.·Usually,·Django·will·raise·a
119 <code·class="docutils·literal·notranslate"><span·class="pre">UnicodeDecodeError</span></code>·at·some·point.</p>120 <code·class="docutils·literal·notranslate"><span·class="pre">UnicodeDecodeError</span></code>·at·some·point.</p>
120 </div>121 </div>
Offset 132, 15 lines modifiedOffset 133, 15 lines modified
132 <p>In·most·cases·when·Django·is·dealing·with·strings,·it·will·convert·them·to133 <p>In·most·cases·when·Django·is·dealing·with·strings,·it·will·convert·them·to
133 strings·before·doing·anything·else.·So,·as·a·general·rule,·if·you·pass134 strings·before·doing·anything·else.·So,·as·a·general·rule,·if·you·pass
134 in·a·bytestring,·be·prepared·to·receive·a·string·back·in·the·result.</p>135 in·a·bytestring,·be·prepared·to·receive·a·string·back·in·the·result.</p>
135 <section·id="s-translated-strings">136 <section·id="s-translated-strings">
136 <span·id="translated-strings"></span><h3>Translated·strings<a·class="headerlink"·href="#translated-strings"·title="Link·to·this·heading">¶</a></h3>137 <span·id="translated-strings"></span><h3>Translated·strings<a·class="headerlink"·href="#translated-strings"·title="Link·to·this·heading">¶</a></h3>
137 <p>Aside·from·strings·and·bytestrings,·there’s·a·third·type·of·string-like138 <p>Aside·from·strings·and·bytestrings,·there’s·a·third·type·of·string-like
138 object·you·may·encounter·when·using·Django.·The·framework’s139 object·you·may·encounter·when·using·Django.·The·framework’s
139 internationalization·features·introduce·the·concept·of·a·lazy·translation·140 internationalization·features·introduce·the·concept·of·a·«lazy·translation»·
140 a·string·that·has·been·marked·as·translated·but·whose·actual·translation·result141 a·string·that·has·been·marked·as·translated·but·whose·actual·translation·result
141 isn’t·determined·until·the·object·is·used·in·a·string.·This·feature·is·useful142 isn’t·determined·until·the·object·is·used·in·a·string.·This·feature·is·useful
142 in·cases·where·the·translation·locale·is·unknown·until·the·string·is·used,·even143 in·cases·where·the·translation·locale·is·unknown·until·the·string·is·used,·even
143 though·the·string·might·have·originally·been·created·when·the·code·was·first144 though·the·string·might·have·originally·been·created·when·the·code·was·first
144 imported.</p>145 imported.</p>
145 <p>Normally,·you·won’t·have·to·worry·about·lazy·translations.·Just·be·aware·that146 <p>Normally,·you·won’t·have·to·worry·about·lazy·translations.·Just·be·aware·that
146 if·you·examine·an·object·and·it·claims·to·be·a147 if·you·examine·an·object·and·it·claims·to·be·a
Offset 201, 25 lines modifiedOffset 202, 25 lines modified
201 conversion·from·IRI·to·URI·as·required·by·<span·class="target"·id="index-2"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc3987.html#section-3.1"><strong>RFC·3987#section-3.1</strong></a>.</p></li>202 conversion·from·IRI·to·URI·as·required·by·<span·class="target"·id="index-2"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc3987.html#section-3.1"><strong>RFC·3987#section-3.1</strong></a>.</p></li>
202 <li><p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote()</span></code></a>·and·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote_plus"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote_plus()</span></code></a>203 <li><p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote()</span></code></a>·and·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote_plus"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote_plus()</span></code></a>
203 functions·from·Python’s·standard·library.</p></li>204 functions·from·Python’s·standard·library.</p></li>
204 </ul>205 </ul>
205 <p>These·two·groups·of·functions·have·slightly·different·purposes,·and·it’s206 <p>These·two·groups·of·functions·have·slightly·different·purposes,·and·it’s
206 important·to·keep·them·straight.·Normally,·you·would·use·<code·class="docutils·literal·notranslate"><span·class="pre">quote()</span></code>·on·the207 important·to·keep·them·straight.·Normally,·you·would·use·<code·class="docutils·literal·notranslate"><span·class="pre">quote()</span></code>·on·the
207 individual·portions·of·the·IRI·or·URI·path·so·that·any·reserved·characters208 individual·portions·of·the·IRI·or·URI·path·so·that·any·reserved·characters
208 such·as·&amp;·or·%·are·correctly·encoded.·Then,·you·apply·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·to209 such·as·&amp;·or·%·are·correctly·encoded.·Then,·you·apply·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·to
209 the·full·IRI·and·it·converts·any·non-ASCII·characters·to·the·correct·encoded210 the·full·IRI·and·it·converts·any·non-ASCII·characters·to·the·correct·encoded
210 values.</p>211 values.</p>
211 <div·class="admonition·note">212 <div·class="admonition·note">
212 <p·class="admonition-title">Note</p>213 <p·class="admonition-title">Nota</p>
213 <p>Technically,·it·isn’t·correct·to·say·that·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·implements·the214 <p>Technically,·it·isn’t·correct·to·say·that·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·implements·the
214 full·algorithm·in·the·IRI·specification.·It·doesn’t·(yet)·perform·the215 full·algorithm·in·the·IRI·specification.·It·doesn’t·(yet)·perform·the
215 international·domain·name·encoding·portion·of·the·algorithm.</p>216 international·domain·name·encoding·portion·of·the·algorithm.</p>
216 </div>217 </div>
217 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·function·will·not·change·ASCII·characters·that·are218 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>·function·will·not·change·ASCII·characters·that·are
218 otherwise·permitted·in·a·URL.·So,·for·example,·the·character·%·is·not219 otherwise·permitted·in·a·URL.·So,·for·example,·the·character·%·is·not
219 further·encoded·when·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>.·This·means·you·can·pass·a220 further·encoded·when·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>.·This·means·you·can·pass·a
220 full·URL·to·this·function·and·it·will·not·mess·up·the·query·string·or·anything221 full·URL·to·this·function·and·it·will·not·mess·up·the·query·string·or·anything
221 like·that.</p>222 like·that.</p>
222 <p>An·example·might·clarify·things·here:</p>223 <p>An·example·might·clarify·things·here:</p>
223 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">quote</span>224 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">urllib.parse</span>·<span·class="kn">import</span>·<span·class="n">quote</span>
224 <span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.utils.encoding</span>·<span·class="kn">import</span>·<span·class="n">iri_to_uri</span>225 <span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.utils.encoding</span>·<span·class="kn">import</span>·<span·class="n">iri_to_uri</span>
225 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">quote</span><span·class="p">(</span><span·class="s2">&quot;Paris·&amp;·Orléans&quot;</span><span·class="p">)</span>226 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">quote</span><span·class="p">(</span><span·class="s2">&quot;Paris·&amp;·Orléans&quot;</span><span·class="p">)</span>
Offset 282, 15 lines modifiedOffset 283, 15 lines modified
  
282 <span·class="k">def</span>·<span·class="nf">get_absolute_url</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>283 <span·class="k">def</span>·<span·class="nf">get_absolute_url</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
283 ····<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">&quot;/person/</span><span·class="si">%s</span><span·class="s2">/?x=0&amp;y=0&quot;</span>·<span·class="o">%</span>·<span·class="n">quote</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">location</span><span·class="p">)</span>284 ····<span·class="n">url</span>·<span·class="o">=</span>·<span·class="s2">&quot;/person/</span><span·class="si">%s</span><span·class="s2">/?x=0&amp;y=0&quot;</span>·<span·class="o">%</span>·<span·class="n">quote</span><span·class="p">(</span><span·class="bp">self</span><span·class="o">.</span><span·class="n">location</span><span·class="p">)</span>
284 ····<span·class="k">return</span>·<span·class="n">iri_to_uri</span><span·class="p">(</span><span·class="n">url</span><span·class="p">)</span>285 ····<span·class="k">return</span>·<span·class="n">iri_to_uri</span><span·class="p">(</span><span·class="n">url</span><span·class="p">)</span>
285 </pre></div>286 </pre></div>
286 </div>287 </div>
287 <p>This·function·returns·a·correctly·encoded·URL·even·if·<code·class="docutils·literal·notranslate"><span·class="pre">self.location</span></code>·is288 <p>This·function·returns·a·correctly·encoded·URL·even·if·<code·class="docutils·literal·notranslate"><span·class="pre">self.location</span></code>·is
288 something·like·Jack·visited·Paris·&amp;·Orléans.·(In·fact,·the·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>289 something·like·«Jack·visited·Paris·&amp;·Orléans».·(In·fact,·the·<code·class="docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code>
289 call·isn’t·strictly·necessary·in·the·above·example,·because·all·the290 call·isn’t·strictly·necessary·in·the·above·example,·because·all·the
290 non-ASCII·characters·would·have·been·removed·in·quoting·in·the·first·line.)</p>291 non-ASCII·characters·would·have·been·removed·in·quoting·in·the·first·line.)</p>
291 </section>292 </section>
292 </section>293 </section>
293 <section·id="s-templates">294 <section·id="s-templates">
294 <span·id="templates"></span><h2>Templates<a·class="headerlink"·href="#templates"·title="Link·to·this·heading">¶</a></h2>295 <span·id="templates"></span><h2>Templates<a·class="headerlink"·href="#templates"·title="Link·to·this·heading">¶</a></h2>
295 <p>Use·strings·when·creating·templates·manually:</p>296 <p>Use·strings·when·creating·templates·manually:</p>
Offset 331, 15 lines modifiedOffset 332, 15 lines modified
331 environment.·Check·your·current·configuration·in·an·interactive·Python·shell·by332 environment.·Check·your·current·configuration·in·an·interactive·Python·shell·by
332 running:</p>333 running:</p>
333 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">sys</span>334 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">sys</span>
  
334 <span·class="n">sys</span><span·class="o">.</span><span·class="n">getfilesystemencoding</span><span·class="p">()</span>335 <span·class="n">sys</span><span·class="o">.</span><span·class="n">getfilesystemencoding</span><span·class="p">()</span>
Max diff block lines reached; 4591/14653 bytes (31.33%) of diff not shown.
9.08 KB
html2text {}
Max HTML report size reached
22.9 KB
./usr/share/doc/python-django-doc/html/ref/urlresolvers.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>django.urls·utility·functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls·utility·functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="django.urls·functions·for·use·in·URLconfs"·href="urls.html"·/>15 ····<link·rel="next"·title="django.urls·functions·for·use·in·URLconfs"·href="urls.html"·/>
15 ····<link·rel="prev"·title="Unicode·data"·href="unicode.html"·/>16 ····<link·rel="prev"·title="Unicode·data"·href="unicode.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="s-django-urls-utility-functions"></span><span·id="module-django.urls"></span><span·id="django-urls-utility-functions"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.urls</span></code>·utility·functions<a·class="headerlink"·href="#module-django.urls"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-django-urls-utility-functions"></span><span·id="module-django.urls"></span><span·id="django-urls-utility-functions"></span><h1><code·class="docutils·literal·notranslate"><span·class="pre">django.urls</span></code>·utility·functions<a·class="headerlink"·href="#module-django.urls"·title="Link·to·this·heading">¶</a></h1>
82 <section·id="s-reverse">83 <section·id="s-reverse">
83 <span·id="reverse"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code><a·class="headerlink"·href="#reverse"·title="Link·to·this·heading">¶</a></h2>84 <span·id="reverse"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code><a·class="headerlink"·href="#reverse"·title="Link·to·this·heading">¶</a></h2>
84 <p>If·you·need·to·use·something·similar·to·the·<a·class="reference·internal"·href="templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·template·tag·in85 <p>If·you·need·to·use·something·similar·to·the·<a·class="reference·internal"·href="templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·template·tag·in
85 your·code,·Django·provides·the·following·function:</p>86 your·code,·Django·provides·the·following·function:</p>
86 <dl·class="py·function">87 <dl·class="py·function">
87 <dt·class="sig·sig-object·py"·id="django.urls.reverse">88 <dt·class="sig·sig-object·py"·id="django.urls.reverse">
88 <span·class="sig-name·descname"><span·class="pre">reverse</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">viewname</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">urlconf</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">args</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">kwargs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">current_app</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/base.html#reverse"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.reverse"·title="Link·to·this·definition">¶</a></dt>89 <span·class="sig-name·descname"><span·class="pre">reverse</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">viewname</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">urlconf</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">args</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">kwargs</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">current_app</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/base.html#reverse"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.reverse"·title="Link·to·this·definition">¶</a></dt>
89 <dd></dd></dl>90 <dd></dd></dl>
  
90 <p><code·class="docutils·literal·notranslate"><span·class="pre">viewname</span></code>·can·be·a·<a·class="reference·internal"·href="../topics/http/urls.html#naming-url-patterns"><span·class="std·std-ref">URL·pattern·name</span></a>·or·the91 <p><code·class="docutils·literal·notranslate"><span·class="pre">viewname</span></code>·can·be·a·<a·class="reference·internal"·href="../topics/http/urls.html#naming-url-patterns"><span·class="std·std-ref">URL·pattern·name</span></a>·or·the
91 callable·view·object.·For·example,·given·the·following·<code·class="docutils·literal·notranslate"><span·class="pre">url</span></code>:</p>92 callable·view·object.·For·example,·given·the·following·<code·class="docutils·literal·notranslate"><span·class="pre">url</span></code>:</p>
92 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">news</span>·<span·class="kn">import</span>·<span·class="n">views</span>93 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">news</span>·<span·class="kn">import</span>·<span·class="n">views</span>
  
93 <span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;archive/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">archive</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;news-archive&quot;</span><span·class="p">)</span>94 <span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;archive/&quot;</span><span·class="p">,</span>·<span·class="n">views</span><span·class="o">.</span><span·class="n">archive</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;news-archive&quot;</span><span·class="p">)</span>
Offset 132, 15 lines modifiedOffset 133, 15 lines modified
132 indicating·the·application·to·which·the·currently·executing·view·belongs.133 indicating·the·application·to·which·the·currently·executing·view·belongs.
133 This·<code·class="docutils·literal·notranslate"><span·class="pre">current_app</span></code>·argument·is·used·as·a·hint·to·resolve·application134 This·<code·class="docutils·literal·notranslate"><span·class="pre">current_app</span></code>·argument·is·used·as·a·hint·to·resolve·application
134 namespaces·into·URLs·on·specific·application·instances,·according·to·the135 namespaces·into·URLs·on·specific·application·instances,·according·to·the
135 <a·class="reference·internal"·href="../topics/http/urls.html#topics-http-reversing-url-namespaces"><span·class="std·std-ref">namespaced·URL·resolution·strategy</span></a>.</p>136 <a·class="reference·internal"·href="../topics/http/urls.html#topics-http-reversing-url-namespaces"><span·class="std·std-ref">namespaced·URL·resolution·strategy</span></a>.</p>
136 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">urlconf</span></code>·argument·is·the·URLconf·module·containing·the·URL·patterns·to137 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">urlconf</span></code>·argument·is·the·URLconf·module·containing·the·URL·patterns·to
137 use·for·reversing.·By·default,·the·root·URLconf·for·the·current·thread·is·used.</p>138 use·for·reversing.·By·default,·the·root·URLconf·for·the·current·thread·is·used.</p>
138 <div·class="admonition·note">139 <div·class="admonition·note">
139 <p·class="admonition-title">Note</p>140 <p·class="admonition-title">Nota</p>
140 <p>The·string·returned·by·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·is·already141 <p>The·string·returned·by·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·is·already
141 <a·class="reference·internal"·href="unicode.html#uri-and-iri-handling"><span·class="std·std-ref">urlquoted</span></a>.·For·example:</p>142 <a·class="reference·internal"·href="unicode.html#uri-and-iri-handling"><span·class="std·std-ref">urlquoted</span></a>.·For·example:</p>
142 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">reverse</span><span·class="p">(</span><span·class="s2">&quot;cities&quot;</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;Orléans&quot;</span><span·class="p">])</span>143 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">reverse</span><span·class="p">(</span><span·class="s2">&quot;cities&quot;</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;Orléans&quot;</span><span·class="p">])</span>
143 <span·class="go">&#39;.../Orl%C3%A9ans/&#39;</span>144 <span·class="go">&#39;.../Orl%C3%A9ans/&#39;</span>
144 </pre></div>145 </pre></div>
145 </div>146 </div>
146 <p>Applying·further·encoding·(such·as·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote()</span></code></a>)·to·the·output147 <p>Applying·further·encoding·(such·as·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/urllib.parse.html#urllib.parse.quote"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">urllib.parse.quote()</span></code></a>)·to·the·output
Offset 169, 27 lines modifiedOffset 170, 27 lines modified
169 </section>170 </section>
170 <section·id="s-resolve">171 <section·id="s-resolve">
171 <span·id="resolve"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">resolve()</span></code><a·class="headerlink"·href="#resolve"·title="Link·to·this·heading">¶</a></h2>172 <span·id="resolve"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">resolve()</span></code><a·class="headerlink"·href="#resolve"·title="Link·to·this·heading">¶</a></h2>
172 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">resolve()</span></code>·function·can·be·used·for·resolving·URL·paths·to·the173 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">resolve()</span></code>·function·can·be·used·for·resolving·URL·paths·to·the
173 corresponding·view·functions.·It·has·the·following·signature:</p>174 corresponding·view·functions.·It·has·the·following·signature:</p>
174 <dl·class="py·function">175 <dl·class="py·function">
175 <dt·class="sig·sig-object·py"·id="django.urls.resolve">176 <dt·class="sig·sig-object·py"·id="django.urls.resolve">
176 <span·class="sig-name·descname"><span·class="pre">resolve</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">path</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">urlconf</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/base.html#resolve"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.resolve"·title="Link·to·this·definition">¶</a></dt>177 <span·class="sig-name·descname"><span·class="pre">resolve</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">path</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">urlconf</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/base.html#resolve"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.resolve"·title="Link·to·this·definition">¶</a></dt>
177 <dd></dd></dl>178 <dd></dd></dl>
  
178 <p><code·class="docutils·literal·notranslate"><span·class="pre">path</span></code>·is·the·URL·path·you·want·to·resolve.·As·with179 <p><code·class="docutils·literal·notranslate"><span·class="pre">path</span></code>·is·the·URL·path·you·want·to·resolve.·As·with
179 <a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>,·you·don’t·need·to·worry·about·the·<code·class="docutils·literal·notranslate"><span·class="pre">urlconf</span></code>180 <a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>,·you·don’t·need·to·worry·about·the·<code·class="docutils·literal·notranslate"><span·class="pre">urlconf</span></code>
180 parameter.·The·function·returns·a·<a·class="reference·internal"·href="#django.urls.ResolverMatch"·title="django.urls.ResolverMatch"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ResolverMatch</span></code></a>·object·that·allows·you181 parameter.·The·function·returns·a·<a·class="reference·internal"·href="#django.urls.ResolverMatch"·title="django.urls.ResolverMatch"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ResolverMatch</span></code></a>·object·that·allows·you
181 to·access·various·metadata·about·the·resolved·URL.</p>182 to·access·various·metadata·about·the·resolved·URL.</p>
182 <p>If·the·URL·does·not·resolve,·the·function·raises·a183 <p>If·the·URL·does·not·resolve,·the·function·raises·a
183 <a·class="reference·internal"·href="exceptions.html#django.urls.Resolver404"·title="django.urls.Resolver404"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Resolver404</span></code></a>·exception·(a·subclass·of184 <a·class="reference·internal"·href="exceptions.html#django.urls.Resolver404"·title="django.urls.Resolver404"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Resolver404</span></code></a>·exception·(a·subclass·of
184 <a·class="reference·internal"·href="../topics/http/views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>)·.</p>185 <a·class="reference·internal"·href="../topics/http/views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>)·.</p>
185 <dl·class="py·class">186 <dl·class="py·class">
186 <dt·class="sig·sig-object·py"·id="django.urls.ResolverMatch">187 <dt·class="sig·sig-object·py"·id="django.urls.ResolverMatch">
187 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ResolverMatch</span></span><a·class="reference·internal"·href="../_modules/django/urls/resolvers.html#ResolverMatch"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.ResolverMatch"·title="Link·to·this·definition">¶</a></dt>188 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ResolverMatch</span></span><a·class="reference·internal"·href="../_modules/django/urls/resolvers.html#ResolverMatch"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.ResolverMatch"·title="Link·to·this·definition">¶</a></dt>
188 <dd><dl·class="py·attribute">189 <dd><dl·class="py·attribute">
189 <dt·class="sig·sig-object·py"·id="django.urls.ResolverMatch.func">190 <dt·class="sig·sig-object·py"·id="django.urls.ResolverMatch.func">
190 <span·class="sig-name·descname"><span·class="pre">func</span></span><a·class="headerlink"·href="#django.urls.ResolverMatch.func"·title="Link·to·this·definition">¶</a></dt>191 <span·class="sig-name·descname"><span·class="pre">func</span></span><a·class="headerlink"·href="#django.urls.ResolverMatch.func"·title="Link·to·this·definition">¶</a></dt>
191 <dd><p>The·view·function·that·would·be·used·to·serve·the·URL</p>192 <dd><p>The·view·function·that·would·be·used·to·serve·the·URL</p>
192 </dd></dl>193 </dd></dl>
  
193 <dl·class="py·attribute">194 <dl·class="py·attribute">
Offset 323, 27 lines modifiedOffset 324, 27 lines modified
323 </pre></div>324 </pre></div>
324 </div>325 </div>
325 </section>326 </section>
326 <section·id="s-get-script-prefix">327 <section·id="s-get-script-prefix">
327 <span·id="get-script-prefix"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_script_prefix()</span></code><a·class="headerlink"·href="#get-script-prefix"·title="Link·to·this·heading">¶</a></h2>328 <span·id="get-script-prefix"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_script_prefix()</span></code><a·class="headerlink"·href="#get-script-prefix"·title="Link·to·this·heading">¶</a></h2>
328 <dl·class="py·function">329 <dl·class="py·function">
329 <dt·class="sig·sig-object·py"·id="django.urls.get_script_prefix">330 <dt·class="sig·sig-object·py"·id="django.urls.get_script_prefix">
330 <span·class="sig-name·descname"><span·class="pre">get_script_prefix</span></span>()<a·class="reference·internal"·href="../_modules/django/urls/base.html#get_script_prefix"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.get_script_prefix"·title="Link·to·this·definition">¶</a></dt>331 <span·class="sig-name·descname"><span·class="pre">get_script_prefix</span></span>()<a·class="reference·internal"·href="../_modules/django/urls/base.html#get_script_prefix"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.get_script_prefix"·title="Link·to·this·definition">¶</a></dt>
331 <dd></dd></dl>332 <dd></dd></dl>
  
332 <p>Normally,·you·should·always·use·<a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·to·define·URLs333 <p>Normally,·you·should·always·use·<a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·to·define·URLs
333 within·your·application.·However,·if·your·application·constructs·part·of·the334 within·your·application.·However,·if·your·application·constructs·part·of·the
334 URL·hierarchy·itself,·you·may·occasionally·need·to·generate·URLs.·In·that335 URL·hierarchy·itself,·you·may·occasionally·need·to·generate·URLs.·In·that
335 case,·you·need·to·be·able·to·find·the·base·URL·of·the·Django·project·within336 case,·you·need·to·be·able·to·find·the·base·URL·of·the·Django·project·within
336 its·web·server·(normally,·<a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·takes·care·of·this·for337 its·web·server·(normally,·<a·class="reference·internal"·href="#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·takes·care·of·this·for
337 you).·In·that·case,·you·can·call·<code·class="docutils·literal·notranslate"><span·class="pre">get_script_prefix()</span></code>,·which·will·return338 you).·In·that·case,·you·can·call·<code·class="docutils·literal·notranslate"><span·class="pre">get_script_prefix()</span></code>,·which·will·return
338 the·script·prefix·portion·of·the·URL·for·your·Django·project.·If·your·Django339 the·script·prefix·portion·of·the·URL·for·your·Django·project.·If·your·Django
339 project·is·at·the·root·of·its·web·server,·this·is·always·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;/&quot;</span></code>.</p>340 project·is·at·the·root·of·its·web·server,·this·is·always·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;/&quot;</span></code>.</p>
340 <div·class="admonition·warning">341 <div·class="admonition·warning">
341 <p·class="admonition-title">Warning</p>342 <p·class="admonition-title">Avvertimento</p>
342 <p>This·function·<strong>cannot</strong>·be·used·outside·of·the·request-response·cycle343 <p>This·function·<strong>cannot</strong>·be·used·outside·of·the·request-response·cycle
343 since·it·relies·on·values·initialized·during·that·cycle.</p>344 since·it·relies·on·values·initialized·during·that·cycle.</p>
344 </div>345 </div>
345 </section>346 </section>
346 </section>347 </section>
  
  
Max diff block lines reached; 1808/16993 bytes (10.64%) of diff not shown.
6.22 KB
html2text {}
Max HTML report size reached
16.6 KB
./usr/share/doc/python-django-doc/html/ref/urls.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>django.urls·functions·for·use·in·URLconfs·&#8212;·Django·4.2.16·documentation</title>6 ····<title>django.urls·functions·for·use·in·URLconfs·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·Utils"·href="utils.html"·/>15 ····<link·rel="next"·title="Django·Utils"·href="utils.html"·/>
15 ····<link·rel="prev"·title="django.urls·utility·functions"·href="urlresolvers.html"·/>16 ····<link·rel="prev"·title="django.urls·utility·functions"·href="urlresolvers.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 154, 31 lines modifiedOffset 155, 31 lines modified
154 with·<code·class="docutils·literal·notranslate"><span·class="pre">$</span></code>.</p>155 with·<code·class="docutils·literal·notranslate"><span·class="pre">$</span></code>.</p>
155 </div>156 </div>
156 </section>157 </section>
157 <section·id="s-include">158 <section·id="s-include">
158 <span·id="include"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">include()</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h2>159 <span·id="include"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">include()</span></code><a·class="headerlink"·href="#include"·title="Link·to·this·heading">¶</a></h2>
159 <dl·class="py·function">160 <dl·class="py·function">
160 <dt·class="sig·sig-object·py"·id="django.urls.include">161 <dt·class="sig·sig-object·py"·id="django.urls.include">
161 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">module</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">namespace</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/conf.html#include"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.include"·title="Link·to·this·definition">¶</a></dt>162 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">module</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">namespace</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/conf.html#include"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.include"·title="Link·to·this·definition">¶</a></dt>
162 <dt·class="sig·sig-object·py">163 <dt·class="sig·sig-object·py">
163 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">pattern_list</span></span></em>)</dt>164 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">pattern_list</span></span></em>)</dt>
164 <dt·class="sig·sig-object·py">165 <dt·class="sig·sig-object·py">
165 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">(pattern_list</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">app_namespace)</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">namespace=None</span></span></em>)</dt>166 <span·class="sig-name·descname"><span·class="pre">include</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">(pattern_list</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">app_namespace)</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">namespace=None</span></span></em>)</dt>
166 <dd><p>A·function·that·takes·a·full·Python·import·path·to·another·URLconf·module167 <dd><p>A·function·that·takes·a·full·Python·import·path·to·another·URLconf·module
167 that·should·be·included·in·this·place.·Optionally,·the·<a·class="reference·internal"·href="../topics/http/urls.html#term-application-namespace"><span·class="xref·std·std-term">application168 that·should·be·«included»·in·this·place.·Optionally,·the·<a·class="reference·internal"·href="../topics/http/urls.html#term-application-namespace"><span·class="xref·std·std-term">application
168 namespace</span></a>·and·<a·class="reference·internal"·href="../topics/http/urls.html#term-instance-namespace"><span·class="xref·std·std-term">instance·namespace</span></a>·where·the·entries·will·be·included169 namespace</span></a>·and·<a·class="reference·internal"·href="../topics/http/urls.html#term-instance-namespace"><span·class="xref·std·std-term">instance·namespace</span></a>·where·the·entries·will·be·included
169 into·can·also·be·specified.</p>170 into·can·also·be·specified.</p>
170 <p>Usually,·the·application·namespace·should·be·specified·by·the·included171 <p>Usually,·the·application·namespace·should·be·specified·by·the·included
171 module.·If·an·application·namespace·is·set,·the·<code·class="docutils·literal·notranslate"><span·class="pre">namespace</span></code>·argument172 module.·If·an·application·namespace·is·set,·the·<code·class="docutils·literal·notranslate"><span·class="pre">namespace</span></code>·argument
172 can·be·used·to·set·a·different·instance·namespace.</p>173 can·be·used·to·set·a·different·instance·namespace.</p>
173 <p><code·class="docutils·literal·notranslate"><span·class="pre">include()</span></code>·also·accepts·as·an·argument·either·an·iterable·that·returns174 <p><code·class="docutils·literal·notranslate"><span·class="pre">include()</span></code>·also·accepts·as·an·argument·either·an·iterable·that·returns
174 URL·patterns·or·a·2-tuple·containing·such·iterable·plus·the·names·of·the175 URL·patterns·or·a·2-tuple·containing·such·iterable·plus·the·names·of·the
175 application·namespaces.</p>176 application·namespaces.</p>
176 <dl·class="field-list·simple">177 <dl·class="field-list·simple">
177 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>178 <dt·class="field-odd">Parametri<span·class="colon">:</span></dt>
178 <dd·class="field-odd"><ul·class="simple">179 <dd·class="field-odd"><ul·class="simple">
179 <li><p><strong>module</strong>··URLconf·module·(or·module·name)</p></li>180 <li><p><strong>module</strong>··URLconf·module·(or·module·name)</p></li>
180 <li><p><strong>namespace</strong>·(<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/stdtypes.html#str"·title="(in·Python·v3.12)"><em>str</em></a>)··Instance·namespace·for·the·URL·entries·being·included</p></li>181 <li><p><strong>namespace</strong>·(<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/stdtypes.html#str"·title="(in·Python·v3.12)"><em>str</em></a>)··Instance·namespace·for·the·URL·entries·being·included</p></li>
181 <li><p><strong>pattern_list</strong>··Iterable·of·<a·class="reference·internal"·href="#django.urls.path"·title="django.urls.path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">path()</span></code></a>·and/or·<a·class="reference·internal"·href="#django.urls.re_path"·title="django.urls.re_path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">re_path()</span></code></a>·instances.</p></li>182 <li><p><strong>pattern_list</strong>··Iterable·of·<a·class="reference·internal"·href="#django.urls.path"·title="django.urls.path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">path()</span></code></a>·and/or·<a·class="reference·internal"·href="#django.urls.re_path"·title="django.urls.re_path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">re_path()</span></code></a>·instances.</p></li>
182 <li><p><strong>app_namespace</strong>·(<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/stdtypes.html#str"·title="(in·Python·v3.12)"><em>str</em></a>)··Application·namespace·for·the·URL·entries·being·included</p></li>183 <li><p><strong>app_namespace</strong>·(<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/stdtypes.html#str"·title="(in·Python·v3.12)"><em>str</em></a>)··Application·namespace·for·the·URL·entries·being·included</p></li>
183 </ul>184 </ul>
184 </dd>185 </dd>
Offset 187, 15 lines modifiedOffset 188, 15 lines modified
  
187 <p>See·<a·class="reference·internal"·href="../topics/http/urls.html#including-other-urlconfs"><span·class="std·std-ref">Including·other·URLconfs</span></a>·and·<a·class="reference·internal"·href="../topics/http/urls.html#namespaces-and-include"><span·class="std·std-ref">URL·namespaces·and·included·URLconfs</span></a>.</p>188 <p>See·<a·class="reference·internal"·href="../topics/http/urls.html#including-other-urlconfs"><span·class="std·std-ref">Including·other·URLconfs</span></a>·and·<a·class="reference·internal"·href="../topics/http/urls.html#namespaces-and-include"><span·class="std·std-ref">URL·namespaces·and·included·URLconfs</span></a>.</p>
188 </section>189 </section>
189 <section·id="s-register-converter">190 <section·id="s-register-converter">
190 <span·id="register-converter"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">register_converter()</span></code><a·class="headerlink"·href="#register-converter"·title="Link·to·this·heading">¶</a></h2>191 <span·id="register-converter"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">register_converter()</span></code><a·class="headerlink"·href="#register-converter"·title="Link·to·this·heading">¶</a></h2>
191 <dl·class="py·function">192 <dl·class="py·function">
192 <dt·class="sig·sig-object·py"·id="django.urls.register_converter">193 <dt·class="sig·sig-object·py"·id="django.urls.register_converter">
193 <span·class="sig-name·descname"><span·class="pre">register_converter</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">converter</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">type_name</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/converters.html#register_converter"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.urls.register_converter"·title="Link·to·this·definition">¶</a></dt>194 <span·class="sig-name·descname"><span·class="pre">register_converter</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">converter</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">type_name</span></span></em>)<a·class="reference·internal"·href="../_modules/django/urls/converters.html#register_converter"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.urls.register_converter"·title="Link·to·this·definition">¶</a></dt>
194 <dd></dd></dl>195 <dd></dd></dl>
  
195 <p>The·function·for·registering·a·converter·for·use·in·<a·class="reference·internal"·href="#django.urls.path"·title="django.urls.path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">path()</span></code></a>196 <p>The·function·for·registering·a·converter·for·use·in·<a·class="reference·internal"·href="#django.urls.path"·title="django.urls.path"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">path()</span></code></a>
196 <code·class="docutils·literal·notranslate"><span·class="pre">route</span></code>s.</p>197 <code·class="docutils·literal·notranslate"><span·class="pre">route</span></code>s.</p>
197 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">converter</span></code>·argument·is·a·converter·class,·and·<code·class="docutils·literal·notranslate"><span·class="pre">type_name</span></code>·is·the198 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">converter</span></code>·argument·is·a·converter·class,·and·<code·class="docutils·literal·notranslate"><span·class="pre">type_name</span></code>·is·the
198 converter·name·to·use·in·path·patterns.·See199 converter·name·to·use·in·path·patterns.·See
199 <a·class="reference·internal"·href="../topics/http/urls.html#registering-custom-path-converters"><span·class="std·std-ref">Registering·custom·path·converters</span></a>·for·an·example.</p>200 <a·class="reference·internal"·href="../topics/http/urls.html#registering-custom-path-converters"><span·class="std·std-ref">Registering·custom·path·converters</span></a>·for·an·example.</p>
Offset 305, 37 lines modifiedOffset 306, 37 lines modified
305 <li><a·class="reference·internal"·href="#handler500"><code·class="docutils·literal·notranslate"><span·class="pre">handler500</span></code></a></li>306 <li><a·class="reference·internal"·href="#handler500"><code·class="docutils·literal·notranslate"><span·class="pre">handler500</span></code></a></li>
306 </ul>307 </ul>
307 </li>308 </li>
308 </ul>309 </ul>
  
309 ··</div>310 ··</div>
310 ··<div>311 ··<div>
311 ····<h4>Previous·topic</h4>312 ····<h4>Argomento·precedente</h4>
312 ····<p·class="topless"><a·href="urlresolvers.html"313 ····<p·class="topless"><a·href="urlresolvers.html"
313 ··························title="previous·chapter"><code·class="docutils·literal·notranslate"><span·class="pre">django.urls</span></code>·utility·functions</a></p>314 ··························title="capitolo·precedente"><code·class="docutils·literal·notranslate"><span·class="pre">django.urls</span></code>·utility·functions</a></p>
314 ··</div>315 ··</div>
315 ··<div>316 ··<div>
316 ····<h4>Next·topic</h4>317 ····<h4>Argomento·successivo</h4>
317 ····<p·class="topless"><a·href="utils.html"318 ····<p·class="topless"><a·href="utils.html"
318 ··························title="next·chapter">Django·Utils</a></p>319 ··························title="capitolo·successivo">Django·Utils</a></p>
319 ··</div>320 ··</div>
320 <search·id="searchbox"·style="display:·none"·role="search">321 <search·id="searchbox"·style="display:·none"·role="search">
321 ··<h3·id="searchlabel">Quick·search</h3>322 ··<h3·id="searchlabel">Ricerca·veloce</h3>
322 ····<div·class="searchformwrapper">323 ····<div·class="searchformwrapper">
323 ····<form·class="search"·action="../search.html"·method="get">324 ····<form·class="search"·action="../search.html"·method="get">
324 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>325 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
325 ······<input·type="submit"·value="Go"·/>326 ······<input·type="submit"·value="Vai"·/>
326 ····</form>327 ····</form>
327 ····</div>328 ····</div>
328 </search>329 </search>
329 <script>document.getElementById('searchbox').style.display·=·"block"</script>330 <script>document.getElementById('searchbox').style.display·=·"block"</script>
330 ········</div>331 ········</div>
331 ······</div>332 ······</div>
332 ··············<h3>Last·update:</h3>333 ··············<h3>Last·update:</h3>
333 ··············<p·class="topless">Sep·03,·2024</p>334 ··············<p·class="topless">set·03,·2024</p>
334 ··········</div>335 ··········</div>
335 ········336 ········
336 ······337 ······
337 ····</div>338 ····</div>
  
338 ····<div·id="ft">339 ····<div·id="ft">
339 ······<div·class="nav">340 ······<div·class="nav">
5.51 KB
html2text {}
Max HTML report size reached
246 KB
./usr/share/doc/python-django-doc/html/ref/utils.html
Max HTML report size reached
62.4 KB
./usr/share/doc/python-django-doc/html/ref/validators.html
Max HTML report size reached
19.7 KB
./usr/share/doc/python-django-doc/html/ref/views.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Built-in·Views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Built-in·Views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Meta-documentation·and·miscellany"·href="../misc/index.html"·/>15 ····<link·rel="next"·title="Meta-documentation·and·miscellany"·href="../misc/index.html"·/>
15 ····<link·rel="prev"·title="Validators"·href="validators.html"·/>16 ····<link·rel="prev"·title="Validators"·href="validators.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 135, 16 lines modifiedOffset 136, 16 lines modified
135 <dl·class="py·function">136 <dl·class="py·function">
136 <dt·class="sig·sig-object·py"·id="django.views.defaults.page_not_found">137 <dt·class="sig·sig-object·py"·id="django.views.defaults.page_not_found">
137 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">page_not_found</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exception</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'404.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.page_not_found"·title="Link·to·this·definition">¶</a></dt>138 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">page_not_found</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exception</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'404.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.page_not_found"·title="Link·to·this·definition">¶</a></dt>
138 <dd></dd></dl>139 <dd></dd></dl>
  
139 <p>When·you·raise·<a·class="reference·internal"·href="../topics/http/views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·from·within·a·view,·Django·loads·a140 <p>When·you·raise·<a·class="reference·internal"·href="../topics/http/views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·from·within·a·view,·Django·loads·a
140 special·view·devoted·to·handling·404·errors.·By·default,·it’s·the·view141 special·view·devoted·to·handling·404·errors.·By·default,·it’s·the·view
141 <a·class="reference·internal"·href="#django.views.defaults.page_not_found"·title="django.views.defaults.page_not_found"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.views.defaults.page_not_found()</span></code></a>,·which·either·produces·a·Not142 <a·class="reference·internal"·href="#django.views.defaults.page_not_found"·title="django.views.defaults.page_not_found"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.views.defaults.page_not_found()</span></code></a>,·which·either·produces·a·«Not
142 Found·message·or·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">404.html</span></code>·if·you·created·it143 Found»·message·or·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">404.html</span></code>·if·you·created·it
143 in·your·root·template·directory.</p>144 in·your·root·template·directory.</p>
144 <p>The·default·404·view·will·pass·two·variables·to·the·template:·<code·class="docutils·literal·notranslate"><span·class="pre">request_path</span></code>,145 <p>The·default·404·view·will·pass·two·variables·to·the·template:·<code·class="docutils·literal·notranslate"><span·class="pre">request_path</span></code>,
145 which·is·the·URL·that·resulted·in·the·error,·and·<code·class="docutils·literal·notranslate"><span·class="pre">exception</span></code>,·which·is·a146 which·is·the·URL·that·resulted·in·the·error,·and·<code·class="docutils·literal·notranslate"><span·class="pre">exception</span></code>,·which·is·a
146 useful·representation·of·the·exception·that·triggered·the·view·(e.g.·containing147 useful·representation·of·the·exception·that·triggered·the·view·(e.g.·containing
147 any·message·passed·to·a·specific·<code·class="docutils·literal·notranslate"><span·class="pre">Http404</span></code>·instance).</p>148 any·message·passed·to·a·specific·<code·class="docutils·literal·notranslate"><span·class="pre">Http404</span></code>·instance).</p>
148 <p>Three·things·to·note·about·404·views:</p>149 <p>Three·things·to·note·about·404·views:</p>
149 <ul·class="simple">150 <ul·class="simple">
Offset 164, 15 lines modifiedOffset 165, 15 lines modified
164 <dt·class="sig·sig-object·py"·id="django.views.defaults.server_error">165 <dt·class="sig·sig-object·py"·id="django.views.defaults.server_error">
165 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">server_error</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'500.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.server_error"·title="Link·to·this·definition">¶</a></dt>166 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">server_error</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'500.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.server_error"·title="Link·to·this·definition">¶</a></dt>
166 <dd></dd></dl>167 <dd></dd></dl>
  
167 <p>Similarly,·Django·executes·special-case·behavior·in·the·case·of·runtime·errors168 <p>Similarly,·Django·executes·special-case·behavior·in·the·case·of·runtime·errors
168 in·view·code.·If·a·view·results·in·an·exception,·Django·will,·by·default,·call169 in·view·code.·If·a·view·results·in·an·exception,·Django·will,·by·default,·call
169 the·view·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.server_error</span></code>,·which·either·produces·a170 the·view·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.server_error</span></code>,·which·either·produces·a
170 Server·Error·message·or·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">500.html</span></code>·if·you171 «Server·Error»·message·or·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">500.html</span></code>·if·you
171 created·it·in·your·root·template·directory.</p>172 created·it·in·your·root·template·directory.</p>
172 <p>The·default·500·view·passes·no·variables·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">500.html</span></code>·template·and·is173 <p>The·default·500·view·passes·no·variables·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">500.html</span></code>·template·and·is
173 rendered·with·an·empty·<code·class="docutils·literal·notranslate"><span·class="pre">Context</span></code>·to·lessen·the·chance·of·additional·errors.</p>174 rendered·with·an·empty·<code·class="docutils·literal·notranslate"><span·class="pre">Context</span></code>·to·lessen·the·chance·of·additional·errors.</p>
174 <p>If·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·(in·your·settings·module),·then175 <p>If·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·(in·your·settings·module),·then
175 your·500·view·will·never·be·used,·and·the·traceback·will·be·displayed176 your·500·view·will·never·be·used,·and·the·traceback·will·be·displayed
176 instead,·with·some·debug·information.</p>177 instead,·with·some·debug·information.</p>
177 </section>178 </section>
Offset 184, 15 lines modifiedOffset 185, 15 lines modified
184 <dd></dd></dl>185 <dd></dd></dl>
  
185 <p>In·the·same·vein·as·the·404·and·500·views,·Django·has·a·view·to·handle·403186 <p>In·the·same·vein·as·the·404·and·500·views,·Django·has·a·view·to·handle·403
186 Forbidden·errors.·If·a·view·results·in·a·403·exception·then·Django·will,·by187 Forbidden·errors.·If·a·view·results·in·a·403·exception·then·Django·will,·by
187 default,·call·the·view·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.permission_denied</span></code>.</p>188 default,·call·the·view·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.permission_denied</span></code>.</p>
188 <p>This·view·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">403.html</span></code>·in·your·root·template189 <p>This·view·loads·and·renders·the·template·<code·class="docutils·literal·notranslate"><span·class="pre">403.html</span></code>·in·your·root·template
189 directory,·or·if·this·file·does·not·exist,·instead·serves·the·text190 directory,·or·if·this·file·does·not·exist,·instead·serves·the·text
190 403·Forbidden,·as·per·<span·class="target"·id="index-0"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-15.5.4"><strong>RFC·9110#section-15.5.4</strong></a>·(the·HTTP·1.1191 «403·Forbidden»,·as·per·<span·class="target"·id="index-0"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-15.5.4"><strong>RFC·9110#section-15.5.4</strong></a>·(the·HTTP·1.1
191 Specification).·The·template·context·contains·<code·class="docutils·literal·notranslate"><span·class="pre">exception</span></code>,·which·is·the192 Specification).·The·template·context·contains·<code·class="docutils·literal·notranslate"><span·class="pre">exception</span></code>,·which·is·the
192 string·representation·of·the·exception·that·triggered·the·view.</p>193 string·representation·of·the·exception·that·triggered·the·view.</p>
193 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.permission_denied</span></code>·is·triggered·by·a194 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.permission_denied</span></code>·is·triggered·by·a
194 <a·class="reference·internal"·href="exceptions.html#django.core.exceptions.PermissionDenied"·title="django.core.exceptions.PermissionDenied"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">PermissionDenied</span></code></a>·exception.·To·deny·access·in·a195 <a·class="reference·internal"·href="exceptions.html#django.core.exceptions.PermissionDenied"·title="django.core.exceptions.PermissionDenied"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">PermissionDenied</span></code></a>·exception.·To·deny·access·in·a
195 view·you·can·use·code·like·this:</p>196 view·you·can·use·code·like·this:</p>
196 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>197 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core.exceptions</span>·<span·class="kn">import</span>·<span·class="n">PermissionDenied</span>
  
Offset 210, 15 lines modifiedOffset 211, 15 lines modified
210 <dt·class="sig·sig-object·py"·id="django.views.defaults.bad_request">211 <dt·class="sig·sig-object·py"·id="django.views.defaults.bad_request">
211 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">bad_request</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exception</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'400.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.bad_request"·title="Link·to·this·definition">¶</a></dt>212 <span·class="sig-prename·descclassname"><span·class="pre">defaults.</span></span><span·class="sig-name·descname"><span·class="pre">bad_request</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">exception</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'400.html'</span></span></em>)<a·class="headerlink"·href="#django.views.defaults.bad_request"·title="Link·to·this·definition">¶</a></dt>
212 <dd></dd></dl>213 <dd></dd></dl>
  
213 <p>When·a·<a·class="reference·internal"·href="exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">SuspiciousOperation</span></code></a>·is·raised·in·Django,214 <p>When·a·<a·class="reference·internal"·href="exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">SuspiciousOperation</span></code></a>·is·raised·in·Django,
214 it·may·be·handled·by·a·component·of·Django·(for·example·resetting·the·session215 it·may·be·handled·by·a·component·of·Django·(for·example·resetting·the·session
215 data).·If·not·specifically·handled,·Django·will·consider·the·current·request·a216 data).·If·not·specifically·handled,·Django·will·consider·the·current·request·a
216 bad·request·instead·of·a·server·error.</p>217 bad·request·instead·of·a·server·error.</p>
217 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.bad_request</span></code>,·is·otherwise·very·similar·to·the218 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.views.defaults.bad_request</span></code>,·is·otherwise·very·similar·to·the
218 <code·class="docutils·literal·notranslate"><span·class="pre">server_error</span></code>·view,·but·returns·with·the·status·code·400·indicating·that219 <code·class="docutils·literal·notranslate"><span·class="pre">server_error</span></code>·view,·but·returns·with·the·status·code·400·indicating·that
219 the·error·condition·was·the·result·of·a·client·operation.·By·default,·nothing220 the·error·condition·was·the·result·of·a·client·operation.·By·default,·nothing
220 related·to·the·exception·that·triggered·the·view·is·passed·to·the·template221 related·to·the·exception·that·triggered·the·view·is·passed·to·the·template
221 context,·as·the·exception·message·might·contain·sensitive·information·like222 context,·as·the·exception·message·might·contain·sensitive·information·like
222 filesystem·paths.</p>223 filesystem·paths.</p>
223 <p><code·class="docutils·literal·notranslate"><span·class="pre">bad_request</span></code>·views·are·also·only·used·when·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>.</p>224 <p><code·class="docutils·literal·notranslate"><span·class="pre">bad_request</span></code>·views·are·also·only·used·when·<a·class="reference·internal"·href="settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>.</p>
Offset 250, 37 lines modifiedOffset 251, 37 lines modified
250 </li>251 </li>
251 </ul>252 </ul>
252 </li>253 </li>
253 </ul>254 </ul>
  
254 ··</div>255 ··</div>
255 ··<div>256 ··<div>
256 ····<h4>Previous·topic</h4>257 ····<h4>Argomento·precedente</h4>
257 ····<p·class="topless"><a·href="validators.html"258 ····<p·class="topless"><a·href="validators.html"
258 ··························title="previous·chapter">Validators</a></p>259 ··························title="capitolo·precedente">Validators</a></p>
259 ··</div>260 ··</div>
260 ··<div>261 ··<div>
261 ····<h4>Next·topic</h4>262 ····<h4>Argomento·successivo</h4>
262 ····<p·class="topless"><a·href="../misc/index.html"263 ····<p·class="topless"><a·href="../misc/index.html"
263 ··························title="next·chapter">Meta-documentation·and·miscellany</a></p>264 ··························title="capitolo·successivo">Meta-documentation·and·miscellany</a></p>
264 ··</div>265 ··</div>
265 <search·id="searchbox"·style="display:·none"·role="search">266 <search·id="searchbox"·style="display:·none"·role="search">
266 ··<h3·id="searchlabel">Quick·search</h3>267 ··<h3·id="searchlabel">Ricerca·veloce</h3>
267 ····<div·class="searchformwrapper">268 ····<div·class="searchformwrapper">
268 ····<form·class="search"·action="../search.html"·method="get">269 ····<form·class="search"·action="../search.html"·method="get">
269 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>270 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
270 ······<input·type="submit"·value="Go"·/>271 ······<input·type="submit"·value="Vai"·/>
Max diff block lines reached; 365/12475 bytes (2.93%) of diff not shown.
7.44 KB
html2text {}
Max HTML report size reached
13.5 KB
./usr/share/doc/python-django-doc/html/releases/0.95.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·version·0.95·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·version·0.95·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Archive·of·security·issues"·href="security.html"·/>15 ····<link·rel="next"·title="Archive·of·security·issues"·href="security.html"·/>
15 ····<link·rel="prev"·title="Django·version·0.96·release·notes"·href="0.96.html"·/>16 ····<link·rel="prev"·title="Django·version·0.96·release·notes"·href="0.96.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 32 lines modifiedOffset 89, 32 lines modified
88 <p>This·release·is·intended·to·provide·a·stable·reference·point·for·developers89 <p>This·release·is·intended·to·provide·a·stable·reference·point·for·developers
89 wanting·to·work·on·production-level·applications·that·use·Django.</p>90 wanting·to·work·on·production-level·applications·that·use·Django.</p>
90 <p>However,·it’s·not·the·1.0·release,·and·we’ll·be·introducing·further·changes91 <p>However,·it’s·not·the·1.0·release,·and·we’ll·be·introducing·further·changes
91 before·1.0.·For·a·clear·look·at·which·areas·of·the·framework·will·change·(and92 before·1.0.·For·a·clear·look·at·which·areas·of·the·framework·will·change·(and
92 which·ones·will·<em>not</em>·change)·before·1.0,·see·the·<code·class="docutils·literal·notranslate"><span·class="pre">api-stability.txt</span></code>·file,93 which·ones·will·<em>not</em>·change)·before·1.0,·see·the·<code·class="docutils·literal·notranslate"><span·class="pre">api-stability.txt</span></code>·file,
93 which·lives·in·the·docs/·directory·of·the·distribution.</p>94 which·lives·in·the·docs/·directory·of·the·distribution.</p>
94 <p>You·may·have·a·need·to·use·some·of·the·features·that·are·marked·as95 <p>You·may·have·a·need·to·use·some·of·the·features·that·are·marked·as
95 subject·to·API·change·in·that·document,·but·that’s·OK·with·us·as·long·as·it’s96 «subject·to·API·change»·in·that·document,·but·that’s·OK·with·us·as·long·as·it’s
96 OK·with·you,·and·as·long·as·you·understand·APIs·may·change·in·the·future.</p>97 OK·with·you,·and·as·long·as·you·understand·APIs·may·change·in·the·future.</p>
97 <p>Fortunately,·most·of·Django’s·core·APIs·won’t·be·changing·before·version·1.0.98 <p>Fortunately,·most·of·Django’s·core·APIs·won’t·be·changing·before·version·1.0.
98 There·likely·won’t·be·as·big·of·a·change·between·0.95·and·1.0·versions·as·there99 There·likely·won’t·be·as·big·of·a·change·between·0.95·and·1.0·versions·as·there
99 was·between·0.91·and·0.95.</p>100 was·between·0.91·and·0.95.</p>
100 </section>101 </section>
101 <section·id="s-changes-and-new-features">102 <section·id="s-changes-and-new-features">
102 <span·id="changes-and-new-features"></span><h2>Changes·and·new·features<a·class="headerlink"·href="#changes-and-new-features"·title="Link·to·this·heading">¶</a></h2>103 <span·id="changes-and-new-features"></span><h2>Changes·and·new·features<a·class="headerlink"·href="#changes-and-new-features"·title="Link·to·this·heading">¶</a></h2>
103 <p>The·major·changes·in·this·release·(for·developers·currently·using·the·0.91104 <p>The·major·changes·in·this·release·(for·developers·currently·using·the·0.91
104 release)·are·a·result·of·merging·the·magic-removal·branch·of·development.105 release)·are·a·result·of·merging·the·magic-removal·branch·of·development.
105 This·branch·removed·a·number·of·constraints·in·the·way·Django·code·had·to·be106 This·branch·removed·a·number·of·constraints·in·the·way·Django·code·had·to·be
106 written·that·were·a·consequence·of·decisions·made·in·the·early·days·of·Django,107 written·that·were·a·consequence·of·decisions·made·in·the·early·days·of·Django,
107 prior·to·its·open-source·release.·It’s·now·possible·to·write·more·natural,108 prior·to·its·open-source·release.·It’s·now·possible·to·write·more·natural,
108 Pythonic·code·that·works·as·expected,·and·there’s·less·black·magic·happening109 Pythonic·code·that·works·as·expected,·and·there’s·less·«black·magic»·happening
109 behind·the·scenes.</p>110 behind·the·scenes.</p>
110 <p>Aside·from·that,·another·main·theme·of·this·release·is·a·dramatic·increase·in111 <p>Aside·from·that,·another·main·theme·of·this·release·is·a·dramatic·increase·in
111 usability.·We’ve·made·countless·improvements·in·error·messages,·documentation,112 usability.·We’ve·made·countless·improvements·in·error·messages,·documentation,
112 etc.,·to·improve·developers·quality·of·life.</p>113 etc.,·to·improve·developers·quality·of·life.</p>
113 <p>The·new·features·and·changes·introduced·in·0.95·include:</p>114 <p>The·new·features·and·changes·introduced·in·0.95·include:</p>
114 <ul·class="simple">115 <ul·class="simple">
115 <li><p>Django·now·uses·a·more·consistent·and·natural·filtering·interface·for116 <li><p>Django·now·uses·a·more·consistent·and·natural·filtering·interface·for
116 retrieving·objects·from·the·database.</p></li>117 retrieving·objects·from·the·database.</p></li>
117 <li><p>User-defined·models,·functions·and·constants·now·appear·in·the·module118 <li><p>User-defined·models,·functions·and·constants·now·appear·in·the·module
118 namespace·they·were·defined·in.·(Previously·everything·was·magically119 namespace·they·were·defined·in.·(Previously·everything·was·magically
119 transferred·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.models.*</span></code>·namespace.)</p></li>120 transferred·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.models.*</span></code>·namespace.)</p></li>
Offset 122, 15 lines modifiedOffset 123, 15 lines modified
122 want·to·use·these·applications,·you·no·longer·have·to·install·their123 want·to·use·these·applications,·you·no·longer·have·to·install·their
123 database·tables.</p></li>124 database·tables.</p></li>
124 <li><p>Django·now·has·support·for·managing·database·transactions.</p></li>125 <li><p>Django·now·has·support·for·managing·database·transactions.</p></li>
125 <li><p>We’ve·added·the·ability·to·write·custom·authentication·and·authorization126 <li><p>We’ve·added·the·ability·to·write·custom·authentication·and·authorization
126 backends·for·authenticating·users·against·alternate·systems,·such·as127 backends·for·authenticating·users·against·alternate·systems,·such·as
127 LDAP.</p></li>128 LDAP.</p></li>
128 <li><p>We’ve·made·it·easier·to·add·custom·table-level·functions·to·models,129 <li><p>We’ve·made·it·easier·to·add·custom·table-level·functions·to·models,
129 through·a·new·Manager·API.</p></li>130 through·a·new·«Manager»·API.</p></li>
130 <li><p>It’s·now·possible·to·use·Django·without·a·database.·This·simply·means131 <li><p>It’s·now·possible·to·use·Django·without·a·database.·This·simply·means
131 that·the·framework·no·longer·requires·you·to·have·a·working·database·set132 that·the·framework·no·longer·requires·you·to·have·a·working·database·set
132 up·just·to·serve·dynamic·pages.·In·other·words,·you·can·just·use133 up·just·to·serve·dynamic·pages.·In·other·words,·you·can·just·use
133 URLconfs/views·on·their·own.·Previously,·the·framework·required·that·a134 URLconfs/views·on·their·own.·Previously,·the·framework·required·that·a
134 database·be·configured,·regardless·of·whether·you·actually·used·it.</p></li>135 database·be·configured,·regardless·of·whether·you·actually·used·it.</p></li>
135 <li><p>It’s·now·more·explicit·and·natural·to·override·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">delete()</span></code>136 <li><p>It’s·now·more·explicit·and·natural·to·override·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">delete()</span></code>
136 methods·on·models,·rather·than·needing·to·hook·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">pre_save()</span></code>·and137 methods·on·models,·rather·than·needing·to·hook·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">pre_save()</span></code>·and
Offset 190, 37 lines modifiedOffset 191, 37 lines modified
190 <li><a·class="reference·internal"·href="#problem-reports-and-getting-help">Problem·reports·and·getting·help</a></li>191 <li><a·class="reference·internal"·href="#problem-reports-and-getting-help">Problem·reports·and·getting·help</a></li>
191 </ul>192 </ul>
192 </li>193 </li>
193 </ul>194 </ul>
  
194 ··</div>195 ··</div>
195 ··<div>196 ··<div>
196 ····<h4>Previous·topic</h4>197 ····<h4>Argomento·precedente</h4>
197 ····<p·class="topless"><a·href="0.96.html"198 ····<p·class="topless"><a·href="0.96.html"
198 ··························title="previous·chapter">Django·version·0.96·release·notes</a></p>199 ··························title="capitolo·precedente">Django·version·0.96·release·notes</a></p>
199 ··</div>200 ··</div>
200 ··<div>201 ··<div>
201 ····<h4>Next·topic</h4>202 ····<h4>Argomento·successivo</h4>
202 ····<p·class="topless"><a·href="security.html"203 ····<p·class="topless"><a·href="security.html"
203 ··························title="next·chapter">Archive·of·security·issues</a></p>204 ··························title="capitolo·successivo">Archive·of·security·issues</a></p>
204 ··</div>205 ··</div>
205 <search·id="searchbox"·style="display:·none"·role="search">206 <search·id="searchbox"·style="display:·none"·role="search">
206 ··<h3·id="searchlabel">Quick·search</h3>207 ··<h3·id="searchlabel">Ricerca·veloce</h3>
207 ····<div·class="searchformwrapper">208 ····<div·class="searchformwrapper">
208 ····<form·class="search"·action="../search.html"·method="get">209 ····<form·class="search"·action="../search.html"·method="get">
209 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>210 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
210 ······<input·type="submit"·value="Go"·/>211 ······<input·type="submit"·value="Vai"·/>
211 ····</form>212 ····</form>
212 ····</div>213 ····</div>
213 </search>214 </search>
214 <script>document.getElementById('searchbox').style.display·=·"block"</script>215 <script>document.getElementById('searchbox').style.display·=·"block"</script>
215 ········</div>216 ········</div>
216 ······</div>217 ······</div>
217 ··············<h3>Last·update:</h3>218 ··············<h3>Last·update:</h3>
218 ··············<p·class="topless">Sep·03,·2024</p>219 ··············<p·class="topless">set·03,·2024</p>
219 ··········</div>220 ··········</div>
220 ········221 ········
221 ······222 ······
222 ····</div>223 ····</div>
  
223 ····<div·id="ft">224 ····<div·id="ft">
224 ······<div·class="nav">225 ······<div·class="nav">
5.8 KB
html2text {}
Max HTML report size reached
16.9 KB
./usr/share/doc/python-django-doc/html/releases/0.96.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·version·0.96·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·version·0.96·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·version·0.95·release·notes"·href="0.95.html"·/>15 ····<link·rel="next"·title="Django·version·0.95·release·notes"·href="0.95.html"·/>
15 ····<link·rel="prev"·title="Porting·your·apps·from·Django·0.96·to·1.0"·href="1.0-porting-guide.html"·/>16 ····<link·rel="prev"·title="Porting·your·apps·from·Django·0.96·to·1.0"·href="1.0-porting-guide.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 99, 32 lines modifiedOffset 100, 32 lines modified
99 <span·id="mysqldb-version-requirement"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·version·requirement<a·class="headerlink"·href="#mysqldb-version-requirement"·title="Link·to·this·heading">¶</a></h3>100 <span·id="mysqldb-version-requirement"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·version·requirement<a·class="headerlink"·href="#mysqldb-version-requirement"·title="Link·to·this·heading">¶</a></h3>
100 <p>Due·to·a·bug·in·older·versions·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·Python·module·(which101 <p>Due·to·a·bug·in·older·versions·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·Python·module·(which
101 Django·uses·to·connect·to·MySQL·databases),·Django’s·MySQL·backend·now102 Django·uses·to·connect·to·MySQL·databases),·Django’s·MySQL·backend·now
102 requires·version·1.2.1p2·or·higher·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>,·and·will·raise103 requires·version·1.2.1p2·or·higher·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>,·and·will·raise
103 exceptions·if·you·attempt·to·use·an·older·version.</p>104 exceptions·if·you·attempt·to·use·an·older·version.</p>
104 <p>If·you’re·currently·unable·to·upgrade·your·copy·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·to·meet105 <p>If·you’re·currently·unable·to·upgrade·your·copy·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·to·meet
105 this·requirement,·a·separate,·backwards-compatible·backend,·called106 this·requirement,·a·separate,·backwards-compatible·backend,·called
106 mysql_old,·has·been·added·to·Django.·To·use·this·backend,·change107 «mysql_old»,·has·been·added·to·Django.·To·use·this·backend,·change
107 the·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_ENGINE</span></code>·setting·in·your·Django·settings·file·from·this:</p>108 the·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_ENGINE</span></code>·setting·in·your·Django·settings·file·from·this:</p>
108 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASE_ENGINE</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysql&quot;</span>109 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASE_ENGINE</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysql&quot;</span>
109 </pre></div>110 </pre></div>
110 </div>111 </div>
111 <p>to·this:</p>112 <p>to·this:</p>
112 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASE_ENGINE</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysql_old&quot;</span>113 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASE_ENGINE</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysql_old&quot;</span>
113 </pre></div>114 </pre></div>
114 </div>115 </div>
115 <p>However,·we·strongly·encourage·MySQL·users·to·upgrade·to·a·more·recent116 <p>However,·we·strongly·encourage·MySQL·users·to·upgrade·to·a·more·recent
116 version·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·as·soon·as·possible,·The·mysql_old·backend·is117 version·of·<code·class="docutils·literal·notranslate"><span·class="pre">MySQLdb</span></code>·as·soon·as·possible,·The·«mysql_old»·backend·is
117 provided·only·to·ease·this·transition,·and·is·considered·deprecated;118 provided·only·to·ease·this·transition,·and·is·considered·deprecated;
118 aside·from·any·necessary·security·fixes,·it·will·not·be·actively119 aside·from·any·necessary·security·fixes,·it·will·not·be·actively
119 maintained,·and·it·will·be·removed·in·a·future·release·of·Django.</p>120 maintained,·and·it·will·be·removed·in·a·future·release·of·Django.</p>
120 <p>Also,·note·that·some·features,·like·the·new·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_OPTIONS</span></code>121 <p>Also,·note·that·some·features,·like·the·new·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_OPTIONS</span></code>
121 setting·(see·the·<a·class="reference·internal"·href="../ref/databases.html"><span·class="doc">databases·documentation</span></a>·for·details),122 setting·(see·the·<a·class="reference·internal"·href="../ref/databases.html"><span·class="doc">databases·documentation</span></a>·for·details),
122 are·only·available·on·the·mysql·backend,·and·will·not·be·made·available·for123 are·only·available·on·the·«mysql»·backend,·and·will·not·be·made·available·for
123 mysql_old.</p>124 «mysql_old».</p>
124 </section>125 </section>
125 <section·id="s-database-constraint-names-changed">126 <section·id="s-database-constraint-names-changed">
126 <span·id="database-constraint-names-changed"></span><h3>Database·constraint·names·changed<a·class="headerlink"·href="#database-constraint-names-changed"·title="Link·to·this·heading">¶</a></h3>127 <span·id="database-constraint-names-changed"></span><h3>Database·constraint·names·changed<a·class="headerlink"·href="#database-constraint-names-changed"·title="Link·to·this·heading">¶</a></h3>
127 <p>The·format·of·the·constraint·names·Django·generates·for·foreign·key128 <p>The·format·of·the·constraint·names·Django·generates·for·foreign·key
128 references·have·changed·slightly.·These·names·are·generally·only·used129 references·have·changed·slightly.·These·names·are·generally·only·used
129 when·it·is·not·possible·to·put·the·reference·directly·on·the·affected130 when·it·is·not·possible·to·put·the·reference·directly·on·the·affected
130 column,·so·they·are·not·always·visible.</p>131 column,·so·they·are·not·always·visible.</p>
Offset 158, 15 lines modifiedOffset 159, 15 lines modified
158 <li><p>The·vestigial·<code·class="docutils·literal·notranslate"><span·class="pre">install</span></code>·command·has·been·removed.·Use·<code·class="docutils·literal·notranslate"><span·class="pre">syncdb</span></code>.</p></li>159 <li><p>The·vestigial·<code·class="docutils·literal·notranslate"><span·class="pre">install</span></code>·command·has·been·removed.·Use·<code·class="docutils·literal·notranslate"><span·class="pre">syncdb</span></code>.</p></li>
159 </ul>160 </ul>
160 </section>161 </section>
161 <section·id="s-backslash-escaping-changed">162 <section·id="s-backslash-escaping-changed">
162 <span·id="backslash-escaping-changed"></span><h3>Backslash·escaping·changed<a·class="headerlink"·href="#backslash-escaping-changed"·title="Link·to·this·heading">¶</a></h3>163 <span·id="backslash-escaping-changed"></span><h3>Backslash·escaping·changed<a·class="headerlink"·href="#backslash-escaping-changed"·title="Link·to·this·heading">¶</a></h3>
163 <p>The·Django·database·API·now·escapes·backslashes·given·as·query·parameters.·If164 <p>The·Django·database·API·now·escapes·backslashes·given·as·query·parameters.·If
164 you·have·any·database·API·code·that·matches·backslashes,·and·it·was·working·before165 you·have·any·database·API·code·that·matches·backslashes,·and·it·was·working·before
165 (despite·the·lack·of·escaping),·you’ll·have·to·change·your·code·to·unescape·the166 (despite·the·lack·of·escaping),·you’ll·have·to·change·your·code·to·«unescape»·the
166 slashes·one·level.</p>167 slashes·one·level.</p>
167 <p>For·example,·this·used·to·work:</p>168 <p>For·example,·this·used·to·work:</p>
168 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·Find·text·containing·a·single·backslash</span>169 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·Find·text·containing·a·single·backslash</span>
169 <span·class="n">MyModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">text__contains</span><span·class="o">=</span><span·class="s2">&quot;</span><span·class="se">\\\\</span><span·class="s2">&quot;</span><span·class="p">)</span>170 <span·class="n">MyModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">text__contains</span><span·class="o">=</span><span·class="s2">&quot;</span><span·class="se">\\\\</span><span·class="s2">&quot;</span><span·class="p">)</span>
170 </pre></div>171 </pre></div>
171 </div>172 </div>
172 <p>The·above·is·now·incorrect,·and·should·be·rewritten·as:</p>173 <p>The·above·is·now·incorrect,·and·should·be·rewritten·as:</p>
Offset 257, 15 lines modifiedOffset 258, 15 lines modified
257 be·valid·for·the·foreseeable·future.</p>258 be·valid·for·the·foreseeable·future.</p>
258 </section>259 </section>
259 <section·id="s-the-test-framework">260 <section·id="s-the-test-framework">
260 <span·id="the-test-framework"></span><h3>The·test·framework<a·class="headerlink"·href="#the-test-framework"·title="Link·to·this·heading">¶</a></h3>261 <span·id="the-test-framework"></span><h3>The·test·framework<a·class="headerlink"·href="#the-test-framework"·title="Link·to·this·heading">¶</a></h3>
261 <p>Django·now·includes·a·test·framework·so·you·can·start·transmuting·fear·into262 <p>Django·now·includes·a·test·framework·so·you·can·start·transmuting·fear·into
262 boredom·(with·apologies·to·Kent·Beck).·You·can·write·tests·based·on263 boredom·(with·apologies·to·Kent·Beck).·You·can·write·tests·based·on
263 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/doctest.html#module-doctest"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">doctest</span></code></a>·or·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#module-unittest"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">unittest</span></code></a>·and·test·your·views·with·a·simple·test·client.</p>264 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/doctest.html#module-doctest"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">doctest</span></code></a>·or·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#module-unittest"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">unittest</span></code></a>·and·test·your·views·with·a·simple·test·client.</p>
264 <p>There·is·also·new·support·for·fixtures··initial·data,·stored·in·any·of·the265 <p>There·is·also·new·support·for·«fixtures»··initial·data,·stored·in·any·of·the
265 supported·<a·class="reference·internal"·href="../topics/serialization.html"><span·class="doc">serialization·formats</span></a>,·that·will·be266 supported·<a·class="reference·internal"·href="../topics/serialization.html"><span·class="doc">serialization·formats</span></a>,·that·will·be
266 loaded·into·your·database·at·the·start·of·your·tests.·This·makes·testing·with267 loaded·into·your·database·at·the·start·of·your·tests.·This·makes·testing·with
267 real·data·much·easier.</p>268 real·data·much·easier.</p>
268 <p>See·<a·class="reference·internal"·href="../topics/testing/index.html"><span·class="doc">the·testing·documentation</span></a>·for·the·full·details.</p>269 <p>See·<a·class="reference·internal"·href="../topics/testing/index.html"><span·class="doc">the·testing·documentation</span></a>·for·the·full·details.</p>
269 </section>270 </section>
270 <section·id="s-improvements-to-the-admin-interface">271 <section·id="s-improvements-to-the-admin-interface">
271 <span·id="improvements-to-the-admin-interface"></span><h3>Improvements·to·the·admin·interface<a·class="headerlink"·href="#improvements-to-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>272 <span·id="improvements-to-the-admin-interface"></span><h3>Improvements·to·the·admin·interface<a·class="headerlink"·href="#improvements-to-the-admin-interface"·title="Link·to·this·heading">¶</a></h3>
Offset 329, 37 lines modifiedOffset 330, 37 lines modified
329 <li><a·class="reference·internal"·href="#thanks">Thanks</a></li>330 <li><a·class="reference·internal"·href="#thanks">Thanks</a></li>
330 </ul>331 </ul>
331 </li>332 </li>
332 </ul>333 </ul>
  
333 ··</div>334 ··</div>
334 ··<div>335 ··<div>
335 ····<h4>Previous·topic</h4>336 ····<h4>Argomento·precedente</h4>
336 ····<p·class="topless"><a·href="1.0-porting-guide.html"337 ····<p·class="topless"><a·href="1.0-porting-guide.html"
337 ··························title="previous·chapter">Porting·your·apps·from·Django·0.96·to·1.0</a></p>338 ··························title="capitolo·precedente">Porting·your·apps·from·Django·0.96·to·1.0</a></p>
338 ··</div>339 ··</div>
339 ··<div>340 ··<div>
340 ····<h4>Next·topic</h4>341 ····<h4>Argomento·successivo</h4>
341 ····<p·class="topless"><a·href="0.95.html"342 ····<p·class="topless"><a·href="0.95.html"
342 ··························title="next·chapter">Django·version·0.95·release·notes</a></p>343 ··························title="capitolo·successivo">Django·version·0.95·release·notes</a></p>
343 ··</div>344 ··</div>
344 <search·id="searchbox"·style="display:·none"·role="search">345 <search·id="searchbox"·style="display:·none"·role="search">
345 ··<h3·id="searchlabel">Quick·search</h3>346 ··<h3·id="searchlabel">Ricerca·veloce</h3>
346 ····<div·class="searchformwrapper">347 ····<div·class="searchformwrapper">
347 ····<form·class="search"·action="../search.html"·method="get">348 ····<form·class="search"·action="../search.html"·method="get">
348 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>349 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
349 ······<input·type="submit"·value="Go"·/>350 ······<input·type="submit"·value="Vai"·/>
Max diff block lines reached; 365/10230 bytes (3.57%) of diff not shown.
6.79 KB
html2text {}
Max HTML report size reached
15.5 KB
./usr/share/doc/python-django-doc/html/releases/1.0-porting-guide.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Porting·your·apps·from·Django·0.96·to·1.0·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Porting·your·apps·from·Django·0.96·to·1.0·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·version·0.96·release·notes"·href="0.96.html"·/>15 ····<link·rel="next"·title="Django·version·0.96·release·notes"·href="0.96.html"·/>
15 ····<link·rel="prev"·title="Django·1.0·release·notes"·href="1.0.html"·/>16 ····<link·rel="prev"·title="Django·1.0·release·notes"·href="1.0.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="porting-your-apps-from-django-0-96-to-1-0"></span><h1>Porting·your·apps·from·Django·0.96·to·1.0<a·class="headerlink"·href="#porting-your-apps-from-django-0-96-to-1-0"·title="Link·to·this·heading">¶</a></h1>82 <span·id="porting-your-apps-from-django-0-96-to-1-0"></span><h1>Porting·your·apps·from·Django·0.96·to·1.0<a·class="headerlink"·href="#porting-your-apps-from-django-0-96-to-1-0"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·1.0·breaks·compatibility·with·0.96·in·some·areas.</p>83 <p>Django·1.0·breaks·compatibility·with·0.96·in·some·areas.</p>
83 <p>This·guide·will·help·you·port·0.96·projects·and·apps·to·1.0.·The·first·part·of84 <p>This·guide·will·help·you·port·0.96·projects·and·apps·to·1.0.·The·first·part·of
84 this·document·includes·the·common·changes·needed·to·run·with·1.0.·If·after·going85 this·document·includes·the·common·changes·needed·to·run·with·1.0.·If·after·going
85 through·the·first·part·your·code·still·breaks,·check·the·section·<a·class="reference·internal"·href="#less-common-changes">Less-common86 through·the·first·part·your·code·still·breaks,·check·the·section·<a·class="reference·internal"·href="#less-common-changes">Less-common
86 Changes</a>·for·a·list·of·a·bunch·of·less-common·compatibility·issues.</p>87 Changes</a>·for·a·list·of·a·bunch·of·less-common·compatibility·issues.</p>
87 <div·class="admonition·seealso">88 <div·class="admonition·seealso">
88 <p·class="admonition-title">See·also</p>89 <p·class="admonition-title">Vedi·anche</p>
89 <p>The·<a·class="reference·internal"·href="1.0.html"><span·class="doc">1.0·release·notes</span></a>.·That·document·explains·the·new90 <p>The·<a·class="reference·internal"·href="1.0.html"><span·class="doc">1.0·release·notes</span></a>.·That·document·explains·the·new
90 features·in·1.0·more·deeply;·the·porting·guide·is·more·concerned·with91 features·in·1.0·more·deeply;·the·porting·guide·is·more·concerned·with
91 helping·you·quickly·update·your·code.</p>92 helping·you·quickly·update·your·code.</p>
92 </div>93 </div>
93 <section·id="s-common-changes">94 <section·id="s-common-changes">
94 <span·id="common-changes"></span><h2>Common·changes<a·class="headerlink"·href="#common-changes"·title="Link·to·this·heading">¶</a></h2>95 <span·id="common-changes"></span><h2>Common·changes<a·class="headerlink"·href="#common-changes"·title="Link·to·this·heading">¶</a></h2>
95 <p>This·section·describes·the·changes·between·0.96·and·1.0·that·most·users·will96 <p>This·section·describes·the·changes·between·0.96·and·1.0·that·most·users·will
Offset 131, 15 lines modifiedOffset 132, 15 lines modified
131 <section·id="s-replace-class-admin-with-admin-py">132 <section·id="s-replace-class-admin-with-admin-py">
132 <span·id="replace-class-admin-with-admin-py"></span><h4>Replace·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Admin:</span></code>·with·<code·class="docutils·literal·notranslate"><span·class="pre">admin.py</span></code><a·class="headerlink"·href="#replace-class-admin-with-admin-py"·title="Link·to·this·heading">¶</a></h4>133 <span·id="replace-class-admin-with-admin-py"></span><h4>Replace·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Admin:</span></code>·with·<code·class="docutils·literal·notranslate"><span·class="pre">admin.py</span></code><a·class="headerlink"·href="#replace-class-admin-with-admin-py"·title="Link·to·this·heading">¶</a></h4>
133 <p>Remove·all·your·inner·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Admin</span></code>·declarations·from·your·models.·They·won’t134 <p>Remove·all·your·inner·<code·class="docutils·literal·notranslate"><span·class="pre">class</span>·<span·class="pre">Admin</span></code>·declarations·from·your·models.·They·won’t
134 break·anything·if·you·leave·them,·but·they·also·won’t·do·anything.·To·register135 break·anything·if·you·leave·them,·but·they·also·won’t·do·anything.·To·register
135 apps·with·the·admin·you’ll·move·those·declarations·to·an·<code·class="docutils·literal·notranslate"><span·class="pre">admin.py</span></code>·file;136 apps·with·the·admin·you’ll·move·those·declarations·to·an·<code·class="docutils·literal·notranslate"><span·class="pre">admin.py</span></code>·file;
136 see·<a·class="reference·internal"·href="#the-admin">the·admin</a>·below·for·more·details.</p>137 see·<a·class="reference·internal"·href="#the-admin">the·admin</a>·below·for·more·details.</p>
137 <div·class="admonition·seealso">138 <div·class="admonition·seealso">
138 <p·class="admonition-title">See·also</p>139 <p·class="admonition-title">Vedi·anche</p>
139 <p>A·contributor·to·<a·class="reference·external"·href="https://djangosnippets.org/">djangosnippets</a>·has·written·a·script·that’ll·<a·class="reference·external"·href="https://djangosnippets.org/snippets/603/">scan·your140 <p>A·contributor·to·<a·class="reference·external"·href="https://djangosnippets.org/">djangosnippets</a>·has·written·a·script·that’ll·<a·class="reference·external"·href="https://djangosnippets.org/snippets/603/">scan·your
140 models.py·and·generate·a·corresponding·admin.py</a>.</p>141 models.py·and·generate·a·corresponding·admin.py</a>.</p>
141 </div>142 </div>
142 </section>143 </section>
143 <section·id="s-example">144 <section·id="s-example">
144 <span·id="example"></span><h4>Example<a·class="headerlink"·href="#example"·title="Link·to·this·heading">¶</a></h4>145 <span·id="example"></span><h4>Example<a·class="headerlink"·href="#example"·title="Link·to·this·heading">¶</a></h4>
145 <p>Below·is·an·example·<code·class="docutils·literal·notranslate"><span·class="pre">models.py</span></code>·file·with·all·the·changes·you’ll·need·to·make:</p>146 <p>Below·is·an·example·<code·class="docutils·literal·notranslate"><span·class="pre">models.py</span></code>·file·with·all·the·changes·you’ll·need·to·make:</p>
Offset 253, 15 lines modifiedOffset 254, 15 lines modified
253 ····<span·class="n">fieldsets</span>·<span·class="o">=</span>·<span·class="p">(</span>254 ····<span·class="n">fieldsets</span>·<span·class="o">=</span>·<span·class="p">(</span>
254 ········<span·class="p">(</span><span·class="s2">&quot;group1&quot;</span><span·class="p">,</span>·<span·class="p">{</span><span·class="s2">&quot;fields&quot;</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;foo&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;bar&quot;</span><span·class="p">),</span>·<span·class="s2">&quot;classes&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;collapse&quot;</span><span·class="p">}),</span>255 ········<span·class="p">(</span><span·class="s2">&quot;group1&quot;</span><span·class="p">,</span>·<span·class="p">{</span><span·class="s2">&quot;fields&quot;</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;foo&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;bar&quot;</span><span·class="p">),</span>·<span·class="s2">&quot;classes&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;collapse&quot;</span><span·class="p">}),</span>
255 ········<span·class="p">(</span><span·class="s2">&quot;group2&quot;</span><span·class="p">,</span>·<span·class="p">{</span><span·class="s2">&quot;fields&quot;</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;spam&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;eggs&quot;</span><span·class="p">),</span>·<span·class="s2">&quot;classes&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;collapse·wide&quot;</span><span·class="p">}),</span>256 ········<span·class="p">(</span><span·class="s2">&quot;group2&quot;</span><span·class="p">,</span>·<span·class="p">{</span><span·class="s2">&quot;fields&quot;</span><span·class="p">:</span>·<span·class="p">(</span><span·class="s2">&quot;spam&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;eggs&quot;</span><span·class="p">),</span>·<span·class="s2">&quot;classes&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;collapse·wide&quot;</span><span·class="p">}),</span>
256 ····<span·class="p">)</span>257 ····<span·class="p">)</span>
257 </pre></div>258 </pre></div>
258 </div>259 </div>
259 <div·class="admonition·seealso">260 <div·class="admonition·seealso">
260 <p·class="admonition-title">See·also</p>261 <p·class="admonition-title">Vedi·anche</p>
261 <ul·class="simple">262 <ul·class="simple">
262 <li><p>More·detailed·information·about·the·changes·and·the·reasons·behind·them263 <li><p>More·detailed·information·about·the·changes·and·the·reasons·behind·them
263 can·be·found·on·the·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/NewformsAdminBranch">NewformsAdminBranch·wiki·page</a></p></li>264 can·be·found·on·the·<a·class="reference·external"·href="https://code.djangoproject.com/wiki/NewformsAdminBranch">NewformsAdminBranch·wiki·page</a></p></li>
264 <li><p>The·new·admin·comes·with·a·ton·of·new·features;·you·can·read·about·them·in265 <li><p>The·new·admin·comes·with·a·ton·of·new·features;·you·can·read·about·them·in
265 the·<a·class="reference·internal"·href="../ref/contrib/admin/index.html"><span·class="doc">admin·documentation</span></a>.</p></li>266 the·<a·class="reference·internal"·href="../ref/contrib/admin/index.html"><span·class="doc">admin·documentation</span></a>.</p></li>
266 </ul>267 </ul>
267 </div>268 </div>
Offset 602, 15 lines modifiedOffset 603, 15 lines modified
602 database·column·types·for·<code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>·are·the·same·as·for·the·old603 database·column·types·for·<code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>·are·the·same·as·for·the·old
603 <code·class="docutils·literal·notranslate"><span·class="pre">FloatField</span></code>.</p>604 <code·class="docutils·literal·notranslate"><span·class="pre">FloatField</span></code>.</p>
604 <p>If·you’re·using·SQLite,·you·need·to·force·the·database·to·view·the605 <p>If·you’re·using·SQLite,·you·need·to·force·the·database·to·view·the
605 appropriate·columns·as·decimal·types,·rather·than·floats.·To·do·this,·you’ll606 appropriate·columns·as·decimal·types,·rather·than·floats.·To·do·this,·you’ll
606 need·to·reload·your·data.·Do·this·after·you·have·made·the·change·to·using607 need·to·reload·your·data.·Do·this·after·you·have·made·the·change·to·using
607 <code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>·in·your·code·and·updated·the·Django·code.</p>608 <code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>·in·your·code·and·updated·the·Django·code.</p>
608 <div·class="admonition·warning">609 <div·class="admonition·warning">
609 <p·class="admonition-title">Warning</p>610 <p·class="admonition-title">Avvertimento</p>
610 <p><strong>Back·up·your·database·first!</strong></p>611 <p><strong>Back·up·your·database·first!</strong></p>
611 <p>For·SQLite,·this·means·making·a·copy·of·the·single·file·that·stores·the612 <p>For·SQLite,·this·means·making·a·copy·of·the·single·file·that·stores·the
612 database·(the·name·of·that·file·is·the·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_NAME</span></code>·in·your613 database·(the·name·of·that·file·is·the·<code·class="docutils·literal·notranslate"><span·class="pre">DATABASE_NAME</span></code>·in·your
613 <code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·file).</p>614 <code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·file).</p>
614 </div>615 </div>
615 <p>To·upgrade·each·application·to·use·a·<code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>,·you·can·do·the616 <p>To·upgrade·each·application·to·use·a·<code·class="docutils·literal·notranslate"><span·class="pre">DecimalField</span></code>,·you·can·do·the
616 following,·replacing·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;app&gt;</span></code>·in·the·code·below·with·each·app’s·name:</p>617 following,·replacing·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;app&gt;</span></code>·in·the·code·below·with·each·app’s·name:</p>
Offset 1000, 37 lines modifiedOffset 1001, 37 lines modified
1000 </li>1001 </li>
1001 </ul>1002 </ul>
1002 </li>1003 </li>
1003 </ul>1004 </ul>
  
1004 ··</div>1005 ··</div>
1005 ··<div>1006 ··<div>
1006 ····<h4>Previous·topic</h4>1007 ····<h4>Argomento·precedente</h4>
1007 ····<p·class="topless"><a·href="1.0.html"1008 ····<p·class="topless"><a·href="1.0.html"
1008 ··························title="previous·chapter">Django·1.0·release·notes</a></p>1009 ··························title="capitolo·precedente">Django·1.0·release·notes</a></p>
1009 ··</div>1010 ··</div>
1010 ··<div>1011 ··<div>
1011 ····<h4>Next·topic</h4>1012 ····<h4>Argomento·successivo</h4>
1012 ····<p·class="topless"><a·href="0.96.html"1013 ····<p·class="topless"><a·href="0.96.html"
1013 ··························title="next·chapter">Django·version·0.96·release·notes</a></p>1014 ··························title="capitolo·successivo">Django·version·0.96·release·notes</a></p>
1014 ··</div>1015 ··</div>
1015 <search·id="searchbox"·style="display:·none"·role="search">1016 <search·id="searchbox"·style="display:·none"·role="search">
1016 ··<h3·id="searchlabel">Quick·search</h3>1017 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1017 ····<div·class="searchformwrapper">1018 ····<div·class="searchformwrapper">
1018 ····<form·class="search"·action="../search.html"·method="get">1019 ····<form·class="search"·action="../search.html"·method="get">
1019 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1020 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1020 ······<input·type="submit"·value="Go"·/>1021 ······<input·type="submit"·value="Vai"·/>
1021 ····</form>1022 ····</form>
Max diff block lines reached; 353/9822 bytes (3.59%) of diff not shown.
5.77 KB
html2text {}
Max HTML report size reached
7.57 KB
./usr/share/doc/python-django-doc/html/releases/1.0.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.0.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.0.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.0·release·notes"·href="1.0.html"·/>15 ····<link·rel="next"·title="Django·1.0·release·notes"·href="1.0.html"·/>
15 ····<link·rel="prev"·title="Django·1.0.2·release·notes"·href="1.0.2.html"·/>16 ····<link·rel="prev"·title="Django·1.0.2·release·notes"·href="1.0.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.0.1">79 ··········<div·class="yui-g"·id="releases-1.0.1">
79 ············80 ············
80 ··<section·id="s-django-1-0-1-release-notes">81 ··<section·id="s-django-1-0-1-release-notes">
81 <span·id="django-1-0-1-release-notes"></span><h1>Django·1.0.1·release·notes<a·class="headerlink"·href="#django-1-0-1-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-0-1-release-notes"></span><h1>Django·1.0.1·release·notes<a·class="headerlink"·href="#django-1-0-1-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.0.1!</p>83 <p>Welcome·to·Django·1.0.1!</p>
83 <p>This·is·the·first·bugfix·release·in·the·Django·1.0·series,·improving84 <p>This·is·the·first·«bugfix»·release·in·the·Django·1.0·series,·improving
84 the·stability·and·performance·of·the·Django·1.0·codebase.·As·such,85 the·stability·and·performance·of·the·Django·1.0·codebase.·As·such,
85 Django·1.0.1·contains·no·new·features·(and,·pursuant·to·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our86 Django·1.0.1·contains·no·new·features·(and,·pursuant·to·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our
86 compatibility·policy</span></a>,·maintains·backwards87 compatibility·policy</span></a>,·maintains·backwards
87 compatibility·with·Django·1.0),·but·does·contain·a·number·of·fixes88 compatibility·with·Django·1.0),·but·does·contain·a·number·of·fixes
88 and·other·improvements.·Django·1.0.1·is·a·recommended·upgrade·for·any89 and·other·improvements.·Django·1.0.1·is·a·recommended·upgrade·for·any
89 development·or·deployment·currently·using·or·targeting·Django·1.0.</p>90 development·or·deployment·currently·using·or·targeting·Django·1.0.</p>
90 <section·id="s-fixes-and-improvements-in-django-1-0-1">91 <section·id="s-fixes-and-improvements-in-django-1-0-1">
Offset 144, 37 lines modifiedOffset 145, 37 lines modified
144 <li><a·class="reference·internal"·href="#fixes-and-improvements-in-django-1-0-1">Fixes·and·improvements·in·Django·1.0.1</a></li>145 <li><a·class="reference·internal"·href="#fixes-and-improvements-in-django-1-0-1">Fixes·and·improvements·in·Django·1.0.1</a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 </ul>148 </ul>
  
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Previous·topic</h4>151 ····<h4>Argomento·precedente</h4>
151 ····<p·class="topless"><a·href="1.0.2.html"152 ····<p·class="topless"><a·href="1.0.2.html"
152 ··························title="previous·chapter">Django·1.0.2·release·notes</a></p>153 ··························title="capitolo·precedente">Django·1.0.2·release·notes</a></p>
153 ··</div>154 ··</div>
154 ··<div>155 ··<div>
155 ····<h4>Next·topic</h4>156 ····<h4>Argomento·successivo</h4>
156 ····<p·class="topless"><a·href="1.0.html"157 ····<p·class="topless"><a·href="1.0.html"
157 ··························title="next·chapter">Django·1.0·release·notes</a></p>158 ··························title="capitolo·successivo">Django·1.0·release·notes</a></p>
158 ··</div>159 ··</div>
159 <search·id="searchbox"·style="display:·none"·role="search">160 <search·id="searchbox"·style="display:·none"·role="search">
160 ··<h3·id="searchlabel">Quick·search</h3>161 ··<h3·id="searchlabel">Ricerca·veloce</h3>
161 ····<div·class="searchformwrapper">162 ····<div·class="searchformwrapper">
162 ····<form·class="search"·action="../search.html"·method="get">163 ····<form·class="search"·action="../search.html"·method="get">
163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
164 ······<input·type="submit"·value="Go"·/>165 ······<input·type="submit"·value="Vai"·/>
165 ····</form>166 ····</form>
166 ····</div>167 ····</div>
167 </search>168 </search>
168 <script>document.getElementById('searchbox').style.display·=·"block"</script>169 <script>document.getElementById('searchbox').style.display·=·"block"</script>
169 ········</div>170 ········</div>
170 ······</div>171 ······</div>
171 ··············<h3>Last·update:</h3>172 ··············<h3>Last·update:</h3>
172 ··············<p·class="topless">Sep·03,·2024</p>173 ··············<p·class="topless">set·03,·2024</p>
173 ··········</div>174 ··········</div>
174 ········175 ········
175 ······176 ······
176 ····</div>177 ····</div>
  
177 ····<div·id="ft">178 ····<div·id="ft">
178 ······<div·class="nav">179 ······<div·class="nav">
2.73 KB
html2text {}
Max HTML report size reached
10.0 KB
./usr/share/doc/python-django-doc/html/releases/1.0.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.0.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.0.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.0.1·release·notes"·href="1.0.1.html"·/>15 ····<link·rel="next"·title="Django·1.0.1·release·notes"·href="1.0.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.1·release·notes"·href="1.1.html"·/>16 ····<link·rel="prev"·title="Django·1.1·release·notes"·href="1.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.0.2">79 ··········<div·class="yui-g"·id="releases-1.0.2">
79 ············80 ············
80 ··<section·id="s-django-1-0-2-release-notes">81 ··<section·id="s-django-1-0-2-release-notes">
81 <span·id="django-1-0-2-release-notes"></span><h1>Django·1.0.2·release·notes<a·class="headerlink"·href="#django-1-0-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-0-2-release-notes"></span><h1>Django·1.0.2·release·notes<a·class="headerlink"·href="#django-1-0-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.0.2!</p>83 <p>Welcome·to·Django·1.0.2!</p>
83 <p>This·is·the·second·bugfix·release·in·the·Django·1.0·series,84 <p>This·is·the·second·«bugfix»·release·in·the·Django·1.0·series,
84 improving·the·stability·and·performance·of·the·Django·1.0·codebase.·As85 improving·the·stability·and·performance·of·the·Django·1.0·codebase.·As
85 such,·Django·1.0.2·contains·no·new·features·(and,·pursuant·to86 such,·Django·1.0.2·contains·no·new·features·(and,·pursuant·to
86 <a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·compatibility·policy</span></a>,·maintains·backwards·compatibility·with·Django87 <a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·compatibility·policy</span></a>,·maintains·backwards·compatibility·with·Django
87 1.0.0),·but·does·contain·a·number·of·fixes·and·other88 1.0.0),·but·does·contain·a·number·of·fixes·and·other
88 improvements.·Django·1.0.2·is·a·recommended·upgrade·for·any89 improvements.·Django·1.0.2·is·a·recommended·upgrade·for·any
89 development·or·deployment·currently·using·or·targeting·Django·1.0.</p>90 development·or·deployment·currently·using·or·targeting·Django·1.0.</p>
90 <section·id="s-fixes-and-improvements-in-django-1-0-2">91 <section·id="s-fixes-and-improvements-in-django-1-0-2">
Offset 101, 15 lines modifiedOffset 102, 15 lines modified
101 details.</p>102 details.</p>
102 <p>Additionally,·in·the·period·since·Django·1.0.1·was·released:</p>103 <p>Additionally,·in·the·period·since·Django·1.0.1·was·released:</p>
103 <ul·class="simple">104 <ul·class="simple">
104 <li><p>Updated·Hebrew·and·Danish·translations·have·been·added.</p></li>105 <li><p>Updated·Hebrew·and·Danish·translations·have·been·added.</p></li>
105 <li><p>The·default·<code·class="docutils·literal·notranslate"><span·class="pre">__repr__</span></code>·method·of·Django·models·has·been·made·more106 <li><p>The·default·<code·class="docutils·literal·notranslate"><span·class="pre">__repr__</span></code>·method·of·Django·models·has·been·made·more
106 robust·in·the·face·of·bad·Unicode·data·coming·from·the107 robust·in·the·face·of·bad·Unicode·data·coming·from·the
107 <code·class="docutils·literal·notranslate"><span·class="pre">__unicode__</span></code>·method;·rather·than·raise·an·exception·in·such108 <code·class="docutils·literal·notranslate"><span·class="pre">__unicode__</span></code>·method;·rather·than·raise·an·exception·in·such
108 cases,·<code·class="docutils·literal·notranslate"><span·class="pre">repr()</span></code>·will·now·contain·the·string·[Bad·Unicode·data]109 cases,·<code·class="docutils·literal·notranslate"><span·class="pre">repr()</span></code>·will·now·contain·the·string·«[Bad·Unicode·data]»
109 in·place·of·the·invalid·Unicode.</p></li>110 in·place·of·the·invalid·Unicode.</p></li>
110 <li><p>A·bug·involving·the·interaction·of·Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">SafeUnicode</span></code>·class111 <li><p>A·bug·involving·the·interaction·of·Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">SafeUnicode</span></code>·class
111 and·the·MySQL·adapter·has·been·resolved;·<code·class="docutils·literal·notranslate"><span·class="pre">SafeUnicode</span></code>·instances112 and·the·MySQL·adapter·has·been·resolved;·<code·class="docutils·literal·notranslate"><span·class="pre">SafeUnicode</span></code>·instances
112 (generated,·for·example,·by·template·rendering)·can·now·be·assigned113 (generated,·for·example,·by·template·rendering)·can·now·be·assigned
113 to·model·attributes·and·saved·to·MySQL·without·requiring·an·explicit114 to·model·attributes·and·saved·to·MySQL·without·requiring·an·explicit
114 intermediate·cast·to·<code·class="docutils·literal·notranslate"><span·class="pre">unicode</span></code>.</p></li>115 intermediate·cast·to·<code·class="docutils·literal·notranslate"><span·class="pre">unicode</span></code>.</p></li>
115 <li><p>A·bug·affecting·filtering·on·a·nullable·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·in·SQLite·has116 <li><p>A·bug·affecting·filtering·on·a·nullable·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·in·SQLite·has
Offset 137, 37 lines modifiedOffset 138, 37 lines modified
137 <li><a·class="reference·internal"·href="#fixes-and-improvements-in-django-1-0-2">Fixes·and·improvements·in·Django·1.0.2</a></li>138 <li><a·class="reference·internal"·href="#fixes-and-improvements-in-django-1-0-2">Fixes·and·improvements·in·Django·1.0.2</a></li>
138 </ul>139 </ul>
139 </li>140 </li>
140 </ul>141 </ul>
  
141 ··</div>142 ··</div>
142 ··<div>143 ··<div>
143 ····<h4>Previous·topic</h4>144 ····<h4>Argomento·precedente</h4>
144 ····<p·class="topless"><a·href="1.1.html"145 ····<p·class="topless"><a·href="1.1.html"
145 ··························title="previous·chapter">Django·1.1·release·notes</a></p>146 ··························title="capitolo·precedente">Django·1.1·release·notes</a></p>
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Next·topic</h4>149 ····<h4>Argomento·successivo</h4>
149 ····<p·class="topless"><a·href="1.0.1.html"150 ····<p·class="topless"><a·href="1.0.1.html"
150 ··························title="next·chapter">Django·1.0.1·release·notes</a></p>151 ··························title="capitolo·successivo">Django·1.0.1·release·notes</a></p>
151 ··</div>152 ··</div>
152 <search·id="searchbox"·style="display:·none"·role="search">153 <search·id="searchbox"·style="display:·none"·role="search">
153 ··<h3·id="searchlabel">Quick·search</h3>154 ··<h3·id="searchlabel">Ricerca·veloce</h3>
154 ····<div·class="searchformwrapper">155 ····<div·class="searchformwrapper">
155 ····<form·class="search"·action="../search.html"·method="get">156 ····<form·class="search"·action="../search.html"·method="get">
156 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
157 ······<input·type="submit"·value="Go"·/>158 ······<input·type="submit"·value="Vai"·/>
158 ····</form>159 ····</form>
159 ····</div>160 ····</div>
160 </search>161 </search>
161 <script>document.getElementById('searchbox').style.display·=·"block"</script>162 <script>document.getElementById('searchbox').style.display·=·"block"</script>
162 ········</div>163 ········</div>
163 ······</div>164 ······</div>
164 ··············<h3>Last·update:</h3>165 ··············<h3>Last·update:</h3>
165 ··············<p·class="topless">Sep·03,·2024</p>166 ··············<p·class="topless">set·03,·2024</p>
166 ··········</div>167 ··········</div>
167 ········168 ········
168 ······169 ······
169 ····</div>170 ····</div>
  
170 ····<div·id="ft">171 ····<div·id="ft">
171 ······<div·class="nav">172 ······<div·class="nav">
3.67 KB
html2text {}
Max HTML report size reached
6.17 KB
./usr/share/doc/python-django-doc/html/releases/1.0.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.0·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.0·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Porting·your·apps·from·Django·0.96·to·1.0"·href="1.0-porting-guide.html"·/>15 ····<link·rel="next"·title="Porting·your·apps·from·Django·0.96·to·1.0"·href="1.0-porting-guide.html"·/>
15 ····<link·rel="prev"·title="Django·1.0.1·release·notes"·href="1.0.1.html"·/>16 ····<link·rel="prev"·title="Django·1.0.1·release·notes"·href="1.0.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 319, 37 lines modifiedOffset 320, 37 lines modified
319 </li>320 </li>
320 </ul>321 </ul>
321 </li>322 </li>
322 </ul>323 </ul>
  
323 ··</div>324 ··</div>
324 ··<div>325 ··<div>
325 ····<h4>Previous·topic</h4>326 ····<h4>Argomento·precedente</h4>
326 ····<p·class="topless"><a·href="1.0.1.html"327 ····<p·class="topless"><a·href="1.0.1.html"
327 ··························title="previous·chapter">Django·1.0.1·release·notes</a></p>328 ··························title="capitolo·precedente">Django·1.0.1·release·notes</a></p>
328 ··</div>329 ··</div>
329 ··<div>330 ··<div>
330 ····<h4>Next·topic</h4>331 ····<h4>Argomento·successivo</h4>
331 ····<p·class="topless"><a·href="1.0-porting-guide.html"332 ····<p·class="topless"><a·href="1.0-porting-guide.html"
332 ··························title="next·chapter">Porting·your·apps·from·Django·0.96·to·1.0</a></p>333 ··························title="capitolo·successivo">Porting·your·apps·from·Django·0.96·to·1.0</a></p>
333 ··</div>334 ··</div>
334 <search·id="searchbox"·style="display:·none"·role="search">335 <search·id="searchbox"·style="display:·none"·role="search">
335 ··<h3·id="searchlabel">Quick·search</h3>336 ··<h3·id="searchlabel">Ricerca·veloce</h3>
336 ····<div·class="searchformwrapper">337 ····<div·class="searchformwrapper">
337 ····<form·class="search"·action="../search.html"·method="get">338 ····<form·class="search"·action="../search.html"·method="get">
338 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>339 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
339 ······<input·type="submit"·value="Go"·/>340 ······<input·type="submit"·value="Vai"·/>
340 ····</form>341 ····</form>
341 ····</div>342 ····</div>
342 </search>343 </search>
343 <script>document.getElementById('searchbox').style.display·=·"block"</script>344 <script>document.getElementById('searchbox').style.display·=·"block"</script>
344 ········</div>345 ········</div>
345 ······</div>346 ······</div>
346 ··············<h3>Last·update:</h3>347 ··············<h3>Last·update:</h3>
347 ··············<p·class="topless">Sep·03,·2024</p>348 ··············<p·class="topless">set·03,·2024</p>
348 ··········</div>349 ··········</div>
349 ········350 ········
350 ······351 ······
351 ····</div>352 ····</div>
  
352 ····<div·id="ft">353 ····<div·id="ft">
353 ······<div·class="nav">354 ······<div·class="nav">
2.43 KB
html2text {}
Max HTML report size reached
7.56 KB
./usr/share/doc/python-django-doc/html/releases/1.1.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.1.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.1.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.1·release·notes"·href="1.1.html"·/>15 ····<link·rel="next"·title="Django·1.1·release·notes"·href="1.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.1.3·release·notes"·href="1.1.3.html"·/>16 ····<link·rel="prev"·title="Django·1.1.3·release·notes"·href="1.1.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.1.2">79 ··········<div·class="yui-g"·id="releases-1.1.2">
79 ············80 ············
80 ··<section·id="s-django-1-1-2-release-notes">81 ··<section·id="s-django-1-1-2-release-notes">
81 <span·id="django-1-1-2-release-notes"></span><h1>Django·1.1.2·release·notes<a·class="headerlink"·href="#django-1-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-1-2-release-notes"></span><h1>Django·1.1.2·release·notes<a·class="headerlink"·href="#django-1-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.1.2!</p>83 <p>Welcome·to·Django·1.1.2!</p>
83 <p>This·is·the·second·bugfix·release·in·the·Django·1.1·series,84 <p>This·is·the·second·«bugfix»·release·in·the·Django·1.1·series,
84 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>
85 <p>Django·1.1.2·maintains·backwards·compatibility·with·Django86 <p>Django·1.1.2·maintains·backwards·compatibility·with·Django
86 1.1.0,·but·contain·a·number·of·fixes·and·other87 1.1.0,·but·contain·a·number·of·fixes·and·other
87 improvements.·Django·1.1.2·is·a·recommended·upgrade·for·any88 improvements.·Django·1.1.2·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>91 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>
Offset 148, 37 lines modifiedOffset 149, 37 lines modified
148 <li><a·class="reference·internal"·href="#one-new-feature">One·new·feature</a></li>149 <li><a·class="reference·internal"·href="#one-new-feature">One·new·feature</a></li>
149 </ul>150 </ul>
150 </li>151 </li>
151 </ul>152 </ul>
  
152 ··</div>153 ··</div>
153 ··<div>154 ··<div>
154 ····<h4>Previous·topic</h4>155 ····<h4>Argomento·precedente</h4>
155 ····<p·class="topless"><a·href="1.1.3.html"156 ····<p·class="topless"><a·href="1.1.3.html"
156 ··························title="previous·chapter">Django·1.1.3·release·notes</a></p>157 ··························title="capitolo·precedente">Django·1.1.3·release·notes</a></p>
157 ··</div>158 ··</div>
158 ··<div>159 ··<div>
159 ····<h4>Next·topic</h4>160 ····<h4>Argomento·successivo</h4>
160 ····<p·class="topless"><a·href="1.1.html"161 ····<p·class="topless"><a·href="1.1.html"
161 ··························title="next·chapter">Django·1.1·release·notes</a></p>162 ··························title="capitolo·successivo">Django·1.1·release·notes</a></p>
162 ··</div>163 ··</div>
163 <search·id="searchbox"·style="display:·none"·role="search">164 <search·id="searchbox"·style="display:·none"·role="search">
164 ··<h3·id="searchlabel">Quick·search</h3>165 ··<h3·id="searchlabel">Ricerca·veloce</h3>
165 ····<div·class="searchformwrapper">166 ····<div·class="searchformwrapper">
166 ····<form·class="search"·action="../search.html"·method="get">167 ····<form·class="search"·action="../search.html"·method="get">
167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>168 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
168 ······<input·type="submit"·value="Go"·/>169 ······<input·type="submit"·value="Vai"·/>
169 ····</form>170 ····</form>
170 ····</div>171 ····</div>
171 </search>172 </search>
172 <script>document.getElementById('searchbox').style.display·=·"block"</script>173 <script>document.getElementById('searchbox').style.display·=·"block"</script>
173 ········</div>174 ········</div>
174 ······</div>175 ······</div>
175 ··············<h3>Last·update:</h3>176 ··············<h3>Last·update:</h3>
176 ··············<p·class="topless">Sep·03,·2024</p>177 ··············<p·class="topless">set·03,·2024</p>
177 ··········</div>178 ··········</div>
178 ········179 ········
179 ······180 ······
180 ····</div>181 ····</div>
  
181 ····<div·id="ft">182 ····<div·id="ft">
182 ······<div·class="nav">183 ······<div·class="nav">
2.77 KB
html2text {}
Max HTML report size reached
9.3 KB
./usr/share/doc/python-django-doc/html/releases/1.1.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.1.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.1.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.1.2·release·notes"·href="1.1.2.html"·/>15 ····<link·rel="next"·title="Django·1.1.2·release·notes"·href="1.1.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.1.4·release·notes"·href="1.1.4.html"·/>16 ····<link·rel="prev"·title="Django·1.1.4·release·notes"·href="1.1.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.1.3">79 ··········<div·class="yui-g"·id="releases-1.1.3">
79 ············80 ············
80 ··<section·id="s-django-1-1-3-release-notes">81 ··<section·id="s-django-1-1-3-release-notes">
81 <span·id="django-1-1-3-release-notes"></span><h1>Django·1.1.3·release·notes<a·class="headerlink"·href="#django-1-1-3-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-1-3-release-notes"></span><h1>Django·1.1.3·release·notes<a·class="headerlink"·href="#django-1-1-3-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.1.3!</p>83 <p>Welcome·to·Django·1.1.3!</p>
83 <p>This·is·the·third·bugfix·release·in·the·Django·1.1·series,84 <p>This·is·the·third·«bugfix»·release·in·the·Django·1.1·series,
84 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>
85 <p>With·one·exception,·Django·1.1.3·maintains·backwards·compatibility86 <p>With·one·exception,·Django·1.1.3·maintains·backwards·compatibility
86 with·Django·1.1.2.·It·also·contains·a·number·of·fixes·and·other87 with·Django·1.1.2.·It·also·contains·a·number·of·fixes·and·other
87 improvements.·Django·1.1.2·is·a·recommended·upgrade·for·any88 improvements.·Django·1.1.2·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>91 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
104 structure·and·the·format·of·these·lookup·arguments·to·invent·useful105 structure·and·the·format·of·these·lookup·arguments·to·invent·useful
105 new·filters·on·the·fly·by·manipulating·the·querystring.</p>106 new·filters·on·the·fly·by·manipulating·the·querystring.</p>
106 <p>However,·it·has·been·demonstrated·that·this·can·be·abused·to·gain107 <p>However,·it·has·been·demonstrated·that·this·can·be·abused·to·gain
107 access·to·information·outside·of·an·admin·user’s·permissions;·for108 access·to·information·outside·of·an·admin·user’s·permissions;·for
108 example,·an·attacker·with·access·to·the·admin·and·sufficient·knowledge109 example,·an·attacker·with·access·to·the·admin·and·sufficient·knowledge
109 of·model·structure·and·relations·could·construct·query·strings·which·110 of·model·structure·and·relations·could·construct·query·strings·which·
110 with·repeated·use·of·regular-expression·lookups·supported·by·the111 with·repeated·use·of·regular-expression·lookups·supported·by·the
111 Django·database·API··expose·sensitive·information·such·as·users112 Django·database·API··expose·sensitive·information·such·as·users
112 password·hashes.</p>113 password·hashes.</p>
113 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>·will·now·validate·that114 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>·will·now·validate·that
114 querystring·lookup·arguments·either·specify·only·fields·on·the·model115 querystring·lookup·arguments·either·specify·only·fields·on·the·model
115 being·viewed,·or·cross·relations·which·have·been·explicitly116 being·viewed,·or·cross·relations·which·have·been·explicitly
116 allowed·by·the·application·developer·using·the·preexisting117 allowed·by·the·application·developer·using·the·preexisting
117 mechanism·mentioned·above.·This·is·backwards-incompatible·for·any118 mechanism·mentioned·above.·This·is·backwards-incompatible·for·any
118 users·relying·on·the·prior·ability·to·insert·arbitrary·lookups.</p>119 users·relying·on·the·prior·ability·to·insert·arbitrary·lookups.</p>
Offset 140, 37 lines modifiedOffset 141, 37 lines modified
140 </li>141 </li>
141 </ul>142 </ul>
142 </li>143 </li>
143 </ul>144 </ul>
  
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Previous·topic</h4>147 ····<h4>Argomento·precedente</h4>
147 ····<p·class="topless"><a·href="1.1.4.html"148 ····<p·class="topless"><a·href="1.1.4.html"
148 ··························title="previous·chapter">Django·1.1.4·release·notes</a></p>149 ··························title="capitolo·precedente">Django·1.1.4·release·notes</a></p>
149 ··</div>150 ··</div>
150 ··<div>151 ··<div>
151 ····<h4>Next·topic</h4>152 ····<h4>Argomento·successivo</h4>
152 ····<p·class="topless"><a·href="1.1.2.html"153 ····<p·class="topless"><a·href="1.1.2.html"
153 ··························title="next·chapter">Django·1.1.2·release·notes</a></p>154 ··························title="capitolo·successivo">Django·1.1.2·release·notes</a></p>
154 ··</div>155 ··</div>
155 <search·id="searchbox"·style="display:·none"·role="search">156 <search·id="searchbox"·style="display:·none"·role="search">
156 ··<h3·id="searchlabel">Quick·search</h3>157 ··<h3·id="searchlabel">Ricerca·veloce</h3>
157 ····<div·class="searchformwrapper">158 ····<div·class="searchformwrapper">
158 ····<form·class="search"·action="../search.html"·method="get">159 ····<form·class="search"·action="../search.html"·method="get">
159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
160 ······<input·type="submit"·value="Go"·/>161 ······<input·type="submit"·value="Vai"·/>
161 ····</form>162 ····</form>
162 ····</div>163 ····</div>
163 </search>164 </search>
164 <script>document.getElementById('searchbox').style.display·=·"block"</script>165 <script>document.getElementById('searchbox').style.display·=·"block"</script>
165 ········</div>166 ········</div>
166 ······</div>167 ······</div>
167 ··············<h3>Last·update:</h3>168 ··············<h3>Last·update:</h3>
168 ··············<p·class="topless">Sep·03,·2024</p>169 ··············<p·class="topless">set·03,·2024</p>
169 ··········</div>170 ··········</div>
170 ········171 ········
171 ······172 ······
172 ····</div>173 ····</div>
  
173 ····<div·id="ft">174 ····<div·id="ft">
174 ······<div·class="nav">175 ······<div·class="nav">
3.45 KB
html2text {}
Max HTML report size reached
7.4 KB
./usr/share/doc/python-django-doc/html/releases/1.1.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.1.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.1.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.1.3·release·notes"·href="1.1.3.html"·/>15 ····<link·rel="next"·title="Django·1.1.3·release·notes"·href="1.1.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.2·release·notes"·href="1.2.html"·/>16 ····<link·rel="prev"·title="Django·1.2·release·notes"·href="1.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.1.4">79 ··········<div·class="yui-g"·id="releases-1.1.4">
79 ············80 ············
80 ··<section·id="s-django-1-1-4-release-notes">81 ··<section·id="s-django-1-1-4-release-notes">
81 <span·id="django-1-1-4-release-notes"></span><h1>Django·1.1.4·release·notes<a·class="headerlink"·href="#django-1-1-4-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-1-4-release-notes"></span><h1>Django·1.1.4·release·notes<a·class="headerlink"·href="#django-1-1-4-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.1.4!</p>83 <p>Welcome·to·Django·1.1.4!</p>
83 <p>This·is·the·fourth·bugfix·release·in·the·Django·1.1·series,84 <p>This·is·the·fourth·«bugfix»·release·in·the·Django·1.1·series,
84 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.1·codebase.</p>
85 <p>With·one·exception,·Django·1.1.4·maintains·backwards·compatibility86 <p>With·one·exception,·Django·1.1.4·maintains·backwards·compatibility
86 with·Django·1.1.3.·It·also·contains·a·number·of·fixes·and·other87 with·Django·1.1.3.·It·also·contains·a·number·of·fixes·and·other
87 improvements.·Django·1.1.4·is·a·recommended·upgrade·for·any88 improvements.·Django·1.1.4·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.1.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>91 deprecated·features·in·the·1.1·branch,·see·the·<a·class="reference·internal"·href="1.1.html"><span·class="doc">Django·1.1·release·notes</span></a>.</p>
Offset 153, 37 lines modifiedOffset 154, 37 lines modified
153 </li>154 </li>
154 </ul>155 </ul>
155 </li>156 </li>
156 </ul>157 </ul>
  
157 ··</div>158 ··</div>
158 ··<div>159 ··<div>
159 ····<h4>Previous·topic</h4>160 ····<h4>Argomento·precedente</h4>
160 ····<p·class="topless"><a·href="1.2.html"161 ····<p·class="topless"><a·href="1.2.html"
161 ··························title="previous·chapter">Django·1.2·release·notes</a></p>162 ··························title="capitolo·precedente">Django·1.2·release·notes</a></p>
162 ··</div>163 ··</div>
163 ··<div>164 ··<div>
164 ····<h4>Next·topic</h4>165 ····<h4>Argomento·successivo</h4>
165 ····<p·class="topless"><a·href="1.1.3.html"166 ····<p·class="topless"><a·href="1.1.3.html"
166 ··························title="next·chapter">Django·1.1.3·release·notes</a></p>167 ··························title="capitolo·successivo">Django·1.1.3·release·notes</a></p>
167 ··</div>168 ··</div>
168 <search·id="searchbox"·style="display:·none"·role="search">169 <search·id="searchbox"·style="display:·none"·role="search">
169 ··<h3·id="searchlabel">Quick·search</h3>170 ··<h3·id="searchlabel">Ricerca·veloce</h3>
170 ····<div·class="searchformwrapper">171 ····<div·class="searchformwrapper">
171 ····<form·class="search"·action="../search.html"·method="get">172 ····<form·class="search"·action="../search.html"·method="get">
172 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>173 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
173 ······<input·type="submit"·value="Go"·/>174 ······<input·type="submit"·value="Vai"·/>
174 ····</form>175 ····</form>
175 ····</div>176 ····</div>
176 </search>177 </search>
177 <script>document.getElementById('searchbox').style.display·=·"block"</script>178 <script>document.getElementById('searchbox').style.display·=·"block"</script>
178 ········</div>179 ········</div>
179 ······</div>180 ······</div>
180 ··············<h3>Last·update:</h3>181 ··············<h3>Last·update:</h3>
181 ··············<p·class="topless">Sep·03,·2024</p>182 ··············<p·class="topless">set·03,·2024</p>
182 ··········</div>183 ··········</div>
183 ········184 ········
184 ······185 ······
185 ····</div>186 ····</div>
  
186 ····<div·id="ft">187 ····<div·id="ft">
187 ······<div·class="nav">188 ······<div·class="nav">
2.66 KB
html2text {}
Max HTML report size reached
25.6 KB
./usr/share/doc/python-django-doc/html/releases/1.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.0.2·release·notes"·href="1.0.2.html"·/>15 ····<link·rel="next"·title="Django·1.0.2·release·notes"·href="1.0.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.1.2·release·notes"·href="1.1.2.html"·/>16 ····<link·rel="prev"·title="Django·1.1.2·release·notes"·href="1.1.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 136, 15 lines modifiedOffset 137, 15 lines modified
136 <p>For·convenience,·Django·1.0·included·an·optional·middleware·class·137 <p>For·convenience,·Django·1.0·included·an·optional·middleware·class·
137 <code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.http.SetRemoteAddrFromForwardedFor</span></code>··which·updated·the138 <code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.http.SetRemoteAddrFromForwardedFor</span></code>··which·updated·the
138 value·of·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_ADDR</span></code>·based·on·the·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">X-Forwarded-For</span></code>·header·commonly139 value·of·<code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_ADDR</span></code>·based·on·the·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">X-Forwarded-For</span></code>·header·commonly
139 set·by·some·proxy·configurations.</p>140 set·by·some·proxy·configurations.</p>
140 <p>It·has·been·demonstrated·that·this·mechanism·cannot·be·made·reliable·enough·for141 <p>It·has·been·demonstrated·that·this·mechanism·cannot·be·made·reliable·enough·for
141 general-purpose·use,·and·that·(despite·documentation·to·the·contrary)·its142 general-purpose·use,·and·that·(despite·documentation·to·the·contrary)·its
142 inclusion·in·Django·may·lead·application·developers·to·assume·that·the·value·of143 inclusion·in·Django·may·lead·application·developers·to·assume·that·the·value·of
143 <code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_ADDR</span></code>·is·safe·or·in·some·way·reliable·as·a·source·of·authentication.</p>144 <code·class="docutils·literal·notranslate"><span·class="pre">REMOTE_ADDR</span></code>·is·«safe»·or·in·some·way·reliable·as·a·source·of·authentication.</p>
144 <p>While·not·directly·a·security·issue,·we’ve·decided·to·remove·this·middleware145 <p>While·not·directly·a·security·issue,·we’ve·decided·to·remove·this·middleware
145 with·the·Django·1.1·release.·It·has·been·replaced·with·a·class·that·does·nothing146 with·the·Django·1.1·release.·It·has·been·replaced·with·a·class·that·does·nothing
146 other·than·raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">DeprecationWarning</span></code>.</p>147 other·than·raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">DeprecationWarning</span></code>.</p>
147 <p>If·you’ve·been·relying·on·this·middleware,·the·easiest·upgrade·path·is:</p>148 <p>If·you’ve·been·relying·on·this·middleware,·the·easiest·upgrade·path·is:</p>
148 <ul·class="simple">149 <ul·class="simple">
149 <li><p>Examine·<a·class="reference·external"·href="https://github.com/django/django/blob/91f18400cc0fb37659e2dbaab5484ff2081f1f30/django/middleware/http.py#L33">the·code·as·it·existed·before·it·was·removed</a>.</p></li>150 <li><p>Examine·<a·class="reference·external"·href="https://github.com/django/django/blob/91f18400cc0fb37659e2dbaab5484ff2081f1f30/django/middleware/http.py#L33">the·code·as·it·existed·before·it·was·removed</a>.</p></li>
150 <li><p>Verify·that·it·works·correctly·with·your·upstream·proxy,·modifying151 <li><p>Verify·that·it·works·correctly·with·your·upstream·proxy,·modifying
Offset 183, 15 lines modifiedOffset 184, 15 lines modified
183 and·expected.</p>184 and·expected.</p>
184 </section>185 </section>
185 <section·id="s-permanent-redirects-and-the-redirect-to-generic-view">186 <section·id="s-permanent-redirects-and-the-redirect-to-generic-view">
186 <span·id="permanent-redirects-and-the-redirect-to-generic-view"></span><h3>Permanent·redirects·and·the·<code·class="docutils·literal·notranslate"><span·class="pre">redirect_to()</span></code>·generic·view<a·class="headerlink"·href="#permanent-redirects-and-the-redirect-to-generic-view"·title="Link·to·this·heading">¶</a></h3>187 <span·id="permanent-redirects-and-the-redirect-to-generic-view"></span><h3>Permanent·redirects·and·the·<code·class="docutils·literal·notranslate"><span·class="pre">redirect_to()</span></code>·generic·view<a·class="headerlink"·href="#permanent-redirects-and-the-redirect-to-generic-view"·title="Link·to·this·heading">¶</a></h3>
187 <p>Django·1.1·adds·a·<code·class="docutils·literal·notranslate"><span·class="pre">permanent</span></code>·argument·to·the188 <p>Django·1.1·adds·a·<code·class="docutils·literal·notranslate"><span·class="pre">permanent</span></code>·argument·to·the
188 <code·class="docutils·literal·notranslate"><span·class="pre">django.views.generic.simple.redirect_to()</span></code>·view.·This·is·technically189 <code·class="docutils·literal·notranslate"><span·class="pre">django.views.generic.simple.redirect_to()</span></code>·view.·This·is·technically
189 backwards-incompatible·if·you·were·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">redirect_to</span></code>·view·with·a190 backwards-incompatible·if·you·were·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">redirect_to</span></code>·view·with·a
190 format-string·key·called·permanent,·which·is·highly·unlikely.</p>191 format-string·key·called·permanent,·which·is·highly·unlikely.</p>
191 </section>192 </section>
192 </section>193 </section>
193 <section·id="s-features-deprecated-in-1-1">194 <section·id="s-features-deprecated-in-1-1">
194 <span·id="s-deprecated-features-1-1"></span><span·id="features-deprecated-in-1-1"></span><span·id="deprecated-features-1-1"></span><h2>Features·deprecated·in·1.1<a·class="headerlink"·href="#features-deprecated-in-1-1"·title="Link·to·this·heading">¶</a></h2>195 <span·id="s-deprecated-features-1-1"></span><span·id="features-deprecated-in-1-1"></span><span·id="deprecated-features-1-1"></span><h2>Features·deprecated·in·1.1<a·class="headerlink"·href="#features-deprecated-in-1-1"·title="Link·to·this·heading">¶</a></h2>
195 <p>One·feature·has·been·marked·as·deprecated·in·Django·1.1:</p>196 <p>One·feature·has·been·marked·as·deprecated·in·Django·1.1:</p>
196 <ul>197 <ul>
197 <li><p>You·should·no·longer·use·<code·class="docutils·literal·notranslate"><span·class="pre">AdminSite.root()</span></code>·to·register·that·admin198 <li><p>You·should·no·longer·use·<code·class="docutils·literal·notranslate"><span·class="pre">AdminSite.root()</span></code>·to·register·that·admin
Offset 242, 15 lines modifiedOffset 243, 15 lines modified
242 consult·the·<a·class="reference·internal"·href="../ref/models/expressions.html#django.db.models.F"·title="django.db.models.F"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">F</span>·<span·class="pre">expressions</span>·<span·class="pre">documentation</span></code></a>.</p>243 consult·the·<a·class="reference·internal"·href="../ref/models/expressions.html#django.db.models.F"·title="django.db.models.F"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">F</span>·<span·class="pre">expressions</span>·<span·class="pre">documentation</span></code></a>.</p>
243 </section>244 </section>
244 </section>245 </section>
245 <section·id="s-model-improvements">246 <section·id="s-model-improvements">
246 <span·id="model-improvements"></span><h3>Model·improvements<a·class="headerlink"·href="#model-improvements"·title="Link·to·this·heading">¶</a></h3>247 <span·id="model-improvements"></span><h3>Model·improvements<a·class="headerlink"·href="#model-improvements"·title="Link·to·this·heading">¶</a></h3>
247 <p>A·number·of·features·have·been·added·to·Django’s·model·layer:</p>248 <p>A·number·of·features·have·been·added·to·Django’s·model·layer:</p>
248 <section·id="s-unmanaged-models">249 <section·id="s-unmanaged-models">
249 <span·id="unmanaged-models"></span><h4>Unmanaged·models<a·class="headerlink"·href="#unmanaged-models"·title="Link·to·this·heading">¶</a></h4>250 <span·id="unmanaged-models"></span><h4>«Unmanaged»·models<a·class="headerlink"·href="#unmanaged-models"·title="Link·to·this·heading">¶</a></h4>
250 <p>You·can·now·control·whether·or·not·Django·manages·the·life-cycle·of·the·database251 <p>You·can·now·control·whether·or·not·Django·manages·the·life-cycle·of·the·database
251 tables·for·a·model·using·the·<a·class="reference·internal"·href="../ref/models/options.html#django.db.models.Options.managed"·title="django.db.models.Options.managed"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">managed</span></code></a>·model·option.·This252 tables·for·a·model·using·the·<a·class="reference·internal"·href="../ref/models/options.html#django.db.models.Options.managed"·title="django.db.models.Options.managed"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">managed</span></code></a>·model·option.·This
252 defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·meaning·that·Django·will·create·the·appropriate·database253 defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·meaning·that·Django·will·create·the·appropriate·database
253 tables·in·<code·class="docutils·literal·notranslate"><span·class="pre">syncdb</span></code>·and·remove·them·as·part·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">reset</span></code>254 tables·in·<code·class="docutils·literal·notranslate"><span·class="pre">syncdb</span></code>·and·remove·them·as·part·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">reset</span></code>
254 command.·That·is,·Django·<em>manages</em>·the·database·table’s·lifecycle.</p>255 command.·That·is,·Django·<em>manages</em>·the·database·table’s·lifecycle.</p>
255 <p>If·you·set·this·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·however,·no·database·table·creating·or·deletion256 <p>If·you·set·this·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·however,·no·database·table·creating·or·deletion
256 will·be·automatically·performed·for·this·model.·This·is·useful·if·the·model257 will·be·automatically·performed·for·this·model.·This·is·useful·if·the·model
Offset 317, 15 lines modifiedOffset 318, 15 lines modified
317 <section·id="s-editable-fields-on-the-change-list">318 <section·id="s-editable-fields-on-the-change-list">
318 <span·id="editable-fields-on-the-change-list"></span><h4>Editable·fields·on·the·change·list<a·class="headerlink"·href="#editable-fields-on-the-change-list"·title="Link·to·this·heading">¶</a></h4>319 <span·id="editable-fields-on-the-change-list"></span><h4>Editable·fields·on·the·change·list<a·class="headerlink"·href="#editable-fields-on-the-change-list"·title="Link·to·this·heading">¶</a></h4>
319 <p>You·can·now·make·fields·editable·on·the·admin·list·views·via·the·new320 <p>You·can·now·make·fields·editable·on·the·admin·list·views·via·the·new
320 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-list-editable"><span·class="std·std-ref">list_editable</span></a>·admin·option.·These·fields·will·show321 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-list-editable"><span·class="std·std-ref">list_editable</span></a>·admin·option.·These·fields·will·show
321 up·as·form·widgets·on·the·list·pages,·and·can·be·edited·and·saved·in·bulk.</p>322 up·as·form·widgets·on·the·list·pages,·and·can·be·edited·and·saved·in·bulk.</p>
322 </section>323 </section>
323 <section·id="s-admin-actions">324 <section·id="s-admin-actions">
324 <span·id="admin-actions"></span><h4>Admin·actions<a·class="headerlink"·href="#admin-actions"·title="Link·to·this·heading">¶</a></h4>325 <span·id="admin-actions"></span><h4>Admin·«actions»<a·class="headerlink"·href="#admin-actions"·title="Link·to·this·heading">¶</a></h4>
325 <p>You·can·now·define·<a·class="reference·internal"·href="../ref/contrib/admin/actions.html"><span·class="doc">admin·actions</span></a>·that·can326 <p>You·can·now·define·<a·class="reference·internal"·href="../ref/contrib/admin/actions.html"><span·class="doc">admin·actions</span></a>·that·can
326 perform·some·action·to·a·group·of·models·in·bulk.·Users·will·be·able·to·select327 perform·some·action·to·a·group·of·models·in·bulk.·Users·will·be·able·to·select
327 objects·on·the·change·list·page·and·then·apply·these·bulk·actions·to·all328 objects·on·the·change·list·page·and·then·apply·these·bulk·actions·to·all
328 selected·objects.</p>329 selected·objects.</p>
329 <p>Django·ships·with·one·pre-defined·admin·action·to·delete·a·group·of·objects·in330 <p>Django·ships·with·one·pre-defined·admin·action·to·delete·a·group·of·objects·in
330 one·fell·swoop.</p>331 one·fell·swoop.</p>
331 </section>332 </section>
Offset 336, 15 lines modifiedOffset 337, 15 lines modified
336 <code·class="docutils·literal·notranslate"><span·class="pre">Last-Modified</span></code>·HTTP·headers.·This·means·you·can·now·easily·short-circuit337 <code·class="docutils·literal·notranslate"><span·class="pre">Last-Modified</span></code>·HTTP·headers.·This·means·you·can·now·easily·short-circuit
337 view·processing·by·testing·less-expensive·conditions.·For·many·views·this·can338 view·processing·by·testing·less-expensive·conditions.·For·many·views·this·can
338 lead·to·a·serious·improvement·in·speed·and·reduction·in·bandwidth.</p>339 lead·to·a·serious·improvement·in·speed·and·reduction·in·bandwidth.</p>
339 </section>340 </section>
340 <section·id="s-url-namespaces">341 <section·id="s-url-namespaces">
341 <span·id="url-namespaces"></span><h3>URL·namespaces<a·class="headerlink"·href="#url-namespaces"·title="Link·to·this·heading">¶</a></h3>342 <span·id="url-namespaces"></span><h3>URL·namespaces<a·class="headerlink"·href="#url-namespaces"·title="Link·to·this·heading">¶</a></h3>
342 <p>Django·1.1·improves·<a·class="reference·internal"·href="../topics/http/urls.html#naming-url-patterns"><span·class="std·std-ref">named·URL·patterns</span></a>·with·the343 <p>Django·1.1·improves·<a·class="reference·internal"·href="../topics/http/urls.html#naming-url-patterns"><span·class="std·std-ref">named·URL·patterns</span></a>·with·the
343 introduction·of·URL·namespaces.</p>344 introduction·of·URL·«namespaces.»</p>
344 <p>In·short,·this·feature·allows·the·same·group·of·URLs,·from·the·same·application,345 <p>In·short,·this·feature·allows·the·same·group·of·URLs,·from·the·same·application,
345 to·be·included·in·a·Django·URLConf·multiple·times,·with·varying·(and·potentially346 to·be·included·in·a·Django·URLConf·multiple·times,·with·varying·(and·potentially
346 nested)·named·prefixes·which·will·be·used·when·performing·reverse·resolution.·In347 nested)·named·prefixes·which·will·be·used·when·performing·reverse·resolution.·In
347 other·words,·reusable·applications·like·Django’s·admin·interface·may·be348 other·words,·reusable·applications·like·Django’s·admin·interface·may·be
348 registered·multiple·times·without·URL·conflicts.</p>349 registered·multiple·times·without·URL·conflicts.</p>
349 <p>For·full·details,·see·<a·class="reference·internal"·href="../topics/http/urls.html#topics-http-defining-url-namespaces"><span·class="std·std-ref">the·documentation·on·defining·URL·namespaces</span></a>.</p>350 <p>For·full·details,·see·<a·class="reference·internal"·href="../topics/http/urls.html#topics-http-defining-url-namespaces"><span·class="std·std-ref">the·documentation·on·defining·URL·namespaces</span></a>.</p>
350 </section>351 </section>
Offset 374, 15 lines modifiedOffset 375, 15 lines modified
374 backwards-compatibility,·but·using·the·split·classes·is·now·recommended·in375 backwards-compatibility,·but·using·the·split·classes·is·now·recommended·in
375 order·to·allow·fine-grained·control·of·when·and·where·the·CSRF·processing376 order·to·allow·fine-grained·control·of·when·and·where·the·CSRF·processing
376 takes·place.</p></li>377 takes·place.</p></li>
377 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·and·code·which·uses·it·(e.g.,·the·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">%}</span></code>·template·tag)378 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·and·code·which·uses·it·(e.g.,·the·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">%}</span></code>·template·tag)
378 now·works·with·URLs·in·Django’s·administrative·site,·provided·that·the·admin379 now·works·with·URLs·in·Django’s·administrative·site,·provided·that·the·admin
379 URLs·are·set·up·via·<code·class="docutils·literal·notranslate"><span·class="pre">include(admin.site.urls)</span></code>·(sending·admin·requests·to380 URLs·are·set·up·via·<code·class="docutils·literal·notranslate"><span·class="pre">include(admin.site.urls)</span></code>·(sending·admin·requests·to
380 the·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.root</span></code>·view·still·works,·but·URLs·in·the·admin·will·not·be381 the·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.root</span></code>·view·still·works,·but·URLs·in·the·admin·will·not·be
Max diff block lines reached; 4376/15577 bytes (28.09%) of diff not shown.
10.3 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/1.10.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10·release·notes"·href="1.10.html"·/>15 ····<link·rel="next"·title="Django·1.10·release·notes"·href="1.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.2·release·notes"·href="1.10.2.html"·/>16 ····<link·rel="prev"·title="Django·1.10.2·release·notes"·href="1.10.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 158, 37 lines modifiedOffset 159, 37 lines modified
158 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>159 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
159 </ul>160 </ul>
160 </li>161 </li>
161 </ul>162 </ul>
  
162 ··</div>163 ··</div>
163 ··<div>164 ··<div>
164 ····<h4>Previous·topic</h4>165 ····<h4>Argomento·precedente</h4>
165 ····<p·class="topless"><a·href="1.10.2.html"166 ····<p·class="topless"><a·href="1.10.2.html"
166 ··························title="previous·chapter">Django·1.10.2·release·notes</a></p>167 ··························title="capitolo·precedente">Django·1.10.2·release·notes</a></p>
167 ··</div>168 ··</div>
168 ··<div>169 ··<div>
169 ····<h4>Next·topic</h4>170 ····<h4>Argomento·successivo</h4>
170 ····<p·class="topless"><a·href="1.10.html"171 ····<p·class="topless"><a·href="1.10.html"
171 ··························title="next·chapter">Django·1.10·release·notes</a></p>172 ··························title="capitolo·successivo">Django·1.10·release·notes</a></p>
172 ··</div>173 ··</div>
173 <search·id="searchbox"·style="display:·none"·role="search">174 <search·id="searchbox"·style="display:·none"·role="search">
174 ··<h3·id="searchlabel">Quick·search</h3>175 ··<h3·id="searchlabel">Ricerca·veloce</h3>
175 ····<div·class="searchformwrapper">176 ····<div·class="searchformwrapper">
176 ····<form·class="search"·action="../search.html"·method="get">177 ····<form·class="search"·action="../search.html"·method="get">
177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>178 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
178 ······<input·type="submit"·value="Go"·/>179 ······<input·type="submit"·value="Vai"·/>
179 ····</form>180 ····</form>
180 ····</div>181 ····</div>
181 </search>182 </search>
182 <script>document.getElementById('searchbox').style.display·=·"block"</script>183 <script>document.getElementById('searchbox').style.display·=·"block"</script>
183 ········</div>184 ········</div>
184 ······</div>185 ······</div>
185 ··············<h3>Last·update:</h3>186 ··············<h3>Last·update:</h3>
186 ··············<p·class="topless">Sep·03,·2024</p>187 ··············<p·class="topless">set·03,·2024</p>
187 ··········</div>188 ··········</div>
188 ········189 ········
189 ······190 ······
190 ····</div>191 ····</div>
  
191 ····<div·id="ft">192 ····<div·id="ft">
192 ······<div·class="nav">193 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
9.72 KB
./usr/share/doc/python-django-doc/html/releases/1.10.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.1·release·notes"·href="1.10.1.html"·/>15 ····<link·rel="next"·title="Django·1.10.1·release·notes"·href="1.10.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.3·release·notes"·href="1.10.3.html"·/>16 ····<link·rel="prev"·title="Django·1.10.3·release·notes"·href="1.10.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 21 lines modifiedOffset 85, 21 lines modified
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Fixed·a·crash·in·MySQL·database·validation·where·<code·class="docutils·literal·notranslate"><span·class="pre">SELECT</span>·<span·class="pre">&#64;&#64;sql_mode</span></code>88 <li><p>Fixed·a·crash·in·MySQL·database·validation·where·<code·class="docutils·literal·notranslate"><span·class="pre">SELECT</span>·<span·class="pre">&#64;&#64;sql_mode</span></code>
88 doesn’t·return·a·result·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27180">#27180</a>).</p></li>89 doesn’t·return·a·result·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27180">#27180</a>).</p></li>
89 <li><p>Allowed·combining·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.postgres.search.SearchQuery</span></code>·with·more·than·one90 <li><p>Allowed·combining·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.postgres.search.SearchQuery</span></code>·with·more·than·one
90 <code·class="docutils·literal·notranslate"><span·class="pre">&amp;</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">|</span></code>·operators·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27143">#27143</a>).</p></li>91 <code·class="docutils·literal·notranslate"><span·class="pre">&amp;</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">|</span></code>·operators·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27143">#27143</a>).</p></li>
91 <li><p>Disabled·system·check·for·URL·patterns·beginning·with·a·/·when92 <li><p>Disabled·system·check·for·URL·patterns·beginning·with·a·/·when
92 <code·class="docutils·literal·notranslate"><span·class="pre">APPEND_SLASH=False</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27238">#27238</a>).</p></li>93 <code·class="docutils·literal·notranslate"><span·class="pre">APPEND_SLASH=False</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27238">#27238</a>).</p></li>
93 <li><p>Fixed·model·form·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·fallback·for·<code·class="docutils·literal·notranslate"><span·class="pre">CheckboxSelectMultiple</span></code>,94 <li><p>Fixed·model·form·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·fallback·for·<code·class="docutils·literal·notranslate"><span·class="pre">CheckboxSelectMultiple</span></code>,
94 <code·class="docutils·literal·notranslate"><span·class="pre">MultiWidget</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">FileInput</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">SplitDateTimeWidget</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">SelectDateWidget</span></code>,95 <code·class="docutils·literal·notranslate"><span·class="pre">MultiWidget</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">FileInput</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">SplitDateTimeWidget</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">SelectDateWidget</span></code>,
95 and·<code·class="docutils·literal·notranslate"><span·class="pre">SplitArrayWidget</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27186">#27186</a>).·Custom·widgets·affected·by·this96 and·<code·class="docutils·literal·notranslate"><span·class="pre">SplitArrayWidget</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27186">#27186</a>).·Custom·widgets·affected·by·this
96 issue·should·implement·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.Widget.value_omitted_from_data"·title="django.forms.Widget.value_omitted_from_data"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">value_omitted_from_data()</span></code></a>.</p></li>97 issue·should·implement·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.Widget.value_omitted_from_data"·title="django.forms.Widget.value_omitted_from_data"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">value_omitted_from_data()</span></code></a>.</p></li>
97 <li><p>Fixed·a·crash·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·logging·during·a·Broken·pipe·error98 <li><p>Fixed·a·crash·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·logging·during·a·«Broken·pipe»·error
98 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27271">#27271</a>).</p></li>99 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27271">#27271</a>).</p></li>
99 <li><p>Fixed·a·regression·where·unchanged·localized·date/time·fields·were·listed·as100 <li><p>Fixed·a·regression·where·unchanged·localized·date/time·fields·were·listed·as
100 changed·in·the·admin’s·model·history·messages·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27302">#27302</a>).</p></li>101 changed·in·the·admin’s·model·history·messages·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27302">#27302</a>).</p></li>
101 </ul>102 </ul>
102 </section>103 </section>
103 </section>104 </section>
  
Offset 119, 37 lines modifiedOffset 120, 37 lines modified
119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
120 </ul>121 </ul>
121 </li>122 </li>
122 </ul>123 </ul>
  
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="1.10.3.html"127 ····<p·class="topless"><a·href="1.10.3.html"
127 ··························title="previous·chapter">Django·1.10.3·release·notes</a></p>128 ··························title="capitolo·precedente">Django·1.10.3·release·notes</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="1.10.1.html"132 ····<p·class="topless"><a·href="1.10.1.html"
132 ··························title="next·chapter">Django·1.10.1·release·notes</a></p>133 ··························title="capitolo·successivo">Django·1.10.1·release·notes</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
2.88 KB
html2text {}
Max HTML report size reached
6.31 KB
./usr/share/doc/python-django-doc/html/releases/1.10.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.2·release·notes"·href="1.10.2.html"·/>15 ····<link·rel="next"·title="Django·1.10.2·release·notes"·href="1.10.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.4·release·notes"·href="1.10.4.html"·/>16 ····<link·rel="prev"·title="Django·1.10.4·release·notes"·href="1.10.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 151, 37 lines modifiedOffset 152, 37 lines modified
151 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>152 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
152 </ul>153 </ul>
153 </li>154 </li>
154 </ul>155 </ul>
  
155 ··</div>156 ··</div>
156 ··<div>157 ··<div>
157 ····<h4>Previous·topic</h4>158 ····<h4>Argomento·precedente</h4>
158 ····<p·class="topless"><a·href="1.10.4.html"159 ····<p·class="topless"><a·href="1.10.4.html"
159 ··························title="previous·chapter">Django·1.10.4·release·notes</a></p>160 ··························title="capitolo·precedente">Django·1.10.4·release·notes</a></p>
160 ··</div>161 ··</div>
161 ··<div>162 ··<div>
162 ····<h4>Next·topic</h4>163 ····<h4>Argomento·successivo</h4>
163 ····<p·class="topless"><a·href="1.10.2.html"164 ····<p·class="topless"><a·href="1.10.2.html"
164 ··························title="next·chapter">Django·1.10.2·release·notes</a></p>165 ··························title="capitolo·successivo">Django·1.10.2·release·notes</a></p>
165 ··</div>166 ··</div>
166 <search·id="searchbox"·style="display:·none"·role="search">167 <search·id="searchbox"·style="display:·none"·role="search">
167 ··<h3·id="searchlabel">Quick·search</h3>168 ··<h3·id="searchlabel">Ricerca·veloce</h3>
168 ····<div·class="searchformwrapper">169 ····<div·class="searchformwrapper">
169 ····<form·class="search"·action="../search.html"·method="get">170 ····<form·class="search"·action="../search.html"·method="get">
170 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>171 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
171 ······<input·type="submit"·value="Go"·/>172 ······<input·type="submit"·value="Vai"·/>
172 ····</form>173 ····</form>
173 ····</div>174 ····</div>
174 </search>175 </search>
175 <script>document.getElementById('searchbox').style.display·=·"block"</script>176 <script>document.getElementById('searchbox').style.display·=·"block"</script>
176 ········</div>177 ········</div>
177 ······</div>178 ······</div>
178 ··············<h3>Last·update:</h3>179 ··············<h3>Last·update:</h3>
179 ··············<p·class="topless">Sep·03,·2024</p>180 ··············<p·class="topless">set·03,·2024</p>
180 ··········</div>181 ··········</div>
181 ········182 ········
182 ······183 ······
183 ····</div>184 ····</div>
  
184 ····<div·id="ft">185 ····<div·id="ft">
185 ······<div·class="nav">186 ······<div·class="nav">
2.55 KB
html2text {}
Max HTML report size reached
8.53 KB
./usr/share/doc/python-django-doc/html/releases/1.10.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.3·release·notes"·href="1.10.3.html"·/>15 ····<link·rel="next"·title="Django·1.10.3·release·notes"·href="1.10.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.5·release·notes"·href="1.10.5.html"·/>16 ····<link·rel="prev"·title="Django·1.10.5·release·notes"·href="1.10.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 16 lines modifiedOffset 81, 16 lines modified
80 ··<section·id="s-django-1-10-4-release-notes">81 ··<section·id="s-django-1-10-4-release-notes">
81 <span·id="django-1-10-4-release-notes"></span><h1>Django·1.10.4·release·notes<a·class="headerlink"·href="#django-1-10-4-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-10-4-release-notes"></span><h1>Django·1.10.4·release·notes<a·class="headerlink"·href="#django-1-10-4-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·1,·2016</em></p>83 <p><em>December·1,·2016</em></p>
83 <p>Django·1.10.4·fixes·several·bugs·in·1.10.3.</p>84 <p>Django·1.10.4·fixes·several·bugs·in·1.10.3.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·ORA-00922:88 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·«ORA-00922:
88 missing·or·invalid·option·error·when·the·password·starts·with·a·number·or89 missing·or·invalid·option»·error·when·the·password·starts·with·a·number·or
89 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>90 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>
90 <li><p>Fixed·incorrect·<code·class="docutils·literal·notranslate"><span·class="pre">app_label</span></code>·/·<code·class="docutils·literal·notranslate"><span·class="pre">model_name</span></code>·arguments·for91 <li><p>Fixed·incorrect·<code·class="docutils·literal·notranslate"><span·class="pre">app_label</span></code>·/·<code·class="docutils·literal·notranslate"><span·class="pre">model_name</span></code>·arguments·for
91 <code·class="docutils·literal·notranslate"><span·class="pre">allow_migrate()</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">makemigrations</span></code>·migration·consistency·checks92 <code·class="docutils·literal·notranslate"><span·class="pre">allow_migrate()</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">makemigrations</span></code>·migration·consistency·checks
92 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27461">#27461</a>).</p></li>93 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27461">#27461</a>).</p></li>
93 <li><p>Made·<code·class="docutils·literal·notranslate"><span·class="pre">Model.delete(keep_parents=True)</span></code>·preserve·parent·reverse94 <li><p>Made·<code·class="docutils·literal·notranslate"><span·class="pre">Model.delete(keep_parents=True)</span></code>·preserve·parent·reverse
94 relationships·in·multi-table·inheritance·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27407">#27407</a>).</p></li>95 relationships·in·multi-table·inheritance·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27407">#27407</a>).</p></li>
95 <li><p>Fixed·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.update()</span></code>·crash·on·SQLite·when·updating·a96 <li><p>Fixed·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.update()</span></code>·crash·on·SQLite·when·updating·a
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.10.5.html"128 ····<p·class="topless"><a·href="1.10.5.html"
128 ··························title="previous·chapter">Django·1.10.5·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.10.5·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.10.3.html"133 ····<p·class="topless"><a·href="1.10.3.html"
133 ··························title="next·chapter">Django·1.10.3·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.10.3·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.88 KB
html2text {}
Max HTML report size reached
5.9 KB
./usr/share/doc/python-django-doc/html/releases/1.10.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.4·release·notes"·href="1.10.4.html"·/>15 ····<link·rel="next"·title="Django·1.10.4·release·notes"·href="1.10.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.6·release·notes"·href="1.10.6.html"·/>16 ····<link·rel="prev"·title="Django·1.10.6·release·notes"·href="1.10.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 113, 37 lines modifiedOffset 114, 37 lines modified
113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>114 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
114 </ul>115 </ul>
115 </li>116 </li>
116 </ul>117 </ul>
  
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Previous·topic</h4>120 ····<h4>Argomento·precedente</h4>
120 ····<p·class="topless"><a·href="1.10.6.html"121 ····<p·class="topless"><a·href="1.10.6.html"
121 ··························title="previous·chapter">Django·1.10.6·release·notes</a></p>122 ··························title="capitolo·precedente">Django·1.10.6·release·notes</a></p>
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Next·topic</h4>125 ····<h4>Argomento·successivo</h4>
125 ····<p·class="topless"><a·href="1.10.4.html"126 ····<p·class="topless"><a·href="1.10.4.html"
126 ··························title="next·chapter">Django·1.10.4·release·notes</a></p>127 ··························title="capitolo·successivo">Django·1.10.4·release·notes</a></p>
127 ··</div>128 ··</div>
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../search.html"·method="get">132 ····<form·class="search"·action="../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
8.29 KB
./usr/share/doc/python-django-doc/html/releases/1.10.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.5·release·notes"·href="1.10.5.html"·/>15 ····<link·rel="next"·title="Django·1.10.5·release·notes"·href="1.10.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.7·release·notes"·href="1.10.7.html"·/>16 ····<link·rel="prev"·title="Django·1.10.7·release·notes"·href="1.10.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-django-1-10-6-release-notes">81 ··<section·id="s-django-1-10-6-release-notes">
81 <span·id="django-1-10-6-release-notes"></span><h1>Django·1.10.6·release·notes<a·class="headerlink"·href="#django-1-10-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-10-6-release-notes"></span><h1>Django·1.10.6·release·notes<a·class="headerlink"·href="#django-1-10-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·1,·2017</em></p>83 <p><em>March·1,·2017</em></p>
83 <p>Django·1.10.6·fixes·several·bugs·in·1.10.5.</p>84 <p>Django·1.10.6·fixes·several·bugs·in·1.10.5.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code>’s·Clear·checkbox·on·model·form·fields·where88 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code>’s·«Clear»·checkbox·on·model·form·fields·where
88 the·model·field·has·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27805">#27805</a>).</p></li>89 the·model·field·has·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27805">#27805</a>).</p></li>
89 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">RequestDataTooBig</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">TooManyFieldsSent</span></code>·exceptions·crashing90 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">RequestDataTooBig</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">TooManyFieldsSent</span></code>·exceptions·crashing
90 rather·than·generating·a·bad·request·response·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27820">#27820</a>).</p></li>91 rather·than·generating·a·bad·request·response·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27820">#27820</a>).</p></li>
91 <li><p>Fixed·a·crash·on·Oracle·and·PostgreSQL·when·subtracting·<code·class="docutils·literal·notranslate"><span·class="pre">DurationField</span></code>92 <li><p>Fixed·a·crash·on·Oracle·and·PostgreSQL·when·subtracting·<code·class="docutils·literal·notranslate"><span·class="pre">DurationField</span></code>
92 or·<code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>·from·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27828">#27828</a>).</p></li>93 or·<code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>·from·<code·class="docutils·literal·notranslate"><span·class="pre">DateField</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27828">#27828</a>).</p></li>
93 <li><p>Fixed·query·expression·date·subtraction·accuracy·on·PostgreSQL·for94 <li><p>Fixed·query·expression·date·subtraction·accuracy·on·PostgreSQL·for
94 differences·larger·than·a·month·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27856">#27856</a>).</p></li>95 differences·larger·than·a·month·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27856">#27856</a>).</p></li>
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="1.10.7.html"123 ····<p·class="topless"><a·href="1.10.7.html"
123 ··························title="previous·chapter">Django·1.10.7·release·notes</a></p>124 ··························title="capitolo·precedente">Django·1.10.7·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="1.10.5.html"128 ····<p·class="topless"><a·href="1.10.5.html"
128 ··························title="next·chapter">Django·1.10.5·release·notes</a></p>129 ··························title="capitolo·successivo">Django·1.10.5·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.48 KB
html2text {}
Max HTML report size reached
9.98 KB
./usr/share/doc/python-django-doc/html/releases/1.10.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.6·release·notes"·href="1.10.6.html"·/>15 ····<link·rel="next"·title="Django·1.10.6·release·notes"·href="1.10.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.10.8·release·notes"·href="1.10.8.html"·/>16 ····<link·rel="prev"·title="Django·1.10.8·release·notes"·href="1.10.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 17 lines modifiedOffset 82, 17 lines modified
81 <span·id="django-1-10-7-release-notes"></span><h1>Django·1.10.7·release·notes<a·class="headerlink"·href="#django-1-10-7-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-10-7-release-notes"></span><h1>Django·1.10.7·release·notes<a·class="headerlink"·href="#django-1-10-7-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·4,·2017</em></p>83 <p><em>April·4,·2017</em></p>
83 <p>Django·1.10.7·fixes·two·security·issues·and·a·bug·in·1.10.6.</p>84 <p>Django·1.10.7·fixes·two·security·issues·and·a·bug·in·1.10.6.</p>
84 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">85 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">
85 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases··(e.g.87 <p>Django·relies·on·user·input·in·some·cases··(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
88 to·redirect·the·user·to·an·on·success·URL.·The·security·check·for·these89 to·redirect·the·user·to·an·«on·success»·URL.·The·security·check·for·these
89 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric
90 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·safe·when·they·shouldn’t·be.</p>91 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·«safe»·when·they·shouldn’t·be.</p>
91 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect92 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect
92 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>93 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>
93 </section>94 </section>
94 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">95 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">
95 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>96 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>
96 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the97 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the
97 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The98 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>131 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="1.10.8.html"138 ····<p·class="topless"><a·href="1.10.8.html"
138 ··························title="previous·chapter">Django·1.10.8·release·notes</a></p>139 ··························title="capitolo·precedente">Django·1.10.8·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="1.10.6.html"143 ····<p·class="topless"><a·href="1.10.6.html"
143 ··························title="next·chapter">Django·1.10.6·release·notes</a></p>144 ··························title="capitolo·successivo">Django·1.10.6·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
3.63 KB
html2text {}
Max HTML report size reached
6.28 KB
./usr/share/doc/python-django-doc/html/releases/1.10.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.10.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.10.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.7·release·notes"·href="1.10.7.html"·/>15 ····<link·rel="next"·title="Django·1.10.7·release·notes"·href="1.10.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.11·release·notes"·href="1.11.html"·/>16 ····<link·rel="prev"·title="Django·1.11·release·notes"·href="1.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2017-12794-possible-xss-in-traceback-section-of-technical-500-debug-page">CVE-2017-12794:·Possible·XSS·in·traceback·section·of·technical·500·debug·page</a></li>109 <li><a·class="reference·internal"·href="#cve-2017-12794-possible-xss-in-traceback-section-of-technical-500-debug-page">CVE-2017-12794:·Possible·XSS·in·traceback·section·of·technical·500·debug·page</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.11.html"116 ····<p·class="topless"><a·href="1.11.html"
116 ··························title="previous·chapter">Django·1.11·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.11·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.10.7.html"121 ····<p·class="topless"><a·href="1.10.7.html"
121 ··························title="next·chapter">Django·1.10.7·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.10.7·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.4 KB
html2text {}
Max HTML report size reached
42.3 KB
./usr/share/doc/python-django-doc/html/releases/1.10.html
Max HTML report size reached
9.81 KB
./usr/share/doc/python-django-doc/html/releases/1.11.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11·release·notes"·href="1.11.html"·/>15 ····<link·rel="next"·title="Django·1.11·release·notes"·href="1.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.2·release·notes"·href="1.11.2.html"·/>16 ····<link·rel="prev"·title="Django·1.11.2·release·notes"·href="1.11.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 recreate·the·index·with·the·correct·name·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28051">#28051</a>).</p></li>97 recreate·the·index·with·the·correct·name·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28051">#28051</a>).</p></li>
97 <li><p>Fixed·a·crash·when·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">__icontains</span></code>·lookup·on·a·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayField</span></code>98 <li><p>Fixed·a·crash·when·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">__icontains</span></code>·lookup·on·a·<code·class="docutils·literal·notranslate"><span·class="pre">ArrayField</span></code>
98 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28038">#28038</a>).</p></li>99 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28038">#28038</a>).</p></li>
99 <li><p>Fixed·a·crash·when·using·a·two-tuple·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailMessage</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">attachments</span></code>100 <li><p>Fixed·a·crash·when·using·a·two-tuple·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailMessage</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">attachments</span></code>
100 argument·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28042">#28042</a>).</p></li>101 argument·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28042">#28042</a>).</p></li>
101 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.filter()</span></code>·crash·when·it·references·the·name·of·a102 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.filter()</span></code>·crash·when·it·references·the·name·of·a
102 <code·class="docutils·literal·notranslate"><span·class="pre">OneToOneField</span></code>·primary·key·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28047">#28047</a>).</p></li>103 <code·class="docutils·literal·notranslate"><span·class="pre">OneToOneField</span></code>·primary·key·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28047">#28047</a>).</p></li>
103 <li><p>Fixed·empty·POST·data·table·appearing·instead·of·No·POST·data·in·HTML·debug104 <li><p>Fixed·empty·POST·data·table·appearing·instead·of·«No·POST·data»·in·HTML·debug
104 page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28079">#28079</a>).</p></li>105 page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28079">#28079</a>).</p></li>
105 <li><p>Restored·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code>s·without·any·<code·class="docutils·literal·notranslate"><span·class="pre">choices</span></code>·evaluating·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>106 <li><p>Restored·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code>s·without·any·<code·class="docutils·literal·notranslate"><span·class="pre">choices</span></code>·evaluating·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>
106 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28058">#28058</a>).</p></li>107 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28058">#28058</a>).</p></li>
107 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">SessionBase.cycle_key()</span></code>·from·losing·session·data·if108 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">SessionBase.cycle_key()</span></code>·from·losing·session·data·if
108 <code·class="docutils·literal·notranslate"><span·class="pre">_session_cache</span></code>·isn’t·populated·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28066">#28066</a>).</p></li>109 <code·class="docutils·literal·notranslate"><span·class="pre">_session_cache</span></code>·isn’t·populated·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28066">#28066</a>).</p></li>
109 <li><p>Fixed·layout·of·<code·class="docutils·literal·notranslate"><span·class="pre">ReadOnlyPasswordHashWidget</span></code>·(used·in·the·admin’s·user110 <li><p>Fixed·layout·of·<code·class="docutils·literal·notranslate"><span·class="pre">ReadOnlyPasswordHashWidget</span></code>·(used·in·the·admin’s·user
110 change·page)·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28097">#28097</a>).</p></li>111 change·page)·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28097">#28097</a>).</p></li>
Offset 175, 37 lines modifiedOffset 176, 37 lines modified
175 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>176 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
176 </ul>177 </ul>
177 </li>178 </li>
178 </ul>179 </ul>
  
179 ··</div>180 ··</div>
180 ··<div>181 ··<div>
181 ····<h4>Previous·topic</h4>182 ····<h4>Argomento·precedente</h4>
182 ····<p·class="topless"><a·href="1.11.2.html"183 ····<p·class="topless"><a·href="1.11.2.html"
183 ··························title="previous·chapter">Django·1.11.2·release·notes</a></p>184 ··························title="capitolo·precedente">Django·1.11.2·release·notes</a></p>
184 ··</div>185 ··</div>
185 ··<div>186 ··<div>
186 ····<h4>Next·topic</h4>187 ····<h4>Argomento·successivo</h4>
187 ····<p·class="topless"><a·href="1.11.html"188 ····<p·class="topless"><a·href="1.11.html"
188 ··························title="next·chapter">Django·1.11·release·notes</a></p>189 ··························title="capitolo·successivo">Django·1.11·release·notes</a></p>
189 ··</div>190 ··</div>
190 <search·id="searchbox"·style="display:·none"·role="search">191 <search·id="searchbox"·style="display:·none"·role="search">
191 ··<h3·id="searchlabel">Quick·search</h3>192 ··<h3·id="searchlabel">Ricerca·veloce</h3>
192 ····<div·class="searchformwrapper">193 ····<div·class="searchformwrapper">
193 ····<form·class="search"·action="../search.html"·method="get">194 ····<form·class="search"·action="../search.html"·method="get">
194 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>195 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
195 ······<input·type="submit"·value="Go"·/>196 ······<input·type="submit"·value="Vai"·/>
196 ····</form>197 ····</form>
197 ····</div>198 ····</div>
198 </search>199 </search>
199 <script>document.getElementById('searchbox').style.display·=·"block"</script>200 <script>document.getElementById('searchbox').style.display·=·"block"</script>
200 ········</div>201 ········</div>
201 ······</div>202 ······</div>
202 ··············<h3>Last·update:</h3>203 ··············<h3>Last·update:</h3>
203 ··············<p·class="topless">Sep·03,·2024</p>204 ··············<p·class="topless">set·03,·2024</p>
204 ··········</div>205 ··········</div>
205 ········206 ········
206 ······207 ······
207 ····</div>208 ····</div>
  
208 ····<div·id="ft">209 ····<div·id="ft">
209 ······<div·class="nav">210 ······<div·class="nav">
3.51 KB
html2text {}
Max HTML report size reached
8.83 KB
./usr/share/doc/python-django-doc/html/releases/1.11.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.9·release·notes"·href="1.11.9.html"·/>15 ····<link·rel="next"·title="Django·1.11.9·release·notes"·href="1.11.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.11·release·notes"·href="1.11.11.html"·/>16 ····<link·rel="prev"·title="Django·1.11.11·release·notes"·href="1.11.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·method·even·if·an·incorrect·password·is·entered.89 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·method·even·if·an·incorrect·password·is·entered.
89 This·can·leak·information·about·a·user,·depending·on·what·messages90 This·can·leak·information·about·a·user,·depending·on·what·messages
90 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·raises.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·isn’t91 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·raises.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·isn’t
91 overridden,·an·attacker·enter·an·arbitrary·username·and·see·if·that·user·has92 overridden,·an·attacker·enter·an·arbitrary·username·and·see·if·that·user·has
92 been·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">is_active=False</span></code>.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·is·overridden,93 been·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">is_active=False</span></code>.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·is·overridden,
93 more·sensitive·details·could·be·leaked.</p>94 more·sensitive·details·could·be·leaked.</p>
94 <p>This·issue·is·fixed·with·the·caveat·that·<code·class="docutils·literal·notranslate"><span·class="pre">AuthenticationForm</span></code>·can·no·longer95 <p>This·issue·is·fixed·with·the·caveat·that·<code·class="docutils·literal·notranslate"><span·class="pre">AuthenticationForm</span></code>·can·no·longer
95 raise·the·This·account·is·inactive.·error·if·the·authentication·backend96 raise·the·«This·account·is·inactive.»·error·if·the·authentication·backend
96 rejects·inactive·users·(the·default·authentication·backend,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,97 rejects·inactive·users·(the·default·authentication·backend,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,
97 has·done·that·since·Django·1.10).·This·issue·will·be·revisited·for·Django·2.198 has·done·that·since·Django·1.10).·This·issue·will·be·revisited·for·Django·2.1
98 as·a·fix·to·address·the·caveat·will·likely·be·too·invasive·for·inclusion·in99 as·a·fix·to·address·the·caveat·will·likely·be·too·invasive·for·inclusion·in
99 older·versions.</p>100 older·versions.</p>
100 </section>101 </section>
101 <section·id="s-bugfixes">102 <section·id="s-bugfixes">
102 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>103 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>131 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="1.11.11.html"138 ····<p·class="topless"><a·href="1.11.11.html"
138 ··························title="previous·chapter">Django·1.11.11·release·notes</a></p>139 ··························title="capitolo·precedente">Django·1.11.11·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="1.11.9.html"143 ····<p·class="topless"><a·href="1.11.9.html"
143 ··························title="next·chapter">Django·1.11.9·release·notes</a></p>144 ··························title="capitolo·successivo">Django·1.11.9·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
3.52 KB
html2text {}
Max HTML report size reached
6.78 KB
./usr/share/doc/python-django-doc/html/releases/1.11.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.10·release·notes"·href="1.11.10.html"·/>15 ····<link·rel="next"·title="Django·1.11.10·release·notes"·href="1.11.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.12·release·notes"·href="1.11.12.html"·/>16 ····<link·rel="prev"·title="Django·1.11.12·release·notes"·href="1.11.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#cve-2018-7537-denial-of-service-possibility-in-truncatechars-html-and-truncatewords-html-template-filters">CVE-2018-7537:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">truncatechars_html</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code>·template·filters</a></li>121 <li><a·class="reference·internal"·href="#cve-2018-7537-denial-of-service-possibility-in-truncatechars-html-and-truncatewords-html-template-filters">CVE-2018-7537:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">truncatechars_html</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code>·template·filters</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.11.12.html"128 ····<p·class="topless"><a·href="1.11.12.html"
128 ··························title="previous·chapter">Django·1.11.12·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.11.12·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.11.10.html"133 ····<p·class="topless"><a·href="1.11.10.html"
133 ··························title="next·chapter">Django·1.11.10·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.11.10·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.67 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/1.11.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.11·release·notes"·href="1.11.11.html"·/>15 ····<link·rel="next"·title="Django·1.11.11·release·notes"·href="1.11.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.13·release·notes"·href="1.11.13.html"·/>16 ····<link·rel="prev"·title="Django·1.11.13·release·notes"·href="1.11.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="1.11.13.html"119 ····<p·class="topless"><a·href="1.11.13.html"
119 ··························title="previous·chapter">Django·1.11.13·release·notes</a></p>120 ··························title="capitolo·precedente">Django·1.11.13·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="1.11.11.html"124 ····<p·class="topless"><a·href="1.11.11.html"
124 ··························title="next·chapter">Django·1.11.11·release·notes</a></p>125 ··························title="capitolo·successivo">Django·1.11.11·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
5.91 KB
./usr/share/doc/python-django-doc/html/releases/1.11.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.12·release·notes"·href="1.11.12.html"·/>15 ····<link·rel="next"·title="Django·1.11.12·release·notes"·href="1.11.12.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.14·release·notes"·href="1.11.14.html"·/>16 ····<link·rel="prev"·title="Django·1.11.14·release·notes"·href="1.11.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="1.11.14.html"122 ····<p·class="topless"><a·href="1.11.14.html"
122 ··························title="previous·chapter">Django·1.11.14·release·notes</a></p>123 ··························title="capitolo·precedente">Django·1.11.14·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="1.11.12.html"127 ····<p·class="topless"><a·href="1.11.12.html"
127 ··························title="next·chapter">Django·1.11.12·release·notes</a></p>128 ··························title="capitolo·successivo">Django·1.11.12·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
5.82 KB
./usr/share/doc/python-django-doc/html/releases/1.11.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.13·release·notes"·href="1.11.13.html"·/>15 ····<link·rel="next"·title="Django·1.11.13·release·notes"·href="1.11.13.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.15·release·notes"·href="1.11.15.html"·/>16 ····<link·rel="prev"·title="Django·1.11.15·release·notes"·href="1.11.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.15.html"117 ····<p·class="topless"><a·href="1.11.15.html"
117 ··························title="previous·chapter">Django·1.11.15·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.15·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.13.html"122 ····<p·class="topless"><a·href="1.11.13.html"
122 ··························title="next·chapter">Django·1.11.13·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.13·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.05 KB
html2text {}
Max HTML report size reached
6.4 KB
./usr/share/doc/python-django-doc/html/releases/1.11.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.14·release·notes"·href="1.11.14.html"·/>15 ····<link·rel="next"·title="Django·1.11.14·release·notes"·href="1.11.14.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.16·release·notes"·href="1.11.16.html"·/>16 ····<link·rel="prev"·title="Django·1.11.16·release·notes"·href="1.11.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#cve-2018-14574-open-redirect-possibility-in-commonmiddleware">CVE-2018-14574:·Open·redirect·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code></a></li>112 <li><a·class="reference·internal"·href="#cve-2018-14574-open-redirect-possibility-in-commonmiddleware">CVE-2018-14574:·Open·redirect·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code></a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="1.11.16.html"119 ····<p·class="topless"><a·href="1.11.16.html"
119 ··························title="previous·chapter">Django·1.11.16·release·notes</a></p>120 ··························title="capitolo·precedente">Django·1.11.16·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="1.11.14.html"124 ····<p·class="topless"><a·href="1.11.14.html"
124 ··························title="next·chapter">Django·1.11.14·release·notes</a></p>125 ··························title="capitolo·successivo">Django·1.11.14·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.45 KB
html2text {}
Max HTML report size reached
5.69 KB
./usr/share/doc/python-django-doc/html/releases/1.11.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.15·release·notes"·href="1.11.15.html"·/>15 ····<link·rel="next"·title="Django·1.11.15·release·notes"·href="1.11.15.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.17·release·notes"·href="1.11.17.html"·/>16 ····<link·rel="prev"·title="Django·1.11.17·release·notes"·href="1.11.17.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="1.11.17.html"115 ····<p·class="topless"><a·href="1.11.17.html"
115 ··························title="previous·chapter">Django·1.11.17·release·notes</a></p>116 ··························title="capitolo·precedente">Django·1.11.17·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="1.11.15.html"120 ····<p·class="topless"><a·href="1.11.15.html"
120 ··························title="next·chapter">Django·1.11.15·release·notes</a></p>121 ··························title="capitolo·successivo">Django·1.11.15·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.92 KB
html2text {}
Max HTML report size reached
5.8 KB
./usr/share/doc/python-django-doc/html/releases/1.11.17.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.17·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.17·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.16·release·notes"·href="1.11.16.html"·/>15 ····<link·rel="next"·title="Django·1.11.16·release·notes"·href="1.11.16.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.18·release·notes"·href="1.11.18.html"·/>16 ····<link·rel="prev"·title="Django·1.11.18·release·notes"·href="1.11.18.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.18.html"117 ····<p·class="topless"><a·href="1.11.18.html"
117 ··························title="previous·chapter">Django·1.11.18·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.18·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.16.html"122 ····<p·class="topless"><a·href="1.11.16.html"
122 ··························title="next·chapter">Django·1.11.16·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.16·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.03 KB
html2text {}
Max HTML report size reached
6.21 KB
./usr/share/doc/python-django-doc/html/releases/1.11.18.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.18·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.18·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.17·release·notes"·href="1.11.17.html"·/>15 ····<link·rel="next"·title="Django·1.11.17·release·notes"·href="1.11.17.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.19·release·notes"·href="1.11.19.html"·/>16 ····<link·rel="prev"·title="Django·1.11.19·release·notes"·href="1.11.19.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#cve-2019-3498-content-spoofing-possibility-in-the-default-404-page">CVE-2019-3498:·Content·spoofing·possibility·in·the·default·404·page</a></li>110 <li><a·class="reference·internal"·href="#cve-2019-3498-content-spoofing-possibility-in-the-default-404-page">CVE-2019-3498:·Content·spoofing·possibility·in·the·default·404·page</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.19.html"117 ····<p·class="topless"><a·href="1.11.19.html"
117 ··························title="previous·chapter">Django·1.11.19·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.19·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.17.html"122 ····<p·class="topless"><a·href="1.11.17.html"
122 ··························title="next·chapter">Django·1.11.17·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.17·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.33 KB
html2text {}
Max HTML report size reached
6.31 KB
./usr/share/doc/python-django-doc/html/releases/1.11.19.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.19·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.19·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.18·release·notes"·href="1.11.18.html"·/>15 ····<link·rel="next"·title="Django·1.11.18·release·notes"·href="1.11.18.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.20·release·notes"·href="1.11.20.html"·/>16 ····<link·rel="prev"·title="Django·1.11.20·release·notes"·href="1.11.20.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format">CVE-2019-6975:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.format()</span></code></a></li>110 <li><a·class="reference·internal"·href="#cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format">CVE-2019-6975:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.format()</span></code></a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.20.html"117 ····<p·class="topless"><a·href="1.11.20.html"
117 ··························title="previous·chapter">Django·1.11.20·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.20·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.18.html"122 ····<p·class="topless"><a·href="1.11.18.html"
122 ··························title="next·chapter">Django·1.11.18·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.18·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.35 KB
html2text {}
Max HTML report size reached
5.92 KB
./usr/share/doc/python-django-doc/html/releases/1.11.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.1·release·notes"·href="1.11.1.html"·/>15 ····<link·rel="next"·title="Django·1.11.1·release·notes"·href="1.11.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.3·release·notes"·href="1.11.3.html"·/>16 ····<link·rel="prev"·title="Django·1.11.3·release·notes"·href="1.11.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 143, 37 lines modifiedOffset 144, 37 lines modified
143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>144 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
144 </ul>145 </ul>
145 </li>146 </li>
146 </ul>147 </ul>
  
147 ··</div>148 ··</div>
148 ··<div>149 ··<div>
149 ····<h4>Previous·topic</h4>150 ····<h4>Argomento·precedente</h4>
150 ····<p·class="topless"><a·href="1.11.3.html"151 ····<p·class="topless"><a·href="1.11.3.html"
151 ··························title="previous·chapter">Django·1.11.3·release·notes</a></p>152 ··························title="capitolo·precedente">Django·1.11.3·release·notes</a></p>
152 ··</div>153 ··</div>
153 ··<div>154 ··<div>
154 ····<h4>Next·topic</h4>155 ····<h4>Argomento·successivo</h4>
155 ····<p·class="topless"><a·href="1.11.1.html"156 ····<p·class="topless"><a·href="1.11.1.html"
156 ··························title="next·chapter">Django·1.11.1·release·notes</a></p>157 ··························title="capitolo·successivo">Django·1.11.1·release·notes</a></p>
157 ··</div>158 ··</div>
158 <search·id="searchbox"·style="display:·none"·role="search">159 <search·id="searchbox"·style="display:·none"·role="search">
159 ··<h3·id="searchlabel">Quick·search</h3>160 ··<h3·id="searchlabel">Ricerca·veloce</h3>
160 ····<div·class="searchformwrapper">161 ····<div·class="searchformwrapper">
161 ····<form·class="search"·action="../search.html"·method="get">162 ····<form·class="search"·action="../search.html"·method="get">
162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
163 ······<input·type="submit"·value="Go"·/>164 ······<input·type="submit"·value="Vai"·/>
164 ····</form>165 ····</form>
165 ····</div>166 ····</div>
166 </search>167 </search>
167 <script>document.getElementById('searchbox').style.display·=·"block"</script>168 <script>document.getElementById('searchbox').style.display·=·"block"</script>
168 ········</div>169 ········</div>
169 ······</div>170 ······</div>
170 ··············<h3>Last·update:</h3>171 ··············<h3>Last·update:</h3>
171 ··············<p·class="topless">Sep·03,·2024</p>172 ··············<p·class="topless">set·03,·2024</p>
172 ··········</div>173 ··········</div>
173 ········174 ········
174 ······175 ······
175 ····</div>176 ····</div>
  
176 ····<div·id="ft">177 ····<div·id="ft">
177 ······<div·class="nav">178 ······<div·class="nav">
2.16 KB
html2text {}
Max HTML report size reached
5.65 KB
./usr/share/doc/python-django-doc/html/releases/1.11.20.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.20·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.20·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.19·release·notes"·href="1.11.19.html"·/>15 ····<link·rel="next"·title="Django·1.11.19·release·notes"·href="1.11.19.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.21·release·notes"·href="1.11.21.html"·/>16 ····<link·rel="prev"·title="Django·1.11.21·release·notes"·href="1.11.21.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="1.11.21.html"114 ····<p·class="topless"><a·href="1.11.21.html"
114 ··························title="previous·chapter">Django·1.11.21·release·notes</a></p>115 ··························title="capitolo·precedente">Django·1.11.21·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="1.11.19.html"119 ····<p·class="topless"><a·href="1.11.19.html"
119 ··························title="next·chapter">Django·1.11.19·release·notes</a></p>120 ··························title="capitolo·successivo">Django·1.11.19·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
1.88 KB
html2text {}
Max HTML report size reached
8.26 KB
./usr/share/doc/python-django-doc/html/releases/1.11.21.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.21·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.21·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.20·release·notes"·href="1.11.20.html"·/>15 ····<link·rel="next"·title="Django·1.11.20·release·notes"·href="1.11.20.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.22·release·notes"·href="1.11.22.html"·/>16 ····<link·rel="prev"·title="Django·1.11.22·release·notes"·href="1.11.22.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-django-1-11-21-release-notes">81 ··<section·id="s-django-1-11-21-release-notes">
81 <span·id="django-1-11-21-release-notes"></span><h1>Django·1.11.21·release·notes<a·class="headerlink"·href="#django-1-11-21-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-11-21-release-notes"></span><h1>Django·1.11.21·release·notes<a·class="headerlink"·href="#django-1-11-21-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>June·3,·2019</em></p>83 <p><em>June·3,·2019</em></p>
83 <p>Django·1.11.21·fixes·a·security·issue·in·1.11.20.</p>84 <p>Django·1.11.21·fixes·a·security·issue·in·1.11.20.</p>
84 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">85 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">
85 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·clickable·Current·URL·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed87 <p>The·clickable·«Current·URL»·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed
87 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated88 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated
88 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter89 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter
89 payload,·could·result·in·an·clickable·JavaScript·link.</p>90 payload,·could·result·in·an·clickable·JavaScript·link.</p>
90 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using91 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using
91 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable92 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable
92 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to93 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to
93 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using94 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#cve-2019-12308-adminurlfieldwidget-xss">CVE-2019-12308:·AdminURLFieldWidget·XSS</a></li>113 <li><a·class="reference·internal"·href="#cve-2019-12308-adminurlfieldwidget-xss">CVE-2019-12308:·AdminURLFieldWidget·XSS</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.11.22.html"120 ····<p·class="topless"><a·href="1.11.22.html"
120 ··························title="previous·chapter">Django·1.11.22·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.11.22·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.11.20.html"125 ····<p·class="topless"><a·href="1.11.20.html"
125 ··························title="next·chapter">Django·1.11.20·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.11.20·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.64 KB
html2text {}
Max HTML report size reached
6.32 KB
./usr/share/doc/python-django-doc/html/releases/1.11.22.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.22·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.22·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.21·release·notes"·href="1.11.21.html"·/>15 ····<link·rel="next"·title="Django·1.11.21·release·notes"·href="1.11.21.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.23·release·notes"·href="1.11.23.html"·/>16 ····<link·rel="prev"·title="Django·1.11.23·release·notes"·href="1.11.23.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#cve-2019-12781-incorrect-http-detection-with-reverse-proxy-connecting-via-https">CVE-2019-12781:·Incorrect·HTTP·detection·with·reverse-proxy·connecting·via·HTTPS</a></li>118 <li><a·class="reference·internal"·href="#cve-2019-12781-incorrect-http-detection-with-reverse-proxy-connecting-via-https">CVE-2019-12781:·Incorrect·HTTP·detection·with·reverse-proxy·connecting·via·HTTPS</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="1.11.23.html"125 ····<p·class="topless"><a·href="1.11.23.html"
125 ··························title="previous·chapter">Django·1.11.23·release·notes</a></p>126 ··························title="capitolo·precedente">Django·1.11.23·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="1.11.21.html"130 ····<p·class="topless"><a·href="1.11.21.html"
130 ··························title="next·chapter">Django·1.11.21·release·notes</a></p>131 ··························title="capitolo·successivo">Django·1.11.21·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
6.75 KB
./usr/share/doc/python-django-doc/html/releases/1.11.23.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.23·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.23·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.22·release·notes"·href="1.11.22.html"·/>15 ····<link·rel="next"·title="Django·1.11.22·release·notes"·href="1.11.22.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.24·release·notes"·href="1.11.24.html"·/>16 ····<link·rel="prev"·title="Django·1.11.24·release·notes"·href="1.11.24.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 144, 37 lines modifiedOffset 145, 37 lines modified
144 <li><a·class="reference·internal"·href="#cve-2019-14235-potential-memory-exhaustion-in-django-utils-encoding-uri-to-iri">CVE-2019-14235:·Potential·memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>145 <li><a·class="reference·internal"·href="#cve-2019-14235-potential-memory-exhaustion-in-django-utils-encoding-uri-to-iri">CVE-2019-14235:·Potential·memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 </ul>148 </ul>
  
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Previous·topic</h4>151 ····<h4>Argomento·precedente</h4>
151 ····<p·class="topless"><a·href="1.11.24.html"152 ····<p·class="topless"><a·href="1.11.24.html"
152 ··························title="previous·chapter">Django·1.11.24·release·notes</a></p>153 ··························title="capitolo·precedente">Django·1.11.24·release·notes</a></p>
153 ··</div>154 ··</div>
154 ··<div>155 ··<div>
155 ····<h4>Next·topic</h4>156 ····<h4>Argomento·successivo</h4>
156 ····<p·class="topless"><a·href="1.11.22.html"157 ····<p·class="topless"><a·href="1.11.22.html"
157 ··························title="next·chapter">Django·1.11.22·release·notes</a></p>158 ··························title="capitolo·successivo">Django·1.11.22·release·notes</a></p>
158 ··</div>159 ··</div>
159 <search·id="searchbox"·style="display:·none"·role="search">160 <search·id="searchbox"·style="display:·none"·role="search">
160 ··<h3·id="searchlabel">Quick·search</h3>161 ··<h3·id="searchlabel">Ricerca·veloce</h3>
161 ····<div·class="searchformwrapper">162 ····<div·class="searchformwrapper">
162 ····<form·class="search"·action="../search.html"·method="get">163 ····<form·class="search"·action="../search.html"·method="get">
163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
164 ······<input·type="submit"·value="Go"·/>165 ······<input·type="submit"·value="Vai"·/>
165 ····</form>166 ····</form>
166 ····</div>167 ····</div>
167 </search>168 </search>
168 <script>document.getElementById('searchbox').style.display·=·"block"</script>169 <script>document.getElementById('searchbox').style.display·=·"block"</script>
169 ········</div>170 ········</div>
170 ······</div>171 ······</div>
171 ··············<h3>Last·update:</h3>172 ··············<h3>Last·update:</h3>
172 ··············<p·class="topless">Sep·03,·2024</p>173 ··············<p·class="topless">set·03,·2024</p>
173 ··········</div>174 ··········</div>
174 ········175 ········
175 ······176 ······
176 ····</div>177 ····</div>
  
177 ····<div·id="ft">178 ····<div·id="ft">
178 ······<div·class="nav">179 ······<div·class="nav">
2.77 KB
html2text {}
Max HTML report size reached
5.76 KB
./usr/share/doc/python-django-doc/html/releases/1.11.24.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.24·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.24·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.23·release·notes"·href="1.11.23.html"·/>15 ····<link·rel="next"·title="Django·1.11.23·release·notes"·href="1.11.23.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.25·release·notes"·href="1.11.25.html"·/>16 ····<link·rel="prev"·title="Django·1.11.25·release·notes"·href="1.11.25.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.25.html"117 ····<p·class="topless"><a·href="1.11.25.html"
117 ··························title="previous·chapter">Django·1.11.25·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.25·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.23.html"122 ····<p·class="topless"><a·href="1.11.23.html"
122 ··························title="next·chapter">Django·1.11.23·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.23·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.0 KB
html2text {}
Max HTML report size reached
5.77 KB
./usr/share/doc/python-django-doc/html/releases/1.11.25.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.25·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.25·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.24·release·notes"·href="1.11.24.html"·/>15 ····<link·rel="next"·title="Django·1.11.24·release·notes"·href="1.11.24.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.26·release·notes"·href="1.11.26.html"·/>16 ····<link·rel="prev"·title="Django·1.11.26·release·notes"·href="1.11.26.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.11.26.html"116 ····<p·class="topless"><a·href="1.11.26.html"
116 ··························title="previous·chapter">Django·1.11.26·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.11.26·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.11.24.html"121 ····<p·class="topless"><a·href="1.11.24.html"
121 ··························title="next·chapter">Django·1.11.24·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.11.24·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.0 KB
html2text {}
Max HTML report size reached
5.81 KB
./usr/share/doc/python-django-doc/html/releases/1.11.26.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.26·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.26·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.25·release·notes"·href="1.11.25.html"·/>15 ····<link·rel="next"·title="Django·1.11.25·release·notes"·href="1.11.25.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.27·release·notes"·href="1.11.27.html"·/>16 ····<link·rel="prev"·title="Django·1.11.27·release·notes"·href="1.11.27.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.11.27.html"117 ····<p·class="topless"><a·href="1.11.27.html"
117 ··························title="previous·chapter">Django·1.11.27·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.11.27·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.11.25.html"122 ····<p·class="topless"><a·href="1.11.25.html"
122 ··························title="next·chapter">Django·1.11.25·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.11.25·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
6.29 KB
./usr/share/doc/python-django-doc/html/releases/1.11.27.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.27·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.27·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.26·release·notes"·href="1.11.26.html"·/>15 ····<link·rel="next"·title="Django·1.11.26·release·notes"·href="1.11.26.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.28·release·notes"·href="1.11.28.html"·/>16 ····<link·rel="prev"·title="Django·1.11.28·release·notes"·href="1.11.28.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="1.11.28.html"130 ····<p·class="topless"><a·href="1.11.28.html"
130 ··························title="previous·chapter">Django·1.11.28·release·notes</a></p>131 ··························title="capitolo·precedente">Django·1.11.28·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="1.11.26.html"135 ····<p·class="topless"><a·href="1.11.26.html"
135 ··························title="next·chapter">Django·1.11.26·release·notes</a></p>136 ··························title="capitolo·successivo">Django·1.11.26·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.52 KB
html2text {}
Max HTML report size reached
6.18 KB
./usr/share/doc/python-django-doc/html/releases/1.11.28.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.28·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.28·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.27·release·notes"·href="1.11.27.html"·/>15 ····<link·rel="next"·title="Django·1.11.27·release·notes"·href="1.11.27.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.29·release·notes"·href="1.11.29.html"·/>16 ····<link·rel="prev"·title="Django·1.11.29·release·notes"·href="1.11.29.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2020-7471-potential-sql-injection-via-stringagg-delimiter">CVE-2020-7471:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg(delimiter)</span></code></a></li>106 <li><a·class="reference·internal"·href="#cve-2020-7471-potential-sql-injection-via-stringagg-delimiter">CVE-2020-7471:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg(delimiter)</span></code></a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="1.11.29.html"113 ····<p·class="topless"><a·href="1.11.29.html"
113 ··························title="previous·chapter">Django·1.11.29·release·notes</a></p>114 ··························title="capitolo·precedente">Django·1.11.29·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="1.11.27.html"118 ····<p·class="topless"><a·href="1.11.27.html"
118 ··························title="next·chapter">Django·1.11.27·release·notes</a></p>119 ··························title="capitolo·successivo">Django·1.11.27·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.23 KB
html2text {}
Max HTML report size reached
6.45 KB
./usr/share/doc/python-django-doc/html/releases/1.11.29.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.29·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.29·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.28·release·notes"·href="1.11.28.html"·/>15 ····<link·rel="next"·title="Django·1.11.28·release·notes"·href="1.11.28.html"·/>
15 ····<link·rel="prev"·title="Django·2.0·release·notes"·href="2.0.html"·/>16 ····<link·rel="prev"·title="Django·2.0·release·notes"·href="2.0.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2020-9402-potential-sql-injection-via-tolerance-parameter-in-gis-functions-and-aggregates-on-oracle">CVE-2020-9402:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">tolerance</span></code>·parameter·in·GIS·functions·and·aggregates·on·Oracle</a></li>106 <li><a·class="reference·internal"·href="#cve-2020-9402-potential-sql-injection-via-tolerance-parameter-in-gis-functions-and-aggregates-on-oracle">CVE-2020-9402:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">tolerance</span></code>·parameter·in·GIS·functions·and·aggregates·on·Oracle</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="2.0.html"113 ····<p·class="topless"><a·href="2.0.html"
113 ··························title="previous·chapter">Django·2.0·release·notes</a></p>114 ··························title="capitolo·precedente">Django·2.0·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="1.11.28.html"118 ····<p·class="topless"><a·href="1.11.28.html"
118 ··························title="next·chapter">Django·1.11.28·release·notes</a></p>119 ··························title="capitolo·successivo">Django·1.11.28·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.44 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/1.11.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.2·release·notes"·href="1.11.2.html"·/>15 ····<link·rel="next"·title="Django·1.11.2·release·notes"·href="1.11.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.4·release·notes"·href="1.11.4.html"·/>16 ····<link·rel="prev"·title="Django·1.11.4·release·notes"·href="1.11.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 142, 37 lines modifiedOffset 143, 37 lines modified
142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
143 </ul>144 </ul>
144 </li>145 </li>
145 </ul>146 </ul>
  
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Previous·topic</h4>149 ····<h4>Argomento·precedente</h4>
149 ····<p·class="topless"><a·href="1.11.4.html"150 ····<p·class="topless"><a·href="1.11.4.html"
150 ··························title="previous·chapter">Django·1.11.4·release·notes</a></p>151 ··························title="capitolo·precedente">Django·1.11.4·release·notes</a></p>
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Next·topic</h4>154 ····<h4>Argomento·successivo</h4>
154 ····<p·class="topless"><a·href="1.11.2.html"155 ····<p·class="topless"><a·href="1.11.2.html"
155 ··························title="next·chapter">Django·1.11.2·release·notes</a></p>156 ··························title="capitolo·successivo">Django·1.11.2·release·notes</a></p>
156 ··</div>157 ··</div>
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../search.html"·method="get">161 ····<form·class="search"·action="../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/1.11.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.3·release·notes"·href="1.11.3.html"·/>15 ····<link·rel="next"·title="Django·1.11.3·release·notes"·href="1.11.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.5·release·notes"·href="1.11.5.html"·/>16 ····<link·rel="prev"·title="Django·1.11.5·release·notes"·href="1.11.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 127, 37 lines modifiedOffset 128, 37 lines modified
127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
128 </ul>129 </ul>
129 </li>130 </li>
130 </ul>131 </ul>
  
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Previous·topic</h4>134 ····<h4>Argomento·precedente</h4>
134 ····<p·class="topless"><a·href="1.11.5.html"135 ····<p·class="topless"><a·href="1.11.5.html"
135 ··························title="previous·chapter">Django·1.11.5·release·notes</a></p>136 ··························title="capitolo·precedente">Django·1.11.5·release·notes</a></p>
136 ··</div>137 ··</div>
137 ··<div>138 ··<div>
138 ····<h4>Next·topic</h4>139 ····<h4>Argomento·successivo</h4>
139 ····<p·class="topless"><a·href="1.11.3.html"140 ····<p·class="topless"><a·href="1.11.3.html"
140 ··························title="next·chapter">Django·1.11.3·release·notes</a></p>141 ··························title="capitolo·successivo">Django·1.11.3·release·notes</a></p>
141 ··</div>142 ··</div>
142 <search·id="searchbox"·style="display:·none"·role="search">143 <search·id="searchbox"·style="display:·none"·role="search">
143 ··<h3·id="searchlabel">Quick·search</h3>144 ··<h3·id="searchlabel">Ricerca·veloce</h3>
144 ····<div·class="searchformwrapper">145 ····<div·class="searchformwrapper">
145 ····<form·class="search"·action="../search.html"·method="get">146 ····<form·class="search"·action="../search.html"·method="get">
146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
147 ······<input·type="submit"·value="Go"·/>148 ······<input·type="submit"·value="Vai"·/>
148 ····</form>149 ····</form>
149 ····</div>150 ····</div>
150 </search>151 </search>
151 <script>document.getElementById('searchbox').style.display·=·"block"</script>152 <script>document.getElementById('searchbox').style.display·=·"block"</script>
152 ········</div>153 ········</div>
153 ······</div>154 ······</div>
154 ··············<h3>Last·update:</h3>155 ··············<h3>Last·update:</h3>
155 ··············<p·class="topless">Sep·03,·2024</p>156 ··············<p·class="topless">set·03,·2024</p>
156 ··········</div>157 ··········</div>
157 ········158 ········
158 ······159 ······
159 ····</div>160 ····</div>
  
160 ····<div·id="ft">161 ····<div·id="ft">
161 ······<div·class="nav">162 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
6.16 KB
./usr/share/doc/python-django-doc/html/releases/1.11.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.4·release·notes"·href="1.11.4.html"·/>15 ····<link·rel="next"·title="Django·1.11.4·release·notes"·href="1.11.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.6·release·notes"·href="1.11.6.html"·/>16 ····<link·rel="prev"·title="Django·1.11.6·release·notes"·href="1.11.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 141, 37 lines modifiedOffset 142, 37 lines modified
141 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
142 </ul>143 </ul>
143 </li>144 </li>
144 </ul>145 </ul>
  
145 ··</div>146 ··</div>
146 ··<div>147 ··<div>
147 ····<h4>Previous·topic</h4>148 ····<h4>Argomento·precedente</h4>
148 ····<p·class="topless"><a·href="1.11.6.html"149 ····<p·class="topless"><a·href="1.11.6.html"
149 ··························title="previous·chapter">Django·1.11.6·release·notes</a></p>150 ··························title="capitolo·precedente">Django·1.11.6·release·notes</a></p>
150 ··</div>151 ··</div>
151 ··<div>152 ··<div>
152 ····<h4>Next·topic</h4>153 ····<h4>Argomento·successivo</h4>
153 ····<p·class="topless"><a·href="1.11.4.html"154 ····<p·class="topless"><a·href="1.11.4.html"
154 ··························title="next·chapter">Django·1.11.4·release·notes</a></p>155 ··························title="capitolo·successivo">Django·1.11.4·release·notes</a></p>
155 ··</div>156 ··</div>
156 <search·id="searchbox"·style="display:·none"·role="search">157 <search·id="searchbox"·style="display:·none"·role="search">
157 ··<h3·id="searchlabel">Quick·search</h3>158 ··<h3·id="searchlabel">Ricerca·veloce</h3>
158 ····<div·class="searchformwrapper">159 ····<div·class="searchformwrapper">
159 ····<form·class="search"·action="../search.html"·method="get">160 ····<form·class="search"·action="../search.html"·method="get">
160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
161 ······<input·type="submit"·value="Go"·/>162 ······<input·type="submit"·value="Vai"·/>
162 ····</form>163 ····</form>
163 ····</div>164 ····</div>
164 </search>165 </search>
165 <script>document.getElementById('searchbox').style.display·=·"block"</script>166 <script>document.getElementById('searchbox').style.display·=·"block"</script>
166 ········</div>167 ········</div>
167 ······</div>168 ······</div>
168 ··············<h3>Last·update:</h3>169 ··············<h3>Last·update:</h3>
169 ··············<p·class="topless">Sep·03,·2024</p>170 ··············<p·class="topless">set·03,·2024</p>
170 ··········</div>171 ··········</div>
171 ········172 ········
172 ······173 ······
173 ····</div>174 ····</div>
  
174 ····<div·id="ft">175 ····<div·id="ft">
175 ······<div·class="nav">176 ······<div·class="nav">
2.4 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/1.11.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.5·release·notes"·href="1.11.5.html"·/>15 ····<link·rel="next"·title="Django·1.11.5·release·notes"·href="1.11.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.7·release·notes"·href="1.11.7.html"·/>16 ····<link·rel="prev"·title="Django·1.11.7·release·notes"·href="1.11.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.11.7.html"120 ····<p·class="topless"><a·href="1.11.7.html"
120 ··························title="previous·chapter">Django·1.11.7·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.11.7·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.11.5.html"125 ····<p·class="topless"><a·href="1.11.5.html"
125 ··························title="next·chapter">Django·1.11.5·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.11.5·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
5.92 KB
./usr/share/doc/python-django-doc/html/releases/1.11.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.6·release·notes"·href="1.11.6.html"·/>15 ····<link·rel="next"·title="Django·1.11.6·release·notes"·href="1.11.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.8·release·notes"·href="1.11.8.html"·/>16 ····<link·rel="prev"·title="Django·1.11.8·release·notes"·href="1.11.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.11.8.html"120 ····<p·class="topless"><a·href="1.11.8.html"
120 ··························title="previous·chapter">Django·1.11.8·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.11.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.11.6.html"125 ····<p·class="topless"><a·href="1.11.6.html"
125 ··························title="next·chapter">Django·1.11.6·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.11.6·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.16 KB
html2text {}
Max HTML report size reached
8.41 KB
./usr/share/doc/python-django-doc/html/releases/1.11.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.7·release·notes"·href="1.11.7.html"·/>15 ····<link·rel="next"·title="Django·1.11.7·release·notes"·href="1.11.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.9·release·notes"·href="1.11.9.html"·/>16 ····<link·rel="prev"·title="Django·1.11.9·release·notes"·href="1.11.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 15 lines modifiedOffset 96, 15 lines modified
95 <code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">values_list()</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28817">#28817</a>).</p></li>96 <code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">values_list()</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28817">#28817</a>).</p></li>
96 <li><p>Fixed·crash·on·SQLite·and·MySQL·when·ordering·by·a·filtered·subquery·that97 <li><p>Fixed·crash·on·SQLite·and·MySQL·when·ordering·by·a·filtered·subquery·that
97 uses·<code·class="docutils·literal·notranslate"><span·class="pre">nulls_first</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">nulls_last</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28848">#28848</a>).</p></li>98 uses·<code·class="docutils·literal·notranslate"><span·class="pre">nulls_first</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">nulls_last</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28848">#28848</a>).</p></li>
98 <li><p>Made·query·lookups·for·<code·class="docutils·literal·notranslate"><span·class="pre">CICharField</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">CIEmailField</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">CITextField</span></code>99 <li><p>Made·query·lookups·for·<code·class="docutils·literal·notranslate"><span·class="pre">CICharField</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">CIEmailField</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">CITextField</span></code>
99 use·a·<code·class="docutils·literal·notranslate"><span·class="pre">citext</span></code>·cast·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28702">#28702</a>).</p></li>100 use·a·<code·class="docutils·literal·notranslate"><span·class="pre">citext</span></code>·cast·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28702">#28702</a>).</p></li>
100 <li><p>Fixed·a·regression·in·caching·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code>·when·the·referenced101 <li><p>Fixed·a·regression·in·caching·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">GenericForeignKey</span></code>·when·the·referenced
101 model·instance·uses·multi-table·inheritance·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28856">#28856</a>).</p></li>102 model·instance·uses·multi-table·inheritance·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28856">#28856</a>).</p></li>
102 <li><p>Fixed·Cannot·change·column·x:·used·in·a·foreign·key·constraint·crash·on103 <li><p>Fixed·«Cannot·change·column·x:·used·in·a·foreign·key·constraint»·crash·on
103 MySQL·with·a·sequence·of·<code·class="docutils·literal·notranslate"><span·class="pre">AlterField</span></code>·and/or·<code·class="docutils·literal·notranslate"><span·class="pre">RenameField</span></code>·operations·in104 MySQL·with·a·sequence·of·<code·class="docutils·literal·notranslate"><span·class="pre">AlterField</span></code>·and/or·<code·class="docutils·literal·notranslate"><span·class="pre">RenameField</span></code>·operations·in
104 a·migration·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28305">#28305</a>).</p></li>105 a·migration·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28305">#28305</a>).</p></li>
105 </ul>106 </ul>
106 </section>107 </section>
107 </section>108 </section>
  
  
Offset 123, 37 lines modifiedOffset 124, 37 lines modified
123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>124 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
124 </ul>125 </ul>
125 </li>126 </li>
126 </ul>127 </ul>
  
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Previous·topic</h4>130 ····<h4>Argomento·precedente</h4>
130 ····<p·class="topless"><a·href="1.11.9.html"131 ····<p·class="topless"><a·href="1.11.9.html"
131 ··························title="previous·chapter">Django·1.11.9·release·notes</a></p>132 ··························title="capitolo·precedente">Django·1.11.9·release·notes</a></p>
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Next·topic</h4>135 ····<h4>Argomento·successivo</h4>
135 ····<p·class="topless"><a·href="1.11.7.html"136 ····<p·class="topless"><a·href="1.11.7.html"
136 ··························title="next·chapter">Django·1.11.7·release·notes</a></p>137 ··························title="capitolo·successivo">Django·1.11.7·release·notes</a></p>
137 ··</div>138 ··</div>
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../search.html"·method="get">142 ····<form·class="search"·action="../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
2.62 KB
html2text {}
Max HTML report size reached
5.85 KB
./usr/share/doc/python-django-doc/html/releases/1.11.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.8·release·notes"·href="1.11.8.html"·/>15 ····<link·rel="next"·title="Django·1.11.8·release·notes"·href="1.11.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.10·release·notes"·href="1.11.10.html"·/>16 ····<link·rel="prev"·title="Django·1.11.10·release·notes"·href="1.11.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="1.11.10.html"122 ····<p·class="topless"><a·href="1.11.10.html"
122 ··························title="previous·chapter">Django·1.11.10·release·notes</a></p>123 ··························title="capitolo·precedente">Django·1.11.10·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="1.11.8.html"127 ····<p·class="topless"><a·href="1.11.8.html"
127 ··························title="next·chapter">Django·1.11.8·release·notes</a></p>128 ··························title="capitolo·successivo">Django·1.11.8·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
9.31 KB
./usr/share/doc/python-django-doc/html/releases/1.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.10.8·release·notes"·href="1.10.8.html"·/>15 ····<link·rel="next"·title="Django·1.10.8·release·notes"·href="1.10.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.11.1·release·notes"·href="1.11.1.html"·/>16 ····<link·rel="prev"·title="Django·1.11.1·release·notes"·href="1.11.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 319, 15 lines modifiedOffset 320, 15 lines modified
319 </section>320 </section>
320 <section·id="s-forms">321 <section·id="s-forms">
321 <span·id="forms"></span><h4>Forms<a·class="headerlink"·href="#forms"·title="Link·to·this·heading">¶</a></h4>322 <span·id="forms"></span><h4>Forms<a·class="headerlink"·href="#forms"·title="Link·to·this·heading">¶</a></h4>
322 <ul·class="simple">323 <ul·class="simple">
323 <li><p>The·new·<code·class="docutils·literal·notranslate"><span·class="pre">empty_value</span></code>·attribute·on·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.CharField"·title="django.forms.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>,324 <li><p>The·new·<code·class="docutils·literal·notranslate"><span·class="pre">empty_value</span></code>·attribute·on·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.CharField"·title="django.forms.CharField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CharField</span></code></a>,
324 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.EmailField"·title="django.forms.EmailField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">EmailField</span></code></a>,·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.RegexField"·title="django.forms.RegexField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RegexField</span></code></a>,325 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.EmailField"·title="django.forms.EmailField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">EmailField</span></code></a>,·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.RegexField"·title="django.forms.RegexField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">RegexField</span></code></a>,
325 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.SlugField"·title="django.forms.SlugField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SlugField</span></code></a>,·and·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.URLField"·title="django.forms.URLField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLField</span></code></a>·allows326 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.SlugField"·title="django.forms.SlugField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SlugField</span></code></a>,·and·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.URLField"·title="django.forms.URLField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLField</span></code></a>·allows
326 specifying·the·Python·value·to·use·to·represent·empty.</p></li>327 specifying·the·Python·value·to·use·to·represent·«empty».</p></li>
327 <li><p>The·new·<a·class="reference·internal"·href="../ref/forms/api.html#django.forms.Form.get_initial_for_field"·title="django.forms.Form.get_initial_for_field"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Form.get_initial_for_field()</span></code></a>·method·returns·initial·data·for·a328 <li><p>The·new·<a·class="reference·internal"·href="../ref/forms/api.html#django.forms.Form.get_initial_for_field"·title="django.forms.Form.get_initial_for_field"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Form.get_initial_for_field()</span></code></a>·method·returns·initial·data·for·a
328 form·field.</p></li>329 form·field.</p></li>
329 </ul>330 </ul>
330 </section>331 </section>
331 <section·id="s-internationalization">332 <section·id="s-internationalization">
332 <span·id="internationalization"></span><h4>Internationalization<a·class="headerlink"·href="#internationalization"·title="Link·to·this·heading">¶</a></h4>333 <span·id="internationalization"></span><h4>Internationalization<a·class="headerlink"·href="#internationalization"·title="Link·to·this·heading">¶</a></h4>
333 <ul·class="simple">334 <ul·class="simple">
Offset 892, 37 lines modifiedOffset 893, 37 lines modified
892 </li>893 </li>
893 </ul>894 </ul>
894 </li>895 </li>
895 </ul>896 </ul>
  
896 ··</div>897 ··</div>
897 ··<div>898 ··<div>
898 ····<h4>Previous·topic</h4>899 ····<h4>Argomento·precedente</h4>
899 ····<p·class="topless"><a·href="1.11.1.html"900 ····<p·class="topless"><a·href="1.11.1.html"
900 ··························title="previous·chapter">Django·1.11.1·release·notes</a></p>901 ··························title="capitolo·precedente">Django·1.11.1·release·notes</a></p>
901 ··</div>902 ··</div>
902 ··<div>903 ··<div>
903 ····<h4>Next·topic</h4>904 ····<h4>Argomento·successivo</h4>
904 ····<p·class="topless"><a·href="1.10.8.html"905 ····<p·class="topless"><a·href="1.10.8.html"
905 ··························title="next·chapter">Django·1.10.8·release·notes</a></p>906 ··························title="capitolo·successivo">Django·1.10.8·release·notes</a></p>
906 ··</div>907 ··</div>
907 <search·id="searchbox"·style="display:·none"·role="search">908 <search·id="searchbox"·style="display:·none"·role="search">
908 ··<h3·id="searchlabel">Quick·search</h3>909 ··<h3·id="searchlabel">Ricerca·veloce</h3>
909 ····<div·class="searchformwrapper">910 ····<div·class="searchformwrapper">
910 ····<form·class="search"·action="../search.html"·method="get">911 ····<form·class="search"·action="../search.html"·method="get">
911 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>912 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
912 ······<input·type="submit"·value="Go"·/>913 ······<input·type="submit"·value="Vai"·/>
913 ····</form>914 ····</form>
914 ····</div>915 ····</div>
915 </search>916 </search>
916 <script>document.getElementById('searchbox').style.display·=·"block"</script>917 <script>document.getElementById('searchbox').style.display·=·"block"</script>
917 ········</div>918 ········</div>
918 ······</div>919 ······</div>
919 ··············<h3>Last·update:</h3>920 ··············<h3>Last·update:</h3>
920 ··············<p·class="topless">Sep·03,·2024</p>921 ··············<p·class="topless">set·03,·2024</p>
921 ··········</div>922 ··········</div>
922 ········923 ········
923 ······924 ······
924 ····</div>925 ····</div>
  
925 ····<div·id="ft">926 ····<div·id="ft">
926 ······<div·class="nav">927 ······<div·class="nav">
3.53 KB
html2text {}
Max HTML report size reached
5.44 KB
./usr/share/doc/python-django-doc/html/releases/1.2.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2·release·notes"·href="1.2.html"·/>15 ····<link·rel="next"·title="Django·1.2·release·notes"·href="1.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.2·release·notes"·href="1.2.2.html"·/>16 ····<link·rel="prev"·title="Django·1.2.2·release·notes"·href="1.2.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 92, 37 lines modifiedOffset 93, 37 lines modified
92 ······93 ······
93 ········94 ········
94 ··········<div·class="yui-b"·id="sidebar">95 ··········<div·class="yui-b"·id="sidebar">
95 ············96 ············
96 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">97 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
97 ········<div·class="sphinxsidebarwrapper">98 ········<div·class="sphinxsidebarwrapper">
98 ··<div>99 ··<div>
99 ····<h4>Previous·topic</h4>100 ····<h4>Argomento·precedente</h4>
100 ····<p·class="topless"><a·href="1.2.2.html"101 ····<p·class="topless"><a·href="1.2.2.html"
101 ··························title="previous·chapter">Django·1.2.2·release·notes</a></p>102 ··························title="capitolo·precedente">Django·1.2.2·release·notes</a></p>
102 ··</div>103 ··</div>
103 ··<div>104 ··<div>
104 ····<h4>Next·topic</h4>105 ····<h4>Argomento·successivo</h4>
105 ····<p·class="topless"><a·href="1.2.html"106 ····<p·class="topless"><a·href="1.2.html"
106 ··························title="next·chapter">Django·1.2·release·notes</a></p>107 ··························title="capitolo·successivo">Django·1.2·release·notes</a></p>
107 ··</div>108 ··</div>
108 <search·id="searchbox"·style="display:·none"·role="search">109 <search·id="searchbox"·style="display:·none"·role="search">
109 ··<h3·id="searchlabel">Quick·search</h3>110 ··<h3·id="searchlabel">Ricerca·veloce</h3>
110 ····<div·class="searchformwrapper">111 ····<div·class="searchformwrapper">
111 ····<form·class="search"·action="../search.html"·method="get">112 ····<form·class="search"·action="../search.html"·method="get">
112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>113 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
113 ······<input·type="submit"·value="Go"·/>114 ······<input·type="submit"·value="Vai"·/>
114 ····</form>115 ····</form>
115 ····</div>116 ····</div>
116 </search>117 </search>
117 <script>document.getElementById('searchbox').style.display·=·"block"</script>118 <script>document.getElementById('searchbox').style.display·=·"block"</script>
118 ········</div>119 ········</div>
119 ······</div>120 ······</div>
120 ··············<h3>Last·update:</h3>121 ··············<h3>Last·update:</h3>
121 ··············<p·class="topless">Sep·03,·2024</p>122 ··············<p·class="topless">set·03,·2024</p>
122 ··········</div>123 ··········</div>
123 ········124 ········
124 ······125 ······
125 ····</div>126 ····</div>
  
126 ····<div·id="ft">127 ····<div·id="ft">
127 ······<div·class="nav">128 ······<div·class="nav">
1.62 KB
html2text {}
Max HTML report size reached
7.51 KB
./usr/share/doc/python-django-doc/html/releases/1.2.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.1·release·notes"·href="1.2.1.html"·/>15 ····<link·rel="next"·title="Django·1.2.1·release·notes"·href="1.2.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.3·release·notes"·href="1.2.3.html"·/>16 ····<link·rel="prev"·title="Django·1.2.3·release·notes"·href="1.2.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.2.2">79 ··········<div·class="yui-g"·id="releases-1.2.2">
79 ············80 ············
80 ··<section·id="s-django-1-2-2-release-notes">81 ··<section·id="s-django-1-2-2-release-notes">
81 <span·id="django-1-2-2-release-notes"></span><h1>Django·1.2.2·release·notes<a·class="headerlink"·href="#django-1-2-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-2-2-release-notes"></span><h1>Django·1.2.2·release·notes<a·class="headerlink"·href="#django-1-2-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.2.2!</p>83 <p>Welcome·to·Django·1.2.2!</p>
83 <p>This·is·the·second·bugfix·release·in·the·Django·1.2·series,84 <p>This·is·the·second·«bugfix»·release·in·the·Django·1.2·series,
84 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>
85 <p>Django·1.2.2·maintains·backwards·compatibility·with·Django86 <p>Django·1.2.2·maintains·backwards·compatibility·with·Django
86 1.2.1,·but·contain·a·number·of·fixes·and·other87 1.2.1,·but·contain·a·number·of·fixes·and·other
87 improvements.·Django·1.2.2·is·a·recommended·upgrade·for·any88 improvements.·Django·1.2.2·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>91 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>
Offset 118, 37 lines modifiedOffset 119, 37 lines modified
118 <li><a·class="reference·internal"·href="#one-new-feature">One·new·feature</a></li>119 <li><a·class="reference·internal"·href="#one-new-feature">One·new·feature</a></li>
119 </ul>120 </ul>
120 </li>121 </li>
121 </ul>122 </ul>
  
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="1.2.3.html"126 ····<p·class="topless"><a·href="1.2.3.html"
126 ··························title="previous·chapter">Django·1.2.3·release·notes</a></p>127 ··························title="capitolo·precedente">Django·1.2.3·release·notes</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="1.2.1.html"131 ····<p·class="topless"><a·href="1.2.1.html"
131 ··························title="next·chapter">Django·1.2.1·release·notes</a></p>132 ··························title="capitolo·successivo">Django·1.2.1·release·notes</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../search.html"·method="get">137 ····<form·class="search"·action="../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.71 KB
html2text {}
Max HTML report size reached
5.73 KB
./usr/share/doc/python-django-doc/html/releases/1.2.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.2·release·notes"·href="1.2.2.html"·/>15 ····<link·rel="next"·title="Django·1.2.2·release·notes"·href="1.2.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.4·release·notes"·href="1.2.4.html"·/>16 ····<link·rel="prev"·title="Django·1.2.4·release·notes"·href="1.2.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 99, 37 lines modifiedOffset 100, 37 lines modified
99 ······100 ······
100 ········101 ········
101 ··········<div·class="yui-b"·id="sidebar">102 ··········<div·class="yui-b"·id="sidebar">
102 ············103 ············
103 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">104 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
104 ········<div·class="sphinxsidebarwrapper">105 ········<div·class="sphinxsidebarwrapper">
105 ··<div>106 ··<div>
106 ····<h4>Previous·topic</h4>107 ····<h4>Argomento·precedente</h4>
107 ····<p·class="topless"><a·href="1.2.4.html"108 ····<p·class="topless"><a·href="1.2.4.html"
108 ··························title="previous·chapter">Django·1.2.4·release·notes</a></p>109 ··························title="capitolo·precedente">Django·1.2.4·release·notes</a></p>
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Next·topic</h4>112 ····<h4>Argomento·successivo</h4>
112 ····<p·class="topless"><a·href="1.2.2.html"113 ····<p·class="topless"><a·href="1.2.2.html"
113 ··························title="next·chapter">Django·1.2.2·release·notes</a></p>114 ··························title="capitolo·successivo">Django·1.2.2·release·notes</a></p>
114 ··</div>115 ··</div>
115 <search·id="searchbox"·style="display:·none"·role="search">116 <search·id="searchbox"·style="display:·none"·role="search">
116 ··<h3·id="searchlabel">Quick·search</h3>117 ··<h3·id="searchlabel">Ricerca·veloce</h3>
117 ····<div·class="searchformwrapper">118 ····<div·class="searchformwrapper">
118 ····<form·class="search"·action="../search.html"·method="get">119 ····<form·class="search"·action="../search.html"·method="get">
119 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>120 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
120 ······<input·type="submit"·value="Go"·/>121 ······<input·type="submit"·value="Vai"·/>
121 ····</form>122 ····</form>
122 ····</div>123 ····</div>
123 </search>124 </search>
124 <script>document.getElementById('searchbox').style.display·=·"block"</script>125 <script>document.getElementById('searchbox').style.display·=·"block"</script>
125 ········</div>126 ········</div>
126 ······</div>127 ······</div>
127 ··············<h3>Last·update:</h3>128 ··············<h3>Last·update:</h3>
128 ··············<p·class="topless">Sep·03,·2024</p>129 ··············<p·class="topless">set·03,·2024</p>
129 ··········</div>130 ··········</div>
130 ········131 ········
131 ······132 ······
132 ····</div>133 ····</div>
  
133 ····<div·id="ft">134 ····<div·id="ft">
134 ······<div·class="nav">135 ······<div·class="nav">
1.91 KB
html2text {}
Max HTML report size reached
9.77 KB
./usr/share/doc/python-django-doc/html/releases/1.2.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.3·release·notes"·href="1.2.3.html"·/>15 ····<link·rel="next"·title="Django·1.2.3·release·notes"·href="1.2.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.5·release·notes"·href="1.2.5.html"·/>16 ····<link·rel="prev"·title="Django·1.2.5·release·notes"·href="1.2.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.2.4">79 ··········<div·class="yui-g"·id="releases-1.2.4">
79 ············80 ············
80 ··<section·id="s-django-1-2-4-release-notes">81 ··<section·id="s-django-1-2-4-release-notes">
81 <span·id="django-1-2-4-release-notes"></span><h1>Django·1.2.4·release·notes<a·class="headerlink"·href="#django-1-2-4-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-2-4-release-notes"></span><h1>Django·1.2.4·release·notes<a·class="headerlink"·href="#django-1-2-4-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.2.4!</p>83 <p>Welcome·to·Django·1.2.4!</p>
83 <p>This·is·the·fourth·bugfix·release·in·the·Django·1.2·series,84 <p>This·is·the·fourth·«bugfix»·release·in·the·Django·1.2·series,
84 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>
85 <p>With·one·exception,·Django·1.2.4·maintains·backwards·compatibility86 <p>With·one·exception,·Django·1.2.4·maintains·backwards·compatibility
86 with·Django·1.2.3.·It·also·contains·a·number·of·fixes·and·other87 with·Django·1.2.3.·It·also·contains·a·number·of·fixes·and·other
87 improvements.·Django·1.2.4·is·a·recommended·upgrade·for·any88 improvements.·Django·1.2.4·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>91 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
104 structure·and·the·format·of·these·lookup·arguments·to·invent·useful105 structure·and·the·format·of·these·lookup·arguments·to·invent·useful
105 new·filters·on·the·fly·by·manipulating·the·querystring.</p>106 new·filters·on·the·fly·by·manipulating·the·querystring.</p>
106 <p>However,·it·has·been·demonstrated·that·this·can·be·abused·to·gain107 <p>However,·it·has·been·demonstrated·that·this·can·be·abused·to·gain
107 access·to·information·outside·of·an·admin·user’s·permissions;·for108 access·to·information·outside·of·an·admin·user’s·permissions;·for
108 example,·an·attacker·with·access·to·the·admin·and·sufficient·knowledge109 example,·an·attacker·with·access·to·the·admin·and·sufficient·knowledge
109 of·model·structure·and·relations·could·construct·query·strings·which·110 of·model·structure·and·relations·could·construct·query·strings·which·
110 with·repeated·use·of·regular-expression·lookups·supported·by·the111 with·repeated·use·of·regular-expression·lookups·supported·by·the
111 Django·database·API··expose·sensitive·information·such·as·users112 Django·database·API··expose·sensitive·information·such·as·users
112 password·hashes.</p>113 password·hashes.</p>
113 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>·will·now·validate·that114 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code>·will·now·validate·that
114 querystring·lookup·arguments·either·specify·only·fields·on·the·model115 querystring·lookup·arguments·either·specify·only·fields·on·the·model
115 being·viewed,·or·cross·relations·which·have·been·explicitly116 being·viewed,·or·cross·relations·which·have·been·explicitly
116 allowed·by·the·application·developer·using·the·preexisting117 allowed·by·the·application·developer·using·the·preexisting
117 mechanism·mentioned·above.·This·is·backwards-incompatible·for·any118 mechanism·mentioned·above.·This·is·backwards-incompatible·for·any
118 users·relying·on·the·prior·ability·to·insert·arbitrary·lookups.</p>119 users·relying·on·the·prior·ability·to·insert·arbitrary·lookups.</p>
Offset 171, 37 lines modifiedOffset 172, 37 lines modified
171 <li><a·class="reference·internal"·href="#geodjango">GeoDjango</a></li>172 <li><a·class="reference·internal"·href="#geodjango">GeoDjango</a></li>
172 </ul>173 </ul>
173 </li>174 </li>
174 </ul>175 </ul>
  
175 ··</div>176 ··</div>
176 ··<div>177 ··<div>
177 ····<h4>Previous·topic</h4>178 ····<h4>Argomento·precedente</h4>
178 ····<p·class="topless"><a·href="1.2.5.html"179 ····<p·class="topless"><a·href="1.2.5.html"
179 ··························title="previous·chapter">Django·1.2.5·release·notes</a></p>180 ··························title="capitolo·precedente">Django·1.2.5·release·notes</a></p>
180 ··</div>181 ··</div>
181 ··<div>182 ··<div>
182 ····<h4>Next·topic</h4>183 ····<h4>Argomento·successivo</h4>
183 ····<p·class="topless"><a·href="1.2.3.html"184 ····<p·class="topless"><a·href="1.2.3.html"
184 ··························title="next·chapter">Django·1.2.3·release·notes</a></p>185 ··························title="capitolo·successivo">Django·1.2.3·release·notes</a></p>
185 ··</div>186 ··</div>
186 <search·id="searchbox"·style="display:·none"·role="search">187 <search·id="searchbox"·style="display:·none"·role="search">
187 ··<h3·id="searchlabel">Quick·search</h3>188 ··<h3·id="searchlabel">Ricerca·veloce</h3>
188 ····<div·class="searchformwrapper">189 ····<div·class="searchformwrapper">
189 ····<form·class="search"·action="../search.html"·method="get">190 ····<form·class="search"·action="../search.html"·method="get">
190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>191 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
191 ······<input·type="submit"·value="Go"·/>192 ······<input·type="submit"·value="Vai"·/>
192 ····</form>193 ····</form>
193 ····</div>194 ····</div>
194 </search>195 </search>
195 <script>document.getElementById('searchbox').style.display·=·"block"</script>196 <script>document.getElementById('searchbox').style.display·=·"block"</script>
196 ········</div>197 ········</div>
197 ······</div>198 ······</div>
198 ··············<h3>Last·update:</h3>199 ··············<h3>Last·update:</h3>
199 ··············<p·class="topless">Sep·03,·2024</p>200 ··············<p·class="topless">set·03,·2024</p>
200 ··········</div>201 ··········</div>
201 ········202 ········
202 ······203 ······
203 ····</div>204 ····</div>
  
204 ····<div·id="ft">205 ····<div·id="ft">
205 ······<div·class="nav">206 ······<div·class="nav">
3.86 KB
html2text {}
Max HTML report size reached
7.67 KB
./usr/share/doc/python-django-doc/html/releases/1.2.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.4·release·notes"·href="1.2.4.html"·/>15 ····<link·rel="next"·title="Django·1.2.4·release·notes"·href="1.2.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.6·release·notes"·href="1.2.6.html"·/>16 ····<link·rel="prev"·title="Django·1.2.6·release·notes"·href="1.2.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.2.5">79 ··········<div·class="yui-g"·id="releases-1.2.5">
79 ············80 ············
80 ··<section·id="s-django-1-2-5-release-notes">81 ··<section·id="s-django-1-2-5-release-notes">
81 <span·id="django-1-2-5-release-notes"></span><h1>Django·1.2.5·release·notes<a·class="headerlink"·href="#django-1-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-2-5-release-notes"></span><h1>Django·1.2.5·release·notes<a·class="headerlink"·href="#django-1-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Welcome·to·Django·1.2.5!</p>83 <p>Welcome·to·Django·1.2.5!</p>
83 <p>This·is·the·fifth·bugfix·release·in·the·Django·1.2·series,84 <p>This·is·the·fifth·«bugfix»·release·in·the·Django·1.2·series,
84 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>85 improving·the·stability·and·performance·of·the·Django·1.2·codebase.</p>
85 <p>With·four·exceptions,·Django·1.2.5·maintains·backwards·compatibility86 <p>With·four·exceptions,·Django·1.2.5·maintains·backwards·compatibility
86 with·Django·1.2.4.·It·also·contains·a·number·of·fixes·and·other87 with·Django·1.2.4.·It·also·contains·a·number·of·fixes·and·other
87 improvements.·Django·1.2.5·is·a·recommended·upgrade·for·any88 improvements.·Django·1.2.5·is·a·recommended·upgrade·for·any
88 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>89 development·or·deployment·currently·using·or·targeting·Django·1.2.</p>
89 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and90 <p>For·full·details·on·the·new·features,·backwards·incompatibilities,·and
90 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>91 deprecated·features·in·the·1.2·branch,·see·the·<a·class="reference·internal"·href="1.2.html"><span·class="doc">Django·1.2·release·notes</span></a>.</p>
Offset 203, 37 lines modifiedOffset 204, 37 lines modified
203 </li>204 </li>
204 </ul>205 </ul>
205 </li>206 </li>
206 </ul>207 </ul>
  
207 ··</div>208 ··</div>
208 ··<div>209 ··<div>
209 ····<h4>Previous·topic</h4>210 ····<h4>Argomento·precedente</h4>
210 ····<p·class="topless"><a·href="1.2.6.html"211 ····<p·class="topless"><a·href="1.2.6.html"
211 ··························title="previous·chapter">Django·1.2.6·release·notes</a></p>212 ··························title="capitolo·precedente">Django·1.2.6·release·notes</a></p>
212 ··</div>213 ··</div>
213 ··<div>214 ··<div>
214 ····<h4>Next·topic</h4>215 ····<h4>Argomento·successivo</h4>
215 ····<p·class="topless"><a·href="1.2.4.html"216 ····<p·class="topless"><a·href="1.2.4.html"
216 ··························title="next·chapter">Django·1.2.4·release·notes</a></p>217 ··························title="capitolo·successivo">Django·1.2.4·release·notes</a></p>
217 ··</div>218 ··</div>
218 <search·id="searchbox"·style="display:·none"·role="search">219 <search·id="searchbox"·style="display:·none"·role="search">
219 ··<h3·id="searchlabel">Quick·search</h3>220 ··<h3·id="searchlabel">Ricerca·veloce</h3>
220 ····<div·class="searchformwrapper">221 ····<div·class="searchformwrapper">
221 ····<form·class="search"·action="../search.html"·method="get">222 ····<form·class="search"·action="../search.html"·method="get">
222 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>223 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
223 ······<input·type="submit"·value="Go"·/>224 ······<input·type="submit"·value="Vai"·/>
224 ····</form>225 ····</form>
225 ····</div>226 ····</div>
226 </search>227 </search>
227 <script>document.getElementById('searchbox').style.display·=·"block"</script>228 <script>document.getElementById('searchbox').style.display·=·"block"</script>
228 ········</div>229 ········</div>
229 ······</div>230 ······</div>
230 ··············<h3>Last·update:</h3>231 ··············<h3>Last·update:</h3>
231 ··············<p·class="topless">Sep·03,·2024</p>232 ··············<p·class="topless">set·03,·2024</p>
232 ··········</div>233 ··········</div>
233 ········234 ········
234 ······235 ······
235 ····</div>236 ····</div>
  
236 ····<div·id="ft">237 ····<div·id="ft">
237 ······<div·class="nav">238 ······<div·class="nav">
2.92 KB
html2text {}
Max HTML report size reached
5.63 KB
./usr/share/doc/python-django-doc/html/releases/1.2.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.5·release·notes"·href="1.2.5.html"·/>15 ····<link·rel="next"·title="Django·1.2.5·release·notes"·href="1.2.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.7·release·notes"·href="1.2.7.html"·/>16 ····<link·rel="prev"·title="Django·1.2.7·release·notes"·href="1.2.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 37 lines modifiedOffset 96, 37 lines modified
95 ······96 ······
96 ········97 ········
97 ··········<div·class="yui-b"·id="sidebar">98 ··········<div·class="yui-b"·id="sidebar">
98 ············99 ············
99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
100 ········<div·class="sphinxsidebarwrapper">101 ········<div·class="sphinxsidebarwrapper">
101 ··<div>102 ··<div>
102 ····<h4>Previous·topic</h4>103 ····<h4>Argomento·precedente</h4>
103 ····<p·class="topless"><a·href="1.2.7.html"104 ····<p·class="topless"><a·href="1.2.7.html"
104 ··························title="previous·chapter">Django·1.2.7·release·notes</a></p>105 ··························title="capitolo·precedente">Django·1.2.7·release·notes</a></p>
105 ··</div>106 ··</div>
106 ··<div>107 ··<div>
107 ····<h4>Next·topic</h4>108 ····<h4>Argomento·successivo</h4>
108 ····<p·class="topless"><a·href="1.2.5.html"109 ····<p·class="topless"><a·href="1.2.5.html"
109 ··························title="next·chapter">Django·1.2.5·release·notes</a></p>110 ··························title="capitolo·successivo">Django·1.2.5·release·notes</a></p>
110 ··</div>111 ··</div>
111 <search·id="searchbox"·style="display:·none"·role="search">112 <search·id="searchbox"·style="display:·none"·role="search">
112 ··<h3·id="searchlabel">Quick·search</h3>113 ··<h3·id="searchlabel">Ricerca·veloce</h3>
113 ····<div·class="searchformwrapper">114 ····<div·class="searchformwrapper">
114 ····<form·class="search"·action="../search.html"·method="get">115 ····<form·class="search"·action="../search.html"·method="get">
115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>116 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
116 ······<input·type="submit"·value="Go"·/>117 ······<input·type="submit"·value="Vai"·/>
117 ····</form>118 ····</form>
118 ····</div>119 ····</div>
119 </search>120 </search>
120 <script>document.getElementById('searchbox').style.display·=·"block"</script>121 <script>document.getElementById('searchbox').style.display·=·"block"</script>
121 ········</div>122 ········</div>
122 ······</div>123 ······</div>
123 ··············<h3>Last·update:</h3>124 ··············<h3>Last·update:</h3>
124 ··············<p·class="topless">Sep·03,·2024</p>125 ··············<p·class="topless">set·03,·2024</p>
125 ··········</div>126 ··········</div>
126 ········127 ········
127 ······128 ······
128 ····</div>129 ····</div>
  
129 ····<div·id="ft">130 ····<div·id="ft">
130 ······<div·class="nav">131 ······<div·class="nav">
1.8 KB
html2text {}
Max HTML report size reached
5.6 KB
./usr/share/doc/python-django-doc/html/releases/1.2.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.6·release·notes"·href="1.2.6.html"·/>15 ····<link·rel="next"·title="Django·1.2.6·release·notes"·href="1.2.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.3·release·notes"·href="1.3.html"·/>16 ····<link·rel="prev"·title="Django·1.3·release·notes"·href="1.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 37 lines modifiedOffset 96, 37 lines modified
95 ······96 ······
96 ········97 ········
97 ··········<div·class="yui-b"·id="sidebar">98 ··········<div·class="yui-b"·id="sidebar">
98 ············99 ············
99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
100 ········<div·class="sphinxsidebarwrapper">101 ········<div·class="sphinxsidebarwrapper">
101 ··<div>102 ··<div>
102 ····<h4>Previous·topic</h4>103 ····<h4>Argomento·precedente</h4>
103 ····<p·class="topless"><a·href="1.3.html"104 ····<p·class="topless"><a·href="1.3.html"
104 ··························title="previous·chapter">Django·1.3·release·notes</a></p>105 ··························title="capitolo·precedente">Django·1.3·release·notes</a></p>
105 ··</div>106 ··</div>
106 ··<div>107 ··<div>
107 ····<h4>Next·topic</h4>108 ····<h4>Argomento·successivo</h4>
108 ····<p·class="topless"><a·href="1.2.6.html"109 ····<p·class="topless"><a·href="1.2.6.html"
109 ··························title="next·chapter">Django·1.2.6·release·notes</a></p>110 ··························title="capitolo·successivo">Django·1.2.6·release·notes</a></p>
110 ··</div>111 ··</div>
111 <search·id="searchbox"·style="display:·none"·role="search">112 <search·id="searchbox"·style="display:·none"·role="search">
112 ··<h3·id="searchlabel">Quick·search</h3>113 ··<h3·id="searchlabel">Ricerca·veloce</h3>
113 ····<div·class="searchformwrapper">114 ····<div·class="searchformwrapper">
114 ····<form·class="search"·action="../search.html"·method="get">115 ····<form·class="search"·action="../search.html"·method="get">
115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>116 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
116 ······<input·type="submit"·value="Go"·/>117 ······<input·type="submit"·value="Vai"·/>
117 ····</form>118 ····</form>
118 ····</div>119 ····</div>
119 </search>120 </search>
120 <script>document.getElementById('searchbox').style.display·=·"block"</script>121 <script>document.getElementById('searchbox').style.display·=·"block"</script>
121 ········</div>122 ········</div>
122 ······</div>123 ······</div>
123 ··············<h3>Last·update:</h3>124 ··············<h3>Last·update:</h3>
124 ··············<p·class="topless">Sep·03,·2024</p>125 ··············<p·class="topless">set·03,·2024</p>
125 ··········</div>126 ··········</div>
126 ········127 ········
127 ······128 ······
128 ····</div>129 ····</div>
  
129 ····<div·id="ft">130 ····<div·id="ft">
130 ······<div·class="nav">131 ······<div·class="nav">
1.79 KB
html2text {}
Max HTML report size reached
39.8 KB
./usr/share/doc/python-django-doc/html/releases/1.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.1.4·release·notes"·href="1.1.4.html"·/>15 ····<link·rel="next"·title="Django·1.1.4·release·notes"·href="1.1.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.2.1·release·notes"·href="1.2.1.html"·/>16 ····<link·rel="prev"·title="Django·1.2.1·release·notes"·href="1.2.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 26 lines modifiedOffset 89, 26 lines modified
88 <section·id="s-overview">89 <section·id="s-overview">
89 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>90 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>
90 <p>Django·1.2·introduces·several·large,·important·new·features,·including:</p>91 <p>Django·1.2·introduces·several·large,·important·new·features,·including:</p>
91 <ul·class="simple">92 <ul·class="simple">
92 <li><p>Support·for·<a·class="reference·internal"·href="#support-for-multiple-databases"><span·class="std·std-ref">multiple·database·connections</span></a>·in·a·single·Django·instance.</p></li>93 <li><p>Support·for·<a·class="reference·internal"·href="#support-for-multiple-databases"><span·class="std·std-ref">multiple·database·connections</span></a>·in·a·single·Django·instance.</p></li>
93 <li><p><a·class="reference·internal"·href="#model-validation">Model·validation</a>·inspired·by·Django’s·form·validation.</p></li>94 <li><p><a·class="reference·internal"·href="#model-validation">Model·validation</a>·inspired·by·Django’s·form·validation.</p></li>
94 <li><p>Vastly·<a·class="reference·internal"·href="#improved-csrf-protection"><span·class="std·std-ref">improved·protection·against·Cross-Site·Request·Forgery</span></a>·(CSRF).</p></li>95 <li><p>Vastly·<a·class="reference·internal"·href="#improved-csrf-protection"><span·class="std·std-ref">improved·protection·against·Cross-Site·Request·Forgery</span></a>·(CSRF).</p></li>
95 <li><p>A·new·<a·class="reference·internal"·href="#messages-framework"><span·class="std·std-ref">user·messages·framework</span></a>·with·support·for96 <li><p>A·new·<a·class="reference·internal"·href="#messages-framework"><span·class="std·std-ref">user·«messages»·framework</span></a>·with·support·for
96 cookie-·and·session-based·message·for·both·anonymous·and·authenticated·users.</p></li>97 cookie-·and·session-based·message·for·both·anonymous·and·authenticated·users.</p></li>
97 <li><p>Hooks·for·<a·class="reference·internal"·href="#object-level-permissions">object-level·permissions</a>,·<a·class="reference·internal"·href="#permissions-for-anonymous-users">permissions·for·anonymous·users</a>,98 <li><p>Hooks·for·<a·class="reference·internal"·href="#object-level-permissions">object-level·permissions</a>,·<a·class="reference·internal"·href="#permissions-for-anonymous-users">permissions·for·anonymous·users</a>,
98 and·<a·class="reference·internal"·href="#relaxed-requirements-for-usernames"><span·class="std·std-ref">more·flexible·username·requirements</span></a>.</p></li>99 and·<a·class="reference·internal"·href="#relaxed-requirements-for-usernames"><span·class="std·std-ref">more·flexible·username·requirements</span></a>.</p></li>
99 <li><p>Customization·of·email·sending·via·<a·class="reference·internal"·href="#email-backends">email·backends</a>.</p></li>100 <li><p>Customization·of·email·sending·via·<a·class="reference·internal"·href="#email-backends">email·backends</a>.</p></li>
100 <li><p>New·<a·class="reference·internal"·href="#new-in-1-2-smart-if"><span·class="std·std-ref">smart·if·template·tag</span></a>·which·supports101 <li><p>New·<a·class="reference·internal"·href="#new-in-1-2-smart-if"><span·class="std·std-ref">«smart»·if·template·tag</span></a>·which·supports
101 comparison·operators.</p></li>102 comparison·operators.</p></li>
102 </ul>103 </ul>
103 <p>These·are·just·the·highlights;·full·details·and·a·complete·list·of·features104 <p>These·are·just·the·highlights;·full·details·and·a·complete·list·of·features
104 <a·class="reference·internal"·href="#whats-new-1-2"><span·class="std·std-ref">may·be·found·below</span></a>.</p>105 <a·class="reference·internal"·href="#whats-new-1-2"><span·class="std·std-ref">may·be·found·below</span></a>.</p>
105 <div·class="admonition·seealso">106 <div·class="admonition·seealso">
106 <p·class="admonition-title">See·also</p>107 <p·class="admonition-title">Vedi·anche</p>
107 <p><a·class="reference·external"·href="https://github.com/djangoadvent/djangoadvent-articles">Django·Advent</a>·covered·the·release·of·Django·1.2·with·a·series·of108 <p><a·class="reference·external"·href="https://github.com/djangoadvent/djangoadvent-articles">Django·Advent</a>·covered·the·release·of·Django·1.2·with·a·series·of
108 articles·and·tutorials·that·cover·some·of·the·new·features·in·depth.</p>109 articles·and·tutorials·that·cover·some·of·the·new·features·in·depth.</p>
109 </div>110 </div>
110 <p>Wherever·possible·these·features·have·been·introduced·in·a·backwards-compatible111 <p>Wherever·possible·these·features·have·been·introduced·in·a·backwards-compatible
111 manner·per·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·API·stability·policy</span></a>·policy.</p>112 manner·per·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·API·stability·policy</span></a>·policy.</p>
112 <p>However,·a·handful·of·features·<em>have</em>·changed·in·ways·that,·for·some·users,·will·be113 <p>However,·a·handful·of·features·<em>have</em>·changed·in·ways·that,·for·some·users,·will·be
113 backwards-incompatible.·The·big·changes·are:</p>114 backwards-incompatible.·The·big·changes·are:</p>
Offset 178, 16 lines modifiedOffset 179, 16 lines modified
178 </section>179 </section>
179 <section·id="s-improved-csrf-protection">180 <section·id="s-improved-csrf-protection">
180 <span·id="s-id2"></span><span·id="improved-csrf-protection"></span><span·id="id2"></span><h3>Improved·CSRF·protection<a·class="headerlink"·href="#improved-csrf-protection"·title="Link·to·this·heading">¶</a></h3>181 <span·id="s-id2"></span><span·id="improved-csrf-protection"></span><span·id="id2"></span><h3>Improved·CSRF·protection<a·class="headerlink"·href="#improved-csrf-protection"·title="Link·to·this·heading">¶</a></h3>
181 <p>Django·now·has·much·improved·protection·against·<a·class="reference·internal"·href="../ref/csrf.html"><span·class="doc">Cross-Site·Request·Forgery182 <p>Django·now·has·much·improved·protection·against·<a·class="reference·internal"·href="../ref/csrf.html"><span·class="doc">Cross-Site·Request·Forgery
182 (CSRF)·attacks</span></a>.·This·type·of·attack·occurs·when·a·malicious183 (CSRF)·attacks</span></a>.·This·type·of·attack·occurs·when·a·malicious
183 website·contains·a·link,·a·form·button·or·some·JavaScript·that·is·intended·to184 website·contains·a·link,·a·form·button·or·some·JavaScript·that·is·intended·to
184 perform·some·action·on·your·website,·using·the·credentials·of·a·logged-in·user185 perform·some·action·on·your·website,·using·the·credentials·of·a·logged-in·user
185 who·visits·the·malicious·site·in·their·browser.·A·related·type·of·attack,·login186 who·visits·the·malicious·site·in·their·browser.·A·related·type·of·attack,·«login
186 CSRF,·where·an·attacking·site·tricks·a·user’s·browser·into·logging·into·a·site187 CSRF,»·where·an·attacking·site·tricks·a·user’s·browser·into·logging·into·a·site
187 with·someone·else’s·credentials,·is·also·covered.</p>188 with·someone·else’s·credentials,·is·also·covered.</p>
188 </section>189 </section>
189 <section·id="s-messages-framework">190 <section·id="s-messages-framework">
190 <span·id="s-id3"></span><span·id="messages-framework"></span><span·id="id3"></span><h3>Messages·framework<a·class="headerlink"·href="#messages-framework"·title="Link·to·this·heading">¶</a></h3>191 <span·id="s-id3"></span><span·id="messages-framework"></span><span·id="id3"></span><h3>Messages·framework<a·class="headerlink"·href="#messages-framework"·title="Link·to·this·heading">¶</a></h3>
191 <p>Django·now·includes·a·robust·and·configurable·<a·class="reference·internal"·href="../ref/contrib/messages.html"><span·class="doc">messages·framework</span></a>·with·built-in·support·for·cookie-·and·session-based192 <p>Django·now·includes·a·robust·and·configurable·<a·class="reference·internal"·href="../ref/contrib/messages.html"><span·class="doc">messages·framework</span></a>·with·built-in·support·for·cookie-·and·session-based
192 messaging,·for·both·anonymous·and·authenticated·clients.·The·messages·framework193 messaging,·for·both·anonymous·and·authenticated·clients.·The·messages·framework
193 replaces·the·deprecated·user·message·API·and·allows·you·to·temporarily·store194 replaces·the·deprecated·user·message·API·and·allows·you·to·temporarily·store
Offset 228, 15 lines modifiedOffset 229, 15 lines modified
228 backend·implementations·that·allow·you·to·send·email·to·a229 backend·implementations·that·allow·you·to·send·email·to·a
229 <a·class="reference·internal"·href="../topics/email.html#topic-email-file-backend"><span·class="std·std-ref">file</span></a>,·to·the230 <a·class="reference·internal"·href="../topics/email.html#topic-email-file-backend"><span·class="std·std-ref">file</span></a>,·to·the
230 <a·class="reference·internal"·href="../topics/email.html#topic-email-console-backend"><span·class="std·std-ref">console</span></a>,·or·to231 <a·class="reference·internal"·href="../topics/email.html#topic-email-console-backend"><span·class="std·std-ref">console</span></a>,·or·to
231 <a·class="reference·internal"·href="../topics/email.html#topic-email-memory-backend"><span·class="std·std-ref">memory</span></a>.·You·can·even·configure·all232 <a·class="reference·internal"·href="../topics/email.html#topic-email-memory-backend"><span·class="std·std-ref">memory</span></a>.·You·can·even·configure·all
232 email·to·be·<a·class="reference·internal"·href="../topics/email.html#topic-email-dummy-backend"><span·class="std·std-ref">thrown·away</span></a>.</p>233 email·to·be·<a·class="reference·internal"·href="../topics/email.html#topic-email-dummy-backend"><span·class="std·std-ref">thrown·away</span></a>.</p>
233 </section>234 </section>
234 <section·id="s-smart-if-tag">235 <section·id="s-smart-if-tag">
235 <span·id="s-new-in-1-2-smart-if"></span><span·id="smart-if-tag"></span><span·id="new-in-1-2-smart-if"></span><h3>Smart·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-if"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·tag<a·class="headerlink"·href="#smart-if-tag"·title="Link·to·this·heading">¶</a></h3>236 <span·id="s-new-in-1-2-smart-if"></span><span·id="smart-if-tag"></span><span·id="new-in-1-2-smart-if"></span><h3>«Smart»·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-if"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·tag<a·class="headerlink"·href="#smart-if-tag"·title="Link·to·this·heading">¶</a></h3>
236 <p>The·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-if"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·tag·has·been·upgraded·to·be·much·more·powerful.·First,·we’ve237 <p>The·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-if"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">if</span></code></a>·tag·has·been·upgraded·to·be·much·more·powerful.·First,·we’ve
237 added·support·for·comparison·operators.·No·longer·will·you·have·to·type:</p>238 added·support·for·comparison·operators.·No·longer·will·you·have·to·type:</p>
238 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">ifnotequal</span>·<span·class="nv">a</span>·<span·class="nv">b</span>·<span·class="cp">%}</span>239 <div·class="highlight-html+django·notranslate"><div·class="highlight"><pre><span></span><span·class="cp">{%</span>·<span·class="k">ifnotequal</span>·<span·class="nv">a</span>·<span·class="nv">b</span>·<span·class="cp">%}</span>
239 ·...240 ·...
240 <span·class="cp">{%</span>·<span·class="k">endifnotequal</span>·<span·class="cp">%}</span>241 <span·class="cp">{%</span>·<span·class="k">endifnotequal</span>·<span·class="cp">%}</span>
241 </pre></div>242 </pre></div>
242 </div>243 </div>
Offset 540, 21 lines modifiedOffset 541, 21 lines modified
540 is·thread·safe,·this·leakage·no·longer·occurs.</p>541 is·thread·safe,·this·leakage·no·longer·occurs.</p>
541 </section>542 </section>
542 <section·id="s-user-passes-test-login-required-and-permission-required">543 <section·id="s-user-passes-test-login-required-and-permission-required">
543 <span·id="s-user-passes-test-login-required-permission-required"></span><span·id="user-passes-test-login-required-and-permission-required"></span><span·id="user-passes-test-login-required-permission-required"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">user_passes_test</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">permission_required</span></code><a·class="headerlink"·href="#user-passes-test-login-required-and-permission-required"·title="Link·to·this·heading">¶</a></h3>544 <span·id="s-user-passes-test-login-required-permission-required"></span><span·id="user-passes-test-login-required-and-permission-required"></span><span·id="user-passes-test-login-required-permission-required"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">user_passes_test</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">permission_required</span></code><a·class="headerlink"·href="#user-passes-test-login-required-and-permission-required"·title="Link·to·this·heading">¶</a></h3>
544 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.decorators</span></code>·provides·the·decorators545 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.decorators</span></code>·provides·the·decorators
545 <code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">permission_required</span></code>·and546 <code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">permission_required</span></code>·and
546 <code·class="docutils·literal·notranslate"><span·class="pre">user_passes_test</span></code>.·Previously·it·was·possible·to·use·these547 <code·class="docutils·literal·notranslate"><span·class="pre">user_passes_test</span></code>.·Previously·it·was·possible·to·use·these
547 decorators·both·on·functions·(where·the·first·argument·is·request)548 decorators·both·on·functions·(where·the·first·argument·is·request)
548 and·on·methods·(where·the·first·argument·is·self,·and·the·second549 and·on·methods·(where·the·first·argument·is·self,·and·the·second
549 argument·is·request).·Unfortunately,·flaws·were·discovered·in·the550 argument·is·request).·Unfortunately,·flaws·were·discovered·in·the
550 code·supporting·this:·it·only·works·in·limited·circumstances,·and551 code·supporting·this:·it·only·works·in·limited·circumstances,·and
551 produces·errors·that·are·very·difficult·to·debug·when·it·does·not552 produces·errors·that·are·very·difficult·to·debug·when·it·does·not
552 work.</p>553 work.</p>
553 <p>For·this·reason,·the·auto·adapt·behavior·has·been·removed,·and·if554 <p>For·this·reason,·the·auto·adapt·behavior·has·been·removed,·and·if
554 you·are·using·these·decorators·on·methods,·you·will·need·to·manually555 you·are·using·these·decorators·on·methods,·you·will·need·to·manually
555 apply·<a·class="reference·internal"·href="../ref/utils.html#django.utils.decorators.method_decorator"·title="django.utils.decorators.method_decorator"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.utils.decorators.method_decorator()</span></code></a>·to·convert·the556 apply·<a·class="reference·internal"·href="../ref/utils.html#django.utils.decorators.method_decorator"·title="django.utils.decorators.method_decorator"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.utils.decorators.method_decorator()</span></code></a>·to·convert·the
556 decorator·to·one·that·works·with·methods.·For·example,·you·would557 decorator·to·one·that·works·with·methods.·For·example,·you·would
557 change·code·from·this:</p>558 change·code·from·this:</p>
558 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">MyClass</span><span·class="p">(</span><span·class="nb">object</span><span·class="p">):</span>559 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">MyClass</span><span·class="p">(</span><span·class="nb">object</span><span·class="p">):</span>
559 ····<span·class="nd">@login_required</span>560 ····<span·class="nd">@login_required</span>
560 ····<span·class="k">def</span>·<span·class="nf">my_view</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>561 ····<span·class="k">def</span>·<span·class="nf">my_view</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">):</span>
Offset 587, 15 lines modifiedOffset 588, 15 lines modified
587 change·also·applies·to·other·decorators·introduced·since·1.1,588 change·also·applies·to·other·decorators·introduced·since·1.1,
588 including·<code·class="docutils·literal·notranslate"><span·class="pre">csrf_protect</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">cache_control</span></code>·and·anything·created589 including·<code·class="docutils·literal·notranslate"><span·class="pre">csrf_protect</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">cache_control</span></code>·and·anything·created
589 using·<code·class="docutils·literal·notranslate"><span·class="pre">decorator_from_middleware</span></code>.</p>590 using·<code·class="docutils·literal·notranslate"><span·class="pre">decorator_from_middleware</span></code>.</p>
590 </section>591 </section>
591 <section·id="s-if-tag-changes">592 <section·id="s-if-tag-changes">
Max diff block lines reached; 12531/25106 bytes (49.91%) of diff not shown.
15.2 KB
html2text {}
Max HTML report size reached
5.57 KB
./usr/share/doc/python-django-doc/html/releases/1.3.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3·release·notes"·href="1.3.html"·/>15 ····<link·rel="next"·title="Django·1.3·release·notes"·href="1.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.2·release·notes"·href="1.3.2.html"·/>16 ····<link·rel="prev"·title="Django·1.3.2·release·notes"·href="1.3.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 37 lines modifiedOffset 96, 37 lines modified
95 ······96 ······
96 ········97 ········
97 ··········<div·class="yui-b"·id="sidebar">98 ··········<div·class="yui-b"·id="sidebar">
98 ············99 ············
99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
100 ········<div·class="sphinxsidebarwrapper">101 ········<div·class="sphinxsidebarwrapper">
101 ··<div>102 ··<div>
102 ····<h4>Previous·topic</h4>103 ····<h4>Argomento·precedente</h4>
103 ····<p·class="topless"><a·href="1.3.2.html"104 ····<p·class="topless"><a·href="1.3.2.html"
104 ··························title="previous·chapter">Django·1.3.2·release·notes</a></p>105 ··························title="capitolo·precedente">Django·1.3.2·release·notes</a></p>
105 ··</div>106 ··</div>
106 ··<div>107 ··<div>
107 ····<h4>Next·topic</h4>108 ····<h4>Argomento·successivo</h4>
108 ····<p·class="topless"><a·href="1.3.html"109 ····<p·class="topless"><a·href="1.3.html"
109 ··························title="next·chapter">Django·1.3·release·notes</a></p>110 ··························title="capitolo·successivo">Django·1.3·release·notes</a></p>
110 ··</div>111 ··</div>
111 <search·id="searchbox"·style="display:·none"·role="search">112 <search·id="searchbox"·style="display:·none"·role="search">
112 ··<h3·id="searchlabel">Quick·search</h3>113 ··<h3·id="searchlabel">Ricerca·veloce</h3>
113 ····<div·class="searchformwrapper">114 ····<div·class="searchformwrapper">
114 ····<form·class="search"·action="../search.html"·method="get">115 ····<form·class="search"·action="../search.html"·method="get">
115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>116 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
116 ······<input·type="submit"·value="Go"·/>117 ······<input·type="submit"·value="Vai"·/>
117 ····</form>118 ····</form>
118 ····</div>119 ····</div>
119 </search>120 </search>
120 <script>document.getElementById('searchbox').style.display·=·"block"</script>121 <script>document.getElementById('searchbox').style.display·=·"block"</script>
121 ········</div>122 ········</div>
122 ······</div>123 ······</div>
123 ··············<h3>Last·update:</h3>124 ··············<h3>Last·update:</h3>
124 ··············<p·class="topless">Sep·03,·2024</p>125 ··············<p·class="topless">set·03,·2024</p>
125 ··········</div>126 ··········</div>
126 ········127 ········
127 ······128 ······
128 ····</div>129 ····</div>
  
129 ····<div·id="ft">130 ····<div·id="ft">
130 ······<div·class="nav">131 ······<div·class="nav">
1.75 KB
html2text {}
Max HTML report size reached
5.55 KB
./usr/share/doc/python-django-doc/html/releases/1.3.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.1·release·notes"·href="1.3.1.html"·/>15 ····<link·rel="next"·title="Django·1.3.1·release·notes"·href="1.3.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.3·release·notes"·href="1.3.3.html"·/>16 ····<link·rel="prev"·title="Django·1.3.3·release·notes"·href="1.3.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 37 lines modifiedOffset 95, 37 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 ··<div>101 ··<div>
101 ····<h4>Previous·topic</h4>102 ····<h4>Argomento·precedente</h4>
102 ····<p·class="topless"><a·href="1.3.3.html"103 ····<p·class="topless"><a·href="1.3.3.html"
103 ··························title="previous·chapter">Django·1.3.3·release·notes</a></p>104 ··························title="capitolo·precedente">Django·1.3.3·release·notes</a></p>
104 ··</div>105 ··</div>
105 ··<div>106 ··<div>
106 ····<h4>Next·topic</h4>107 ····<h4>Argomento·successivo</h4>
107 ····<p·class="topless"><a·href="1.3.1.html"108 ····<p·class="topless"><a·href="1.3.1.html"
108 ··························title="next·chapter">Django·1.3.1·release·notes</a></p>109 ··························title="capitolo·successivo">Django·1.3.1·release·notes</a></p>
109 ··</div>110 ··</div>
110 <search·id="searchbox"·style="display:·none"·role="search">111 <search·id="searchbox"·style="display:·none"·role="search">
111 ··<h3·id="searchlabel">Quick·search</h3>112 ··<h3·id="searchlabel">Ricerca·veloce</h3>
112 ····<div·class="searchformwrapper">113 ····<div·class="searchformwrapper">
113 ····<form·class="search"·action="../search.html"·method="get">114 ····<form·class="search"·action="../search.html"·method="get">
114 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
115 ······<input·type="submit"·value="Go"·/>116 ······<input·type="submit"·value="Vai"·/>
116 ····</form>117 ····</form>
117 ····</div>118 ····</div>
118 </search>119 </search>
119 <script>document.getElementById('searchbox').style.display·=·"block"</script>120 <script>document.getElementById('searchbox').style.display·=·"block"</script>
120 ········</div>121 ········</div>
121 ······</div>122 ······</div>
122 ··············<h3>Last·update:</h3>123 ··············<h3>Last·update:</h3>
123 ··············<p·class="topless">Sep·03,·2024</p>124 ··············<p·class="topless">set·03,·2024</p>
124 ··········</div>125 ··········</div>
125 ········126 ········
126 ······127 ······
127 ····</div>128 ····</div>
  
128 ····<div·id="ft">129 ····<div·id="ft">
129 ······<div·class="nav">130 ······<div·class="nav">
1.72 KB
html2text {}
Max HTML report size reached
5.57 KB
./usr/share/doc/python-django-doc/html/releases/1.3.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.2·release·notes"·href="1.3.2.html"·/>15 ····<link·rel="next"·title="Django·1.3.2·release·notes"·href="1.3.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.4·release·notes"·href="1.3.4.html"·/>16 ····<link·rel="prev"·title="Django·1.3.4·release·notes"·href="1.3.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 37 lines modifiedOffset 95, 37 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 ··<div>101 ··<div>
101 ····<h4>Previous·topic</h4>102 ····<h4>Argomento·precedente</h4>
102 ····<p·class="topless"><a·href="1.3.4.html"103 ····<p·class="topless"><a·href="1.3.4.html"
103 ··························title="previous·chapter">Django·1.3.4·release·notes</a></p>104 ··························title="capitolo·precedente">Django·1.3.4·release·notes</a></p>
104 ··</div>105 ··</div>
105 ··<div>106 ··<div>
106 ····<h4>Next·topic</h4>107 ····<h4>Argomento·successivo</h4>
107 ····<p·class="topless"><a·href="1.3.2.html"108 ····<p·class="topless"><a·href="1.3.2.html"
108 ··························title="next·chapter">Django·1.3.2·release·notes</a></p>109 ··························title="capitolo·successivo">Django·1.3.2·release·notes</a></p>
109 ··</div>110 ··</div>
110 <search·id="searchbox"·style="display:·none"·role="search">111 <search·id="searchbox"·style="display:·none"·role="search">
111 ··<h3·id="searchlabel">Quick·search</h3>112 ··<h3·id="searchlabel">Ricerca·veloce</h3>
112 ····<div·class="searchformwrapper">113 ····<div·class="searchformwrapper">
113 ····<form·class="search"·action="../search.html"·method="get">114 ····<form·class="search"·action="../search.html"·method="get">
114 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
115 ······<input·type="submit"·value="Go"·/>116 ······<input·type="submit"·value="Vai"·/>
116 ····</form>117 ····</form>
117 ····</div>118 ····</div>
118 </search>119 </search>
119 <script>document.getElementById('searchbox').style.display·=·"block"</script>120 <script>document.getElementById('searchbox').style.display·=·"block"</script>
120 ········</div>121 ········</div>
121 ······</div>122 ······</div>
122 ··············<h3>Last·update:</h3>123 ··············<h3>Last·update:</h3>
123 ··············<p·class="topless">Sep·03,·2024</p>124 ··············<p·class="topless">set·03,·2024</p>
124 ··········</div>125 ··········</div>
125 ········126 ········
126 ······127 ······
127 ····</div>128 ····</div>
  
128 ····<div·id="ft">129 ····<div·id="ft">
129 ······<div·class="nav">130 ······<div·class="nav">
1.75 KB
html2text {}
Max HTML report size reached
6.14 KB
./usr/share/doc/python-django-doc/html/releases/1.3.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.3·release·notes"·href="1.3.3.html"·/>15 ····<link·rel="next"·title="Django·1.3.3·release·notes"·href="1.3.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.5·release·notes"·href="1.3.5.html"·/>16 ····<link·rel="prev"·title="Django·1.3.5·release·notes"·href="1.3.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 124, 37 lines modifiedOffset 125, 37 lines modified
124 <li><a·class="reference·internal"·href="#host-header-poisoning">Host·header·poisoning</a></li>125 <li><a·class="reference·internal"·href="#host-header-poisoning">Host·header·poisoning</a></li>
125 </ul>126 </ul>
126 </li>127 </li>
127 </ul>128 </ul>
  
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Previous·topic</h4>131 ····<h4>Argomento·precedente</h4>
131 ····<p·class="topless"><a·href="1.3.5.html"132 ····<p·class="topless"><a·href="1.3.5.html"
132 ··························title="previous·chapter">Django·1.3.5·release·notes</a></p>133 ··························title="capitolo·precedente">Django·1.3.5·release·notes</a></p>
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Next·topic</h4>136 ····<h4>Argomento·successivo</h4>
136 ····<p·class="topless"><a·href="1.3.3.html"137 ····<p·class="topless"><a·href="1.3.3.html"
137 ··························title="next·chapter">Django·1.3.3·release·notes</a></p>138 ··························title="capitolo·successivo">Django·1.3.3·release·notes</a></p>
138 ··</div>139 ··</div>
139 <search·id="searchbox"·style="display:·none"·role="search">140 <search·id="searchbox"·style="display:·none"·role="search">
140 ··<h3·id="searchlabel">Quick·search</h3>141 ··<h3·id="searchlabel">Ricerca·veloce</h3>
141 ····<div·class="searchformwrapper">142 ····<div·class="searchformwrapper">
142 ····<form·class="search"·action="../search.html"·method="get">143 ····<form·class="search"·action="../search.html"·method="get">
143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
144 ······<input·type="submit"·value="Go"·/>145 ······<input·type="submit"·value="Vai"·/>
145 ····</form>146 ····</form>
146 ····</div>147 ····</div>
147 </search>148 </search>
148 <script>document.getElementById('searchbox').style.display·=·"block"</script>149 <script>document.getElementById('searchbox').style.display·=·"block"</script>
149 ········</div>150 ········</div>
150 ······</div>151 ······</div>
151 ··············<h3>Last·update:</h3>152 ··············<h3>Last·update:</h3>
152 ··············<p·class="topless">Sep·03,·2024</p>153 ··············<p·class="topless">set·03,·2024</p>
153 ··········</div>154 ··········</div>
154 ········155 ········
155 ······156 ······
156 ····</div>157 ····</div>
  
157 ····<div·id="ft">158 ····<div·id="ft">
158 ······<div·class="nav">159 ······<div·class="nav">
2.37 KB
html2text {}
Max HTML report size reached
8.35 KB
./usr/share/doc/python-django-doc/html/releases/1.3.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.4·release·notes"·href="1.3.4.html"·/>15 ····<link·rel="next"·title="Django·1.3.4·release·notes"·href="1.3.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.6·release·notes"·href="1.3.6.html"·/>16 ····<link·rel="prev"·title="Django·1.3.6·release·notes"·href="1.3.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 16 lines modifiedOffset 95, 16 lines modified
94 potentially-malicious·domains.</p>95 potentially-malicious·domains.</p>
95 <p>In·response·to·further·input·received·and·reports·of·continuing·issues96 <p>In·response·to·further·input·received·and·reports·of·continuing·issues
96 following·the·previous·release,·we’re·taking·additional·steps·to·tighten·Host97 following·the·previous·release,·we’re·taking·additional·steps·to·tighten·Host
97 header·validation.·Rather·than·attempt·to·accommodate·all·features·HTTP98 header·validation.·Rather·than·attempt·to·accommodate·all·features·HTTP
98 supports·here,·Django’s·Host·header·validation·attempts·to·support·a·smaller,99 supports·here,·Django’s·Host·header·validation·attempts·to·support·a·smaller,
99 but·far·more·common,·subset:</p>100 but·far·more·common,·subset:</p>
100 <ul·class="simple">101 <ul·class="simple">
101 <li><p>Hostnames·must·consist·of·characters·<code·class="docutils·literal·notranslate"><span·class="pre">[A-Za-z0-9]</span></code>·plus·hyphen·(-)·or·dot102 <li><p>Hostnames·must·consist·of·characters·<code·class="docutils·literal·notranslate"><span·class="pre">[A-Za-z0-9]</span></code>·plus·hyphen·(-)·or·dot
102 (.).</p></li>103 (.).</p></li>
103 <li><p>IP·addresses··both·IPv4·and·IPv6··are·permitted.</p></li>104 <li><p>IP·addresses··both·IPv4·and·IPv6··are·permitted.</p></li>
104 <li><p>Port,·if·specified,·is·numeric.</p></li>105 <li><p>Port,·if·specified,·is·numeric.</p></li>
105 </ul>106 </ul>
106 <p>Any·deviation·from·this·will·now·be·rejected,·raising·the·exception107 <p>Any·deviation·from·this·will·now·be·rejected,·raising·the·exception
107 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">django.core.exceptions.SuspiciousOperation</span></code></a>.</p>108 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">django.core.exceptions.SuspiciousOperation</span></code></a>.</p>
108 </section>109 </section>
109 <section·id="s-redirect-poisoning">110 <section·id="s-redirect-poisoning">
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 <li><a·class="reference·internal"·href="#redirect-poisoning">Redirect·poisoning</a></li>148 <li><a·class="reference·internal"·href="#redirect-poisoning">Redirect·poisoning</a></li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="1.3.6.html"155 ····<p·class="topless"><a·href="1.3.6.html"
155 ··························title="previous·chapter">Django·1.3.6·release·notes</a></p>156 ··························title="capitolo·precedente">Django·1.3.6·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="1.3.4.html"160 ····<p·class="topless"><a·href="1.3.4.html"
160 ··························title="next·chapter">Django·1.3.4·release·notes</a></p>161 ··························title="capitolo·successivo">Django·1.3.4·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
3.31 KB
html2text {}
Max HTML report size reached
6.02 KB
./usr/share/doc/python-django-doc/html/releases/1.3.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.5·release·notes"·href="1.3.5.html"·/>15 ····<link·rel="next"·title="Django·1.3.5·release·notes"·href="1.3.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.7·release·notes"·href="1.3.7.html"·/>16 ····<link·rel="prev"·title="Django·1.3.7·release·notes"·href="1.3.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 157, 37 lines modifiedOffset 158, 37 lines modified
157 <li><a·class="reference·internal"·href="#admin-history-view-information-leakage">Admin·history·view·information·leakage</a></li>158 <li><a·class="reference·internal"·href="#admin-history-view-information-leakage">Admin·history·view·information·leakage</a></li>
158 </ul>159 </ul>
159 </li>160 </li>
160 </ul>161 </ul>
  
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Previous·topic</h4>164 ····<h4>Argomento·precedente</h4>
164 ····<p·class="topless"><a·href="1.3.7.html"165 ····<p·class="topless"><a·href="1.3.7.html"
165 ··························title="previous·chapter">Django·1.3.7·release·notes</a></p>166 ··························title="capitolo·precedente">Django·1.3.7·release·notes</a></p>
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Next·topic</h4>169 ····<h4>Argomento·successivo</h4>
169 ····<p·class="topless"><a·href="1.3.5.html"170 ····<p·class="topless"><a·href="1.3.5.html"
170 ··························title="next·chapter">Django·1.3.5·release·notes</a></p>171 ··························title="capitolo·successivo">Django·1.3.5·release·notes</a></p>
171 ··</div>172 ··</div>
172 <search·id="searchbox"·style="display:·none"·role="search">173 <search·id="searchbox"·style="display:·none"·role="search">
173 ··<h3·id="searchlabel">Quick·search</h3>174 ··<h3·id="searchlabel">Ricerca·veloce</h3>
174 ····<div·class="searchformwrapper">175 ····<div·class="searchformwrapper">
175 ····<form·class="search"·action="../search.html"·method="get">176 ····<form·class="search"·action="../search.html"·method="get">
176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
177 ······<input·type="submit"·value="Go"·/>178 ······<input·type="submit"·value="Vai"·/>
178 ····</form>179 ····</form>
179 ····</div>180 ····</div>
180 </search>181 </search>
181 <script>document.getElementById('searchbox').style.display·=·"block"</script>182 <script>document.getElementById('searchbox').style.display·=·"block"</script>
182 ········</div>183 ········</div>
183 ······</div>184 ······</div>
184 ··············<h3>Last·update:</h3>185 ··············<h3>Last·update:</h3>
185 ··············<p·class="topless">Sep·03,·2024</p>186 ··············<p·class="topless">set·03,·2024</p>
186 ··········</div>187 ··········</div>
187 ········188 ········
188 ······189 ······
189 ····</div>190 ····</div>
  
190 ····<div·id="ft">191 ····<div·id="ft">
191 ······<div·class="nav">192 ······<div·class="nav">
2.22 KB
html2text {}
Max HTML report size reached
6.91 KB
./usr/share/doc/python-django-doc/html/releases/1.3.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.3.6·release·notes"·href="1.3.6.html"·/>15 ····<link·rel="next"·title="Django·1.3.6·release·notes"·href="1.3.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.4·release·notes"·href="1.4.html"·/>16 ····<link·rel="prev"·title="Django·1.4·release·notes"·href="1.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.3.7">79 ··········<div·class="yui-g"·id="releases-1.3.7">
79 ············80 ············
80 ··<section·id="s-django-1-3-7-release-notes">81 ··<section·id="s-django-1-3-7-release-notes">
81 <span·id="django-1-3-7-release-notes"></span><h1>Django·1.3.7·release·notes<a·class="headerlink"·href="#django-1-3-7-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-3-7-release-notes"></span><h1>Django·1.3.7·release·notes<a·class="headerlink"·href="#django-1-3-7-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·20,·2013</em></p>83 <p><em>February·20,·2013</em></p>
83 <p>Django·1.3.7·corrects·a·packaging·problem·with·yesterday’s·<a·class="reference·internal"·href="1.3.6.html"><span·class="doc">1.3.6·release</span></a>.</p>84 <p>Django·1.3.7·corrects·a·packaging·problem·with·yesterday’s·<a·class="reference·internal"·href="1.3.6.html"><span·class="doc">1.3.6·release</span></a>.</p>
84 <p>The·release·contained·stray·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files·that·caused·bad·magic·number85 <p>The·release·contained·stray·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files·that·caused·«bad·magic·number»
85 errors·when·running·with·some·versions·of·Python.·This·releases·corrects·this,86 errors·when·running·with·some·versions·of·Python.·This·releases·corrects·this,
86 and·also·fixes·a·bad·documentation·link·in·the·project·template·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>87 and·also·fixes·a·bad·documentation·link·in·the·project·template·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>
87 file·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startproject</span></code>.</p>88 file·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startproject</span></code>.</p>
88 </section>89 </section>
  
  
89 ··········</div>90 ··········</div>
Offset 94, 37 lines modifiedOffset 95, 37 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 ··<div>101 ··<div>
101 ····<h4>Previous·topic</h4>102 ····<h4>Argomento·precedente</h4>
102 ····<p·class="topless"><a·href="1.4.html"103 ····<p·class="topless"><a·href="1.4.html"
103 ··························title="previous·chapter">Django·1.4·release·notes</a></p>104 ··························title="capitolo·precedente">Django·1.4·release·notes</a></p>
104 ··</div>105 ··</div>
105 ··<div>106 ··<div>
106 ····<h4>Next·topic</h4>107 ····<h4>Argomento·successivo</h4>
107 ····<p·class="topless"><a·href="1.3.6.html"108 ····<p·class="topless"><a·href="1.3.6.html"
108 ··························title="next·chapter">Django·1.3.6·release·notes</a></p>109 ··························title="capitolo·successivo">Django·1.3.6·release·notes</a></p>
109 ··</div>110 ··</div>
110 <search·id="searchbox"·style="display:·none"·role="search">111 <search·id="searchbox"·style="display:·none"·role="search">
111 ··<h3·id="searchlabel">Quick·search</h3>112 ··<h3·id="searchlabel">Ricerca·veloce</h3>
112 ····<div·class="searchformwrapper">113 ····<div·class="searchformwrapper">
113 ····<form·class="search"·action="../search.html"·method="get">114 ····<form·class="search"·action="../search.html"·method="get">
114 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
115 ······<input·type="submit"·value="Go"·/>116 ······<input·type="submit"·value="Vai"·/>
116 ····</form>117 ····</form>
117 ····</div>118 ····</div>
118 </search>119 </search>
119 <script>document.getElementById('searchbox').style.display·=·"block"</script>120 <script>document.getElementById('searchbox').style.display·=·"block"</script>
120 ········</div>121 ········</div>
121 ······</div>122 ······</div>
122 ··············<h3>Last·update:</h3>123 ··············<h3>Last·update:</h3>
123 ··············<p·class="topless">Sep·03,·2024</p>124 ··············<p·class="topless">set·03,·2024</p>
124 ··········</div>125 ··········</div>
125 ········126 ········
126 ······127 ······
127 ····</div>128 ····</div>
  
128 ····<div·id="ft">129 ····<div·id="ft">
129 ······<div·class="nav">130 ······<div·class="nav">
1.88 KB
html2text {}
Max HTML report size reached
18.1 KB
./usr/share/doc/python-django-doc/html/releases/1.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.2.7·release·notes"·href="1.2.7.html"·/>15 ····<link·rel="next"·title="Django·1.2.7·release·notes"·href="1.2.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.3.1·release·notes"·href="1.3.1.html"·/>16 ····<link·rel="prev"·title="Django·1.3.1·release·notes"·href="1.3.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 425, 37 lines modifiedOffset 426, 37 lines modified
425 <p>Django·has·historically·provided·(and·enforced)·a·list·of·profanities.426 <p>Django·has·historically·provided·(and·enforced)·a·list·of·profanities.
426 The·comments·app·has·enforced·this·list·of·profanities,·preventing·people·from427 The·comments·app·has·enforced·this·list·of·profanities,·preventing·people·from
427 submitting·comments·that·contained·one·of·those·profanities.</p>428 submitting·comments·that·contained·one·of·those·profanities.</p>
428 <p>Unfortunately,·the·technique·used·to·implement·this·profanities·list429 <p>Unfortunately,·the·technique·used·to·implement·this·profanities·list
429 was·woefully·naive,·and·prone·to·the·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Scunthorpe_problem">Scunthorpe·problem</a>.·Improving430 was·woefully·naive,·and·prone·to·the·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Scunthorpe_problem">Scunthorpe·problem</a>.·Improving
430 the·built-in·filter·to·fix·this·problem·would·require·significant431 the·built-in·filter·to·fix·this·problem·would·require·significant
431 effort,·and·since·natural·language·processing·isn’t·the·normal·domain432 effort,·and·since·natural·language·processing·isn’t·the·normal·domain
432 of·a·web·framework,·we·have·fixed·the·problem·by·making·the·list·of433 of·a·web·framework,·we·have·«fixed»·the·problem·by·making·the·list·of
433 prohibited·words·an·empty·list.</p>434 prohibited·words·an·empty·list.</p>
434 <p>If·you·want·to·restore·the·old·behavior,·simply·put·a435 <p>If·you·want·to·restore·the·old·behavior,·simply·put·a
435 <code·class="docutils·literal·notranslate"><span·class="pre">PROFANITIES_LIST</span></code>·setting·in·your·settings·file·that·includes·the436 <code·class="docutils·literal·notranslate"><span·class="pre">PROFANITIES_LIST</span></code>·setting·in·your·settings·file·that·includes·the
436 words·that·you·want·to·prohibit·(see·the·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/edd767d2612d891a906268cf590571f541dd164f">commit·that·implemented·this437 words·that·you·want·to·prohibit·(see·the·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/edd767d2612d891a906268cf590571f541dd164f">commit·that·implemented·this
437 change</a>·if·you·want·to·see·the·list438 change</a>·if·you·want·to·see·the·list
438 of·words·that·was·historically·prohibited).·However,·if·avoiding·profanities·is439 of·words·that·was·historically·prohibited).·However,·if·avoiding·profanities·is
439 important·to·you,·you·would·be·well·advised·to·seek·out·a·better,·less·naive440 important·to·you,·you·would·be·well·advised·to·seek·out·a·better,·less·naive
440 approach·to·the·problem.</p>441 approach·to·the·problem.</p>
441 </section>442 </section>
442 <section·id="s-localflavor-changes">443 <section·id="s-localflavor-changes">
443 <span·id="localflavor-changes"></span><h3>Localflavor·changes<a·class="headerlink"·href="#localflavor-changes"·title="Link·to·this·heading">¶</a></h3>444 <span·id="localflavor-changes"></span><h3>Localflavor·changes<a·class="headerlink"·href="#localflavor-changes"·title="Link·to·this·heading">¶</a></h3>
444 <p>Django·1.3·introduces·the·following·backwards-incompatible·changes·to445 <p>Django·1.3·introduces·the·following·backwards-incompatible·changes·to
445 local·flavors:</p>446 local·flavors:</p>
446 <ul·class="simple">447 <ul·class="simple">
447 <li><p>Canada·(ca)··The·province·Newfoundland·and·Labrador·has·had·its448 <li><p>Canada·(ca)··The·province·«Newfoundland·and·Labrador»·has·had·its
448 province·code·updated·to·NL,·rather·than·the·older·NF.·In449 province·code·updated·to·«NL»,·rather·than·the·older·«NF».·In
449 addition,·the·Yukon·Territory·has·had·its·province·code·corrected·to450 addition,·the·Yukon·Territory·has·had·its·province·code·corrected·to
450 YT,·instead·of·YK.</p></li>451 «YT»,·instead·of·«YK».</p></li>
451 <li><p>Indonesia·(id)··The·province·Nanggroe·Aceh·Darussalam·(NAD)·has452 <li><p>Indonesia·(id)··The·province·«Nanggroe·Aceh·Darussalam·(NAD)»·has
452 been·removed·from·the·province·list·in·favor·of·the·new·official453 been·removed·from·the·province·list·in·favor·of·the·new·official
453 designation·Aceh·(ACE).</p></li>454 designation·«Aceh·(ACE)».</p></li>
454 <li><p>United·States·of·America·(us)··The·list·of·states·used·by455 <li><p>United·States·of·America·(us)··The·list·of·«states»·used·by
455 <code·class="docutils·literal·notranslate"><span·class="pre">USStateField</span></code>·has·expanded·to·include·Armed·Forces·postal456 <code·class="docutils·literal·notranslate"><span·class="pre">USStateField</span></code>·has·expanded·to·include·Armed·Forces·postal
456 codes.·This·is·backwards-incompatible·if·you·were·relying·on457 codes.·This·is·backwards-incompatible·if·you·were·relying·on
457 <code·class="docutils·literal·notranslate"><span·class="pre">USStateField</span></code>·not·including·them.</p></li>458 <code·class="docutils·literal·notranslate"><span·class="pre">USStateField</span></code>·not·including·them.</p></li>
458 </ul>459 </ul>
459 </section>460 </section>
460 <section·id="s-formset-updates">461 <section·id="s-formset-updates">
461 <span·id="formset-updates"></span><h3>FormSet·updates<a·class="headerlink"·href="#formset-updates"·title="Link·to·this·heading">¶</a></h3>462 <span·id="formset-updates"></span><h3>FormSet·updates<a·class="headerlink"·href="#formset-updates"·title="Link·to·this·heading">¶</a></h3>
Offset 568, 18 lines modifiedOffset 569, 18 lines modified
568 the·same·situation·considering·the·deprecation·of·such·location.</p></li>569 the·same·situation·considering·the·deprecation·of·such·location.</p></li>
569 </ul>570 </ul>
570 </section>571 </section>
571 <section·id="s-transaction-management">572 <section·id="s-transaction-management">
572 <span·id="transaction-management"></span><h3>Transaction·management<a·class="headerlink"·href="#transaction-management"·title="Link·to·this·heading">¶</a></h3>573 <span·id="transaction-management"></span><h3>Transaction·management<a·class="headerlink"·href="#transaction-management"·title="Link·to·this·heading">¶</a></h3>
573 <p>When·using·managed·transactions··that·is,·anything·but·the·default574 <p>When·using·managed·transactions··that·is,·anything·but·the·default
574 autocommit·mode··it·is·important·when·a·transaction·is·marked·as575 autocommit·mode··it·is·important·when·a·transaction·is·marked·as
575 dirty.·Dirty·transactions·are·committed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">commit_on_success</span></code>576 «dirty».·Dirty·transactions·are·committed·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">commit_on_success</span></code>
576 decorator·or·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.transaction.TransactionMiddleware</span></code>,·and577 decorator·or·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.middleware.transaction.TransactionMiddleware</span></code>,·and
577 <code·class="docutils·literal·notranslate"><span·class="pre">commit_manually</span></code>·forces·them·to·be·closed·explicitly;·clean·transactions578 <code·class="docutils·literal·notranslate"><span·class="pre">commit_manually</span></code>·forces·them·to·be·closed·explicitly;·clean·transactions
578 get·a·pass,·which·means·they·are·usually·rolled·back·at·the·end·of·a·request579 «get·a·pass»,·which·means·they·are·usually·rolled·back·at·the·end·of·a·request
579 when·the·connection·is·closed.</p>580 when·the·connection·is·closed.</p>
580 <p>Until·Django·1.3,·transactions·were·only·marked·dirty·when·Django·was581 <p>Until·Django·1.3,·transactions·were·only·marked·dirty·when·Django·was
581 aware·of·a·modifying·operation·performed·in·them;·that·is,·either·some582 aware·of·a·modifying·operation·performed·in·them;·that·is,·either·some
582 model·was·saved,·some·bulk·update·or·delete·was·performed,·or·the·user583 model·was·saved,·some·bulk·update·or·delete·was·performed,·or·the·user
583 explicitly·called·<code·class="docutils·literal·notranslate"><span·class="pre">transaction.set_dirty()</span></code>.·In·Django·1.3,·a584 explicitly·called·<code·class="docutils·literal·notranslate"><span·class="pre">transaction.set_dirty()</span></code>.·In·Django·1.3,·a
584 transaction·is·marked·dirty·when·<em>any</em>·database·operation·is585 transaction·is·marked·dirty·when·<em>any</em>·database·operation·is
585 performed.</p>586 performed.</p>
Offset 623, 15 lines modifiedOffset 624, 15 lines modified
623 <code·class="docutils·literal·notranslate"><span·class="pre">PendingDeprecationWarning</span></code>·in·Django·1.3.·This·warning·will·be624 <code·class="docutils·literal·notranslate"><span·class="pre">PendingDeprecationWarning</span></code>·in·Django·1.3.·This·warning·will·be
624 silent·by·default,·but·may·be·turned·on·using·Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/warnings.html#module-warnings"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">warnings</span></code></a>625 silent·by·default,·but·may·be·turned·on·using·Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/warnings.html#module-warnings"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">warnings</span></code></a>
625 module,·or·by·running·Python·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">-Wd</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">-Wall</span></code>·flag.</p>626 module,·or·by·running·Python·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">-Wd</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">-Wall</span></code>·flag.</p>
626 <p>In·Django·1.4,·these·warnings·will·become·a·<code·class="docutils·literal·notranslate"><span·class="pre">DeprecationWarning</span></code>,627 <p>In·Django·1.4,·these·warnings·will·become·a·<code·class="docutils·literal·notranslate"><span·class="pre">DeprecationWarning</span></code>,
627 which·is·<em>not</em>·silent.·In·Django·1.5·support·for·these·features·will628 which·is·<em>not</em>·silent.·In·Django·1.5·support·for·these·features·will
628 be·removed·entirely.</p>629 be·removed·entirely.</p>
629 <div·class="admonition·seealso">630 <div·class="admonition·seealso">
630 <p·class="admonition-title">See·also</p>631 <p·class="admonition-title">Vedi·anche</p>
631 <p>For·more·details,·see·the·documentation·<a·class="reference·internal"·href="../internals/release-process.html"><span·class="doc">Django’s·release·process</span></a>·and·our·<a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecation·timeline</span></a>.</p>632 <p>For·more·details,·see·the·documentation·<a·class="reference·internal"·href="../internals/release-process.html"><span·class="doc">Django’s·release·process</span></a>·and·our·<a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecation·timeline</span></a>.</p>
632 </div>633 </div>
633 <section·id="s-mod-python-support">634 <section·id="s-mod-python-support">
634 <span·id="mod-python-support"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·support<a·class="headerlink"·href="#mod-python-support"·title="Link·to·this·heading">¶</a></h3>635 <span·id="mod-python-support"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·support<a·class="headerlink"·href="#mod-python-support"·title="Link·to·this·heading">¶</a></h3>
635 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·library·has·not·had·a·release·since·2007·or·a·commit·since636 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·library·has·not·had·a·release·since·2007·or·a·commit·since
636 2008.·The·Apache·Foundation·board·voted·to·remove·<code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·from·the·set637 2008.·The·Apache·Foundation·board·voted·to·remove·<code·class="docutils·literal·notranslate"><span·class="pre">mod_python</span></code>·from·the·set
637 of·active·projects·in·its·version·control·repositories,·and·its·lead·developer638 of·active·projects·in·its·version·control·repositories,·and·its·lead·developer
Offset 894, 37 lines modifiedOffset 895, 37 lines modified
894 </li>895 </li>
895 </ul>896 </ul>
896 </li>897 </li>
897 </ul>898 </ul>
  
898 ··</div>899 ··</div>
899 ··<div>900 ··<div>
900 ····<h4>Previous·topic</h4>901 ····<h4>Argomento·precedente</h4>
901 ····<p·class="topless"><a·href="1.3.1.html"902 ····<p·class="topless"><a·href="1.3.1.html"
902 ··························title="previous·chapter">Django·1.3.1·release·notes</a></p>903 ··························title="capitolo·precedente">Django·1.3.1·release·notes</a></p>
903 ··</div>904 ··</div>
904 ··<div>905 ··<div>
905 ····<h4>Next·topic</h4>906 ····<h4>Argomento·successivo</h4>
906 ····<p·class="topless"><a·href="1.2.7.html"907 ····<p·class="topless"><a·href="1.2.7.html"
Max diff block lines reached; 855/10388 bytes (8.23%) of diff not shown.
7.81 KB
html2text {}
Max HTML report size reached
5.53 KB
./usr/share/doc/python-django-doc/html/releases/1.4.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4·release·notes"·href="1.4.html"·/>15 ····<link·rel="next"·title="Django·1.4·release·notes"·href="1.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.2·release·notes"·href="1.4.2.html"·/>16 ····<link·rel="prev"·title="Django·1.4.2·release·notes"·href="1.4.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 37 lines modifiedOffset 95, 37 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 ··<div>101 ··<div>
101 ····<h4>Previous·topic</h4>102 ····<h4>Argomento·precedente</h4>
102 ····<p·class="topless"><a·href="1.4.2.html"103 ····<p·class="topless"><a·href="1.4.2.html"
103 ··························title="previous·chapter">Django·1.4.2·release·notes</a></p>104 ··························title="capitolo·precedente">Django·1.4.2·release·notes</a></p>
104 ··</div>105 ··</div>
105 ··<div>106 ··<div>
106 ····<h4>Next·topic</h4>107 ····<h4>Argomento·successivo</h4>
107 ····<p·class="topless"><a·href="1.4.html"108 ····<p·class="topless"><a·href="1.4.html"
108 ··························title="next·chapter">Django·1.4·release·notes</a></p>109 ··························title="capitolo·successivo">Django·1.4·release·notes</a></p>
109 ··</div>110 ··</div>
110 <search·id="searchbox"·style="display:·none"·role="search">111 <search·id="searchbox"·style="display:·none"·role="search">
111 ··<h3·id="searchlabel">Quick·search</h3>112 ··<h3·id="searchlabel">Ricerca·veloce</h3>
112 ····<div·class="searchformwrapper">113 ····<div·class="searchformwrapper">
113 ····<form·class="search"·action="../search.html"·method="get">114 ····<form·class="search"·action="../search.html"·method="get">
114 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
115 ······<input·type="submit"·value="Go"·/>116 ······<input·type="submit"·value="Vai"·/>
116 ····</form>117 ····</form>
117 ····</div>118 ····</div>
118 </search>119 </search>
119 <script>document.getElementById('searchbox').style.display·=·"block"</script>120 <script>document.getElementById('searchbox').style.display·=·"block"</script>
120 ········</div>121 ········</div>
121 ······</div>122 ······</div>
122 ··············<h3>Last·update:</h3>123 ··············<h3>Last·update:</h3>
123 ··············<p·class="topless">Sep·03,·2024</p>124 ··············<p·class="topless">set·03,·2024</p>
124 ··········</div>125 ··········</div>
125 ········126 ········
126 ······127 ······
127 ····</div>128 ····</div>
  
128 ····<div·id="ft">129 ····<div·id="ft">
129 ······<div·class="nav">130 ······<div·class="nav">
1.71 KB
html2text {}
Max HTML report size reached
5.81 KB
./usr/share/doc/python-django-doc/html/releases/1.4.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.9·release·notes"·href="1.4.9.html"·/>15 ····<link·rel="next"·title="Django·1.4.9·release·notes"·href="1.4.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.11·release·notes"·href="1.4.11.html"·/>16 ····<link·rel="prev"·title="Django·1.4.11·release·notes"·href="1.4.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#python-compatibility">Python·compatibility</a></li>107 <li><a·class="reference·internal"·href="#python-compatibility">Python·compatibility</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="1.4.11.html"114 ····<p·class="topless"><a·href="1.4.11.html"
114 ··························title="previous·chapter">Django·1.4.11·release·notes</a></p>115 ··························title="capitolo·precedente">Django·1.4.11·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="1.4.9.html"119 ····<p·class="topless"><a·href="1.4.9.html"
119 ··························title="next·chapter">Django·1.4.9·release·notes</a></p>120 ··························title="capitolo·successivo">Django·1.4.9·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
10.4 KB
./usr/share/doc/python-django-doc/html/releases/1.4.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.10·release·notes"·href="1.4.10.html"·/>15 ····<link·rel="next"·title="Django·1.4.10·release·notes"·href="1.4.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.12·release·notes"·href="1.4.12.html"·/>16 ····<link·rel="prev"·title="Django·1.4.12·release·notes"·href="1.4.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 100, 15 lines modifiedOffset 101, 15 lines modified
100 module·indicated·by·that·dotted·path·as·part·of·generating·the101 module·indicated·by·that·dotted·path·as·part·of·generating·the
101 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those102 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those
102 side·effects·will·occur.</p>103 side·effects·will·occur.</p>
103 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code104 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code
104 execution,·given·the·following·conditions:</p>105 execution,·given·the·following·conditions:</p>
105 <ol·class="arabic·simple">106 <ol·class="arabic·simple">
106 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user107 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user
107 input·(commonly,·a·next·parameter·in·a·querystring·indicating108 input·(commonly,·a·«next»·parameter·in·a·querystring·indicating
108 where·to·redirect·upon·successful·completion·of·an·action).</p></li>109 where·to·redirect·upon·successful·completion·of·an·action).</p></li>
109 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the110 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the
110 server’s·Python·import·path,·which·perform·code·execution·with·side111 server’s·Python·import·path,·which·perform·code·execution·with·side
111 effects·on·importing.</p></li>112 effects·on·importing.</p></li>
112 </ol>113 </ol>
113 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted114 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted
114 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL115 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL
Offset 137, 15 lines modifiedOffset 138, 15 lines modified
137 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>138 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>
138 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the139 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the
139 response·will·not·be·cached.</p></li>140 response·will·not·be·cached.</p></li>
140 </ol>141 </ol>
141 </section>142 </section>
142 <section·id="s-mysql-typecasting">143 <section·id="s-mysql-typecasting">
143 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>144 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>
144 <p>The·MySQL·database·is·known·to·typecast·on·certain·queries;·for145 <p>The·MySQL·database·is·known·to·«typecast»·on·certain·queries;·for
145 example,·when·querying·a·table·which·contains·string·values,·but·using146 example,·when·querying·a·table·which·contains·string·values,·but·using
146 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first147 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first
147 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>148 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>
148 <p>If·a·query·is·performed·without·first·converting·values·to·the149 <p>If·a·query·is·performed·without·first·converting·values·to·the
149 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what150 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what
150 would·occur·if·the·query·itself·had·been·manipulated.</p>151 would·occur·if·the·query·itself·had·been·manipulated.</p>
151 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most152 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most
Offset 186, 37 lines modifiedOffset 187, 37 lines modified
186 <li><a·class="reference·internal"·href="#mysql-typecasting">MySQL·typecasting</a></li>187 <li><a·class="reference·internal"·href="#mysql-typecasting">MySQL·typecasting</a></li>
187 </ul>188 </ul>
188 </li>189 </li>
189 </ul>190 </ul>
  
190 ··</div>191 ··</div>
191 ··<div>192 ··<div>
192 ····<h4>Previous·topic</h4>193 ····<h4>Argomento·precedente</h4>
193 ····<p·class="topless"><a·href="1.4.12.html"194 ····<p·class="topless"><a·href="1.4.12.html"
194 ··························title="previous·chapter">Django·1.4.12·release·notes</a></p>195 ··························title="capitolo·precedente">Django·1.4.12·release·notes</a></p>
195 ··</div>196 ··</div>
196 ··<div>197 ··<div>
197 ····<h4>Next·topic</h4>198 ····<h4>Argomento·successivo</h4>
198 ····<p·class="topless"><a·href="1.4.10.html"199 ····<p·class="topless"><a·href="1.4.10.html"
199 ··························title="next·chapter">Django·1.4.10·release·notes</a></p>200 ··························title="capitolo·successivo">Django·1.4.10·release·notes</a></p>
200 ··</div>201 ··</div>
201 <search·id="searchbox"·style="display:·none"·role="search">202 <search·id="searchbox"·style="display:·none"·role="search">
202 ··<h3·id="searchlabel">Quick·search</h3>203 ··<h3·id="searchlabel">Ricerca·veloce</h3>
203 ····<div·class="searchformwrapper">204 ····<div·class="searchformwrapper">
204 ····<form·class="search"·action="../search.html"·method="get">205 ····<form·class="search"·action="../search.html"·method="get">
205 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>206 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
206 ······<input·type="submit"·value="Go"·/>207 ······<input·type="submit"·value="Vai"·/>
207 ····</form>208 ····</form>
208 ····</div>209 ····</div>
209 </search>210 </search>
210 <script>document.getElementById('searchbox').style.display·=·"block"</script>211 <script>document.getElementById('searchbox').style.display·=·"block"</script>
211 ········</div>212 ········</div>
212 ······</div>213 ······</div>
213 ··············<h3>Last·update:</h3>214 ··············<h3>Last·update:</h3>
214 ··············<p·class="topless">Sep·03,·2024</p>215 ··············<p·class="topless">set·03,·2024</p>
215 ··········</div>216 ··········</div>
216 ········217 ········
217 ······218 ······
218 ····</div>219 ····</div>
  
219 ····<div·id="ft">220 ····<div·id="ft">
220 ······<div·class="nav">221 ······<div·class="nav">
4.46 KB
html2text {}
Max HTML report size reached
5.7 KB
./usr/share/doc/python-django-doc/html/releases/1.4.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.11·release·notes"·href="1.4.11.html"·/>15 ····<link·rel="next"·title="Django·1.4.11·release·notes"·href="1.4.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.13·release·notes"·href="1.4.13.html"·/>16 ····<link·rel="prev"·title="Django·1.4.13·release·notes"·href="1.4.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="1.4.13.html"115 ····<p·class="topless"><a·href="1.4.13.html"
115 ··························title="previous·chapter">Django·1.4.13·release·notes</a></p>116 ··························title="capitolo·precedente">Django·1.4.13·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="1.4.11.html"120 ····<p·class="topless"><a·href="1.4.11.html"
120 ··························title="next·chapter">Django·1.4.11·release·notes</a></p>121 ··························title="capitolo·successivo">Django·1.4.11·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.95 KB
html2text {}
Max HTML report size reached
9.09 KB
./usr/share/doc/python-django-doc/html/releases/1.4.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.12·release·notes"·href="1.4.12.html"·/>15 ····<link·rel="next"·title="Django·1.4.12·release·notes"·href="1.4.12.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.14·release·notes"·href="1.4.14.html"·/>16 ····<link·rel="prev"·title="Django·1.4.14·release·notes"·href="1.4.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 <section·id="s-malformed-redirect-urls-from-user-input-not-correctly-validated">104 <section·id="s-malformed-redirect-urls-from-user-input-not-correctly-validated">
104 <span·id="malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>105 <span·id="malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>
105 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,106 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,
106 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to107 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to
107 an·unsafe·URL·unexpectedly.</p>108 an·unsafe·URL·unexpectedly.</p>
108 <p>Django·relies·on·user·input·in·some·cases·(e.g.109 <p>Django·relies·on·user·input·in·some·cases·(e.g.
109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and110 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and
110 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·on·success·URL.111 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·«on·success»·URL.
111 The·security·checks·for·these·redirects·(namely112 The·security·checks·for·these·redirects·(namely
112 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed113 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed
113 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some114 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some
114 browsers·with·more·liberal·URL·parsing.</p>115 browsers·with·more·liberal·URL·parsing.</p>
115 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able116 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able
116 to·handle·and·correctly·validate·these·malformed·URLs.</p>117 to·handle·and·correctly·validate·these·malformed·URLs.</p>
117 </section>118 </section>
Offset 135, 37 lines modifiedOffset 136, 37 lines modified
135 <li><a·class="reference·internal"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated">Malformed·redirect·URLs·from·user·input·not·correctly·validated</a></li>136 <li><a·class="reference·internal"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated">Malformed·redirect·URLs·from·user·input·not·correctly·validated</a></li>
136 </ul>137 </ul>
137 </li>138 </li>
138 </ul>139 </ul>
  
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="1.4.14.html"143 ····<p·class="topless"><a·href="1.4.14.html"
143 ··························title="previous·chapter">Django·1.4.14·release·notes</a></p>144 ··························title="capitolo·precedente">Django·1.4.14·release·notes</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="1.4.12.html"148 ····<p·class="topless"><a·href="1.4.12.html"
148 ··························title="next·chapter">Django·1.4.12·release·notes</a></p>149 ··························title="capitolo·successivo">Django·1.4.12·release·notes</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../search.html"·method="get">154 ····<form·class="search"·action="../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
3.52 KB
html2text {}
Max HTML report size reached
9.44 KB
./usr/share/doc/python-django-doc/html/releases/1.4.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.13·release·notes"·href="1.4.13.html"·/>15 ····<link·rel="next"·title="Django·1.4.13·release·notes"·href="1.4.13.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.15·release·notes"·href="1.4.15.html"·/>16 ····<link·rel="prev"·title="Django·1.4.15·release·notes"·href="1.4.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session117 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session
117 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on118 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on
118 a·failed·login·attempt.</p>119 a·failed·login·attempt.</p>
119 </section>120 </section>
120 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">121 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">
121 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>122 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>
122 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by123 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by
123 modifying·the·popup·and·to_field·parameters·of·the·query·string·on·an·admin124 modifying·the·«popup»·and·«to_field»·parameters·of·the·query·string·on·an·admin
124 change·form·page.·For·example,·requesting·a·URL·like125 change·form·page.·For·example,·requesting·a·URL·like
125 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?pop=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed126 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?pop=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed
126 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have127 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have
127 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak128 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak
128 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>129 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>
129 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value130 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value
130 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin131 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin
Offset 152, 37 lines modifiedOffset 153, 37 lines modified
152 <li><a·class="reference·internal"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin">Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code></a></li>153 <li><a·class="reference·internal"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin">Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code></a></li>
153 </ul>154 </ul>
154 </li>155 </li>
155 </ul>156 </ul>
  
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Previous·topic</h4>159 ····<h4>Argomento·precedente</h4>
159 ····<p·class="topless"><a·href="1.4.15.html"160 ····<p·class="topless"><a·href="1.4.15.html"
160 ··························title="previous·chapter">Django·1.4.15·release·notes</a></p>161 ··························title="capitolo·precedente">Django·1.4.15·release·notes</a></p>
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Next·topic</h4>164 ····<h4>Argomento·successivo</h4>
164 ····<p·class="topless"><a·href="1.4.13.html"165 ····<p·class="topless"><a·href="1.4.13.html"
165 ··························title="next·chapter">Django·1.4.13·release·notes</a></p>166 ··························title="capitolo·successivo">Django·1.4.13·release·notes</a></p>
166 ··</div>167 ··</div>
167 <search·id="searchbox"·style="display:·none"·role="search">168 <search·id="searchbox"·style="display:·none"·role="search">
168 ··<h3·id="searchlabel">Quick·search</h3>169 ··<h3·id="searchlabel">Ricerca·veloce</h3>
169 ····<div·class="searchformwrapper">170 ····<div·class="searchformwrapper">
170 ····<form·class="search"·action="../search.html"·method="get">171 ····<form·class="search"·action="../search.html"·method="get">
171 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>172 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
172 ······<input·type="submit"·value="Go"·/>173 ······<input·type="submit"·value="Vai"·/>
173 ····</form>174 ····</form>
174 ····</div>175 ····</div>
175 </search>176 </search>
176 <script>document.getElementById('searchbox').style.display·=·"block"</script>177 <script>document.getElementById('searchbox').style.display·=·"block"</script>
177 ········</div>178 ········</div>
178 ······</div>179 ······</div>
179 ··············<h3>Last·update:</h3>180 ··············<h3>Last·update:</h3>
180 ··············<p·class="topless">Sep·03,·2024</p>181 ··············<p·class="topless">set·03,·2024</p>
181 ··········</div>182 ··········</div>
182 ········183 ········
183 ······184 ······
184 ····</div>185 ····</div>
  
185 ····<div·id="ft">186 ····<div·id="ft">
186 ······<div·class="nav">187 ······<div·class="nav">
3.98 KB
html2text {}
Max HTML report size reached
5.66 KB
./usr/share/doc/python-django-doc/html/releases/1.4.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.14·release·notes"·href="1.4.14.html"·/>15 ····<link·rel="next"·title="Django·1.4.14·release·notes"·href="1.4.14.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.16·release·notes"·href="1.4.16.html"·/>16 ····<link·rel="prev"·title="Django·1.4.16·release·notes"·href="1.4.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="1.4.16.html"115 ····<p·class="topless"><a·href="1.4.16.html"
115 ··························title="previous·chapter">Django·1.4.16·release·notes</a></p>116 ··························title="capitolo·precedente">Django·1.4.16·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="1.4.14.html"120 ····<p·class="topless"><a·href="1.4.14.html"
120 ··························title="next·chapter">Django·1.4.14·release·notes</a></p>121 ··························title="capitolo·successivo">Django·1.4.14·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.9 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/1.4.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.15·release·notes"·href="1.4.15.html"·/>15 ····<link·rel="next"·title="Django·1.4.15·release·notes"·href="1.4.15.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.17·release·notes"·href="1.4.17.html"·/>16 ····<link·rel="prev"·title="Django·1.4.17·release·notes"·href="1.4.17.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.4.17.html"120 ····<p·class="topless"><a·href="1.4.17.html"
120 ··························title="previous·chapter">Django·1.4.17·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.4.17·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.4.15.html"125 ····<p·class="topless"><a·href="1.4.15.html"
125 ··························title="next·chapter">Django·1.4.15·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.4.15·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
5.81 KB
./usr/share/doc/python-django-doc/html/releases/1.4.17.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.17·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.17·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.16·release·notes"·href="1.4.16.html"·/>15 ····<link·rel="next"·title="Django·1.4.16·release·notes"·href="1.4.16.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.18·release·notes"·href="1.4.18.html"·/>16 ····<link·rel="prev"·title="Django·1.4.18·release·notes"·href="1.4.18.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.4.18.html"117 ····<p·class="topless"><a·href="1.4.18.html"
117 ··························title="previous·chapter">Django·1.4.18·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.4.18·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.4.16.html"122 ····<p·class="topless"><a·href="1.4.16.html"
122 ··························title="next·chapter">Django·1.4.16·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.4.16·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.05 KB
html2text {}
Max HTML report size reached
9.51 KB
./usr/share/doc/python-django-doc/html/releases/1.4.18.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.18·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.18·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.17·release·notes"·href="1.4.17.html"·/>15 ····<link·rel="next"·title="Django·1.4.17·release·notes"·href="1.4.17.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.19·release·notes"·href="1.4.19.html"·/>16 ····<link·rel="prev"·title="Django·1.4.19·release·notes"·href="1.4.19.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 recommended·for·production·use,·but·matching·the·behavior·of·common·production104 recommended·for·production·use,·but·matching·the·behavior·of·common·production
104 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>105 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>
105 </section>106 </section>
106 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">107 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
107 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>108 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
108 <p>Django·relies·on·user·input·in·some·cases·(e.g.109 <p>Django·relies·on·user·input·in·some·cases·(e.g.
109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)110 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
110 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these111 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
111 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading112 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading
112 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like113 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like
113 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to114 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to
114 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer115 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer
115 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put116 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put
116 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore117 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore
117 JavaScript·there.</p>118 JavaScript·there.</p>
Offset 159, 37 lines modifiedOffset 160, 37 lines modified
159 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>160 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
160 </ul>161 </ul>
161 </li>162 </li>
162 </ul>163 </ul>
  
163 ··</div>164 ··</div>
164 ··<div>165 ··<div>
165 ····<h4>Previous·topic</h4>166 ····<h4>Argomento·precedente</h4>
166 ····<p·class="topless"><a·href="1.4.19.html"167 ····<p·class="topless"><a·href="1.4.19.html"
167 ··························title="previous·chapter">Django·1.4.19·release·notes</a></p>168 ··························title="capitolo·precedente">Django·1.4.19·release·notes</a></p>
168 ··</div>169 ··</div>
169 ··<div>170 ··<div>
170 ····<h4>Next·topic</h4>171 ····<h4>Argomento·successivo</h4>
171 ····<p·class="topless"><a·href="1.4.17.html"172 ····<p·class="topless"><a·href="1.4.17.html"
172 ··························title="next·chapter">Django·1.4.17·release·notes</a></p>173 ··························title="capitolo·successivo">Django·1.4.17·release·notes</a></p>
173 ··</div>174 ··</div>
174 <search·id="searchbox"·style="display:·none"·role="search">175 <search·id="searchbox"·style="display:·none"·role="search">
175 ··<h3·id="searchlabel">Quick·search</h3>176 ··<h3·id="searchlabel">Ricerca·veloce</h3>
176 ····<div·class="searchformwrapper">177 ····<div·class="searchformwrapper">
177 ····<form·class="search"·action="../search.html"·method="get">178 ····<form·class="search"·action="../search.html"·method="get">
178 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>179 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
179 ······<input·type="submit"·value="Go"·/>180 ······<input·type="submit"·value="Vai"·/>
180 ····</form>181 ····</form>
181 ····</div>182 ····</div>
182 </search>183 </search>
183 <script>document.getElementById('searchbox').style.display·=·"block"</script>184 <script>document.getElementById('searchbox').style.display·=·"block"</script>
184 ········</div>185 ········</div>
185 ······</div>186 ······</div>
186 ··············<h3>Last·update:</h3>187 ··············<h3>Last·update:</h3>
187 ··············<p·class="topless">Sep·03,·2024</p>188 ··············<p·class="topless">set·03,·2024</p>
188 ··········</div>189 ··········</div>
189 ········190 ········
190 ······191 ······
191 ····</div>192 ····</div>
  
192 ····<div·id="ft">193 ····<div·id="ft">
193 ······<div·class="nav">194 ······<div·class="nav">
4.07 KB
html2text {}
Max HTML report size reached
5.9 KB
./usr/share/doc/python-django-doc/html/releases/1.4.19.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.19·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.19·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.18·release·notes"·href="1.4.18.html"·/>15 ····<link·rel="next"·title="Django·1.4.18·release·notes"·href="1.4.18.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.20·release·notes"·href="1.4.20.html"·/>16 ····<link·rel="prev"·title="Django·1.4.20·release·notes"·href="1.4.20.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="1.4.20.html"118 ····<p·class="topless"><a·href="1.4.20.html"
118 ··························title="previous·chapter">Django·1.4.20·release·notes</a></p>119 ··························title="capitolo·precedente">Django·1.4.20·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="1.4.18.html"123 ····<p·class="topless"><a·href="1.4.18.html"
123 ··························title="next·chapter">Django·1.4.18·release·notes</a></p>124 ··························title="capitolo·successivo">Django·1.4.18·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
6.03 KB
./usr/share/doc/python-django-doc/html/releases/1.4.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.1·release·notes"·href="1.4.1.html"·/>15 ····<link·rel="next"·title="Django·1.4.1·release·notes"·href="1.4.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.3·release·notes"·href="1.4.3.html"·/>16 ····<link·rel="prev"·title="Django·1.4.3·release·notes"·href="1.4.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>148 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="1.4.3.html"155 ····<p·class="topless"><a·href="1.4.3.html"
155 ··························title="previous·chapter">Django·1.4.3·release·notes</a></p>156 ··························title="capitolo·precedente">Django·1.4.3·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="1.4.1.html"160 ····<p·class="topless"><a·href="1.4.1.html"
160 ··························title="next·chapter">Django·1.4.1·release·notes</a></p>161 ··························title="capitolo·successivo">Django·1.4.1·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
2.25 KB
html2text {}
Max HTML report size reached
8.73 KB
./usr/share/doc/python-django-doc/html/releases/1.4.20.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.20·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.20·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.19·release·notes"·href="1.4.19.html"·/>15 ····<link·rel="next"·title="Django·1.4.19·release·notes"·href="1.4.19.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.21·release·notes"·href="1.4.21.html"·/>16 ····<link·rel="prev"·title="Django·1.4.21·release·notes"·href="1.4.21.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="django-1-4-20-release-notes"></span><h1>Django·1.4.20·release·notes<a·class="headerlink"·href="#django-1-4-20-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-4-20-release-notes"></span><h1>Django·1.4.20·release·notes<a·class="headerlink"·href="#django-1-4-20-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·18,·2015</em></p>83 <p><em>March·18,·2015</em></p>
83 <p>Django·1.4.20·fixes·one·security·issue·in·1.4.19.</p>84 <p>Django·1.4.20·fixes·one·security·issue·in·1.4.19.</p>
84 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">85 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
85 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases·(e.g.87 <p>Django·relies·on·user·input·in·some·cases·(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
88 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these89 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
89 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with
90 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>91 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>
91 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL92 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL
92 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript93 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript
93 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such94 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such
94 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target95 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target
95 isn’t·a·problem·either.</p>96 isn’t·a·problem·either.</p>
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls">Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs</a></li>118 <li><a·class="reference·internal"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls">Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="1.4.21.html"125 ····<p·class="topless"><a·href="1.4.21.html"
125 ··························title="previous·chapter">Django·1.4.21·release·notes</a></p>126 ··························title="capitolo·precedente">Django·1.4.21·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="1.4.19.html"130 ····<p·class="topless"><a·href="1.4.19.html"
130 ··························title="next·chapter">Django·1.4.19·release·notes</a></p>131 ··························title="capitolo·successivo">Django·1.4.19·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
3.07 KB
html2text {}
Max HTML report size reached
8.65 KB
./usr/share/doc/python-django-doc/html/releases/1.4.21.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.21·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.21·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.20·release·notes"·href="1.4.20.html"·/>15 ····<link·rel="next"·title="Django·1.4.20·release·notes"·href="1.4.20.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.22·release·notes"·href="1.4.22.html"·/>16 ····<link·rel="prev"·title="Django·1.4.22·release·notes"·href="1.4.22.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <section·id="s-denial-of-service-possibility-by-filling-session-store">85 <section·id="s-denial-of-service-possibility-by-filling-session-store">
85 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>86 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
86 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record87 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record
87 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a88 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a
88 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session89 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session
89 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records90 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records
90 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially91 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially
91 filling·up·the·session·store·or·causing·other·users·session·records·to·be92 filling·up·the·session·store·or·causing·other·users·session·records·to·be
92 evicted.</p>93 evicted.</p>
93 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session94 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session
94 is·actually·modified;·empty·session·records·are·not·created.·Thus·this95 is·actually·modified;·empty·session·records·are·not·created.·Thus·this
95 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a96 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a
96 session-modifying·view·to·anonymous·users.</p>97 session-modifying·view·to·anonymous·users.</p>
97 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the98 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the
98 core·sessions·framework),·maintainers·of·third-party·session·backends·should99 core·sessions·framework),·maintainers·of·third-party·session·backends·should
Offset 142, 37 lines modifiedOffset 143, 37 lines modified
142 <li><a·class="reference·internal"·href="#header-injection-possibility-since-validators-accept-newlines-in-input">Header·injection·possibility·since·validators·accept·newlines·in·input</a></li>143 <li><a·class="reference·internal"·href="#header-injection-possibility-since-validators-accept-newlines-in-input">Header·injection·possibility·since·validators·accept·newlines·in·input</a></li>
143 </ul>144 </ul>
144 </li>145 </li>
145 </ul>146 </ul>
  
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Previous·topic</h4>149 ····<h4>Argomento·precedente</h4>
149 ····<p·class="topless"><a·href="1.4.22.html"150 ····<p·class="topless"><a·href="1.4.22.html"
150 ··························title="previous·chapter">Django·1.4.22·release·notes</a></p>151 ··························title="capitolo·precedente">Django·1.4.22·release·notes</a></p>
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Next·topic</h4>154 ····<h4>Argomento·successivo</h4>
154 ····<p·class="topless"><a·href="1.4.20.html"155 ····<p·class="topless"><a·href="1.4.20.html"
155 ··························title="next·chapter">Django·1.4.20·release·notes</a></p>156 ··························title="capitolo·successivo">Django·1.4.20·release·notes</a></p>
156 ··</div>157 ··</div>
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../search.html"·method="get">161 ····<form·class="search"·action="../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
3.38 KB
html2text {}
Max HTML report size reached
9.54 KB
./usr/share/doc/python-django-doc/html/releases/1.4.22.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.22·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.22·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.21·release·notes"·href="1.4.21.html"·/>15 ····<link·rel="next"·title="Django·1.4.21·release·notes"·href="1.4.21.html"·/>
15 ····<link·rel="prev"·title="Django·1.5·release·notes"·href="1.5.html"·/>16 ····<link·rel="prev"·title="Django·1.5·release·notes"·href="1.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 87, 15 lines modifiedOffset 88, 15 lines modified
87 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">88 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">
88 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>89 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
89 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the90 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the
90 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated91 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated
91 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the92 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the
92 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records93 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records
93 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or94 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or
94 causing·other·users·session·records·to·be·evicted.</p>95 causing·other·users·session·records·to·be·evicted.</p>
95 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been96 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been
96 modified·to·no·longer·create·empty·session·records,·including·when97 modified·to·no·longer·create·empty·session·records,·including·when
97 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>98 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>
98 <p>Additionally,·the·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.sessions.backends.base.SessionBase.flush()</span></code>·and99 <p>Additionally,·the·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.sessions.backends.base.SessionBase.flush()</span></code>·and
99 <code·class="docutils·literal·notranslate"><span·class="pre">cache_db.SessionStore.flush()</span></code>·methods·have·been·modified·to·avoid·creating100 <code·class="docutils·literal·notranslate"><span·class="pre">cache_db.SessionStore.flush()</span></code>·methods·have·been·modified·to·avoid·creating
100 a·new·empty·session.·Maintainers·of·third-party·session·backends·should·check101 a·new·empty·session.·Maintainers·of·third-party·session·backends·should·check
101 if·the·same·vulnerability·is·present·in·their·backend·and·correct·it·if·so.</p>102 if·the·same·vulnerability·is·present·in·their·backend·and·correct·it·if·so.</p>
Offset 119, 37 lines modifiedOffset 120, 37 lines modified
119 <li><a·class="reference·internal"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store">Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store</a></li>120 <li><a·class="reference·internal"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store">Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store</a></li>
120 </ul>121 </ul>
121 </li>122 </li>
122 </ul>123 </ul>
  
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="1.5.html"127 ····<p·class="topless"><a·href="1.5.html"
127 ··························title="previous·chapter">Django·1.5·release·notes</a></p>128 ··························title="capitolo·precedente">Django·1.5·release·notes</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="1.4.21.html"132 ····<p·class="topless"><a·href="1.4.21.html"
132 ··························title="next·chapter">Django·1.4.21·release·notes</a></p>133 ··························title="capitolo·successivo">Django·1.4.21·release·notes</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
3.31 KB
html2text {}
Max HTML report size reached
8.35 KB
./usr/share/doc/python-django-doc/html/releases/1.4.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.2·release·notes"·href="1.4.2.html"·/>15 ····<link·rel="next"·title="Django·1.4.2·release·notes"·href="1.4.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.4·release·notes"·href="1.4.4.html"·/>16 ····<link·rel="prev"·title="Django·1.4.4·release·notes"·href="1.4.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 16 lines modifiedOffset 95, 16 lines modified
94 potentially-malicious·domains.</p>95 potentially-malicious·domains.</p>
95 <p>In·response·to·further·input·received·and·reports·of·continuing·issues96 <p>In·response·to·further·input·received·and·reports·of·continuing·issues
96 following·the·previous·release,·we’re·taking·additional·steps·to·tighten·Host97 following·the·previous·release,·we’re·taking·additional·steps·to·tighten·Host
97 header·validation.·Rather·than·attempt·to·accommodate·all·features·HTTP98 header·validation.·Rather·than·attempt·to·accommodate·all·features·HTTP
98 supports·here,·Django’s·Host·header·validation·attempts·to·support·a·smaller,99 supports·here,·Django’s·Host·header·validation·attempts·to·support·a·smaller,
99 but·far·more·common,·subset:</p>100 but·far·more·common,·subset:</p>
100 <ul·class="simple">101 <ul·class="simple">
101 <li><p>Hostnames·must·consist·of·characters·<code·class="docutils·literal·notranslate"><span·class="pre">[A-Za-z0-9]</span></code>·plus·hyphen·(-)·or·dot102 <li><p>Hostnames·must·consist·of·characters·<code·class="docutils·literal·notranslate"><span·class="pre">[A-Za-z0-9]</span></code>·plus·hyphen·(-)·or·dot
102 (.).</p></li>103 (.).</p></li>
103 <li><p>IP·addresses··both·IPv4·and·IPv6··are·permitted.</p></li>104 <li><p>IP·addresses··both·IPv4·and·IPv6··are·permitted.</p></li>
104 <li><p>Port,·if·specified,·is·numeric.</p></li>105 <li><p>Port,·if·specified,·is·numeric.</p></li>
105 </ul>106 </ul>
106 <p>Any·deviation·from·this·will·now·be·rejected,·raising·the·exception107 <p>Any·deviation·from·this·will·now·be·rejected,·raising·the·exception
107 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">django.core.exceptions.SuspiciousOperation</span></code></a>.</p>108 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SuspiciousOperation"·title="django.core.exceptions.SuspiciousOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">django.core.exceptions.SuspiciousOperation</span></code></a>.</p>
108 </section>109 </section>
109 <section·id="s-redirect-poisoning">110 <section·id="s-redirect-poisoning">
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 <li><a·class="reference·internal"·href="#redirect-poisoning">Redirect·poisoning</a></li>148 <li><a·class="reference·internal"·href="#redirect-poisoning">Redirect·poisoning</a></li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="1.4.4.html"155 ····<p·class="topless"><a·href="1.4.4.html"
155 ··························title="previous·chapter">Django·1.4.4·release·notes</a></p>156 ··························title="capitolo·precedente">Django·1.4.4·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="1.4.2.html"160 ····<p·class="topless"><a·href="1.4.2.html"
160 ··························title="next·chapter">Django·1.4.2·release·notes</a></p>161 ··························title="capitolo·successivo">Django·1.4.2·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
3.31 KB
html2text {}
Max HTML report size reached
6.04 KB
./usr/share/doc/python-django-doc/html/releases/1.4.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.3·release·notes"·href="1.4.3.html"·/>15 ····<link·rel="next"·title="Django·1.4.3·release·notes"·href="1.4.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.5·release·notes"·href="1.4.5.html"·/>16 ····<link·rel="prev"·title="Django·1.4.5·release·notes"·href="1.4.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 168, 37 lines modifiedOffset 169, 37 lines modified
168 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>169 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>
169 </ul>170 </ul>
170 </li>171 </li>
171 </ul>172 </ul>
  
172 ··</div>173 ··</div>
173 ··<div>174 ··<div>
174 ····<h4>Previous·topic</h4>175 ····<h4>Argomento·precedente</h4>
175 ····<p·class="topless"><a·href="1.4.5.html"176 ····<p·class="topless"><a·href="1.4.5.html"
176 ··························title="previous·chapter">Django·1.4.5·release·notes</a></p>177 ··························title="capitolo·precedente">Django·1.4.5·release·notes</a></p>
177 ··</div>178 ··</div>
178 ··<div>179 ··<div>
179 ····<h4>Next·topic</h4>180 ····<h4>Argomento·successivo</h4>
180 ····<p·class="topless"><a·href="1.4.3.html"181 ····<p·class="topless"><a·href="1.4.3.html"
181 ··························title="next·chapter">Django·1.4.3·release·notes</a></p>182 ··························title="capitolo·successivo">Django·1.4.3·release·notes</a></p>
182 ··</div>183 ··</div>
183 <search·id="searchbox"·style="display:·none"·role="search">184 <search·id="searchbox"·style="display:·none"·role="search">
184 ··<h3·id="searchlabel">Quick·search</h3>185 ··<h3·id="searchlabel">Ricerca·veloce</h3>
185 ····<div·class="searchformwrapper">186 ····<div·class="searchformwrapper">
186 ····<form·class="search"·action="../search.html"·method="get">187 ····<form·class="search"·action="../search.html"·method="get">
187 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
188 ······<input·type="submit"·value="Go"·/>189 ······<input·type="submit"·value="Vai"·/>
189 ····</form>190 ····</form>
190 ····</div>191 ····</div>
191 </search>192 </search>
192 <script>document.getElementById('searchbox').style.display·=·"block"</script>193 <script>document.getElementById('searchbox').style.display·=·"block"</script>
193 ········</div>194 ········</div>
194 ······</div>195 ······</div>
195 ··············<h3>Last·update:</h3>196 ··············<h3>Last·update:</h3>
196 ··············<p·class="topless">Sep·03,·2024</p>197 ··············<p·class="topless">set·03,·2024</p>
197 ··········</div>198 ··········</div>
198 ········199 ········
199 ······200 ······
200 ····</div>201 ····</div>
  
201 ····<div·id="ft">202 ····<div·id="ft">
202 ······<div·class="nav">203 ······<div·class="nav">
2.27 KB
html2text {}
Max HTML report size reached
6.92 KB
./usr/share/doc/python-django-doc/html/releases/1.4.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.4·release·notes"·href="1.4.4.html"·/>15 ····<link·rel="next"·title="Django·1.4.4·release·notes"·href="1.4.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.6·release·notes"·href="1.4.6.html"·/>16 ····<link·rel="prev"·title="Django·1.4.6·release·notes"·href="1.4.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.4.5">79 ··········<div·class="yui-g"·id="releases-1.4.5">
79 ············80 ············
80 ··<section·id="s-django-1-4-5-release-notes">81 ··<section·id="s-django-1-4-5-release-notes">
81 <span·id="django-1-4-5-release-notes"></span><h1>Django·1.4.5·release·notes<a·class="headerlink"·href="#django-1-4-5-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-4-5-release-notes"></span><h1>Django·1.4.5·release·notes<a·class="headerlink"·href="#django-1-4-5-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·20,·2013</em></p>83 <p><em>February·20,·2013</em></p>
83 <p>Django·1.4.5·corrects·a·packaging·problem·with·yesterday’s·<a·class="reference·internal"·href="1.4.4.html"><span·class="doc">1.4.4·release</span></a>.</p>84 <p>Django·1.4.5·corrects·a·packaging·problem·with·yesterday’s·<a·class="reference·internal"·href="1.4.4.html"><span·class="doc">1.4.4·release</span></a>.</p>
84 <p>The·release·contained·stray·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files·that·caused·bad·magic·number85 <p>The·release·contained·stray·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files·that·caused·«bad·magic·number»
85 errors·when·running·with·some·versions·of·Python.·This·releases·corrects·this,86 errors·when·running·with·some·versions·of·Python.·This·releases·corrects·this,
86 and·also·fixes·a·bad·documentation·link·in·the·project·template·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>87 and·also·fixes·a·bad·documentation·link·in·the·project·template·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>
87 file·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startproject</span></code>.</p>88 file·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startproject</span></code>.</p>
88 </section>89 </section>
  
  
89 ··········</div>90 ··········</div>
Offset 94, 37 lines modifiedOffset 95, 37 lines modified
94 ······95 ······
95 ········96 ········
96 ··········<div·class="yui-b"·id="sidebar">97 ··········<div·class="yui-b"·id="sidebar">
97 ············98 ············
98 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
99 ········<div·class="sphinxsidebarwrapper">100 ········<div·class="sphinxsidebarwrapper">
100 ··<div>101 ··<div>
101 ····<h4>Previous·topic</h4>102 ····<h4>Argomento·precedente</h4>
102 ····<p·class="topless"><a·href="1.4.6.html"103 ····<p·class="topless"><a·href="1.4.6.html"
103 ··························title="previous·chapter">Django·1.4.6·release·notes</a></p>104 ··························title="capitolo·precedente">Django·1.4.6·release·notes</a></p>
104 ··</div>105 ··</div>
105 ··<div>106 ··<div>
106 ····<h4>Next·topic</h4>107 ····<h4>Argomento·successivo</h4>
107 ····<p·class="topless"><a·href="1.4.4.html"108 ····<p·class="topless"><a·href="1.4.4.html"
108 ··························title="next·chapter">Django·1.4.4·release·notes</a></p>109 ··························title="capitolo·successivo">Django·1.4.4·release·notes</a></p>
109 ··</div>110 ··</div>
110 <search·id="searchbox"·style="display:·none"·role="search">111 <search·id="searchbox"·style="display:·none"·role="search">
111 ··<h3·id="searchlabel">Quick·search</h3>112 ··<h3·id="searchlabel">Ricerca·veloce</h3>
112 ····<div·class="searchformwrapper">113 ····<div·class="searchformwrapper">
113 ····<form·class="search"·action="../search.html"·method="get">114 ····<form·class="search"·action="../search.html"·method="get">
114 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
115 ······<input·type="submit"·value="Go"·/>116 ······<input·type="submit"·value="Vai"·/>
116 ····</form>117 ····</form>
117 ····</div>118 ····</div>
118 </search>119 </search>
119 <script>document.getElementById('searchbox').style.display·=·"block"</script>120 <script>document.getElementById('searchbox').style.display·=·"block"</script>
120 ········</div>121 ········</div>
121 ······</div>122 ······</div>
122 ··············<h3>Last·update:</h3>123 ··············<h3>Last·update:</h3>
123 ··············<p·class="topless">Sep·03,·2024</p>124 ··············<p·class="topless">set·03,·2024</p>
124 ··········</div>125 ··········</div>
125 ········126 ········
126 ······127 ······
127 ····</div>128 ····</div>
  
128 ····<div·id="ft">129 ····<div·id="ft">
129 ······<div·class="nav">130 ······<div·class="nav">
1.89 KB
html2text {}
Max HTML report size reached
8.91 KB
./usr/share/doc/python-django-doc/html/releases/1.4.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.5·release·notes"·href="1.4.5.html"·/>15 ····<link·rel="next"·title="Django·1.4.5·release·notes"·href="1.4.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.7·release·notes"·href="1.4.7.html"·/>16 ····<link·rel="prev"·title="Django·1.4.7·release·notes"·href="1.4.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 <p>Django·1.4.6·fixes·one·security·issue·present·in·previous·Django·releases·in84 <p>Django·1.4.6·fixes·one·security·issue·present·in·previous·Django·releases·in
84 the·1.4·series,·as·well·as·one·other·bug.</p>85 the·1.4·series,·as·well·as·one·other·bug.</p>
85 <p>This·is·the·sixth·bugfix/security·release·in·the·Django·1.4·series.</p>86 <p>This·is·the·sixth·bugfix/security·release·in·the·Django·1.4·series.</p>
86 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">87 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
87 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>88 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
88 <p>Django·relies·on·user·input·in·some·cases·(e.g.89 <p>Django·relies·on·user·input·in·some·cases·(e.g.
89 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and90 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and
90 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·on·success·URL.91 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·«on·success»·URL.
91 The·security·checks·for·these·redirects·(namely92 The·security·checks·for·these·redirects·(namely
92 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·check·if·the·scheme·is·<code·class="docutils·literal·notranslate"><span·class="pre">http(s)</span></code>93 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·check·if·the·scheme·is·<code·class="docutils·literal·notranslate"><span·class="pre">http(s)</span></code>
93 and·as·such·allowed·<code·class="docutils·literal·notranslate"><span·class="pre">javascript:...</span></code>·URLs·to·be·entered.·If·a·developer94 and·as·such·allowed·<code·class="docutils·literal·notranslate"><span·class="pre">javascript:...</span></code>·URLs·to·be·entered.·If·a·developer
94 relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect·targets·and·put·such·a95 relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect·targets·and·put·such·a
95 URL·into·a·link,·they·could·suffer·from·a·XSS·attack.·This·bug·doesn’t·affect96 URL·into·a·link,·they·could·suffer·from·a·XSS·attack.·This·bug·doesn’t·affect
96 Django·currently,·since·we·only·put·this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response97 Django·currently,·since·we·only·put·this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response
97 header·and·browsers·seem·to·ignore·JavaScript·there.</p>98 header·and·browsers·seem·to·ignore·JavaScript·there.</p>
Offset 124, 37 lines modifiedOffset 125, 37 lines modified
124 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>125 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
125 </ul>126 </ul>
126 </li>127 </li>
127 </ul>128 </ul>
  
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Previous·topic</h4>131 ····<h4>Argomento·precedente</h4>
131 ····<p·class="topless"><a·href="1.4.7.html"132 ····<p·class="topless"><a·href="1.4.7.html"
132 ··························title="previous·chapter">Django·1.4.7·release·notes</a></p>133 ··························title="capitolo·precedente">Django·1.4.7·release·notes</a></p>
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Next·topic</h4>136 ····<h4>Argomento·successivo</h4>
136 ····<p·class="topless"><a·href="1.4.5.html"137 ····<p·class="topless"><a·href="1.4.5.html"
137 ··························title="next·chapter">Django·1.4.5·release·notes</a></p>138 ··························title="capitolo·successivo">Django·1.4.5·release·notes</a></p>
138 ··</div>139 ··</div>
139 <search·id="searchbox"·style="display:·none"·role="search">140 <search·id="searchbox"·style="display:·none"·role="search">
140 ··<h3·id="searchlabel">Quick·search</h3>141 ··<h3·id="searchlabel">Ricerca·veloce</h3>
141 ····<div·class="searchformwrapper">142 ····<div·class="searchformwrapper">
142 ····<form·class="search"·action="../search.html"·method="get">143 ····<form·class="search"·action="../search.html"·method="get">
143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
144 ······<input·type="submit"·value="Go"·/>145 ······<input·type="submit"·value="Vai"·/>
145 ····</form>146 ····</form>
146 ····</div>147 ····</div>
147 </search>148 </search>
148 <script>document.getElementById('searchbox').style.display·=·"block"</script>149 <script>document.getElementById('searchbox').style.display·=·"block"</script>
149 ········</div>150 ········</div>
150 ······</div>151 ······</div>
151 ··············<h3>Last·update:</h3>152 ··············<h3>Last·update:</h3>
152 ··············<p·class="topless">Sep·03,·2024</p>153 ··············<p·class="topless">set·03,·2024</p>
153 ··········</div>154 ··········</div>
154 ········155 ········
155 ······156 ······
156 ····</div>157 ····</div>
  
157 ····<div·id="ft">158 ····<div·id="ft">
158 ······<div·class="nav">159 ······<div·class="nav">
3.23 KB
html2text {}
Max HTML report size reached
6.21 KB
./usr/share/doc/python-django-doc/html/releases/1.4.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.6·release·notes"·href="1.4.6.html"·/>15 ····<link·rel="next"·title="Django·1.4.6·release·notes"·href="1.4.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.8·release·notes"·href="1.4.8.html"·/>16 ····<link·rel="prev"·title="Django·1.4.8·release·notes"·href="1.4.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#directory-traversal-vulnerability-in-ssi-template-tag">Directory·traversal·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">ssi</span></code>·template·tag</a></li>116 <li><a·class="reference·internal"·href="#directory-traversal-vulnerability-in-ssi-template-tag">Directory·traversal·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">ssi</span></code>·template·tag</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="1.4.8.html"123 ····<p·class="topless"><a·href="1.4.8.html"
123 ··························title="previous·chapter">Django·1.4.8·release·notes</a></p>124 ··························title="capitolo·precedente">Django·1.4.8·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="1.4.6.html"128 ····<p·class="topless"><a·href="1.4.6.html"
128 ··························title="next·chapter">Django·1.4.6·release·notes</a></p>129 ··························title="capitolo·successivo">Django·1.4.6·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.31 KB
html2text {}
Max HTML report size reached
6.48 KB
./usr/share/doc/python-django-doc/html/releases/1.4.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.7·release·notes"·href="1.4.7.html"·/>15 ····<link·rel="next"·title="Django·1.4.7·release·notes"·href="1.4.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.9·release·notes"·href="1.4.9.html"·/>16 ····<link·rel="prev"·title="Django·1.4.9·release·notes"·href="1.4.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 123, 37 lines modifiedOffset 124, 37 lines modified
123 <li><a·class="reference·internal"·href="#corrected-usage-of-sensitive-post-parameters-in-django-contrib-auths-admin">Corrected·usage·of·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sensitive_post_parameters()</span></code>·in·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code>’s·admin</a></li>124 <li><a·class="reference·internal"·href="#corrected-usage-of-sensitive-post-parameters-in-django-contrib-auths-admin">Corrected·usage·of·<code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sensitive_post_parameters()</span></code>·in·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code>’s·admin</a></li>
124 </ul>125 </ul>
125 </li>126 </li>
126 </ul>127 </ul>
  
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Previous·topic</h4>130 ····<h4>Argomento·precedente</h4>
130 ····<p·class="topless"><a·href="1.4.9.html"131 ····<p·class="topless"><a·href="1.4.9.html"
131 ··························title="previous·chapter">Django·1.4.9·release·notes</a></p>132 ··························title="capitolo·precedente">Django·1.4.9·release·notes</a></p>
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Next·topic</h4>135 ····<h4>Argomento·successivo</h4>
135 ····<p·class="topless"><a·href="1.4.7.html"136 ····<p·class="topless"><a·href="1.4.7.html"
136 ··························title="next·chapter">Django·1.4.7·release·notes</a></p>137 ··························title="capitolo·successivo">Django·1.4.7·release·notes</a></p>
137 ··</div>138 ··</div>
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../search.html"·method="get">142 ····<form·class="search"·action="../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
2.43 KB
html2text {}
Max HTML report size reached
6.09 KB
./usr/share/doc/python-django-doc/html/releases/1.4.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.4.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.4.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.8·release·notes"·href="1.4.8.html"·/>15 ····<link·rel="next"·title="Django·1.4.8·release·notes"·href="1.4.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.4.10·release·notes"·href="1.4.10.html"·/>16 ····<link·rel="prev"·title="Django·1.4.10·release·notes"·href="1.4.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="1.4.10.html"123 ····<p·class="topless"><a·href="1.4.10.html"
123 ··························title="previous·chapter">Django·1.4.10·release·notes</a></p>124 ··························title="capitolo·precedente">Django·1.4.10·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="1.4.8.html"128 ····<p·class="topless"><a·href="1.4.8.html"
128 ··························title="next·chapter">Django·1.4.8·release·notes</a></p>129 ··························title="capitolo·successivo">Django·1.4.8·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.34 KB
html2text {}
Max HTML report size reached
47.2 KB
./usr/share/doc/python-django-doc/html/releases/1.4.html
Max HTML report size reached
5.94 KB
./usr/share/doc/python-django-doc/html/releases/1.5.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5·release·notes"·href="1.5.html"·/>15 ····<link·rel="next"·title="Django·1.5·release·notes"·href="1.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.2·release·notes"·href="1.5.2.html"·/>16 ····<link·rel="prev"·title="Django·1.5.2·release·notes"·href="1.5.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 104, 37 lines modifiedOffset 105, 37 lines modified
104 ······105 ······
105 ········106 ········
106 ··········<div·class="yui-b"·id="sidebar">107 ··········<div·class="yui-b"·id="sidebar">
107 ············108 ············
108 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">109 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
109 ········<div·class="sphinxsidebarwrapper">110 ········<div·class="sphinxsidebarwrapper">
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="1.5.2.html"113 ····<p·class="topless"><a·href="1.5.2.html"
113 ··························title="previous·chapter">Django·1.5.2·release·notes</a></p>114 ··························title="capitolo·precedente">Django·1.5.2·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="1.5.html"118 ····<p·class="topless"><a·href="1.5.html"
118 ··························title="next·chapter">Django·1.5·release·notes</a></p>119 ··························title="capitolo·successivo">Django·1.5·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
5.65 KB
./usr/share/doc/python-django-doc/html/releases/1.5.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.9·release·notes"·href="1.5.9.html"·/>15 ····<link·rel="next"·title="Django·1.5.9·release·notes"·href="1.5.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.11·release·notes"·href="1.5.11.html"·/>16 ····<link·rel="prev"·title="Django·1.5.11·release·notes"·href="1.5.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="1.5.11.html"115 ····<p·class="topless"><a·href="1.5.11.html"
115 ··························title="previous·chapter">Django·1.5.11·release·notes</a></p>116 ··························title="capitolo·precedente">Django·1.5.11·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="1.5.9.html"120 ····<p·class="topless"><a·href="1.5.9.html"
120 ··························title="next·chapter">Django·1.5.9·release·notes</a></p>121 ··························title="capitolo·successivo">Django·1.5.9·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.9 KB
html2text {}
Max HTML report size reached
5.75 KB
./usr/share/doc/python-django-doc/html/releases/1.5.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.10·release·notes"·href="1.5.10.html"·/>15 ····<link·rel="next"·title="Django·1.5.10·release·notes"·href="1.5.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.12·release·notes"·href="1.5.12.html"·/>16 ····<link·rel="prev"·title="Django·1.5.12·release·notes"·href="1.5.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.5.12.html"117 ····<p·class="topless"><a·href="1.5.12.html"
117 ··························title="previous·chapter">Django·1.5.12·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.5.12·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.5.10.html"122 ····<p·class="topless"><a·href="1.5.10.html"
122 ··························title="next·chapter">Django·1.5.10·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.5.10·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.0 KB
html2text {}
Max HTML report size reached
5.67 KB
./usr/share/doc/python-django-doc/html/releases/1.5.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.11·release·notes"·href="1.5.11.html"·/>15 ····<link·rel="next"·title="Django·1.5.11·release·notes"·href="1.5.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.6·release·notes"·href="1.6.html"·/>16 ····<link·rel="prev"·title="Django·1.6·release·notes"·href="1.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.6.html"116 ····<p·class="topless"><a·href="1.6.html"
116 ··························title="previous·chapter">Django·1.6·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.6·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.5.11.html"121 ····<p·class="topless"><a·href="1.5.11.html"
121 ··························title="next·chapter">Django·1.5.11·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.5.11·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.93 KB
html2text {}
Max HTML report size reached
8.89 KB
./usr/share/doc/python-django-doc/html/releases/1.5.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.1·release·notes"·href="1.5.1.html"·/>15 ····<link·rel="next"·title="Django·1.5.1·release·notes"·href="1.5.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.3·release·notes"·href="1.5.3.html"·/>16 ····<link·rel="prev"·title="Django·1.5.3·release·notes"·href="1.5.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 15 lines modifiedOffset 82, 15 lines modified
81 <span·id="django-1-5-2-release-notes"></span><h1>Django·1.5.2·release·notes<a·class="headerlink"·href="#django-1-5-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-5-2-release-notes"></span><h1>Django·1.5.2·release·notes<a·class="headerlink"·href="#django-1-5-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>August·13,·2013</em></p>83 <p><em>August·13,·2013</em></p>
83 <p>This·is·Django·1.5.2,·a·bugfix·and·security·release·for·Django·1.5.</p>84 <p>This·is·Django·1.5.2,·a·bugfix·and·security·release·for·Django·1.5.</p>
84 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">85 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
85 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases·(e.g.87 <p>Django·relies·on·user·input·in·some·cases·(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and
88 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·on·success·URL.89 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·«on·success»·URL.
89 The·security·checks·for·these·redirects·(namely90 The·security·checks·for·these·redirects·(namely
90 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·check·if·the·scheme·is·<code·class="docutils·literal·notranslate"><span·class="pre">http(s)</span></code>91 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·check·if·the·scheme·is·<code·class="docutils·literal·notranslate"><span·class="pre">http(s)</span></code>
91 and·as·such·allowed·<code·class="docutils·literal·notranslate"><span·class="pre">javascript:...</span></code>·URLs·to·be·entered.·If·a·developer92 and·as·such·allowed·<code·class="docutils·literal·notranslate"><span·class="pre">javascript:...</span></code>·URLs·to·be·entered.·If·a·developer
92 relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect·targets·and·put·such·a93 relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect·targets·and·put·such·a
93 URL·into·a·link,·they·could·suffer·from·a·XSS·attack.·This·bug·doesn’t·affect94 URL·into·a·link,·they·could·suffer·from·a·XSS·attack.·This·bug·doesn’t·affect
94 Django·currently,·since·we·only·put·this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response95 Django·currently,·since·we·only·put·this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response
95 header·and·browsers·seem·to·ignore·JavaScript·there.</p>96 header·and·browsers·seem·to·ignore·JavaScript·there.</p>
Offset 156, 37 lines modifiedOffset 157, 37 lines modified
156 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>157 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
157 </ul>158 </ul>
158 </li>159 </li>
159 </ul>160 </ul>
  
160 ··</div>161 ··</div>
161 ··<div>162 ··<div>
162 ····<h4>Previous·topic</h4>163 ····<h4>Argomento·precedente</h4>
163 ····<p·class="topless"><a·href="1.5.3.html"164 ····<p·class="topless"><a·href="1.5.3.html"
164 ··························title="previous·chapter">Django·1.5.3·release·notes</a></p>165 ··························title="capitolo·precedente">Django·1.5.3·release·notes</a></p>
165 ··</div>166 ··</div>
166 ··<div>167 ··<div>
167 ····<h4>Next·topic</h4>168 ····<h4>Argomento·successivo</h4>
168 ····<p·class="topless"><a·href="1.5.1.html"169 ····<p·class="topless"><a·href="1.5.1.html"
169 ··························title="next·chapter">Django·1.5.1·release·notes</a></p>170 ··························title="capitolo·successivo">Django·1.5.1·release·notes</a></p>
170 ··</div>171 ··</div>
171 <search·id="searchbox"·style="display:·none"·role="search">172 <search·id="searchbox"·style="display:·none"·role="search">
172 ··<h3·id="searchlabel">Quick·search</h3>173 ··<h3·id="searchlabel">Ricerca·veloce</h3>
173 ····<div·class="searchformwrapper">174 ····<div·class="searchformwrapper">
174 ····<form·class="search"·action="../search.html"·method="get">175 ····<form·class="search"·action="../search.html"·method="get">
175 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
176 ······<input·type="submit"·value="Go"·/>177 ······<input·type="submit"·value="Vai"·/>
177 ····</form>178 ····</form>
178 ····</div>179 ····</div>
179 </search>180 </search>
180 <script>document.getElementById('searchbox').style.display·=·"block"</script>181 <script>document.getElementById('searchbox').style.display·=·"block"</script>
181 ········</div>182 ········</div>
182 ······</div>183 ······</div>
183 ··············<h3>Last·update:</h3>184 ··············<h3>Last·update:</h3>
184 ··············<p·class="topless">Sep·03,·2024</p>185 ··············<p·class="topless">set·03,·2024</p>
185 ··········</div>186 ··········</div>
186 ········187 ········
187 ······188 ······
188 ····</div>189 ····</div>
  
189 ····<div·id="ft">190 ····<div·id="ft">
190 ······<div·class="nav">191 ······<div·class="nav">
3.13 KB
html2text {}
Max HTML report size reached
6.46 KB
./usr/share/doc/python-django-doc/html/releases/1.5.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.2·release·notes"·href="1.5.2.html"·/>15 ····<link·rel="next"·title="Django·1.5.2·release·notes"·href="1.5.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.4·release·notes"·href="1.5.4.html"·/>16 ····<link·rel="prev"·title="Django·1.5.4·release·notes"·href="1.5.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 139, 37 lines modifiedOffset 140, 37 lines modified
139 <li><a·class="reference·internal"·href="#mitigating-a-remote-code-execution-vulnerability-in-django-contrib-sessions">Mitigating·a·remote-code·execution·vulnerability·in·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.sessions</span></code></a></li>140 <li><a·class="reference·internal"·href="#mitigating-a-remote-code-execution-vulnerability-in-django-contrib-sessions">Mitigating·a·remote-code·execution·vulnerability·in·<code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.sessions</span></code></a></li>
140 </ul>141 </ul>
141 </li>142 </li>
142 </ul>143 </ul>
  
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Previous·topic</h4>146 ····<h4>Argomento·precedente</h4>
146 ····<p·class="topless"><a·href="1.5.4.html"147 ····<p·class="topless"><a·href="1.5.4.html"
147 ··························title="previous·chapter">Django·1.5.4·release·notes</a></p>148 ··························title="capitolo·precedente">Django·1.5.4·release·notes</a></p>
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Next·topic</h4>151 ····<h4>Argomento·successivo</h4>
151 ····<p·class="topless"><a·href="1.5.2.html"152 ····<p·class="topless"><a·href="1.5.2.html"
152 ··························title="next·chapter">Django·1.5.2·release·notes</a></p>153 ··························title="capitolo·successivo">Django·1.5.2·release·notes</a></p>
153 ··</div>154 ··</div>
154 <search·id="searchbox"·style="display:·none"·role="search">155 <search·id="searchbox"·style="display:·none"·role="search">
155 ··<h3·id="searchlabel">Quick·search</h3>156 ··<h3·id="searchlabel">Ricerca·veloce</h3>
156 ····<div·class="searchformwrapper">157 ····<div·class="searchformwrapper">
157 ····<form·class="search"·action="../search.html"·method="get">158 ····<form·class="search"·action="../search.html"·method="get">
158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
159 ······<input·type="submit"·value="Go"·/>160 ······<input·type="submit"·value="Vai"·/>
160 ····</form>161 ····</form>
161 ····</div>162 ····</div>
162 </search>163 </search>
163 <script>document.getElementById('searchbox').style.display·=·"block"</script>164 <script>document.getElementById('searchbox').style.display·=·"block"</script>
164 ········</div>165 ········</div>
165 ······</div>166 ······</div>
166 ··············<h3>Last·update:</h3>167 ··············<h3>Last·update:</h3>
167 ··············<p·class="topless">Sep·03,·2024</p>168 ··············<p·class="topless">set·03,·2024</p>
168 ··········</div>169 ··········</div>
169 ········170 ········
170 ······171 ······
171 ····</div>172 ····</div>
  
172 ····<div·id="ft">173 ····<div·id="ft">
173 ······<div·class="nav">174 ······<div·class="nav">
2.5 KB
html2text {}
Max HTML report size reached
6.11 KB
./usr/share/doc/python-django-doc/html/releases/1.5.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.3·release·notes"·href="1.5.3.html"·/>15 ····<link·rel="next"·title="Django·1.5.3·release·notes"·href="1.5.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.5·release·notes"·href="1.5.5.html"·/>16 ····<link·rel="prev"·title="Django·1.5.5·release·notes"·href="1.5.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 133, 37 lines modifiedOffset 134, 37 lines modified
133 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
134 </ul>135 </ul>
135 </li>136 </li>
136 </ul>137 </ul>
  
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Previous·topic</h4>140 ····<h4>Argomento·precedente</h4>
140 ····<p·class="topless"><a·href="1.5.5.html"141 ····<p·class="topless"><a·href="1.5.5.html"
141 ··························title="previous·chapter">Django·1.5.5·release·notes</a></p>142 ··························title="capitolo·precedente">Django·1.5.5·release·notes</a></p>
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Next·topic</h4>145 ····<h4>Argomento·successivo</h4>
145 ····<p·class="topless"><a·href="1.5.3.html"146 ····<p·class="topless"><a·href="1.5.3.html"
146 ··························title="next·chapter">Django·1.5.3·release·notes</a></p>147 ··························title="capitolo·successivo">Django·1.5.3·release·notes</a></p>
147 ··</div>148 ··</div>
148 <search·id="searchbox"·style="display:·none"·role="search">149 <search·id="searchbox"·style="display:·none"·role="search">
149 ··<h3·id="searchlabel">Quick·search</h3>150 ··<h3·id="searchlabel">Ricerca·veloce</h3>
150 ····<div·class="searchformwrapper">151 ····<div·class="searchformwrapper">
151 ····<form·class="search"·action="../search.html"·method="get">152 ····<form·class="search"·action="../search.html"·method="get">
152 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
153 ······<input·type="submit"·value="Go"·/>154 ······<input·type="submit"·value="Vai"·/>
154 ····</form>155 ····</form>
155 ····</div>156 ····</div>
156 </search>157 </search>
157 <script>document.getElementById('searchbox').style.display·=·"block"</script>158 <script>document.getElementById('searchbox').style.display·=·"block"</script>
158 ········</div>159 ········</div>
159 ······</div>160 ······</div>
160 ··············<h3>Last·update:</h3>161 ··············<h3>Last·update:</h3>
161 ··············<p·class="topless">Sep·03,·2024</p>162 ··············<p·class="topless">set·03,·2024</p>
162 ··········</div>163 ··········</div>
163 ········164 ········
164 ······165 ······
165 ····</div>166 ····</div>
  
166 ····<div·id="ft">167 ····<div·id="ft">
167 ······<div·class="nav">168 ······<div·class="nav">
2.36 KB
html2text {}
Max HTML report size reached
6.2 KB
./usr/share/doc/python-django-doc/html/releases/1.5.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.4·release·notes"·href="1.5.4.html"·/>15 ····<link·rel="next"·title="Django·1.5.4·release·notes"·href="1.5.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.6·release·notes"·href="1.5.6.html"·/>16 ····<link·rel="prev"·title="Django·1.5.6·release·notes"·href="1.5.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 135, 37 lines modifiedOffset 136, 37 lines modified
135 <li><a·class="reference·internal"·href="#backwards-incompatible-changes">Backwards·incompatible·changes</a></li>136 <li><a·class="reference·internal"·href="#backwards-incompatible-changes">Backwards·incompatible·changes</a></li>
136 </ul>137 </ul>
137 </li>138 </li>
138 </ul>139 </ul>
  
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="1.5.6.html"143 ····<p·class="topless"><a·href="1.5.6.html"
143 ··························title="previous·chapter">Django·1.5.6·release·notes</a></p>144 ··························title="capitolo·precedente">Django·1.5.6·release·notes</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="1.5.4.html"148 ····<p·class="topless"><a·href="1.5.4.html"
148 ··························title="next·chapter">Django·1.5.4·release·notes</a></p>149 ··························title="capitolo·successivo">Django·1.5.4·release·notes</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../search.html"·method="get">154 ····<form·class="search"·action="../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
10.5 KB
./usr/share/doc/python-django-doc/html/releases/1.5.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.5·release·notes"·href="1.5.5.html"·/>15 ····<link·rel="next"·title="Django·1.5.5·release·notes"·href="1.5.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.7·release·notes"·href="1.5.7.html"·/>16 ····<link·rel="prev"·title="Django·1.5.7·release·notes"·href="1.5.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 99, 15 lines modifiedOffset 100, 15 lines modified
99 module·indicated·by·that·dotted·path·as·part·of·generating·the100 module·indicated·by·that·dotted·path·as·part·of·generating·the
100 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those101 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those
101 side·effects·will·occur.</p>102 side·effects·will·occur.</p>
102 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code103 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code
103 execution,·given·the·following·conditions:</p>104 execution,·given·the·following·conditions:</p>
104 <ol·class="arabic·simple">105 <ol·class="arabic·simple">
105 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user106 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user
106 input·(commonly,·a·next·parameter·in·a·querystring·indicating107 input·(commonly,·a·«next»·parameter·in·a·querystring·indicating
107 where·to·redirect·upon·successful·completion·of·an·action).</p></li>108 where·to·redirect·upon·successful·completion·of·an·action).</p></li>
108 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the109 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the
109 server’s·Python·import·path,·which·perform·code·execution·with·side110 server’s·Python·import·path,·which·perform·code·execution·with·side
110 effects·on·importing.</p></li>111 effects·on·importing.</p></li>
111 </ol>112 </ol>
112 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted113 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted
113 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL114 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL
Offset 136, 15 lines modifiedOffset 137, 15 lines modified
136 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>137 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>
137 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the138 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the
138 response·will·not·be·cached.</p></li>139 response·will·not·be·cached.</p></li>
139 </ol>140 </ol>
140 </section>141 </section>
141 <section·id="s-mysql-typecasting">142 <section·id="s-mysql-typecasting">
142 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>143 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>
143 <p>The·MySQL·database·is·known·to·typecast·on·certain·queries;·for144 <p>The·MySQL·database·is·known·to·«typecast»·on·certain·queries;·for
144 example,·when·querying·a·table·which·contains·string·values,·but·using145 example,·when·querying·a·table·which·contains·string·values,·but·using
145 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first146 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first
146 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>147 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>
147 <p>If·a·query·is·performed·without·first·converting·values·to·the148 <p>If·a·query·is·performed·without·first·converting·values·to·the
148 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what149 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what
149 would·occur·if·the·query·itself·had·been·manipulated.</p>150 would·occur·if·the·query·itself·had·been·manipulated.</p>
150 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most151 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most
Offset 196, 37 lines modifiedOffset 197, 37 lines modified
196 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>197 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
197 </ul>198 </ul>
198 </li>199 </li>
199 </ul>200 </ul>
  
200 ··</div>201 ··</div>
201 ··<div>202 ··<div>
202 ····<h4>Previous·topic</h4>203 ····<h4>Argomento·precedente</h4>
203 ····<p·class="topless"><a·href="1.5.7.html"204 ····<p·class="topless"><a·href="1.5.7.html"
204 ··························title="previous·chapter">Django·1.5.7·release·notes</a></p>205 ··························title="capitolo·precedente">Django·1.5.7·release·notes</a></p>
205 ··</div>206 ··</div>
206 ··<div>207 ··<div>
207 ····<h4>Next·topic</h4>208 ····<h4>Argomento·successivo</h4>
208 ····<p·class="topless"><a·href="1.5.5.html"209 ····<p·class="topless"><a·href="1.5.5.html"
209 ··························title="next·chapter">Django·1.5.5·release·notes</a></p>210 ··························title="capitolo·successivo">Django·1.5.5·release·notes</a></p>
210 ··</div>211 ··</div>
211 <search·id="searchbox"·style="display:·none"·role="search">212 <search·id="searchbox"·style="display:·none"·role="search">
212 ··<h3·id="searchlabel">Quick·search</h3>213 ··<h3·id="searchlabel">Ricerca·veloce</h3>
213 ····<div·class="searchformwrapper">214 ····<div·class="searchformwrapper">
214 ····<form·class="search"·action="../search.html"·method="get">215 ····<form·class="search"·action="../search.html"·method="get">
215 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>216 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
216 ······<input·type="submit"·value="Go"·/>217 ······<input·type="submit"·value="Vai"·/>
217 ····</form>218 ····</form>
218 ····</div>219 ····</div>
219 </search>220 </search>
220 <script>document.getElementById('searchbox').style.display·=·"block"</script>221 <script>document.getElementById('searchbox').style.display·=·"block"</script>
221 ········</div>222 ········</div>
222 ······</div>223 ······</div>
223 ··············<h3>Last·update:</h3>224 ··············<h3>Last·update:</h3>
224 ··············<p·class="topless">Sep·03,·2024</p>225 ··············<p·class="topless">set·03,·2024</p>
225 ··········</div>226 ··········</div>
226 ········227 ········
227 ······228 ······
228 ····</div>229 ····</div>
  
229 ····<div·id="ft">230 ····<div·id="ft">
230 ······<div·class="nav">231 ······<div·class="nav">
4.57 KB
html2text {}
Max HTML report size reached
5.68 KB
./usr/share/doc/python-django-doc/html/releases/1.5.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.6·release·notes"·href="1.5.6.html"·/>15 ····<link·rel="next"·title="Django·1.5.6·release·notes"·href="1.5.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.8·release·notes"·href="1.5.8.html"·/>16 ····<link·rel="prev"·title="Django·1.5.8·release·notes"·href="1.5.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="1.5.8.html"115 ····<p·class="topless"><a·href="1.5.8.html"
115 ··························title="previous·chapter">Django·1.5.8·release·notes</a></p>116 ··························title="capitolo·precedente">Django·1.5.8·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="1.5.6.html"120 ····<p·class="topless"><a·href="1.5.6.html"
120 ··························title="next·chapter">Django·1.5.6·release·notes</a></p>121 ··························title="capitolo·successivo">Django·1.5.6·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.93 KB
html2text {}
Max HTML report size reached
9.07 KB
./usr/share/doc/python-django-doc/html/releases/1.5.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.7·release·notes"·href="1.5.7.html"·/>15 ····<link·rel="next"·title="Django·1.5.7·release·notes"·href="1.5.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.9·release·notes"·href="1.5.9.html"·/>16 ····<link·rel="prev"·title="Django·1.5.9·release·notes"·href="1.5.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 <section·id="s-malformed-redirect-urls-from-user-input-not-correctly-validated">104 <section·id="s-malformed-redirect-urls-from-user-input-not-correctly-validated">
104 <span·id="malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>105 <span·id="malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>
105 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,106 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,
106 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to107 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to
107 an·unsafe·URL·unexpectedly.</p>108 an·unsafe·URL·unexpectedly.</p>
108 <p>Django·relies·on·user·input·in·some·cases·(e.g.109 <p>Django·relies·on·user·input·in·some·cases·(e.g.
109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and110 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and
110 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·on·success·URL.111 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·«on·success»·URL.
111 The·security·checks·for·these·redirects·(namely112 The·security·checks·for·these·redirects·(namely
112 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed113 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed
113 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some114 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some
114 browsers·with·more·liberal·URL·parsing.</p>115 browsers·with·more·liberal·URL·parsing.</p>
115 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able116 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able
116 to·handle·and·correctly·validate·these·malformed·URLs.</p>117 to·handle·and·correctly·validate·these·malformed·URLs.</p>
117 </section>118 </section>
Offset 135, 37 lines modifiedOffset 136, 37 lines modified
135 <li><a·class="reference·internal"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated">Malformed·redirect·URLs·from·user·input·not·correctly·validated</a></li>136 <li><a·class="reference·internal"·href="#malformed-redirect-urls-from-user-input-not-correctly-validated">Malformed·redirect·URLs·from·user·input·not·correctly·validated</a></li>
136 </ul>137 </ul>
137 </li>138 </li>
138 </ul>139 </ul>
  
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="1.5.9.html"143 ····<p·class="topless"><a·href="1.5.9.html"
143 ··························title="previous·chapter">Django·1.5.9·release·notes</a></p>144 ··························title="capitolo·precedente">Django·1.5.9·release·notes</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="1.5.7.html"148 ····<p·class="topless"><a·href="1.5.7.html"
148 ··························title="next·chapter">Django·1.5.7·release·notes</a></p>149 ··························title="capitolo·successivo">Django·1.5.7·release·notes</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../search.html"·method="get">154 ····<form·class="search"·action="../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
3.5 KB
html2text {}
Max HTML report size reached
9.42 KB
./usr/share/doc/python-django-doc/html/releases/1.5.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.8·release·notes"·href="1.5.8.html"·/>15 ····<link·rel="next"·title="Django·1.5.8·release·notes"·href="1.5.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.10·release·notes"·href="1.5.10.html"·/>16 ····<link·rel="prev"·title="Django·1.5.10·release·notes"·href="1.5.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session117 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session
117 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on118 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on
118 a·failed·login·attempt.</p>119 a·failed·login·attempt.</p>
119 </section>120 </section>
120 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">121 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">
121 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>122 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>
122 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by123 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by
123 modifying·the·popup·and·to_field·parameters·of·the·query·string·on·an·admin124 modifying·the·«popup»·and·«to_field»·parameters·of·the·query·string·on·an·admin
124 change·form·page.·For·example,·requesting·a·URL·like125 change·form·page.·For·example,·requesting·a·URL·like
125 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?pop=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed126 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?pop=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed
126 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have127 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have
127 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak128 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak
128 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>129 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>
129 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value130 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value
130 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin131 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin
Offset 152, 37 lines modifiedOffset 153, 37 lines modified
152 <li><a·class="reference·internal"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin">Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code></a></li>153 <li><a·class="reference·internal"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin">Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code></a></li>
153 </ul>154 </ul>
154 </li>155 </li>
155 </ul>156 </ul>
  
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Previous·topic</h4>159 ····<h4>Argomento·precedente</h4>
159 ····<p·class="topless"><a·href="1.5.10.html"160 ····<p·class="topless"><a·href="1.5.10.html"
160 ··························title="previous·chapter">Django·1.5.10·release·notes</a></p>161 ··························title="capitolo·precedente">Django·1.5.10·release·notes</a></p>
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Next·topic</h4>164 ····<h4>Argomento·successivo</h4>
164 ····<p·class="topless"><a·href="1.5.8.html"165 ····<p·class="topless"><a·href="1.5.8.html"
165 ··························title="next·chapter">Django·1.5.8·release·notes</a></p>166 ··························title="capitolo·successivo">Django·1.5.8·release·notes</a></p>
166 ··</div>167 ··</div>
167 <search·id="searchbox"·style="display:·none"·role="search">168 <search·id="searchbox"·style="display:·none"·role="search">
168 ··<h3·id="searchlabel">Quick·search</h3>169 ··<h3·id="searchlabel">Ricerca·veloce</h3>
169 ····<div·class="searchformwrapper">170 ····<div·class="searchformwrapper">
170 ····<form·class="search"·action="../search.html"·method="get">171 ····<form·class="search"·action="../search.html"·method="get">
171 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>172 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
172 ······<input·type="submit"·value="Go"·/>173 ······<input·type="submit"·value="Vai"·/>
173 ····</form>174 ····</form>
174 ····</div>175 ····</div>
175 </search>176 </search>
176 <script>document.getElementById('searchbox').style.display·=·"block"</script>177 <script>document.getElementById('searchbox').style.display·=·"block"</script>
177 ········</div>178 ········</div>
178 ······</div>179 ······</div>
179 ··············<h3>Last·update:</h3>180 ··············<h3>Last·update:</h3>
180 ··············<p·class="topless">Sep·03,·2024</p>181 ··············<p·class="topless">set·03,·2024</p>
181 ··········</div>182 ··········</div>
182 ········183 ········
183 ······184 ······
184 ····</div>185 ····</div>
  
185 ····<div·id="ft">186 ····<div·id="ft">
186 ······<div·class="nav">187 ······<div·class="nav">
3.96 KB
html2text {}
Max HTML report size reached
27.9 KB
./usr/share/doc/python-django-doc/html/releases/1.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.4.22·release·notes"·href="1.4.22.html"·/>15 ····<link·rel="next"·title="Django·1.4.22·release·notes"·href="1.4.22.html"·/>
15 ····<link·rel="prev"·title="Django·1.5.1·release·notes"·href="1.5.1.html"·/>16 ····<link·rel="prev"·title="Django·1.5.1·release·notes"·href="1.5.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 86, 21 lines modifiedOffset 87, 21 lines modified
86 want·to·be·aware·of·when·upgrading·from·Django·1.4·or·older·versions.·We’ve87 want·to·be·aware·of·when·upgrading·from·Django·1.4·or·older·versions.·We’ve
87 also·dropped·some·features,·which·are·detailed·in·<a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-5"><span·class="std·std-ref">our·deprecation·plan</span></a>,·and·we’ve·<a·class="reference·internal"·href="#deprecated-features-1-5"><span·class="std·std-ref">begun·the·deprecation·process88 also·dropped·some·features,·which·are·detailed·in·<a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-5"><span·class="std·std-ref">our·deprecation·plan</span></a>,·and·we’ve·<a·class="reference·internal"·href="#deprecated-features-1-5"><span·class="std·std-ref">begun·the·deprecation·process
88 for·some·features</span></a>.</p>89 for·some·features</span></a>.</p>
89 <section·id="s-overview">90 <section·id="s-overview">
90 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>91 <span·id="overview"></span><h2>Overview<a·class="headerlink"·href="#overview"·title="Link·to·this·heading">¶</a></h2>
91 <p>The·biggest·new·feature·in·Django·1.5·is·the·<a·class="reference·internal"·href="#configurable-user-model">configurable·User·model</a>.·Before92 <p>The·biggest·new·feature·in·Django·1.5·is·the·<a·class="reference·internal"·href="#configurable-user-model">configurable·User·model</a>.·Before
92 Django·1.5,·applications·that·wanted·to·use·Django’s·auth·framework93 Django·1.5,·applications·that·wanted·to·use·Django’s·auth·framework
93 (<a·class="reference·internal"·href="../topics/auth/index.html#module-django.contrib.auth"·title="django.contrib.auth:·Django's·authentication·framework."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code></a>)·were·forced·to·use·Django’s·definition·of·a·user.94 (<a·class="reference·internal"·href="../topics/auth/index.html#module-django.contrib.auth"·title="django.contrib.auth:·Django's·authentication·framework."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.auth</span></code></a>)·were·forced·to·use·Django’s·definition·of·a·«user».
94 In·Django·1.5,·you·can·now·swap·out·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model·for·one·that·you·write95 In·Django·1.5,·you·can·now·swap·out·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model·for·one·that·you·write
95 yourself.·This·could·be·a·simple·extension·to·the·existing·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model··for96 yourself.·This·could·be·a·simple·extension·to·the·existing·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model··for
96 example,·you·could·add·a·Twitter·or·Facebook·ID·field··or·you·could·completely97 example,·you·could·add·a·Twitter·or·Facebook·ID·field··or·you·could·completely
97 replace·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·with·one·totally·customized·for·your·site.</p>98 replace·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·with·one·totally·customized·for·your·site.</p>
98 <p>Django·1.5·is·also·the·first·release·with·<a·class="reference·internal"·href="#python-3-support">Python·3·support</a>!·We’re·labeling99 <p>Django·1.5·is·also·the·first·release·with·<a·class="reference·internal"·href="#python-3-support">Python·3·support</a>!·We’re·labeling
99 this·support·experimental·because·we·don’t·yet·consider·it·production-ready,100 this·support·«experimental»·because·we·don’t·yet·consider·it·production-ready,
100 but·everything’s·in·place·for·you·to·start·porting·your·apps·to·Python·3.101 but·everything’s·in·place·for·you·to·start·porting·your·apps·to·Python·3.
101 Our·next·release,·Django·1.6,·will·support·Python·3·without·reservations.</p>102 Our·next·release,·Django·1.6,·will·support·Python·3·without·reservations.</p>
102 <p>Other·notable·new·features·in·Django·1.5·include:</p>103 <p>Other·notable·new·features·in·Django·1.5·include:</p>
103 <ul·class="simple">104 <ul·class="simple">
104 <li><p><a·class="reference·internal"·href="#support-for-saving-a-subset-of-model-s-fields">Support·for·saving·a·subset·of·model’s·fields</a>·-105 <li><p><a·class="reference·internal"·href="#support-for-saving-a-subset-of-model-s-fields">Support·for·saving·a·subset·of·model’s·fields</a>·-
105 <a·class="reference·internal"·href="../ref/models/instances.html#django.db.models.Model.save"·title="django.db.models.Model.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Model.save()</span></code></a>·now·accepts·an106 <a·class="reference·internal"·href="../ref/models/instances.html#django.db.models.Model.save"·title="django.db.models.Model.save"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Model.save()</span></code></a>·now·accepts·an
106 <code·class="docutils·literal·notranslate"><span·class="pre">update_fields</span></code>·argument,·letting·you·specify·which·fields·are107 <code·class="docutils·literal·notranslate"><span·class="pre">update_fields</span></code>·argument,·letting·you·specify·which·fields·are
Offset 112, 15 lines modifiedOffset 113, 15 lines modified
112 <li><p>…·and·more;·<a·class="reference·external"·href="#what-s-new-in-django-1-5">see·below</a>.</p></li>113 <li><p>…·and·more;·<a·class="reference·external"·href="#what-s-new-in-django-1-5">see·below</a>.</p></li>
113 </ul>114 </ul>
114 <p>Wherever·possible·we·try·to·introduce·new·features·in·a·backwards-compatible115 <p>Wherever·possible·we·try·to·introduce·new·features·in·a·backwards-compatible
115 manner·per·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·API·stability·policy</span></a>.116 manner·per·<a·class="reference·internal"·href="../misc/api-stability.html"><span·class="doc">our·API·stability·policy</span></a>.
116 However,·as·with·previous·releases,·Django·1.5·ships·with·some·minor117 However,·as·with·previous·releases,·Django·1.5·ships·with·some·minor
117 <a·class="reference·internal"·href="#backwards-incompatible-1-5"><span·class="std·std-ref">backwards·incompatible·changes</span></a>;·people118 <a·class="reference·internal"·href="#backwards-incompatible-1-5"><span·class="std·std-ref">backwards·incompatible·changes</span></a>;·people
118 upgrading·from·previous·versions·of·Django·should·read·that·list·carefully.</p>119 upgrading·from·previous·versions·of·Django·should·read·that·list·carefully.</p>
119 <p>One·deprecated·feature·worth·noting·is·the·shift·to·new-style·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·tag.120 <p>One·deprecated·feature·worth·noting·is·the·shift·to·«new-style»·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-url"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">url</span></code></a>·tag.
120 Prior·to·Django·1.3,·syntax·like·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">myview</span>·<span·class="pre">%}</span></code>·was·interpreted121 Prior·to·Django·1.3,·syntax·like·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">myview</span>·<span·class="pre">%}</span></code>·was·interpreted
121 incorrectly·(Django·considered·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;myview&quot;</span></code>·to·be·a·literal·name·of·a·view,·not122 incorrectly·(Django·considered·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;myview&quot;</span></code>·to·be·a·literal·name·of·a·view,·not
122 a·template·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">myview</span></code>).·Django·1.3·and·above·introduced·the123 a·template·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">myview</span></code>).·Django·1.3·and·above·introduced·the
123 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">url</span>·<span·class="pre">from</span>·<span·class="pre">future</span>·<span·class="pre">%}</span></code>·syntax·to·bring·in·the·corrected·behavior·where124 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">url</span>·<span·class="pre">from</span>·<span·class="pre">future</span>·<span·class="pre">%}</span></code>·syntax·to·bring·in·the·corrected·behavior·where
124 <code·class="docutils·literal·notranslate"><span·class="pre">myview</span></code>·was·seen·as·a·variable.</p>125 <code·class="docutils·literal·notranslate"><span·class="pre">myview</span></code>·was·seen·as·a·variable.</p>
125 <p>The·upshot·of·this·is·that·if·you·are·not·using·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">url</span>·<span·class="pre">from</span>·<span·class="pre">future</span>·<span·class="pre">%}</span></code>126 <p>The·upshot·of·this·is·that·if·you·are·not·using·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">load</span>·<span·class="pre">url</span>·<span·class="pre">from</span>·<span·class="pre">future</span>·<span·class="pre">%}</span></code>
126 in·your·templates,·you’ll·need·to·change·tags·like·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">myview</span>·<span·class="pre">%}</span></code>·to127 in·your·templates,·you’ll·need·to·change·tags·like·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">url</span>·<span·class="pre">myview</span>·<span·class="pre">%}</span></code>·to
Offset 144, 15 lines modifiedOffset 145, 15 lines modified
144 <section·id="s-python-3-support">145 <section·id="s-python-3-support">
145 <span·id="python-3-support"></span><h3>Python·3·support<a·class="headerlink"·href="#python-3-support"·title="Link·to·this·heading">¶</a></h3>146 <span·id="python-3-support"></span><h3>Python·3·support<a·class="headerlink"·href="#python-3-support"·title="Link·to·this·heading">¶</a></h3>
146 <p>Django·1.5·introduces·support·for·Python·3·-·specifically,·Python147 <p>Django·1.5·introduces·support·for·Python·3·-·specifically,·Python
147 3.2·and·above.·This·comes·in·the·form·of·a·<strong>single</strong>·codebase;·you·don’t148 3.2·and·above.·This·comes·in·the·form·of·a·<strong>single</strong>·codebase;·you·don’t
148 need·to·install·a·different·version·of·Django·on·Python·3.·This·means·that149 need·to·install·a·different·version·of·Django·on·Python·3.·This·means·that
149 you·can·write·applications·targeted·for·just·Python·2,·just·Python·3,·or·single150 you·can·write·applications·targeted·for·just·Python·2,·just·Python·3,·or·single
150 applications·that·support·both·platforms.</p>151 applications·that·support·both·platforms.</p>
151 <p>However,·we’re·labeling·this·support·experimental·for·now:·although·it’s152 <p>However,·we’re·labeling·this·support·«experimental»·for·now:·although·it’s
152 received·extensive·testing·via·our·automated·test·suite,·it’s·received·very153 received·extensive·testing·via·our·automated·test·suite,·it’s·received·very
153 little·real-world·testing.·We’ve·done·our·best·to·eliminate·bugs,·but·we·can’t154 little·real-world·testing.·We’ve·done·our·best·to·eliminate·bugs,·but·we·can’t
154 be·sure·we·covered·all·possible·uses·of·Django.</p>155 be·sure·we·covered·all·possible·uses·of·Django.</p>
155 <p>Some·features·of·Django·aren’t·available·because·they·depend·on·third-party156 <p>Some·features·of·Django·aren’t·available·because·they·depend·on·third-party
156 software·that·hasn’t·been·ported·to·Python·3·yet,·including:</p>157 software·that·hasn’t·been·ported·to·Python·3·yet,·including:</p>
157 <ul·class="simple">158 <ul·class="simple">
158 <li><p>the·MySQL·database·backend·(depends·on·MySQLdb)</p></li>159 <li><p>the·MySQL·database·backend·(depends·on·MySQLdb)</p></li>
Offset 265, 15 lines modifiedOffset 266, 15 lines modified
265 dropped.</p></li>266 dropped.</p></li>
266 </ul>267 </ul>
267 </section>268 </section>
268 <section·id="s-new-tutorials">269 <section·id="s-new-tutorials">
269 <span·id="new-tutorials"></span><h3>New·tutorials<a·class="headerlink"·href="#new-tutorials"·title="Link·to·this·heading">¶</a></h3>270 <span·id="new-tutorials"></span><h3>New·tutorials<a·class="headerlink"·href="#new-tutorials"·title="Link·to·this·heading">¶</a></h3>
270 <p>Additions·to·the·docs·include·a·revamped·<a·class="reference·internal"·href="../intro/tutorial03.html"><span·class="doc">Tutorial·3</span></a>271 <p>Additions·to·the·docs·include·a·revamped·<a·class="reference·internal"·href="../intro/tutorial03.html"><span·class="doc">Tutorial·3</span></a>
271 and·a·new·<a·class="reference·internal"·href="../intro/tutorial05.html"><span·class="doc">tutorial·on·testing</span></a>.·A·new·section,272 and·a·new·<a·class="reference·internal"·href="../intro/tutorial05.html"><span·class="doc">tutorial·on·testing</span></a>.·A·new·section,
272 Advanced·Tutorials,·offers·<a·class="reference·internal"·href="../intro/reusable-apps.html"><span·class="doc">How·to·write·reusable·apps</span></a>·as·well·as·a·step-by-step·guide·for·new·contributors·in273 «Advanced·Tutorials»,·offers·<a·class="reference·internal"·href="../intro/reusable-apps.html"><span·class="doc">How·to·write·reusable·apps</span></a>·as·well·as·a·step-by-step·guide·for·new·contributors·in
273 <a·class="reference·internal"·href="../intro/contributing.html"><span·class="doc">Writing·your·first·patch·for·Django</span></a>.</p>274 <a·class="reference·internal"·href="../intro/contributing.html"><span·class="doc">Writing·your·first·patch·for·Django</span></a>.</p>
274 </section>275 </section>
275 <section·id="s-minor-features">276 <section·id="s-minor-features">
276 <span·id="minor-features"></span><h3>Minor·features<a·class="headerlink"·href="#minor-features"·title="Link·to·this·heading">¶</a></h3>277 <span·id="minor-features"></span><h3>Minor·features<a·class="headerlink"·href="#minor-features"·title="Link·to·this·heading">¶</a></h3>
277 <p>Django·1.5·also·includes·several·smaller·improvements·worth·noting:</p>278 <p>Django·1.5·also·includes·several·smaller·improvements·worth·noting:</p>
278 <ul>279 <ul>
279 <li><p>The·template·engine·now·interprets·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·the280 <li><p>The·template·engine·now·interprets·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·the
Offset 353, 15 lines modifiedOffset 354, 15 lines modified
353 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_list_filter"·title="django.contrib.admin.ModelAdmin.get_list_filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">django.contrib.admin.ModelAdmin.get_list_filter()</span></code></a>·method.</p></li>354 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_list_filter"·title="django.contrib.admin.ModelAdmin.get_list_filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">django.contrib.admin.ModelAdmin.get_list_filter()</span></code></a>·method.</p></li>
354 </ul>355 </ul>
355 </section>356 </section>
356 </section>357 </section>
357 <section·id="s-backwards-incompatible-changes-in-1-5">358 <section·id="s-backwards-incompatible-changes-in-1-5">
358 <span·id="s-backwards-incompatible-1-5"></span><span·id="backwards-incompatible-changes-in-1-5"></span><span·id="backwards-incompatible-1-5"></span><h2>Backwards·incompatible·changes·in·1.5<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-5"·title="Link·to·this·heading">¶</a></h2>359 <span·id="s-backwards-incompatible-1-5"></span><span·id="backwards-incompatible-changes-in-1-5"></span><span·id="backwards-incompatible-1-5"></span><h2>Backwards·incompatible·changes·in·1.5<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-5"·title="Link·to·this·heading">¶</a></h2>
359 <div·class="admonition·warning">360 <div·class="admonition·warning">
360 <p·class="admonition-title">Warning</p>361 <p·class="admonition-title">Avvertimento</p>
361 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the362 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the
362 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-5"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that363 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-5"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that
363 have·been·removed.·If·you·haven’t·updated·your·code·within·the364 have·been·removed.·If·you·haven’t·updated·your·code·within·the
364 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a365 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a
365 backwards·incompatible·change.</p>366 backwards·incompatible·change.</p>
366 </div>367 </div>
367 <section·id="s-allowed-hosts-required-in-production">368 <section·id="s-allowed-hosts-required-in-production">
Offset 375, 15 lines modifiedOffset 376, 15 lines modified
375 </section>376 </section>
Max diff block lines reached; 4188/16170 bytes (25.90%) of diff not shown.
12.0 KB
html2text {}
Max HTML report size reached
8.8 KB
./usr/share/doc/python-django-doc/html/releases/1.6.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6·release·notes"·href="1.6.html"·/>15 ····<link·rel="next"·title="Django·1.6·release·notes"·href="1.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.2·release·notes"·href="1.6.2.html"·/>16 ····<link·rel="prev"·title="Django·1.6.2·release·notes"·href="1.6.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 85, 15 lines modifiedOffset 86, 15 lines modified
85 included.</p>86 included.</p>
86 <section·id="s-bug-fixes">87 <section·id="s-bug-fixes">
87 <span·id="bug-fixes"></span><h2>Bug·fixes<a·class="headerlink"·href="#bug-fixes"·title="Link·to·this·heading">¶</a></h2>88 <span·id="bug-fixes"></span><h2>Bug·fixes<a·class="headerlink"·href="#bug-fixes"·title="Link·to·this·heading">¶</a></h2>
88 <ul·class="simple">89 <ul·class="simple">
89 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">BCryptSHA256PasswordHasher</span></code>·with·<code·class="docutils·literal·notranslate"><span·class="pre">py-bcrypt</span></code>·and·Python·390 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">BCryptSHA256PasswordHasher</span></code>·with·<code·class="docutils·literal·notranslate"><span·class="pre">py-bcrypt</span></code>·and·Python·3
90 (#21398).</p></li>91 (#21398).</p></li>
91 <li><p>Fixed·a·regression·that·prevented·a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·with·a·hidden·reverse92 <li><p>Fixed·a·regression·that·prevented·a·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·with·a·hidden·reverse
92 manager·(<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·ending·with·+)·from·being·used·as·a·lookup·for93 manager·(<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·ending·with·+)·from·being·used·as·a·lookup·for
93 <code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related</span></code>·(#21410).</p></li>94 <code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related</span></code>·(#21410).</p></li>
94 <li><p>Fixed·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.datetimes"·title="django.db.models.query.QuerySet.datetimes"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Queryset.datetimes</span></code></a>95 <li><p>Fixed·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.datetimes"·title="django.db.models.query.QuerySet.datetimes"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Queryset.datetimes</span></code></a>
95 raising·<code·class="docutils·literal·notranslate"><span·class="pre">AttributeError</span></code>·in·some·situations·(#21432).</p></li>96 raising·<code·class="docutils·literal·notranslate"><span·class="pre">AttributeError</span></code>·in·some·situations·(#21432).</p></li>
96 <li><p>Fixed·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.backends.ModelBackend"·title="django.contrib.auth.backends.ModelBackend"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code></a>·raising97 <li><p>Fixed·<a·class="reference·internal"·href="../ref/contrib/auth.html#django.contrib.auth.backends.ModelBackend"·title="django.contrib.auth.backends.ModelBackend"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code></a>·raising
97 <code·class="docutils·literal·notranslate"><span·class="pre">UnboundLocalError</span></code>·if·<a·class="reference·internal"·href="../topics/auth/customizing.html#django.contrib.auth.get_user_model"·title="django.contrib.auth.get_user_model"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">get_user_model()</span></code></a>98 <code·class="docutils·literal·notranslate"><span·class="pre">UnboundLocalError</span></code>·if·<a·class="reference·internal"·href="../topics/auth/customizing.html#django.contrib.auth.get_user_model"·title="django.contrib.auth.get_user_model"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">get_user_model()</span></code></a>
98 raised·an·error·(#21439).</p></li>99 raised·an·error·(#21439).</p></li>
99 <li><p>Fixed·a·regression·that·prevented·editable·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·subclasses100 <li><p>Fixed·a·regression·that·prevented·editable·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·subclasses
Offset 156, 37 lines modifiedOffset 157, 37 lines modified
156 <li><a·class="reference·internal"·href="#bug-fixes">Bug·fixes</a></li>157 <li><a·class="reference·internal"·href="#bug-fixes">Bug·fixes</a></li>
157 </ul>158 </ul>
158 </li>159 </li>
159 </ul>160 </ul>
  
160 ··</div>161 ··</div>
161 ··<div>162 ··<div>
162 ····<h4>Previous·topic</h4>163 ····<h4>Argomento·precedente</h4>
163 ····<p·class="topless"><a·href="1.6.2.html"164 ····<p·class="topless"><a·href="1.6.2.html"
164 ··························title="previous·chapter">Django·1.6.2·release·notes</a></p>165 ··························title="capitolo·precedente">Django·1.6.2·release·notes</a></p>
165 ··</div>166 ··</div>
166 ··<div>167 ··<div>
167 ····<h4>Next·topic</h4>168 ····<h4>Argomento·successivo</h4>
168 ····<p·class="topless"><a·href="1.6.html"169 ····<p·class="topless"><a·href="1.6.html"
169 ··························title="next·chapter">Django·1.6·release·notes</a></p>170 ··························title="capitolo·successivo">Django·1.6·release·notes</a></p>
170 ··</div>171 ··</div>
171 <search·id="searchbox"·style="display:·none"·role="search">172 <search·id="searchbox"·style="display:·none"·role="search">
172 ··<h3·id="searchlabel">Quick·search</h3>173 ··<h3·id="searchlabel">Ricerca·veloce</h3>
173 ····<div·class="searchformwrapper">174 ····<div·class="searchformwrapper">
174 ····<form·class="search"·action="../search.html"·method="get">175 ····<form·class="search"·action="../search.html"·method="get">
175 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
176 ······<input·type="submit"·value="Go"·/>177 ······<input·type="submit"·value="Vai"·/>
177 ····</form>178 ····</form>
178 ····</div>179 ····</div>
179 </search>180 </search>
180 <script>document.getElementById('searchbox').style.display·=·"block"</script>181 <script>document.getElementById('searchbox').style.display·=·"block"</script>
181 ········</div>182 ········</div>
182 ······</div>183 ······</div>
183 ··············<h3>Last·update:</h3>184 ··············<h3>Last·update:</h3>
184 ··············<p·class="topless">Sep·03,·2024</p>185 ··············<p·class="topless">set·03,·2024</p>
185 ··········</div>186 ··········</div>
186 ········187 ········
187 ······188 ······
188 ····</div>189 ····</div>
  
189 ····<div·id="ft">190 ····<div·id="ft">
190 ······<div·class="nav">191 ······<div·class="nav">
2.86 KB
html2text {}
Max HTML report size reached
9.81 KB
./usr/share/doc/python-django-doc/html/releases/1.6.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.9·release·notes"·href="1.6.9.html"·/>15 ····<link·rel="next"·title="Django·1.6.9·release·notes"·href="1.6.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.11·release·notes"·href="1.6.11.html"·/>16 ····<link·rel="prev"·title="Django·1.6.11·release·notes"·href="1.6.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 102, 15 lines modifiedOffset 103, 15 lines modified
102 recommended·for·production·use,·but·matching·the·behavior·of·common·production103 recommended·for·production·use,·but·matching·the·behavior·of·common·production
103 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>104 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>
104 </section>105 </section>
105 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">106 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
106 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>107 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
107 <p>Django·relies·on·user·input·in·some·cases·(e.g.108 <p>Django·relies·on·user·input·in·some·cases·(e.g.
108 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
109 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these110 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
110 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading111 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading
111 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like112 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like
112 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to113 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to
113 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer114 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer
114 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put115 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put
115 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore116 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore
116 JavaScript·there.</p>117 JavaScript·there.</p>
Offset 158, 37 lines modifiedOffset 159, 37 lines modified
158 <li><a·class="reference·internal"·href="#database-denial-of-service-with-modelmultiplechoicefield">Database·denial-of-service·with·<code·class="docutils·literal·notranslate"><span·class="pre">ModelMultipleChoiceField</span></code></a></li>159 <li><a·class="reference·internal"·href="#database-denial-of-service-with-modelmultiplechoicefield">Database·denial-of-service·with·<code·class="docutils·literal·notranslate"><span·class="pre">ModelMultipleChoiceField</span></code></a></li>
159 </ul>160 </ul>
160 </li>161 </li>
161 </ul>162 </ul>
  
162 ··</div>163 ··</div>
163 ··<div>164 ··<div>
164 ····<h4>Previous·topic</h4>165 ····<h4>Argomento·precedente</h4>
165 ····<p·class="topless"><a·href="1.6.11.html"166 ····<p·class="topless"><a·href="1.6.11.html"
166 ··························title="previous·chapter">Django·1.6.11·release·notes</a></p>167 ··························title="capitolo·precedente">Django·1.6.11·release·notes</a></p>
167 ··</div>168 ··</div>
168 ··<div>169 ··<div>
169 ····<h4>Next·topic</h4>170 ····<h4>Argomento·successivo</h4>
170 ····<p·class="topless"><a·href="1.6.9.html"171 ····<p·class="topless"><a·href="1.6.9.html"
171 ··························title="next·chapter">Django·1.6.9·release·notes</a></p>172 ··························title="capitolo·successivo">Django·1.6.9·release·notes</a></p>
172 ··</div>173 ··</div>
173 <search·id="searchbox"·style="display:·none"·role="search">174 <search·id="searchbox"·style="display:·none"·role="search">
174 ··<h3·id="searchlabel">Quick·search</h3>175 ··<h3·id="searchlabel">Ricerca·veloce</h3>
175 ····<div·class="searchformwrapper">176 ····<div·class="searchformwrapper">
176 ····<form·class="search"·action="../search.html"·method="get">177 ····<form·class="search"·action="../search.html"·method="get">
177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>178 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
178 ······<input·type="submit"·value="Go"·/>179 ······<input·type="submit"·value="Vai"·/>
179 ····</form>180 ····</form>
180 ····</div>181 ····</div>
181 </search>182 </search>
182 <script>document.getElementById('searchbox').style.display·=·"block"</script>183 <script>document.getElementById('searchbox').style.display·=·"block"</script>
183 ········</div>184 ········</div>
184 ······</div>185 ······</div>
185 ··············<h3>Last·update:</h3>186 ··············<h3>Last·update:</h3>
186 ··············<p·class="topless">Sep·03,·2024</p>187 ··············<p·class="topless">set·03,·2024</p>
187 ··········</div>188 ··········</div>
188 ········189 ········
189 ······190 ······
190 ····</div>191 ····</div>
  
191 ····<div·id="ft">192 ····<div·id="ft">
192 ······<div·class="nav">193 ······<div·class="nav">
4.21 KB
html2text {}
Max HTML report size reached
9.6 KB
./usr/share/doc/python-django-doc/html/releases/1.6.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.10·release·notes"·href="1.6.10.html"·/>15 ····<link·rel="next"·title="Django·1.6.10·release·notes"·href="1.6.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.7·release·notes"·href="1.7.html"·/>16 ····<link·rel="prev"·title="Django·1.7·release·notes"·href="1.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 HTML·safe.·So·NEVER·mark·safe·the·result·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">strip_tags()</span></code>·call·without97 HTML·safe.·So·NEVER·mark·safe·the·result·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">strip_tags()</span></code>·call·without
97 escaping·it·first,·for·example·with·<a·class="reference·internal"·href="../ref/utils.html#django.utils.html.escape"·title="django.utils.html.escape"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">escape()</span></code></a>.</p>98 escaping·it·first,·for·example·with·<a·class="reference·internal"·href="../ref/utils.html#django.utils.html.escape"·title="django.utils.html.escape"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">escape()</span></code></a>.</p>
98 </section>99 </section>
99 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">100 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
100 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>101 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
101 <p>Django·relies·on·user·input·in·some·cases·(e.g.102 <p>Django·relies·on·user·input·in·some·cases·(e.g.
102 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)103 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
103 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these104 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
104 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with105 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with
105 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>106 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>
106 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL107 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL
107 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript108 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript
108 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such109 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such
109 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target110 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target
110 isn’t·a·problem·either.</p>111 isn’t·a·problem·either.</p>
Offset 133, 37 lines modifiedOffset 134, 37 lines modified
133 <li><a·class="reference·internal"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls">Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs</a></li>134 <li><a·class="reference·internal"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls">Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs</a></li>
134 </ul>135 </ul>
135 </li>136 </li>
136 </ul>137 </ul>
  
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Previous·topic</h4>140 ····<h4>Argomento·precedente</h4>
140 ····<p·class="topless"><a·href="1.7.html"141 ····<p·class="topless"><a·href="1.7.html"
141 ··························title="previous·chapter">Django·1.7·release·notes</a></p>142 ··························title="capitolo·precedente">Django·1.7·release·notes</a></p>
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Next·topic</h4>145 ····<h4>Argomento·successivo</h4>
145 ····<p·class="topless"><a·href="1.6.10.html"146 ····<p·class="topless"><a·href="1.6.10.html"
146 ··························title="next·chapter">Django·1.6.10·release·notes</a></p>147 ··························title="capitolo·successivo">Django·1.6.10·release·notes</a></p>
147 ··</div>148 ··</div>
148 <search·id="searchbox"·style="display:·none"·role="search">149 <search·id="searchbox"·style="display:·none"·role="search">
149 ··<h3·id="searchlabel">Quick·search</h3>150 ··<h3·id="searchlabel">Ricerca·veloce</h3>
150 ····<div·class="searchformwrapper">151 ····<div·class="searchformwrapper">
151 ····<form·class="search"·action="../search.html"·method="get">152 ····<form·class="search"·action="../search.html"·method="get">
152 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
153 ······<input·type="submit"·value="Go"·/>154 ······<input·type="submit"·value="Vai"·/>
154 ····</form>155 ····</form>
155 ····</div>156 ····</div>
156 </search>157 </search>
157 <script>document.getElementById('searchbox').style.display·=·"block"</script>158 <script>document.getElementById('searchbox').style.display·=·"block"</script>
158 ········</div>159 ········</div>
159 ······</div>160 ······</div>
160 ··············<h3>Last·update:</h3>161 ··············<h3>Last·update:</h3>
161 ··············<p·class="topless">Sep·03,·2024</p>162 ··············<p·class="topless">set·03,·2024</p>
162 ··········</div>163 ··········</div>
163 ········164 ········
164 ······165 ······
165 ····</div>166 ····</div>
  
166 ····<div·id="ft">167 ····<div·id="ft">
167 ······<div·class="nav">168 ······<div·class="nav">
3.8 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/1.6.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.1·release·notes"·href="1.6.1.html"·/>15 ····<link·rel="next"·title="Django·1.6.1·release·notes"·href="1.6.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.3·release·notes"·href="1.6.3.html"·/>16 ····<link·rel="prev"·title="Django·1.6.3·release·notes"·href="1.6.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 125, 37 lines modifiedOffset 126, 37 lines modified
125 ······126 ······
126 ········127 ········
127 ··········<div·class="yui-b"·id="sidebar">128 ··········<div·class="yui-b"·id="sidebar">
128 ············129 ············
129 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">130 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
130 ········<div·class="sphinxsidebarwrapper">131 ········<div·class="sphinxsidebarwrapper">
131 ··<div>132 ··<div>
132 ····<h4>Previous·topic</h4>133 ····<h4>Argomento·precedente</h4>
133 ····<p·class="topless"><a·href="1.6.3.html"134 ····<p·class="topless"><a·href="1.6.3.html"
134 ··························title="previous·chapter">Django·1.6.3·release·notes</a></p>135 ··························title="capitolo·precedente">Django·1.6.3·release·notes</a></p>
135 ··</div>136 ··</div>
136 ··<div>137 ··<div>
137 ····<h4>Next·topic</h4>138 ····<h4>Argomento·successivo</h4>
138 ····<p·class="topless"><a·href="1.6.1.html"139 ····<p·class="topless"><a·href="1.6.1.html"
139 ··························title="next·chapter">Django·1.6.1·release·notes</a></p>140 ··························title="capitolo·successivo">Django·1.6.1·release·notes</a></p>
140 ··</div>141 ··</div>
141 <search·id="searchbox"·style="display:·none"·role="search">142 <search·id="searchbox"·style="display:·none"·role="search">
142 ··<h3·id="searchlabel">Quick·search</h3>143 ··<h3·id="searchlabel">Ricerca·veloce</h3>
143 ····<div·class="searchformwrapper">144 ····<div·class="searchformwrapper">
144 ····<form·class="search"·action="../search.html"·method="get">145 ····<form·class="search"·action="../search.html"·method="get">
145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
146 ······<input·type="submit"·value="Go"·/>147 ······<input·type="submit"·value="Vai"·/>
147 ····</form>148 ····</form>
148 ····</div>149 ····</div>
149 </search>150 </search>
150 <script>document.getElementById('searchbox').style.display·=·"block"</script>151 <script>document.getElementById('searchbox').style.display·=·"block"</script>
151 ········</div>152 ········</div>
152 ······</div>153 ······</div>
153 ··············<h3>Last·update:</h3>154 ··············<h3>Last·update:</h3>
154 ··············<p·class="topless">Sep·03,·2024</p>155 ··············<p·class="topless">set·03,·2024</p>
155 ··········</div>156 ··········</div>
156 ········157 ········
157 ······158 ······
158 ····</div>159 ····</div>
  
159 ····<div·id="ft">160 ····<div·id="ft">
160 ······<div·class="nav">161 ······<div·class="nav">
2.05 KB
html2text {}
Max HTML report size reached
10.6 KB
./usr/share/doc/python-django-doc/html/releases/1.6.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.2·release·notes"·href="1.6.2.html"·/>15 ····<link·rel="next"·title="Django·1.6.2·release·notes"·href="1.6.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.4·release·notes"·href="1.6.4.html"·/>16 ····<link·rel="prev"·title="Django·1.6.4·release·notes"·href="1.6.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 99, 15 lines modifiedOffset 100, 15 lines modified
99 module·indicated·by·that·dotted·path·as·part·of·generating·the100 module·indicated·by·that·dotted·path·as·part·of·generating·the
100 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those101 resulting·URL.·If·such·a·module·has·import-time·side·effects,·those
101 side·effects·will·occur.</p>102 side·effects·will·occur.</p>
102 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code103 <p>Thus·it·is·possible·for·an·attacker·to·cause·unexpected·code
103 execution,·given·the·following·conditions:</p>104 execution,·given·the·following·conditions:</p>
104 <ol·class="arabic·simple">105 <ol·class="arabic·simple">
105 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user106 <li><p>One·or·more·views·are·present·which·construct·a·URL·based·on·user
106 input·(commonly,·a·next·parameter·in·a·querystring·indicating107 input·(commonly,·a·«next»·parameter·in·a·querystring·indicating
107 where·to·redirect·upon·successful·completion·of·an·action).</p></li>108 where·to·redirect·upon·successful·completion·of·an·action).</p></li>
108 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the109 <li><p>One·or·more·modules·are·known·to·an·attacker·to·exist·on·the
109 server’s·Python·import·path,·which·perform·code·execution·with·side110 server’s·Python·import·path,·which·perform·code·execution·with·side
110 effects·on·importing.</p></li>111 effects·on·importing.</p></li>
111 </ol>112 </ol>
112 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted113 <p>To·remedy·this,·<code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>·will·now·only·accept·and·import·dotted
113 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL114 paths·based·on·the·view-containing·modules·listed·in·the·project’s·<a·class="reference·internal"·href="../topics/http/urls.html"><span·class="doc">URL
Offset 136, 15 lines modifiedOffset 137, 15 lines modified
136 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>137 <li><p>If·the·response·did·send·one·or·more·cookies,·and</p></li>
137 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the138 <li><p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">Vary:</span>·<span·class="pre">Cookie</span></code>·header·is·set·on·the·response,·then·the
138 response·will·not·be·cached.</p></li>139 response·will·not·be·cached.</p></li>
139 </ol>140 </ol>
140 </section>141 </section>
141 <section·id="s-mysql-typecasting">142 <section·id="s-mysql-typecasting">
142 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>143 <span·id="mysql-typecasting"></span><h2>MySQL·typecasting<a·class="headerlink"·href="#mysql-typecasting"·title="Link·to·this·heading">¶</a></h2>
143 <p>The·MySQL·database·is·known·to·typecast·on·certain·queries;·for144 <p>The·MySQL·database·is·known·to·«typecast»·on·certain·queries;·for
144 example,·when·querying·a·table·which·contains·string·values,·but·using145 example,·when·querying·a·table·which·contains·string·values,·but·using
145 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first146 a·query·which·filters·based·on·an·integer·value,·MySQL·will·first
146 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>147 silently·coerce·the·strings·to·integers·and·return·a·result·based·on·that.</p>
147 <p>If·a·query·is·performed·without·first·converting·values·to·the148 <p>If·a·query·is·performed·without·first·converting·values·to·the
148 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what149 appropriate·type,·this·can·produce·unexpected·results,·similar·to·what
149 would·occur·if·the·query·itself·had·been·manipulated.</p>150 would·occur·if·the·query·itself·had·been·manipulated.</p>
150 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most151 <p>Django’s·model·field·classes·are·aware·of·their·own·types·and·most
Offset 246, 37 lines modifiedOffset 247, 37 lines modified
246 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>247 <li><a·class="reference·internal"·href="#other-bugfixes-and-changes">Other·bugfixes·and·changes</a></li>
247 </ul>248 </ul>
248 </li>249 </li>
249 </ul>250 </ul>
  
250 ··</div>251 ··</div>
251 ··<div>252 ··<div>
252 ····<h4>Previous·topic</h4>253 ····<h4>Argomento·precedente</h4>
253 ····<p·class="topless"><a·href="1.6.4.html"254 ····<p·class="topless"><a·href="1.6.4.html"
254 ··························title="previous·chapter">Django·1.6.4·release·notes</a></p>255 ··························title="capitolo·precedente">Django·1.6.4·release·notes</a></p>
255 ··</div>256 ··</div>
256 ··<div>257 ··<div>
257 ····<h4>Next·topic</h4>258 ····<h4>Argomento·successivo</h4>
258 ····<p·class="topless"><a·href="1.6.2.html"259 ····<p·class="topless"><a·href="1.6.2.html"
259 ··························title="next·chapter">Django·1.6.2·release·notes</a></p>260 ··························title="capitolo·successivo">Django·1.6.2·release·notes</a></p>
260 ··</div>261 ··</div>
261 <search·id="searchbox"·style="display:·none"·role="search">262 <search·id="searchbox"·style="display:·none"·role="search">
262 ··<h3·id="searchlabel">Quick·search</h3>263 ··<h3·id="searchlabel">Ricerca·veloce</h3>
263 ····<div·class="searchformwrapper">264 ····<div·class="searchformwrapper">
264 ····<form·class="search"·action="../search.html"·method="get">265 ····<form·class="search"·action="../search.html"·method="get">
265 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>266 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
266 ······<input·type="submit"·value="Go"·/>267 ······<input·type="submit"·value="Vai"·/>
267 ····</form>268 ····</form>
268 ····</div>269 ····</div>
269 </search>270 </search>
270 <script>document.getElementById('searchbox').style.display·=·"block"</script>271 <script>document.getElementById('searchbox').style.display·=·"block"</script>
271 ········</div>272 ········</div>
272 ······</div>273 ······</div>
273 ··············<h3>Last·update:</h3>274 ··············<h3>Last·update:</h3>
274 ··············<p·class="topless">Sep·03,·2024</p>275 ··············<p·class="topless">set·03,·2024</p>
275 ··········</div>276 ··········</div>
276 ········277 ········
277 ······278 ······
278 ····</div>279 ····</div>
  
279 ····<div·id="ft">280 ····<div·id="ft">
280 ······<div·class="nav">281 ······<div·class="nav">
4.69 KB
html2text {}
Max HTML report size reached
5.92 KB
./usr/share/doc/python-django-doc/html/releases/1.6.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.3·release·notes"·href="1.6.3.html"·/>15 ····<link·rel="next"·title="Django·1.6.3·release·notes"·href="1.6.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.5·release·notes"·href="1.6.5.html"·/>16 ····<link·rel="prev"·title="Django·1.6.5·release·notes"·href="1.6.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.6.5.html"120 ····<p·class="topless"><a·href="1.6.5.html"
120 ··························title="previous·chapter">Django·1.6.5·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.6.5·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.6.3.html"125 ····<p·class="topless"><a·href="1.6.3.html"
125 ··························title="next·chapter">Django·1.6.3·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.6.3·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.18 KB
html2text {}
Max HTML report size reached
9.06 KB
./usr/share/doc/python-django-doc/html/releases/1.6.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.4·release·notes"·href="1.6.4.html"·/>15 ····<link·rel="next"·title="Django·1.6.4·release·notes"·href="1.6.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.6·release·notes"·href="1.6.6.html"·/>16 ····<link·rel="prev"·title="Django·1.6.6·release·notes"·href="1.6.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 <section·id="s-issue-malformed-redirect-urls-from-user-input-not-correctly-validated">104 <section·id="s-issue-malformed-redirect-urls-from-user-input-not-correctly-validated">
104 <span·id="issue-malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Issue:·Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#issue-malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>105 <span·id="issue-malformed-redirect-urls-from-user-input-not-correctly-validated"></span><h2>Issue:·Malformed·redirect·URLs·from·user·input·not·correctly·validated<a·class="headerlink"·href="#issue-malformed-redirect-urls-from-user-input-not-correctly-validated"·title="Link·to·this·heading">¶</a></h2>
105 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,106 <p>The·validation·for·redirects·did·not·correctly·validate·some·malformed·URLs,
106 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to107 which·are·accepted·by·some·browsers.·This·allows·a·user·to·be·redirected·to
107 an·unsafe·URL·unexpectedly.</p>108 an·unsafe·URL·unexpectedly.</p>
108 <p>Django·relies·on·user·input·in·some·cases·(e.g.109 <p>Django·relies·on·user·input·in·some·cases·(e.g.
109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and110 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.comments</span></code>,·and
110 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·on·success·URL.111 <a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)·to·redirect·the·user·to·an·«on·success»·URL.
111 The·security·checks·for·these·redirects·(namely112 The·security·checks·for·these·redirects·(namely
112 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed113 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·did·not·correctly·validate·some·malformed
113 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some114 URLs,·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">http:\\\\\\djangoproject.com</span></code>,·which·are·accepted·by·some
114 browsers·with·more·liberal·URL·parsing.</p>115 browsers·with·more·liberal·URL·parsing.</p>
115 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able116 <p>To·remedy·this,·the·validation·in·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·has·been·tightened·to·be·able
116 to·handle·and·correctly·validate·these·malformed·URLs.</p>117 to·handle·and·correctly·validate·these·malformed·URLs.</p>
117 </section>118 </section>
Offset 150, 37 lines modifiedOffset 151, 37 lines modified
150 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>151 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
151 </ul>152 </ul>
152 </li>153 </li>
153 </ul>154 </ul>
  
154 ··</div>155 ··</div>
155 ··<div>156 ··<div>
156 ····<h4>Previous·topic</h4>157 ····<h4>Argomento·precedente</h4>
157 ····<p·class="topless"><a·href="1.6.6.html"158 ····<p·class="topless"><a·href="1.6.6.html"
158 ··························title="previous·chapter">Django·1.6.6·release·notes</a></p>159 ··························title="capitolo·precedente">Django·1.6.6·release·notes</a></p>
159 ··</div>160 ··</div>
160 ··<div>161 ··<div>
161 ····<h4>Next·topic</h4>162 ····<h4>Argomento·successivo</h4>
162 ····<p·class="topless"><a·href="1.6.4.html"163 ····<p·class="topless"><a·href="1.6.4.html"
163 ··························title="next·chapter">Django·1.6.4·release·notes</a></p>164 ··························title="capitolo·successivo">Django·1.6.4·release·notes</a></p>
164 ··</div>165 ··</div>
165 <search·id="searchbox"·style="display:·none"·role="search">166 <search·id="searchbox"·style="display:·none"·role="search">
166 ··<h3·id="searchlabel">Quick·search</h3>167 ··<h3·id="searchlabel">Ricerca·veloce</h3>
167 ····<div·class="searchformwrapper">168 ····<div·class="searchformwrapper">
168 ····<form·class="search"·action="../search.html"·method="get">169 ····<form·class="search"·action="../search.html"·method="get">
169 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>170 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
170 ······<input·type="submit"·value="Go"·/>171 ······<input·type="submit"·value="Vai"·/>
171 ····</form>172 ····</form>
172 ····</div>173 ····</div>
173 </search>174 </search>
174 <script>document.getElementById('searchbox').style.display·=·"block"</script>175 <script>document.getElementById('searchbox').style.display·=·"block"</script>
175 ········</div>176 ········</div>
176 ······</div>177 ······</div>
177 ··············<h3>Last·update:</h3>178 ··············<h3>Last·update:</h3>
178 ··············<p·class="topless">Sep·03,·2024</p>179 ··············<p·class="topless">set·03,·2024</p>
179 ··········</div>180 ··········</div>
180 ········181 ········
181 ······182 ······
182 ····</div>183 ····</div>
  
183 ····<div·id="ft">184 ····<div·id="ft">
184 ······<div·class="nav">185 ······<div·class="nav">
3.58 KB
html2text {}
Max HTML report size reached
12.5 KB
./usr/share/doc/python-django-doc/html/releases/1.6.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.5·release·notes"·href="1.6.5.html"·/>15 ····<link·rel="next"·title="Django·1.6.5·release·notes"·href="1.6.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.7·release·notes"·href="1.6.7.html"·/>16 ····<link·rel="prev"·title="Django·1.6.7·release·notes"·href="1.6.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session117 requests·without·an·intervening·logout·could·result·in·the·prior·user’s·session
117 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on118 being·co-opted·by·the·subsequent·user.·The·middleware·now·logs·the·user·out·on
118 a·failed·login·attempt.</p>119 a·failed·login·attempt.</p>
119 </section>120 </section>
120 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">121 <section·id="s-data-leakage-via-query-string-manipulation-in-contrib-admin">
121 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>122 <span·id="data-leakage-via-query-string-manipulation-in-contrib-admin"></span><h2>Data·leakage·via·query·string·manipulation·in·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code><a·class="headerlink"·href="#data-leakage-via-query-string-manipulation-in-contrib-admin"·title="Link·to·this·heading">¶</a></h2>
122 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by123 <p>In·older·versions·of·Django·it·was·possible·to·reveal·any·field’s·data·by
123 modifying·the·popup·and·to_field·parameters·of·the·query·string·on·an·admin124 modifying·the·«popup»·and·«to_field»·parameters·of·the·query·string·on·an·admin
124 change·form·page.·For·example,·requesting·a·URL·like125 change·form·page.·For·example,·requesting·a·URL·like
125 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?_popup=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed126 <code·class="docutils·literal·notranslate"><span·class="pre">/admin/auth/user/?_popup=1&amp;t=password</span></code>·and·viewing·the·page’s·HTML·allowed
126 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have127 viewing·the·password·hash·of·each·user.·While·the·admin·requires·users·to·have
127 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak128 permissions·to·view·the·change·form·pages·in·the·first·place,·this·could·leak
128 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>129 data·if·you·rely·on·users·having·access·to·view·only·certain·fields·on·a·model.</p>
129 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value130 <p>To·address·the·issue,·an·exception·will·now·be·raised·if·a·<code·class="docutils·literal·notranslate"><span·class="pre">to_field</span></code>·value
130 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin131 that·isn’t·a·related·field·to·a·model·that·has·been·registered·with·the·admin
Offset 139, 15 lines modifiedOffset 140, 15 lines modified
139 <li><p>Prevented·edge·case·where·values·of·FK·fields·could·be·initialized·with·a140 <li><p>Prevented·edge·case·where·values·of·FK·fields·could·be·initialized·with·a
140 wrong·value·when·an·inline·model·formset·is·created·for·a·relationship141 wrong·value·when·an·inline·model·formset·is·created·for·a·relationship
141 defined·to·point·to·a·field·other·than·the·PK·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/13794">#13794</a>).</p></li>142 defined·to·point·to·a·field·other·than·the·PK·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/13794">#13794</a>).</p></li>
142 <li><p>Restored·<code·class="docutils·literal·notranslate"><span·class="pre">pre_delete</span></code>··signals·for·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·cascade·deletion143 <li><p>Restored·<code·class="docutils·literal·notranslate"><span·class="pre">pre_delete</span></code>··signals·for·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·cascade·deletion
143 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/22998">#22998</a>).</p></li>144 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/22998">#22998</a>).</p></li>
144 <li><p>Fixed·transaction·handling·when·specifying·non-default·database·in145 <li><p>Fixed·transaction·handling·when·specifying·non-default·database·in
145 <code·class="docutils·literal·notranslate"><span·class="pre">createcachetable</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">flush</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23089">#23089</a>).</p></li>146 <code·class="docutils·literal·notranslate"><span·class="pre">createcachetable</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">flush</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23089">#23089</a>).</p></li>
146 <li><p>Fixed·the·ORA-01843:·not·a·valid·month·errors·when·using·Unicode147 <li><p>Fixed·the·«ORA-01843:·not·a·valid·month»·errors·when·using·Unicode
147 with·older·versions·of·Oracle·server·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/20292">#20292</a>).</p></li>148 with·older·versions·of·Oracle·server·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/20292">#20292</a>).</p></li>
148 <li><p>Restored·bug·fix·for·sending·Unicode·email·with·Python·2.6.5·and·below149 <li><p>Restored·bug·fix·for·sending·Unicode·email·with·Python·2.6.5·and·below
149 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/19107">#19107</a>).</p></li>150 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/19107">#19107</a>).</p></li>
150 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">UnicodeDecodeError</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·with·non-UTF-8·and151 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">UnicodeDecodeError</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·with·non-UTF-8·and
151 non-English·locale·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23265">#23265</a>).</p></li>152 non-English·locale·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23265">#23265</a>).</p></li>
152 <li><p>Fixed·JavaScript·errors·while·editing·multi-geometry·objects·in·the·OpenLayers153 <li><p>Fixed·JavaScript·errors·while·editing·multi-geometry·objects·in·the·OpenLayers
153 widget·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23137">#23137</a>,·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23293">#23293</a>).</p></li>154 widget·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23137">#23137</a>,·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23293">#23293</a>).</p></li>
Offset 178, 37 lines modifiedOffset 179, 37 lines modified
178 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>179 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
179 </ul>180 </ul>
180 </li>181 </li>
181 </ul>182 </ul>
  
182 ··</div>183 ··</div>
183 ··<div>184 ··<div>
184 ····<h4>Previous·topic</h4>185 ····<h4>Argomento·precedente</h4>
185 ····<p·class="topless"><a·href="1.6.7.html"186 ····<p·class="topless"><a·href="1.6.7.html"
186 ··························title="previous·chapter">Django·1.6.7·release·notes</a></p>187 ··························title="capitolo·precedente">Django·1.6.7·release·notes</a></p>
187 ··</div>188 ··</div>
188 ··<div>189 ··<div>
189 ····<h4>Next·topic</h4>190 ····<h4>Argomento·successivo</h4>
190 ····<p·class="topless"><a·href="1.6.5.html"191 ····<p·class="topless"><a·href="1.6.5.html"
191 ··························title="next·chapter">Django·1.6.5·release·notes</a></p>192 ··························title="capitolo·successivo">Django·1.6.5·release·notes</a></p>
192 ··</div>193 ··</div>
193 <search·id="searchbox"·style="display:·none"·role="search">194 <search·id="searchbox"·style="display:·none"·role="search">
194 ··<h3·id="searchlabel">Quick·search</h3>195 ··<h3·id="searchlabel">Ricerca·veloce</h3>
195 ····<div·class="searchformwrapper">196 ····<div·class="searchformwrapper">
196 ····<form·class="search"·action="../search.html"·method="get">197 ····<form·class="search"·action="../search.html"·method="get">
197 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>198 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
198 ······<input·type="submit"·value="Go"·/>199 ······<input·type="submit"·value="Vai"·/>
199 ····</form>200 ····</form>
200 ····</div>201 ····</div>
201 </search>202 </search>
202 <script>document.getElementById('searchbox').style.display·=·"block"</script>203 <script>document.getElementById('searchbox').style.display·=·"block"</script>
203 ········</div>204 ········</div>
204 ······</div>205 ······</div>
205 ··············<h3>Last·update:</h3>206 ··············<h3>Last·update:</h3>
206 ··············<p·class="topless">Sep·03,·2024</p>207 ··············<p·class="topless">set·03,·2024</p>
207 ··········</div>208 ··········</div>
208 ········209 ········
209 ······210 ······
210 ····</div>211 ····</div>
  
211 ····<div·id="ft">212 ····<div·id="ft">
212 ······<div·class="nav">213 ······<div·class="nav">
5.06 KB
html2text {}
Max HTML report size reached
5.77 KB
./usr/share/doc/python-django-doc/html/releases/1.6.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.6·release·notes"·href="1.6.6.html"·/>15 ····<link·rel="next"·title="Django·1.6.6·release·notes"·href="1.6.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.8·release·notes"·href="1.6.8.html"·/>16 ····<link·rel="prev"·title="Django·1.6.8·release·notes"·href="1.6.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="1.6.8.html"118 ····<p·class="topless"><a·href="1.6.8.html"
118 ··························title="previous·chapter">Django·1.6.8·release·notes</a></p>119 ··························title="capitolo·precedente">Django·1.6.8·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="1.6.6.html"123 ····<p·class="topless"><a·href="1.6.6.html"
123 ··························title="next·chapter">Django·1.6.6·release·notes</a></p>124 ··························title="capitolo·successivo">Django·1.6.6·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.02 KB
html2text {}
Max HTML report size reached
5.73 KB
./usr/share/doc/python-django-doc/html/releases/1.6.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.7·release·notes"·href="1.6.7.html"·/>15 ····<link·rel="next"·title="Django·1.6.7·release·notes"·href="1.6.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.9·release·notes"·href="1.6.9.html"·/>16 ····<link·rel="prev"·title="Django·1.6.9·release·notes"·href="1.6.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.6.9.html"116 ····<p·class="topless"><a·href="1.6.9.html"
116 ··························title="previous·chapter">Django·1.6.9·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.6.9·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.6.7.html"121 ····<p·class="topless"><a·href="1.6.7.html"
121 ··························title="next·chapter">Django·1.6.7·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.6.7·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.98 KB
html2text {}
Max HTML report size reached
5.79 KB
./usr/share/doc/python-django-doc/html/releases/1.6.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.8·release·notes"·href="1.6.8.html"·/>15 ····<link·rel="next"·title="Django·1.6.8·release·notes"·href="1.6.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.10·release·notes"·href="1.6.10.html"·/>16 ····<link·rel="prev"·title="Django·1.6.10·release·notes"·href="1.6.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.6.10.html"117 ····<p·class="topless"><a·href="1.6.10.html"
117 ··························title="previous·chapter">Django·1.6.10·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.6.10·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.6.8.html"122 ····<p·class="topless"><a·href="1.6.8.html"
122 ··························title="next·chapter">Django·1.6.8·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.6.8·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.04 KB
html2text {}
Max HTML report size reached
20.9 KB
./usr/share/doc/python-django-doc/html/releases/1.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.5.12·release·notes"·href="1.5.12.html"·/>15 ····<link·rel="next"·title="Django·1.5.12·release·notes"·href="1.5.12.html"·/>
15 ····<link·rel="prev"·title="Django·1.6.1·release·notes"·href="1.6.1.html"·/>16 ····<link·rel="prev"·title="Django·1.6.1·release·notes"·href="1.6.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-1.6">79 ··········<div·class="yui-g"·id="releases-1.6">
79 ············80 ············
80 ··<section·id="s-django-1-6-release-notes">81 ··<section·id="s-django-1-6-release-notes">
81 <span·id="django-1-6-release-notes"></span><h1>Django·1.6·release·notes<a·class="headerlink"·href="#django-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-6-release-notes"></span><h1>Django·1.6·release·notes<a·class="headerlink"·href="#django-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·note">83 <div·class="admonition·note">
83 <p·class="admonition-title">Note</p>84 <p·class="admonition-title">Nota</p>
84 <p>Dedicated·to·Malcolm·Tredinnick</p>85 <p>Dedicated·to·Malcolm·Tredinnick</p>
85 <p>On·March·17,·2013,·the·Django·project·and·the·free·software·community·lost86 <p>On·March·17,·2013,·the·Django·project·and·the·free·software·community·lost
86 a·very·dear·friend·and·developer.</p>87 a·very·dear·friend·and·developer.</p>
87 <p>Malcolm·was·a·long-time·contributor·to·Django,·a·model·community·member,·a88 <p>Malcolm·was·a·long-time·contributor·to·Django,·a·model·community·member,·a
88 brilliant·mind,·and·a·friend.·His·contributions·to·Django··and·to·many·other89 brilliant·mind,·and·a·friend.·His·contributions·to·Django··and·to·many·other
89 open·source·projects··are·nearly·impossible·to·enumerate.·Many·on·the·core90 open·source·projects··are·nearly·impossible·to·enumerate.·Many·on·the·core
90 Django·team·had·their·first·patches·reviewed·by·him;·his·mentorship·enriched91 Django·team·had·their·first·patches·reviewed·by·him;·his·mentorship·enriched
Offset 346, 15 lines modifiedOffset 347, 15 lines modified
346 <li><p>Added347 <li><p>Added
347 <a·class="reference·internal"·href="../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.get_prefix"·title="django.views.generic.edit.FormMixin.get_prefix"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">FormMixin.get_prefix</span></code></a>348 <a·class="reference·internal"·href="../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.get_prefix"·title="django.views.generic.edit.FormMixin.get_prefix"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">FormMixin.get_prefix</span></code></a>
348 (which·returns349 (which·returns
349 <a·class="reference·internal"·href="../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.prefix"·title="django.views.generic.edit.FormMixin.prefix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">FormMixin.prefix</span></code></a>·by350 <a·class="reference·internal"·href="../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.prefix"·title="django.views.generic.edit.FormMixin.prefix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">FormMixin.prefix</span></code></a>·by
350 default)·to·allow·customizing·the·<a·class="reference·internal"·href="../ref/forms/api.html#django.forms.Form.prefix"·title="django.forms.Form.prefix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">prefix</span></code></a>·of·the351 default)·to·allow·customizing·the·<a·class="reference·internal"·href="../ref/forms/api.html#django.forms.Form.prefix"·title="django.forms.Form.prefix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">prefix</span></code></a>·of·the
351 form.</p></li>352 form.</p></li>
352 <li><p>Raw·queries·(<code·class="docutils·literal·notranslate"><span·class="pre">Manager.raw()</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">cursor.execute()</span></code>)·can·now·use·the353 <li><p>Raw·queries·(<code·class="docutils·literal·notranslate"><span·class="pre">Manager.raw()</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">cursor.execute()</span></code>)·can·now·use·the
353 pyformat·parameter·style,·where·placeholders·in·the·query·are·given·as354 «pyformat»·parameter·style,·where·placeholders·in·the·query·are·given·as
354 <code·class="docutils·literal·notranslate"><span·class="pre">'%(name)s'</span></code>·and·the·parameters·are·passed·as·a·dictionary·rather·than355 <code·class="docutils·literal·notranslate"><span·class="pre">'%(name)s'</span></code>·and·the·parameters·are·passed·as·a·dictionary·rather·than
355 a·list·(except·on·SQLite).·This·has·long·been·possible·(but·not·officially356 a·list·(except·on·SQLite).·This·has·long·been·possible·(but·not·officially
356 supported)·on·MySQL·and·PostgreSQL,·and·is·now·also·available·on·Oracle.</p></li>357 supported)·on·MySQL·and·PostgreSQL,·and·is·now·also·available·on·Oracle.</p></li>
357 <li><p>The·default·iteration·count·for·the·PBKDF2·password·hasher·has·been358 <li><p>The·default·iteration·count·for·the·PBKDF2·password·hasher·has·been
358 increased·by·20%.·This·backwards·compatible·change·will·not·affect359 increased·by·20%.·This·backwards·compatible·change·will·not·affect
359 existing·passwords·or·users·who·have·subclassed360 existing·passwords·or·users·who·have·subclassed
360 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.hashers.PBKDF2PasswordHasher</span></code>·to·change·the361 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.hashers.PBKDF2PasswordHasher</span></code>·to·change·the
Offset 362, 15 lines modifiedOffset 363, 15 lines modified
362 the·new·iteration·count·as·necessary.</p></li>363 the·new·iteration·count·as·necessary.</p></li>
363 </ul>364 </ul>
364 </section>365 </section>
365 </section>366 </section>
366 <section·id="s-backwards-incompatible-changes-in-1-6">367 <section·id="s-backwards-incompatible-changes-in-1-6">
367 <span·id="s-backwards-incompatible-1-6"></span><span·id="backwards-incompatible-changes-in-1-6"></span><span·id="backwards-incompatible-1-6"></span><h2>Backwards·incompatible·changes·in·1.6<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-6"·title="Link·to·this·heading">¶</a></h2>368 <span·id="s-backwards-incompatible-1-6"></span><span·id="backwards-incompatible-changes-in-1-6"></span><span·id="backwards-incompatible-1-6"></span><h2>Backwards·incompatible·changes·in·1.6<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-6"·title="Link·to·this·heading">¶</a></h2>
368 <div·class="admonition·warning">369 <div·class="admonition·warning">
369 <p·class="admonition-title">Warning</p>370 <p·class="admonition-title">Avvertimento</p>
370 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the371 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the
371 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-6"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that372 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-6"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that
372 have·been·removed.·If·you·haven’t·updated·your·code·within·the373 have·been·removed.·If·you·haven’t·updated·your·code·within·the
373 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a374 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a
374 backwards·incompatible·change.</p>375 backwards·incompatible·change.</p>
375 </div>376 </div>
376 <section·id="s-new-transaction-management-model">377 <section·id="s-new-transaction-management-model">
Offset 551, 15 lines modifiedOffset 552, 15 lines modified
551 replace·special·characters·in·URLs·used·in552 replace·special·characters·in·URLs·used·in
552 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.SimpleTestCase.assertRedirects"·title="django.test.SimpleTestCase.assertRedirects"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">assertRedirects()</span></code></a>·with·their·encoded553 <a·class="reference·internal"·href="../topics/testing/tools.html#django.test.SimpleTestCase.assertRedirects"·title="django.test.SimpleTestCase.assertRedirects"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">assertRedirects()</span></code></a>·with·their·encoded
553 versions.</p>554 versions.</p>
554 </section>555 </section>
555 <section·id="s-storage-of-ip-addresses-in-the-comments-app">556 <section·id="s-storage-of-ip-addresses-in-the-comments-app">
556 <span·id="storage-of-ip-addresses-in-the-comments-app"></span><h3>Storage·of·IP·addresses·in·the·comments·app<a·class="headerlink"·href="#storage-of-ip-addresses-in-the-comments-app"·title="Link·to·this·heading">¶</a></h3>557 <span·id="storage-of-ip-addresses-in-the-comments-app"></span><h3>Storage·of·IP·addresses·in·the·comments·app<a·class="headerlink"·href="#storage-of-ip-addresses-in-the-comments-app"·title="Link·to·this·heading">¶</a></h3>
557 <p>The·comments·app·now·uses·a558 <p>The·comments·app·now·uses·a
558 <code·class="docutils·literal·notranslate"><span·class="pre">GenericIPAddressField</span></code>·for·storing·commenters·IP·addresses,·to·support559 <code·class="docutils·literal·notranslate"><span·class="pre">GenericIPAddressField</span></code>·for·storing·commenters·IP·addresses,·to·support
559 comments·submitted·from·IPv6·addresses.·Until·now,·it·stored·them·in·an560 comments·submitted·from·IPv6·addresses.·Until·now,·it·stored·them·in·an
560 <code·class="docutils·literal·notranslate"><span·class="pre">IPAddressField</span></code>,·which·is·only·meant·to·support·IPv4.·When·saving·a·comment561 <code·class="docutils·literal·notranslate"><span·class="pre">IPAddressField</span></code>,·which·is·only·meant·to·support·IPv4.·When·saving·a·comment
561 made·from·an·IPv6·address,·the·address·would·be·silently·truncated·on·MySQL562 made·from·an·IPv6·address,·the·address·would·be·silently·truncated·on·MySQL
562 databases,·and·raise·an·exception·on·Oracle.·You·will·need·to·change·the563 databases,·and·raise·an·exception·on·Oracle.·You·will·need·to·change·the
563 column·type·in·your·database·to·benefit·from·this·change.</p>564 column·type·in·your·database·to·benefit·from·this·change.</p>
564 <p>For·MySQL,·execute·this·query·on·your·project’s·database:</p>565 <p>For·MySQL,·execute·this·query·on·your·project’s·database:</p>
565 <div·class="highlight-sql·notranslate"><div·class="highlight"><pre><span></span><span·class="k">ALTER</span><span·class="w">·</span><span·class="k">TABLE</span><span·class="w">·</span><span·class="n">django_comments</span><span·class="w">·</span><span·class="k">MODIFY</span><span·class="w">·</span><span·class="n">ip_address</span><span·class="w">·</span><span·class="nb">VARCHAR</span><span·class="p">(</span><span·class="mi">39</span><span·class="p">);</span>566 <div·class="highlight-sql·notranslate"><div·class="highlight"><pre><span></span><span·class="k">ALTER</span><span·class="w">·</span><span·class="k">TABLE</span><span·class="w">·</span><span·class="n">django_comments</span><span·class="w">·</span><span·class="k">MODIFY</span><span·class="w">·</span><span·class="n">ip_address</span><span·class="w">·</span><span·class="nb">VARCHAR</span><span·class="p">(</span><span·class="mi">39</span><span·class="p">);</span>
Offset 592, 24 lines modifiedOffset 593, 24 lines modified
592 </section>593 </section>
593 <section·id="s-help-text-of-model-form-fields-for-manytomanyfield-fields">594 <section·id="s-help-text-of-model-form-fields-for-manytomanyfield-fields">
594 <span·id="s-m2m-help-text"></span><span·id="help-text-of-model-form-fields-for-manytomanyfield-fields"></span><span·id="m2m-help-text"></span><h3>Help·text·of·model·form·fields·for·ManyToManyField·fields<a·class="headerlink"·href="#help-text-of-model-form-fields-for-manytomanyfield-fields"·title="Link·to·this·heading">¶</a></h3>595 <span·id="s-m2m-help-text"></span><span·id="help-text-of-model-form-fields-for-manytomanyfield-fields"></span><span·id="m2m-help-text"></span><h3>Help·text·of·model·form·fields·for·ManyToManyField·fields<a·class="headerlink"·href="#help-text-of-model-form-fields-for-manytomanyfield-fields"·title="Link·to·this·heading">¶</a></h3>
595 <p>HTML·rendering·of·model·form·fields·corresponding·to596 <p>HTML·rendering·of·model·form·fields·corresponding·to
596 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>·model·fields·used·to·get·the597 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>·model·fields·used·to·get·the
597 hard-coded·sentence:</p>598 hard-coded·sentence:</p>
598 <blockquote>599 <blockquote>
599 <div><p><em>Hold·down·Control,·or·Command·on·a·Mac,·to·select·more·than·one.</em></p>600 <div><p><em>Hold·down·«Control»,·or·«Command»·on·a·Mac,·to·select·more·than·one.</em></p>
600 </div></blockquote>601 </div></blockquote>
601 <p>(or·its·translation·to·the·active·locale)·imposed·as·the·help·legend·shown·along602 <p>(or·its·translation·to·the·active·locale)·imposed·as·the·help·legend·shown·along
602 them·if·neither·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.help_text"·title="django.db.models.Field.help_text"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>·nor·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.Field.help_text"·title="django.forms.Field.help_text"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form</span></code></a>·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·attributes·were·specified·by·the603 them·if·neither·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.Field.help_text"·title="django.db.models.Field.help_text"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">model</span></code></a>·nor·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.Field.help_text"·title="django.forms.Field.help_text"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form</span></code></a>·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·attributes·were·specified·by·the
603 user·(or·this·string·was·appended·to·any·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·that·was·provided).</p>604 user·(or·this·string·was·appended·to·any·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·that·was·provided).</p>
604 <p>Since·this·happened·at·the·model·layer,·there·was·no·way·to·prevent·the·text605 <p>Since·this·happened·at·the·model·layer,·there·was·no·way·to·prevent·the·text
605 from·appearing·in·cases·where·it·wasn’t·applicable·such·as·form·fields·that606 from·appearing·in·cases·where·it·wasn’t·applicable·such·as·form·fields·that
606 implement·user·interactions·that·don’t·involve·a·keyboard·and/or·a·mouse.</p>607 implement·user·interactions·that·don’t·involve·a·keyboard·and/or·a·mouse.</p>
607 <p>Starting·with·Django·1.6,·as·an·ad-hoc·temporary·backward-compatibility608 <p>Starting·with·Django·1.6,·as·an·ad-hoc·temporary·backward-compatibility
608 provision,·the·logic·to·add·the·Hold·down…·sentence·has·been·moved·to·the609 provision,·the·logic·to·add·the·«Hold·down…»·sentence·has·been·moved·to·the
609 model·form·field·layer·and·modified·to·add·the·text·only·when·the·associated610 model·form·field·layer·and·modified·to·add·the·text·only·when·the·associated
610 widget·is·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.SelectMultiple"·title="django.forms.SelectMultiple"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SelectMultiple</span></code></a>·or·selected·subclasses.</p>611 widget·is·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.SelectMultiple"·title="django.forms.SelectMultiple"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SelectMultiple</span></code></a>·or·selected·subclasses.</p>
611 <p>The·change·can·affect·you·in·a·backward·incompatible·way·if·you·employ·custom612 <p>The·change·can·affect·you·in·a·backward·incompatible·way·if·you·employ·custom
612 model·form·fields·and/or·widgets·for·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·model·fields·whose·UIs613 model·form·fields·and/or·widgets·for·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·model·fields·whose·UIs
613 do·rely·on·the·automatic·provision·of·the·mentioned·hard-coded·sentence.·These614 do·rely·on·the·automatic·provision·of·the·mentioned·hard-coded·sentence.·These
614 form·field·implementations·need·to·adapt·to·the·new·scenario·by·providing·their615 form·field·implementations·need·to·adapt·to·the·new·scenario·by·providing·their
Max diff block lines reached; 1524/12735 bytes (11.97%) of diff not shown.
8.35 KB
html2text {}
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/releases/1.7.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7·release·notes"·href="1.7.html"·/>15 ····<link·rel="next"·title="Django·1.7·release·notes"·href="1.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.2·release·notes"·href="1.7.2.html"·/>16 ····<link·rel="prev"·title="Django·1.7.2·release·notes"·href="1.7.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 191, 37 lines modifiedOffset 192, 37 lines modified
191 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>192 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
192 </ul>193 </ul>
193 </li>194 </li>
194 </ul>195 </ul>
  
195 ··</div>196 ··</div>
196 ··<div>197 ··<div>
197 ····<h4>Previous·topic</h4>198 ····<h4>Argomento·precedente</h4>
198 ····<p·class="topless"><a·href="1.7.2.html"199 ····<p·class="topless"><a·href="1.7.2.html"
199 ··························title="previous·chapter">Django·1.7.2·release·notes</a></p>200 ··························title="capitolo·precedente">Django·1.7.2·release·notes</a></p>
200 ··</div>201 ··</div>
201 ··<div>202 ··<div>
202 ····<h4>Next·topic</h4>203 ····<h4>Argomento·successivo</h4>
203 ····<p·class="topless"><a·href="1.7.html"204 ····<p·class="topless"><a·href="1.7.html"
204 ··························title="next·chapter">Django·1.7·release·notes</a></p>205 ··························title="capitolo·successivo">Django·1.7·release·notes</a></p>
205 ··</div>206 ··</div>
206 <search·id="searchbox"·style="display:·none"·role="search">207 <search·id="searchbox"·style="display:·none"·role="search">
207 ··<h3·id="searchlabel">Quick·search</h3>208 ··<h3·id="searchlabel">Ricerca·veloce</h3>
208 ····<div·class="searchformwrapper">209 ····<div·class="searchformwrapper">
209 ····<form·class="search"·action="../search.html"·method="get">210 ····<form·class="search"·action="../search.html"·method="get">
210 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>211 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
211 ······<input·type="submit"·value="Go"·/>212 ······<input·type="submit"·value="Vai"·/>
212 ····</form>213 ····</form>
213 ····</div>214 ····</div>
214 </search>215 </search>
215 <script>document.getElementById('searchbox').style.display·=·"block"</script>216 <script>document.getElementById('searchbox').style.display·=·"block"</script>
216 ········</div>217 ········</div>
217 ······</div>218 ······</div>
218 ··············<h3>Last·update:</h3>219 ··············<h3>Last·update:</h3>
219 ··············<p·class="topless">Sep·03,·2024</p>220 ··············<p·class="topless">set·03,·2024</p>
220 ··········</div>221 ··········</div>
221 ········222 ········
222 ······223 ······
223 ····</div>224 ····</div>
  
224 ····<div·id="ft">225 ····<div·id="ft">
225 ······<div·class="nav">226 ······<div·class="nav">
2.11 KB
html2text {}
Max HTML report size reached
9.39 KB
./usr/share/doc/python-django-doc/html/releases/1.7.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.9·release·notes"·href="1.7.9.html"·/>15 ····<link·rel="next"·title="Django·1.7.9·release·notes"·href="1.7.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.11·release·notes"·href="1.7.11.html"·/>16 ····<link·rel="prev"·title="Django·1.7.11·release·notes"·href="1.7.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">85 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">
85 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>86 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
86 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the87 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated
88 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the89 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the
89 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records90 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records
90 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or91 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or
91 causing·other·users·session·records·to·be·evicted.</p>92 causing·other·users·session·records·to·be·evicted.</p>
92 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been93 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been
93 modified·to·no·longer·create·empty·session·records,·including·when94 modified·to·no·longer·create·empty·session·records,·including·when
94 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>95 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>
95 <p>Additionally,·the·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.sessions.backends.base.SessionBase.flush()</span></code>·and96 <p>Additionally,·the·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.sessions.backends.base.SessionBase.flush()</span></code>·and
96 <code·class="docutils·literal·notranslate"><span·class="pre">cache_db.SessionStore.flush()</span></code>·methods·have·been·modified·to·avoid·creating97 <code·class="docutils·literal·notranslate"><span·class="pre">cache_db.SessionStore.flush()</span></code>·methods·have·been·modified·to·avoid·creating
97 a·new·empty·session.·Maintainers·of·third-party·session·backends·should·check98 a·new·empty·session.·Maintainers·of·third-party·session·backends·should·check
98 if·the·same·vulnerability·is·present·in·their·backend·and·correct·it·if·so.</p>99 if·the·same·vulnerability·is·present·in·their·backend·and·correct·it·if·so.</p>
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store">Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store</a></li>117 <li><a·class="reference·internal"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store">Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="1.7.11.html"124 ····<p·class="topless"><a·href="1.7.11.html"
124 ··························title="previous·chapter">Django·1.7.11·release·notes</a></p>125 ··························title="capitolo·precedente">Django·1.7.11·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="1.7.9.html"129 ····<p·class="topless"><a·href="1.7.9.html"
129 ··························title="next·chapter">Django·1.7.9·release·notes</a></p>130 ··························title="capitolo·successivo">Django·1.7.9·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
3.15 KB
html2text {}
Max HTML report size reached
6.13 KB
./usr/share/doc/python-django-doc/html/releases/1.7.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.10·release·notes"·href="1.7.10.html"·/>15 ····<link·rel="next"·title="Django·1.7.10·release·notes"·href="1.7.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.8·release·notes"·href="1.8.html"·/>16 ····<link·rel="prev"·title="Django·1.8·release·notes"·href="1.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 119, 37 lines modifiedOffset 120, 37 lines modified
119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
120 </ul>121 </ul>
121 </li>122 </li>
122 </ul>123 </ul>
  
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="1.8.html"127 ····<p·class="topless"><a·href="1.8.html"
127 ··························title="previous·chapter">Django·1.8·release·notes</a></p>128 ··························title="capitolo·precedente">Django·1.8·release·notes</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="1.7.10.html"132 ····<p·class="topless"><a·href="1.7.10.html"
132 ··························title="next·chapter">Django·1.7.10·release·notes</a></p>133 ··························title="capitolo·successivo">Django·1.7.10·release·notes</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
2.39 KB
html2text {}
Max HTML report size reached
8.97 KB
./usr/share/doc/python-django-doc/html/releases/1.7.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.1·release·notes"·href="1.7.1.html"·/>15 ····<link·rel="next"·title="Django·1.7.1·release·notes"·href="1.7.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.3·release·notes"·href="1.7.3.html"·/>16 ····<link·rel="prev"·title="Django·1.7.3·release·notes"·href="1.7.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 156, 15 lines modifiedOffset 157, 15 lines modified
156 <li><p>Fixed·index·creation·by·the·migration·infrastructure,·particularly·when157 <li><p>Fixed·index·creation·by·the·migration·infrastructure,·particularly·when
157 dealing·with·PostgreSQL·specific·<code·class="docutils·literal·notranslate"><span·class="pre">{text|varchar}_pattern_ops</span></code>·indexes158 dealing·with·PostgreSQL·specific·<code·class="docutils·literal·notranslate"><span·class="pre">{text|varchar}_pattern_ops</span></code>·indexes
158 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23954">#23954</a>).</p></li>159 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23954">#23954</a>).</p></li>
159 <li><p>Fixed·bug·in·<code·class="docutils·literal·notranslate"><span·class="pre">makemigrations</span></code>·that·created·broken·migration·files·when160 <li><p>Fixed·bug·in·<code·class="docutils·literal·notranslate"><span·class="pre">makemigrations</span></code>·that·created·broken·migration·files·when
160 dealing·with·multiple·table·inheritance·and·inheriting·from·more·than·one161 dealing·with·multiple·table·inheritance·and·inheriting·from·more·than·one
161 model·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23956">#23956</a>).</p></li>162 model·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23956">#23956</a>).</p></li>
162 <li><p>Fixed·a·crash·when·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiValueField</span></code>·has·invalid·data·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23674">#23674</a>).</p></li>163 <li><p>Fixed·a·crash·when·a·<code·class="docutils·literal·notranslate"><span·class="pre">MultiValueField</span></code>·has·invalid·data·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23674">#23674</a>).</p></li>
163 <li><p>Fixed·a·crash·in·the·admin·when·using·Save·as·new·and·also·deleting·a164 <li><p>Fixed·a·crash·in·the·admin·when·using·«Save·as·new»·and·also·deleting·a
164 related·inline·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23857">#23857</a>).</p></li>165 related·inline·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23857">#23857</a>).</p></li>
165 <li><p>Always·converted·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·to·text·(Unicode),·since·that·is·required166 <li><p>Always·converted·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·to·text·(Unicode),·since·that·is·required
166 on·Python·3·for·interpolation.·Removed·conversion·of·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·to·text167 on·Python·3·for·interpolation.·Removed·conversion·of·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·to·text
167 in·migration·deconstruction·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23455">#23455</a>·and·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23982">#23982</a>).</p></li>168 in·migration·deconstruction·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23455">#23455</a>·and·<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/23982">#23982</a>).</p></li>
168 <li><p>Enlarged·the·sizes·of·tablespaces·which·are·created·by·default·for·testing169 <li><p>Enlarged·the·sizes·of·tablespaces·which·are·created·by·default·for·testing
169 on·Oracle·(the·main·tablespace·was·increased·from·200M·to·300M·and·the170 on·Oracle·(the·main·tablespace·was·increased·from·200M·to·300M·and·the
170 temporary·tablespace·from·100M·to·150M).·This·was·required·to·accommodate171 temporary·tablespace·from·100M·to·150M).·This·was·required·to·accommodate
Offset 229, 37 lines modifiedOffset 230, 37 lines modified
229 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>230 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
230 </ul>231 </ul>
231 </li>232 </li>
232 </ul>233 </ul>
  
233 ··</div>234 ··</div>
234 ··<div>235 ··<div>
235 ····<h4>Previous·topic</h4>236 ····<h4>Argomento·precedente</h4>
236 ····<p·class="topless"><a·href="1.7.3.html"237 ····<p·class="topless"><a·href="1.7.3.html"
237 ··························title="previous·chapter">Django·1.7.3·release·notes</a></p>238 ··························title="capitolo·precedente">Django·1.7.3·release·notes</a></p>
238 ··</div>239 ··</div>
239 ··<div>240 ··<div>
240 ····<h4>Next·topic</h4>241 ····<h4>Argomento·successivo</h4>
241 ····<p·class="topless"><a·href="1.7.1.html"242 ····<p·class="topless"><a·href="1.7.1.html"
242 ··························title="next·chapter">Django·1.7.1·release·notes</a></p>243 ··························title="capitolo·successivo">Django·1.7.1·release·notes</a></p>
243 ··</div>244 ··</div>
244 <search·id="searchbox"·style="display:·none"·role="search">245 <search·id="searchbox"·style="display:·none"·role="search">
245 ··<h3·id="searchlabel">Quick·search</h3>246 ··<h3·id="searchlabel">Ricerca·veloce</h3>
246 ····<div·class="searchformwrapper">247 ····<div·class="searchformwrapper">
247 ····<form·class="search"·action="../search.html"·method="get">248 ····<form·class="search"·action="../search.html"·method="get">
248 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>249 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
249 ······<input·type="submit"·value="Go"·/>250 ······<input·type="submit"·value="Vai"·/>
250 ····</form>251 ····</form>
251 ····</div>252 ····</div>
252 </search>253 </search>
253 <script>document.getElementById('searchbox').style.display·=·"block"</script>254 <script>document.getElementById('searchbox').style.display·=·"block"</script>
254 ········</div>255 ········</div>
255 ······</div>256 ······</div>
256 ··············<h3>Last·update:</h3>257 ··············<h3>Last·update:</h3>
257 ··············<p·class="topless">Sep·03,·2024</p>258 ··············<p·class="topless">set·03,·2024</p>
258 ··········</div>259 ··········</div>
259 ········260 ········
260 ······261 ······
261 ····</div>262 ····</div>
  
262 ····<div·id="ft">263 ····<div·id="ft">
263 ······<div·class="nav">264 ······<div·class="nav">
3.21 KB
html2text {}
Max HTML report size reached
9.65 KB
./usr/share/doc/python-django-doc/html/releases/1.7.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.2·release·notes"·href="1.7.2.html"·/>15 ····<link·rel="next"·title="Django·1.7.2·release·notes"·href="1.7.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.4·release·notes"·href="1.7.4.html"·/>16 ····<link·rel="prev"·title="Django·1.7.4·release·notes"·href="1.7.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 102, 15 lines modifiedOffset 103, 15 lines modified
102 recommended·for·production·use,·but·matching·the·behavior·of·common·production103 recommended·for·production·use,·but·matching·the·behavior·of·common·production
103 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>104 servers·reduces·the·surface·area·for·behavior·changes·during·deployment.</p>
104 </section>105 </section>
105 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">106 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
106 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>107 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
107 <p>Django·relies·on·user·input·in·some·cases·(e.g.108 <p>Django·relies·on·user·input·in·some·cases·(e.g.
108 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)109 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
109 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these110 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
110 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading111 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·didn’t·strip·leading
111 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like112 whitespace·on·the·tested·URL·and·as·such·considered·URLs·like
112 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to113 <code·class="docutils·literal·notranslate"><span·class="pre">\njavascript:...</span></code>·safe.·If·a·developer·relied·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to
113 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer114 provide·safe·redirect·targets·and·put·such·a·URL·into·a·link,·they·could·suffer
114 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put115 from·a·XSS·attack.·This·bug·doesn’t·affect·Django·currently,·since·we·only·put
115 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore116 this·URL·into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore
116 JavaScript·there.</p>117 JavaScript·there.</p>
Offset 177, 37 lines modifiedOffset 178, 37 lines modified
177 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>178 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
178 </ul>179 </ul>
179 </li>180 </li>
180 </ul>181 </ul>
  
181 ··</div>182 ··</div>
182 ··<div>183 ··<div>
183 ····<h4>Previous·topic</h4>184 ····<h4>Argomento·precedente</h4>
184 ····<p·class="topless"><a·href="1.7.4.html"185 ····<p·class="topless"><a·href="1.7.4.html"
185 ··························title="previous·chapter">Django·1.7.4·release·notes</a></p>186 ··························title="capitolo·precedente">Django·1.7.4·release·notes</a></p>
186 ··</div>187 ··</div>
187 ··<div>188 ··<div>
188 ····<h4>Next·topic</h4>189 ····<h4>Argomento·successivo</h4>
189 ····<p·class="topless"><a·href="1.7.2.html"190 ····<p·class="topless"><a·href="1.7.2.html"
190 ··························title="next·chapter">Django·1.7.2·release·notes</a></p>191 ··························title="capitolo·successivo">Django·1.7.2·release·notes</a></p>
191 ··</div>192 ··</div>
192 <search·id="searchbox"·style="display:·none"·role="search">193 <search·id="searchbox"·style="display:·none"·role="search">
193 ··<h3·id="searchlabel">Quick·search</h3>194 ··<h3·id="searchlabel">Ricerca·veloce</h3>
194 ····<div·class="searchformwrapper">195 ····<div·class="searchformwrapper">
195 ····<form·class="search"·action="../search.html"·method="get">196 ····<form·class="search"·action="../search.html"·method="get">
196 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>197 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
197 ······<input·type="submit"·value="Go"·/>198 ······<input·type="submit"·value="Vai"·/>
198 ····</form>199 ····</form>
199 ····</div>200 ····</div>
200 </search>201 </search>
201 <script>document.getElementById('searchbox').style.display·=·"block"</script>202 <script>document.getElementById('searchbox').style.display·=·"block"</script>
202 ········</div>203 ········</div>
203 ······</div>204 ······</div>
204 ··············<h3>Last·update:</h3>205 ··············<h3>Last·update:</h3>
205 ··············<p·class="topless">Sep·03,·2024</p>206 ··············<p·class="topless">set·03,·2024</p>
206 ··········</div>207 ··········</div>
207 ········208 ········
208 ······209 ······
209 ····</div>210 ····</div>
  
210 ····<div·id="ft">211 ····<div·id="ft">
211 ······<div·class="nav">212 ······<div·class="nav">
4.22 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/1.7.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.3·release·notes"·href="1.7.3.html"·/>15 ····<link·rel="next"·title="Django·1.7.3·release·notes"·href="1.7.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.5·release·notes"·href="1.7.5.html"·/>16 ····<link·rel="prev"·title="Django·1.7.5·release·notes"·href="1.7.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="1.7.5.html"124 ····<p·class="topless"><a·href="1.7.5.html"
124 ··························title="previous·chapter">Django·1.7.5·release·notes</a></p>125 ··························title="capitolo·precedente">Django·1.7.5·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="1.7.3.html"129 ····<p·class="topless"><a·href="1.7.3.html"
129 ··························title="next·chapter">Django·1.7.3·release·notes</a></p>130 ··························title="capitolo·successivo">Django·1.7.3·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/1.7.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.4·release·notes"·href="1.7.4.html"·/>15 ····<link·rel="next"·title="Django·1.7.4·release·notes"·href="1.7.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.6·release·notes"·href="1.7.6.html"·/>16 ····<link·rel="prev"·title="Django·1.7.6·release·notes"·href="1.7.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="1.7.6.html"125 ····<p·class="topless"><a·href="1.7.6.html"
125 ··························title="previous·chapter">Django·1.7.6·release·notes</a></p>126 ··························title="capitolo·precedente">Django·1.7.6·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="1.7.4.html"130 ····<p·class="topless"><a·href="1.7.4.html"
130 ··························title="next·chapter">Django·1.7.4·release·notes</a></p>131 ··························title="capitolo·successivo">Django·1.7.4·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
6.09 KB
./usr/share/doc/python-django-doc/html/releases/1.7.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.5·release·notes"·href="1.7.5.html"·/>15 ····<link·rel="next"·title="Django·1.7.5·release·notes"·href="1.7.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.7·release·notes"·href="1.7.7.html"·/>16 ····<link·rel="prev"·title="Django·1.7.7·release·notes"·href="1.7.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 121, 37 lines modifiedOffset 122, 37 lines modified
121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
122 </ul>123 </ul>
123 </li>124 </li>
124 </ul>125 </ul>
  
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Previous·topic</h4>128 ····<h4>Argomento·precedente</h4>
128 ····<p·class="topless"><a·href="1.7.7.html"129 ····<p·class="topless"><a·href="1.7.7.html"
129 ··························title="previous·chapter">Django·1.7.7·release·notes</a></p>130 ··························title="capitolo·precedente">Django·1.7.7·release·notes</a></p>
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Next·topic</h4>133 ····<h4>Argomento·successivo</h4>
133 ····<p·class="topless"><a·href="1.7.5.html"134 ····<p·class="topless"><a·href="1.7.5.html"
134 ··························title="next·chapter">Django·1.7.5·release·notes</a></p>135 ··························title="capitolo·successivo">Django·1.7.5·release·notes</a></p>
135 ··</div>136 ··</div>
136 <search·id="searchbox"·style="display:·none"·role="search">137 <search·id="searchbox"·style="display:·none"·role="search">
137 ··<h3·id="searchlabel">Quick·search</h3>138 ··<h3·id="searchlabel">Ricerca·veloce</h3>
138 ····<div·class="searchformwrapper">139 ····<div·class="searchformwrapper">
139 ····<form·class="search"·action="../search.html"·method="get">140 ····<form·class="search"·action="../search.html"·method="get">
140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
141 ······<input·type="submit"·value="Go"·/>142 ······<input·type="submit"·value="Vai"·/>
142 ····</form>143 ····</form>
143 ····</div>144 ····</div>
144 </search>145 </search>
145 <script>document.getElementById('searchbox').style.display·=·"block"</script>146 <script>document.getElementById('searchbox').style.display·=·"block"</script>
146 ········</div>147 ········</div>
147 ······</div>148 ······</div>
148 ··············<h3>Last·update:</h3>149 ··············<h3>Last·update:</h3>
149 ··············<p·class="topless">Sep·03,·2024</p>150 ··············<p·class="topless">set·03,·2024</p>
150 ··········</div>151 ··········</div>
151 ········152 ········
152 ······153 ······
153 ····</div>154 ····</div>
  
154 ····<div·id="ft">155 ····<div·id="ft">
155 ······<div·class="nav">156 ······<div·class="nav">
2.35 KB
html2text {}
Max HTML report size reached
9.5 KB
./usr/share/doc/python-django-doc/html/releases/1.7.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.6·release·notes"·href="1.7.6.html"·/>15 ····<link·rel="next"·title="Django·1.7.6·release·notes"·href="1.7.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.8·release·notes"·href="1.7.8.html"·/>16 ····<link·rel="prev"·title="Django·1.7.8·release·notes"·href="1.7.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 96, 15 lines modifiedOffset 97, 15 lines modified
96 HTML·safe.·So·NEVER·mark·safe·the·result·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">strip_tags()</span></code>·call·without97 HTML·safe.·So·NEVER·mark·safe·the·result·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">strip_tags()</span></code>·call·without
97 escaping·it·first,·for·example·with·<a·class="reference·internal"·href="../ref/utils.html#django.utils.html.escape"·title="django.utils.html.escape"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">escape()</span></code></a>.</p>98 escaping·it·first,·for·example·with·<a·class="reference·internal"·href="../ref/utils.html#django.utils.html.escape"·title="django.utils.html.escape"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">escape()</span></code></a>.</p>
98 </section>99 </section>
99 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">100 <section·id="s-mitigated-possible-xss-attack-via-user-supplied-redirect-urls">
100 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>101 <span·id="mitigated-possible-xss-attack-via-user-supplied-redirect-urls"></span><h2>Mitigated·possible·XSS·attack·via·user-supplied·redirect·URLs<a·class="headerlink"·href="#mitigated-possible-xss-attack-via-user-supplied-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
101 <p>Django·relies·on·user·input·in·some·cases·(e.g.102 <p>Django·relies·on·user·input·in·some·cases·(e.g.
102 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)103 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
103 to·redirect·the·user·to·an·on·success·URL.·The·security·checks·for·these104 to·redirect·the·user·to·an·«on·success»·URL.·The·security·checks·for·these
104 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with105 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·accepted·URLs·with
105 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>106 leading·control·characters·and·so·considered·URLs·like·<code·class="docutils·literal·notranslate"><span·class="pre">\x08javascript:...</span></code>
106 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL107 safe.·This·issue·doesn’t·affect·Django·currently,·since·we·only·put·this·URL
107 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript108 into·the·<code·class="docutils·literal·notranslate"><span·class="pre">Location</span></code>·response·header·and·browsers·seem·to·ignore·JavaScript
108 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such109 there.·Browsers·we·tested·also·treat·URLs·prefixed·with·control·characters·such
109 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target110 as·<code·class="docutils·literal·notranslate"><span·class="pre">%08//example.com</span></code>·as·relative·paths·so·redirection·to·an·unsafe·target
110 isn’t·a·problem·either.</p>111 isn’t·a·problem·either.</p>
Offset 145, 37 lines modifiedOffset 146, 37 lines modified
145 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>146 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
146 </ul>147 </ul>
147 </li>148 </li>
148 </ul>149 </ul>
  
149 ··</div>150 ··</div>
150 ··<div>151 ··<div>
151 ····<h4>Previous·topic</h4>152 ····<h4>Argomento·precedente</h4>
152 ····<p·class="topless"><a·href="1.7.8.html"153 ····<p·class="topless"><a·href="1.7.8.html"
153 ··························title="previous·chapter">Django·1.7.8·release·notes</a></p>154 ··························title="capitolo·precedente">Django·1.7.8·release·notes</a></p>
154 ··</div>155 ··</div>
155 ··<div>156 ··<div>
156 ····<h4>Next·topic</h4>157 ····<h4>Argomento·successivo</h4>
157 ····<p·class="topless"><a·href="1.7.6.html"158 ····<p·class="topless"><a·href="1.7.6.html"
158 ··························title="next·chapter">Django·1.7.6·release·notes</a></p>159 ··························title="capitolo·successivo">Django·1.7.6·release·notes</a></p>
159 ··</div>160 ··</div>
160 <search·id="searchbox"·style="display:·none"·role="search">161 <search·id="searchbox"·style="display:·none"·role="search">
161 ··<h3·id="searchlabel">Quick·search</h3>162 ··<h3·id="searchlabel">Ricerca·veloce</h3>
162 ····<div·class="searchformwrapper">163 ····<div·class="searchformwrapper">
163 ····<form·class="search"·action="../search.html"·method="get">164 ····<form·class="search"·action="../search.html"·method="get">
164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>165 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
165 ······<input·type="submit"·value="Go"·/>166 ······<input·type="submit"·value="Vai"·/>
166 ····</form>167 ····</form>
167 ····</div>168 ····</div>
168 </search>169 </search>
169 <script>document.getElementById('searchbox').style.display·=·"block"</script>170 <script>document.getElementById('searchbox').style.display·=·"block"</script>
170 ········</div>171 ········</div>
171 ······</div>172 ······</div>
172 ··············<h3>Last·update:</h3>173 ··············<h3>Last·update:</h3>
173 ··············<p·class="topless">Sep·03,·2024</p>174 ··············<p·class="topless">set·03,·2024</p>
174 ··········</div>175 ··········</div>
175 ········176 ········
176 ······177 ······
177 ····</div>178 ····</div>
  
178 ····<div·id="ft">179 ····<div·id="ft">
179 ······<div·class="nav">180 ······<div·class="nav">
3.81 KB
html2text {}
Max HTML report size reached
5.57 KB
./usr/share/doc/python-django-doc/html/releases/1.7.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.7·release·notes"·href="1.7.7.html"·/>15 ····<link·rel="next"·title="Django·1.7.7·release·notes"·href="1.7.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.9·release·notes"·href="1.7.9.html"·/>16 ····<link·rel="prev"·title="Django·1.7.9·release·notes"·href="1.7.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 97, 37 lines modifiedOffset 98, 37 lines modified
97 ······98 ······
98 ········99 ········
99 ··········<div·class="yui-b"·id="sidebar">100 ··········<div·class="yui-b"·id="sidebar">
100 ············101 ············
101 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">102 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
102 ········<div·class="sphinxsidebarwrapper">103 ········<div·class="sphinxsidebarwrapper">
103 ··<div>104 ··<div>
104 ····<h4>Previous·topic</h4>105 ····<h4>Argomento·precedente</h4>
105 ····<p·class="topless"><a·href="1.7.9.html"106 ····<p·class="topless"><a·href="1.7.9.html"
106 ··························title="previous·chapter">Django·1.7.9·release·notes</a></p>107 ··························title="capitolo·precedente">Django·1.7.9·release·notes</a></p>
107 ··</div>108 ··</div>
108 ··<div>109 ··<div>
109 ····<h4>Next·topic</h4>110 ····<h4>Argomento·successivo</h4>
110 ····<p·class="topless"><a·href="1.7.7.html"111 ····<p·class="topless"><a·href="1.7.7.html"
111 ··························title="next·chapter">Django·1.7.7·release·notes</a></p>112 ··························title="capitolo·successivo">Django·1.7.7·release·notes</a></p>
112 ··</div>113 ··</div>
113 <search·id="searchbox"·style="display:·none"·role="search">114 <search·id="searchbox"·style="display:·none"·role="search">
114 ··<h3·id="searchlabel">Quick·search</h3>115 ··<h3·id="searchlabel">Ricerca·veloce</h3>
115 ····<div·class="searchformwrapper">116 ····<div·class="searchformwrapper">
116 ····<form·class="search"·action="../search.html"·method="get">117 ····<form·class="search"·action="../search.html"·method="get">
117 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>118 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
118 ······<input·type="submit"·value="Go"·/>119 ······<input·type="submit"·value="Vai"·/>
119 ····</form>120 ····</form>
120 ····</div>121 ····</div>
121 </search>122 </search>
122 <script>document.getElementById('searchbox').style.display·=·"block"</script>123 <script>document.getElementById('searchbox').style.display·=·"block"</script>
123 ········</div>124 ········</div>
124 ······</div>125 ······</div>
125 ··············<h3>Last·update:</h3>126 ··············<h3>Last·update:</h3>
126 ··············<p·class="topless">Sep·03,·2024</p>127 ··············<p·class="topless">set·03,·2024</p>
127 ··········</div>128 ··········</div>
128 ········129 ········
129 ······130 ······
130 ····</div>131 ····</div>
  
131 ····<div·id="ft">132 ····<div·id="ft">
132 ······<div·class="nav">133 ······<div·class="nav">
1.75 KB
html2text {}
Max HTML report size reached
8.51 KB
./usr/share/doc/python-django-doc/html/releases/1.7.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.8·release·notes"·href="1.7.8.html"·/>15 ····<link·rel="next"·title="Django·1.7.8·release·notes"·href="1.7.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.10·release·notes"·href="1.7.10.html"·/>16 ····<link·rel="prev"·title="Django·1.7.10·release·notes"·href="1.7.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <section·id="s-denial-of-service-possibility-by-filling-session-store">85 <section·id="s-denial-of-service-possibility-by-filling-session-store">
85 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>86 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
86 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record87 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record
87 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a88 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a
88 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session89 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session
89 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records90 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records
90 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially91 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially
91 filling·up·the·session·store·or·causing·other·users·session·records·to·be92 filling·up·the·session·store·or·causing·other·users·session·records·to·be
92 evicted.</p>93 evicted.</p>
93 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session94 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session
94 is·actually·modified;·empty·session·records·are·not·created.·Thus·this95 is·actually·modified;·empty·session·records·are·not·created.·Thus·this
95 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a96 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a
96 session-modifying·view·to·anonymous·users.</p>97 session-modifying·view·to·anonymous·users.</p>
97 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the98 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the
98 core·sessions·framework),·maintainers·of·third-party·session·backends·should99 core·sessions·framework),·maintainers·of·third-party·session·backends·should
Offset 154, 37 lines modifiedOffset 155, 37 lines modified
154 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>155 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
155 </ul>156 </ul>
156 </li>157 </li>
157 </ul>158 </ul>
  
158 ··</div>159 ··</div>
159 ··<div>160 ··<div>
160 ····<h4>Previous·topic</h4>161 ····<h4>Argomento·precedente</h4>
161 ····<p·class="topless"><a·href="1.7.10.html"162 ····<p·class="topless"><a·href="1.7.10.html"
162 ··························title="previous·chapter">Django·1.7.10·release·notes</a></p>163 ··························title="capitolo·precedente">Django·1.7.10·release·notes</a></p>
163 ··</div>164 ··</div>
164 ··<div>165 ··<div>
165 ····<h4>Next·topic</h4>166 ····<h4>Argomento·successivo</h4>
166 ····<p·class="topless"><a·href="1.7.8.html"167 ····<p·class="topless"><a·href="1.7.8.html"
167 ··························title="next·chapter">Django·1.7.8·release·notes</a></p>168 ··························title="capitolo·successivo">Django·1.7.8·release·notes</a></p>
168 ··</div>169 ··</div>
169 <search·id="searchbox"·style="display:·none"·role="search">170 <search·id="searchbox"·style="display:·none"·role="search">
170 ··<h3·id="searchlabel">Quick·search</h3>171 ··<h3·id="searchlabel">Ricerca·veloce</h3>
171 ····<div·class="searchformwrapper">172 ····<div·class="searchformwrapper">
172 ····<form·class="search"·action="../search.html"·method="get">173 ····<form·class="search"·action="../search.html"·method="get">
173 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>174 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
174 ······<input·type="submit"·value="Go"·/>175 ······<input·type="submit"·value="Vai"·/>
175 ····</form>176 ····</form>
176 ····</div>177 ····</div>
177 </search>178 </search>
178 <script>document.getElementById('searchbox').style.display·=·"block"</script>179 <script>document.getElementById('searchbox').style.display·=·"block"</script>
179 ········</div>180 ········</div>
180 ······</div>181 ······</div>
181 ··············<h3>Last·update:</h3>182 ··············<h3>Last·update:</h3>
182 ··············<p·class="topless">Sep·03,·2024</p>183 ··············<p·class="topless">set·03,·2024</p>
183 ··········</div>184 ··········</div>
184 ········185 ········
185 ······186 ······
186 ····</div>187 ····</div>
  
187 ····<div·id="ft">188 ····<div·id="ft">
188 ······<div·class="nav">189 ······<div·class="nav">
3.38 KB
html2text {}
Max HTML report size reached
37.8 KB
./usr/share/doc/python-django-doc/html/releases/1.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.6.11·release·notes"·href="1.6.11.html"·/>15 ····<link·rel="next"·title="Django·1.6.11·release·notes"·href="1.6.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.7.1·release·notes"·href="1.7.1.html"·/>16 ····<link·rel="prev"·title="Django·1.7.1·release·notes"·href="1.7.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 136, 18 lines modifiedOffset 137, 18 lines modified
136 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·or137 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ForeignKey"·title="django.db.models.ForeignKey"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code></a>·or
137 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>·to)·apps·with·migrations.</p></li>138 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ManyToManyField"·title="django.db.models.ManyToManyField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code></a>·to)·apps·with·migrations.</p></li>
138 </ul>139 </ul>
139 </section>140 </section>
140 <section·id="s-app-loading-refactor">141 <section·id="s-app-loading-refactor">
141 <span·id="s-app-loading-refactor-17-release-note"></span><span·id="app-loading-refactor"></span><span·id="app-loading-refactor-17-release-note"></span><h3>App-loading·refactor<a·class="headerlink"·href="#app-loading-refactor"·title="Link·to·this·heading">¶</a></h3>142 <span·id="s-app-loading-refactor-17-release-note"></span><span·id="app-loading-refactor"></span><span·id="app-loading-refactor-17-release-note"></span><h3>App-loading·refactor<a·class="headerlink"·href="#app-loading-refactor"·title="Link·to·this·heading">¶</a></h3>
142 <p>Historically,·Django·applications·were·tightly·linked·to·models.·A·singleton143 <p>Historically,·Django·applications·were·tightly·linked·to·models.·A·singleton
143 known·as·the·app·cache·dealt·with·both·installed·applications·and·models.144 known·as·the·«app·cache»·dealt·with·both·installed·applications·and·models.
144 The·models·module·was·used·as·an·identifier·for·applications·in·many·APIs.</p>145 The·models·module·was·used·as·an·identifier·for·applications·in·many·APIs.</p>
145 <p>As·the·concept·of·<a·class="reference·internal"·href="../ref/applications.html"><span·class="doc">Django·applications</span></a>·matured,·this146 <p>As·the·concept·of·<a·class="reference·internal"·href="../ref/applications.html"><span·class="doc">Django·applications</span></a>·matured,·this
146 code·showed·some·shortcomings.·It·has·been·refactored·into·an·app·registry147 code·showed·some·shortcomings.·It·has·been·refactored·into·an·«app·registry»
147 where·models·modules·no·longer·have·a·central·role·and·where·it’s·possible·to148 where·models·modules·no·longer·have·a·central·role·and·where·it’s·possible·to
148 attach·configuration·data·to·applications.</p>149 attach·configuration·data·to·applications.</p>
149 <p>Improvements·thus·far·include:</p>150 <p>Improvements·thus·far·include:</p>
150 <ul·class="simple">151 <ul·class="simple">
151 <li><p>Applications·can·run·code·at·startup,·before·Django·does·anything·else,·with152 <li><p>Applications·can·run·code·at·startup,·before·Django·does·anything·else,·with
152 the·<a·class="reference·internal"·href="../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>·method·of·their·configuration.</p></li>153 the·<a·class="reference·internal"·href="../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>·method·of·their·configuration.</p></li>
153 <li><p>Application·labels·are·assigned·correctly·to·models·even·when·they’re154 <li><p>Application·labels·are·assigned·correctly·to·models·even·when·they’re
Offset 272, 15 lines modifiedOffset 273, 15 lines modified
272 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.select_related"·title="django.db.models.query.QuerySet.select_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">select_related()</span></code></a>·from·a·prefetched273 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.select_related"·title="django.db.models.query.QuerySet.select_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">select_related()</span></code></a>·from·a·prefetched
273 relation,·or·prefetching·the·same·relation·multiple·times·with·different274 relation,·or·prefetching·the·same·relation·multiple·times·with·different
274 querysets.·See·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.prefetch_related"·title="django.db.models.query.QuerySet.prefetch_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code></a>275 querysets.·See·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.prefetch_related"·title="django.db.models.query.QuerySet.prefetch_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code></a>
275 for·more·details.</p>276 for·more·details.</p>
276 </section>277 </section>
277 <section·id="s-admin-shortcuts-support-time-zones">278 <section·id="s-admin-shortcuts-support-time-zones">
278 <span·id="admin-shortcuts-support-time-zones"></span><h3>Admin·shortcuts·support·time·zones<a·class="headerlink"·href="#admin-shortcuts-support-time-zones"·title="Link·to·this·heading">¶</a></h3>279 <span·id="admin-shortcuts-support-time-zones"></span><h3>Admin·shortcuts·support·time·zones<a·class="headerlink"·href="#admin-shortcuts-support-time-zones"·title="Link·to·this·heading">¶</a></h3>
279 <p>The·today·and·now·shortcuts·next·to·date·and·time·input·widgets·in·the280 <p>The·«today»·and·«now»·shortcuts·next·to·date·and·time·input·widgets·in·the
280 admin·are·now·operating·in·the·<a·class="reference·internal"·href="../topics/i18n/timezones.html#default-current-time-zone"><span·class="std·std-ref">current·time·zone</span></a>.·Previously,·they·used·the·browser·time·zone,281 admin·are·now·operating·in·the·<a·class="reference·internal"·href="../topics/i18n/timezones.html#default-current-time-zone"><span·class="std·std-ref">current·time·zone</span></a>.·Previously,·they·used·the·browser·time·zone,
281 which·could·result·in·saving·the·wrong·value·when·it·didn’t·match·the·current282 which·could·result·in·saving·the·wrong·value·when·it·didn’t·match·the·current
282 time·zone·on·the·server.</p>283 time·zone·on·the·server.</p>
283 <p>In·addition,·the·widgets·now·display·a·help·message·when·the·browser·and284 <p>In·addition,·the·widgets·now·display·a·help·message·when·the·browser·and
284 server·time·zone·are·different,·to·clarify·how·the·value·inserted·in·the·field285 server·time·zone·are·different,·to·clarify·how·the·value·inserted·in·the·field
285 will·be·interpreted.</p>286 will·be·interpreted.</p>
286 </section>287 </section>
Offset 328, 15 lines modifiedOffset 329, 15 lines modified
328 <span·id="form-add-error"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Form.add_error()</span></code><a·class="headerlink"·href="#form-add-error"·title="Link·to·this·heading">¶</a></h4>329 <span·id="form-add-error"></span><h4><code·class="docutils·literal·notranslate"><span·class="pre">Form.add_error()</span></code><a·class="headerlink"·href="#form-add-error"·title="Link·to·this·heading">¶</a></h4>
329 <p>Previously·there·were·two·main·patterns·for·handling·errors·in·forms:</p>330 <p>Previously·there·were·two·main·patterns·for·handling·errors·in·forms:</p>
330 <ul·class="simple">331 <ul·class="simple">
331 <li><p>Raising·a·<a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.ValidationError"·title="django.core.exceptions.ValidationError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ValidationError</span></code></a>·from·within·certain332 <li><p>Raising·a·<a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.ValidationError"·title="django.core.exceptions.ValidationError"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ValidationError</span></code></a>·from·within·certain
332 functions·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">Field.clean()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">Form.clean_&lt;fieldname&gt;()</span></code>,·or333 functions·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">Field.clean()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">Form.clean_&lt;fieldname&gt;()</span></code>,·or
333 <code·class="docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code>·for·non-field·errors.)</p></li>334 <code·class="docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code>·for·non-field·errors.)</p></li>
334 <li><p>Fiddling·with·<code·class="docutils·literal·notranslate"><span·class="pre">Form._errors</span></code>·when·targeting·a·specific·field·in335 <li><p>Fiddling·with·<code·class="docutils·literal·notranslate"><span·class="pre">Form._errors</span></code>·when·targeting·a·specific·field·in
335 <code·class="docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code>·or·adding·errors·from·outside·of·a·clean·method336 <code·class="docutils·literal·notranslate"><span·class="pre">Form.clean()</span></code>·or·adding·errors·from·outside·of·a·«clean»·method
336 (e.g.·directly·from·a·view).</p></li>337 (e.g.·directly·from·a·view).</p></li>
337 </ul>338 </ul>
338 <p>Using·the·former·pattern·was·straightforward·since·the·form·can·guess·from·the339 <p>Using·the·former·pattern·was·straightforward·since·the·form·can·guess·from·the
339 context·(i.e.·which·method·raised·the·exception)·where·the·errors·belong·and340 context·(i.e.·which·method·raised·the·exception)·where·the·errors·belong·and
340 automatically·process·them.·This·remains·the·canonical·way·of·adding·errors341 automatically·process·them.·This·remains·the·canonical·way·of·adding·errors
341 when·possible.·However·the·latter·was·fiddly·and·error-prone,·since·the·burden342 when·possible.·However·the·latter·was·fiddly·and·error-prone,·since·the·burden
342 of·handling·edge·cases·fell·on·the·user.</p>343 of·handling·edge·cases·fell·on·the·user.</p>
Offset 404, 15 lines modifiedOffset 405, 15 lines modified
404 customize·the·value·of·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.fields"·title="django.contrib.admin.ModelAdmin.fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.fields</span></code></a>.</p></li>405 customize·the·value·of·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.fields"·title="django.contrib.admin.ModelAdmin.fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.fields</span></code></a>.</p></li>
405 <li><p>In·addition·to·the·existing·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.register</span></code>·syntax,·you·can·use·the406 <li><p>In·addition·to·the·existing·<code·class="docutils·literal·notranslate"><span·class="pre">admin.site.register</span></code>·syntax,·you·can·use·the
406 new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.register"·title="django.contrib.admin.register"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">register()</span></code></a>·decorator·to·register·a407 new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.register"·title="django.contrib.admin.register"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">register()</span></code></a>·decorator·to·register·a
407 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin"·title="django.contrib.admin.ModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code></a>.</p></li>408 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin"·title="django.contrib.admin.ModelAdmin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code></a>.</p></li>
408 <li><p>You·may·specify·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display_links"·title="django.contrib.admin.ModelAdmin.list_display_links"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display_links</span></code></a>·<code·class="docutils·literal·notranslate"><span·class="pre">=</span>·<span·class="pre">None</span></code>·to·disable409 <li><p>You·may·specify·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display_links"·title="django.contrib.admin.ModelAdmin.list_display_links"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display_links</span></code></a>·<code·class="docutils·literal·notranslate"><span·class="pre">=</span>·<span·class="pre">None</span></code>·to·disable
409 links·on·the·change·list·page·grid.</p></li>410 links·on·the·change·list·page·grid.</p></li>
410 <li><p>You·may·now·specify·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.view_on_site"·title="django.contrib.admin.ModelAdmin.view_on_site"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.view_on_site</span></code></a>·to·control·whether·or·not·to411 <li><p>You·may·now·specify·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.view_on_site"·title="django.contrib.admin.ModelAdmin.view_on_site"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.view_on_site</span></code></a>·to·control·whether·or·not·to
411 display·the·View·on·site·link.</p></li>412 display·the·«View·on·site»·link.</p></li>
412 <li><p>You·can·specify·a·descending·ordering·for·a·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display</span></code></a>·value·by·prefixing·the413 <li><p>You·can·specify·a·descending·ordering·for·a·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display</span></code></a>·value·by·prefixing·the
413 <code·class="docutils·literal·notranslate"><span·class="pre">admin_order_field</span></code>·value·with·a·hyphen.</p></li>414 <code·class="docutils·literal·notranslate"><span·class="pre">admin_order_field</span></code>·value·with·a·hyphen.</p></li>
414 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_changeform_initial_data"·title="django.contrib.admin.ModelAdmin.get_changeform_initial_data"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_changeform_initial_data()</span></code></a>·method·may·be415 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_changeform_initial_data"·title="django.contrib.admin.ModelAdmin.get_changeform_initial_data"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_changeform_initial_data()</span></code></a>·method·may·be
415 overridden·to·define·custom·behavior·for·setting·initial·change·form·data.</p></li>416 overridden·to·define·custom·behavior·for·setting·initial·change·form·data.</p></li>
416 </ul>417 </ul>
417 </section>418 </section>
418 <section·id="s-django-contrib-auth">419 <section·id="s-django-contrib-auth">
Offset 545, 15 lines modifiedOffset 546, 15 lines modified
545 instance·per·thread.·It·supersedes·<code·class="docutils·literal·notranslate"><span·class="pre">django.core.cache.get_cache()</span></code>·which546 instance·per·thread.·It·supersedes·<code·class="docutils·literal·notranslate"><span·class="pre">django.core.cache.get_cache()</span></code>·which
546 is·now·deprecated.</p></li>547 is·now·deprecated.</p></li>
547 <li><p>If·you·instantiate·cache·backends·directly,·be·aware·that·they·aren’t548 <li><p>If·you·instantiate·cache·backends·directly,·be·aware·that·they·aren’t
548 thread-safe·any·more,·as·<a·class="reference·internal"·href="../topics/cache.html#django.core.cache.caches"·title="django.core.cache.caches"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.core.cache.caches</span></code></a>·now·yields549 thread-safe·any·more,·as·<a·class="reference·internal"·href="../topics/cache.html#django.core.cache.caches"·title="django.core.cache.caches"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.core.cache.caches</span></code></a>·now·yields
549 different·instances·per·thread.</p></li>550 different·instances·per·thread.</p></li>
550 <li><p>Defining·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-TIMEOUT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code></a>·argument·of·the551 <li><p>Defining·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-TIMEOUT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code></a>·argument·of·the
551 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CACHES</span></code></a>·setting·as·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·will·set·the·cache·keys·as552 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CACHES</span></code></a>·setting·as·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·will·set·the·cache·keys·as
552 non-expiring·by·default.·Previously,·it·was·only·possible·to·pass553 «non-expiring»·by·default.·Previously,·it·was·only·possible·to·pass
553 <code·class="docutils·literal·notranslate"><span·class="pre">timeout=None</span></code>·to·the·cache·backend’s·<code·class="docutils·literal·notranslate"><span·class="pre">set()</span></code>·method.</p></li>554 <code·class="docutils·literal·notranslate"><span·class="pre">timeout=None</span></code>·to·the·cache·backend’s·<code·class="docutils·literal·notranslate"><span·class="pre">set()</span></code>·method.</p></li>
554 </ul>555 </ul>
555 </section>556 </section>
556 <section·id="s-cross-site-request-forgery">557 <section·id="s-cross-site-request-forgery">
557 <span·id="cross-site-request-forgery"></span><h4>Cross·Site·Request·Forgery<a·class="headerlink"·href="#cross-site-request-forgery"·title="Link·to·this·heading">¶</a></h4>558 <span·id="cross-site-request-forgery"></span><h4>Cross·Site·Request·Forgery<a·class="headerlink"·href="#cross-site-request-forgery"·title="Link·to·this·heading">¶</a></h4>
558 <ul·class="simple">559 <ul·class="simple">
559 <li><p>The·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_AGE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_AGE</span></code></a>·setting·facilitates·the·use·of·session-based560 <li><p>The·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_AGE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_AGE</span></code></a>·setting·facilitates·the·use·of·session-based
Offset 610, 15 lines modifiedOffset 611, 15 lines modified
610 buttons·or·checkboxes·now·include·<code·class="docutils·literal·notranslate"><span·class="pre">for</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">id</span></code>·attributes,·respectively.611 buttons·or·checkboxes·now·include·<code·class="docutils·literal·notranslate"><span·class="pre">for</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">id</span></code>·attributes,·respectively.
611 Each·radio·button·or·checkbox·includes·an·<code·class="docutils·literal·notranslate"><span·class="pre">id_for_label</span></code>·attribute·to612 Each·radio·button·or·checkbox·includes·an·<code·class="docutils·literal·notranslate"><span·class="pre">id_for_label</span></code>·attribute·to
612 output·the·element’s·ID.</p></li>613 output·the·element’s·ID.</p></li>
613 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;textarea&gt;</span></code>·tags·rendered·by·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.Textarea"·title="django.forms.Textarea"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Textarea</span></code></a>·now614 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;textarea&gt;</span></code>·tags·rendered·by·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.Textarea"·title="django.forms.Textarea"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Textarea</span></code></a>·now
Max diff block lines reached; 9826/23558 bytes (41.71%) of diff not shown.
14.7 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/1.8.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8·release·notes"·href="1.8.html"·/>15 ····<link·rel="next"·title="Django·1.8·release·notes"·href="1.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.2·release·notes"·href="1.8.2.html"·/>16 ····<link·rel="prev"·title="Django·1.8.2·release·notes"·href="1.8.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 169, 37 lines modifiedOffset 170, 37 lines modified
169 <li><a·class="reference·internal"·href="#optimizations">Optimizations</a></li>170 <li><a·class="reference·internal"·href="#optimizations">Optimizations</a></li>
170 </ul>171 </ul>
171 </li>172 </li>
172 </ul>173 </ul>
  
173 ··</div>174 ··</div>
174 ··<div>175 ··<div>
175 ····<h4>Previous·topic</h4>176 ····<h4>Argomento·precedente</h4>
176 ····<p·class="topless"><a·href="1.8.2.html"177 ····<p·class="topless"><a·href="1.8.2.html"
177 ··························title="previous·chapter">Django·1.8.2·release·notes</a></p>178 ··························title="capitolo·precedente">Django·1.8.2·release·notes</a></p>
178 ··</div>179 ··</div>
179 ··<div>180 ··<div>
180 ····<h4>Next·topic</h4>181 ····<h4>Argomento·successivo</h4>
181 ····<p·class="topless"><a·href="1.8.html"182 ····<p·class="topless"><a·href="1.8.html"
182 ··························title="next·chapter">Django·1.8·release·notes</a></p>183 ··························title="capitolo·successivo">Django·1.8·release·notes</a></p>
183 ··</div>184 ··</div>
184 <search·id="searchbox"·style="display:·none"·role="search">185 <search·id="searchbox"·style="display:·none"·role="search">
185 ··<h3·id="searchlabel">Quick·search</h3>186 ··<h3·id="searchlabel">Ricerca·veloce</h3>
186 ····<div·class="searchformwrapper">187 ····<div·class="searchformwrapper">
187 ····<form·class="search"·action="../search.html"·method="get">188 ····<form·class="search"·action="../search.html"·method="get">
188 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>189 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
189 ······<input·type="submit"·value="Go"·/>190 ······<input·type="submit"·value="Vai"·/>
190 ····</form>191 ····</form>
191 ····</div>192 ····</div>
192 </search>193 </search>
193 <script>document.getElementById('searchbox').style.display·=·"block"</script>194 <script>document.getElementById('searchbox').style.display·=·"block"</script>
194 ········</div>195 ········</div>
195 ······</div>196 ······</div>
196 ··············<h3>Last·update:</h3>197 ··············<h3>Last·update:</h3>
197 ··············<p·class="topless">Sep·03,·2024</p>198 ··············<p·class="topless">set·03,·2024</p>
198 ··········</div>199 ··········</div>
199 ········200 ········
200 ······201 ······
201 ····</div>202 ····</div>
  
202 ····<div·id="ft">203 ····<div·id="ft">
203 ······<div·class="nav">204 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
9.93 KB
./usr/share/doc/python-django-doc/html/releases/1.8.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.9·release·notes"·href="1.8.9.html"·/>15 ····<link·rel="next"·title="Django·1.8.9·release·notes"·href="1.8.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.11·release·notes"·href="1.8.11.html"·/>16 ····<link·rel="prev"·title="Django·1.8.11·release·notes"·href="1.8.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 17 lines modifiedOffset 82, 17 lines modified
81 <span·id="django-1-8-10-release-notes"></span><h1>Django·1.8.10·release·notes<a·class="headerlink"·href="#django-1-8-10-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-8-10-release-notes"></span><h1>Django·1.8.10·release·notes<a·class="headerlink"·href="#django-1-8-10-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·1,·2016</em></p>83 <p><em>March·1,·2016</em></p>
83 <p>Django·1.8.10·fixes·two·security·issues·and·several·bugs·in·1.8.9.</p>84 <p>Django·1.8.10·fixes·two·security·issues·and·several·bugs·in·1.8.9.</p>
84 <section·id="s-cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth">85 <section·id="s-cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth">
85 <span·id="cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"></span><h2>CVE-2016-2512:·Malicious·redirect·and·possible·XSS·attack·via·user-supplied·redirect·URLs·containing·basic·auth<a·class="headerlink"·href="#cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"></span><h2>CVE-2016-2512:·Malicious·redirect·and·possible·XSS·attack·via·user-supplied·redirect·URLs·containing·basic·auth<a·class="headerlink"·href="#cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases·(e.g.87 <p>Django·relies·on·user·input·in·some·cases·(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
88 to·redirect·the·user·to·an·on·success·URL.·The·security·check·for·these89 to·redirect·the·user·to·an·«on·success»·URL.·The·security·check·for·these
89 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·URLs90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·URLs
90 with·basic·authentication·credentials·safe·when·they·shouldn’t·be.</p>91 with·basic·authentication·credentials·«safe»·when·they·shouldn’t·be.</p>
91 <p>For·example,·a·URL·like·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com\&#64;attacker.com</span></code>·would·be92 <p>For·example,·a·URL·like·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com\&#64;attacker.com</span></code>·would·be
92 considered·safe·if·the·request’s·host·is·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com</span></code>,·but93 considered·safe·if·the·request’s·host·is·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com</span></code>,·but
93 redirecting·to·this·URL·sends·the·user·to·<code·class="docutils·literal·notranslate"><span·class="pre">attacker.com</span></code>.</p>94 redirecting·to·this·URL·sends·the·user·to·<code·class="docutils·literal·notranslate"><span·class="pre">attacker.com</span></code>.</p>
94 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect95 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect
95 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>96 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>
96 </section>97 </section>
97 <section·id="s-cve-2016-2513-user-enumeration-through-timing-difference-on-password-hasher-work-factor-upgrade">98 <section·id="s-cve-2016-2513-user-enumeration-through-timing-difference-on-password-hasher-work-factor-upgrade">
Offset 161, 37 lines modifiedOffset 162, 37 lines modified
161 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>162 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
162 </ul>163 </ul>
163 </li>164 </li>
164 </ul>165 </ul>
  
165 ··</div>166 ··</div>
166 ··<div>167 ··<div>
167 ····<h4>Previous·topic</h4>168 ····<h4>Argomento·precedente</h4>
168 ····<p·class="topless"><a·href="1.8.11.html"169 ····<p·class="topless"><a·href="1.8.11.html"
169 ··························title="previous·chapter">Django·1.8.11·release·notes</a></p>170 ··························title="capitolo·precedente">Django·1.8.11·release·notes</a></p>
170 ··</div>171 ··</div>
171 ··<div>172 ··<div>
172 ····<h4>Next·topic</h4>173 ····<h4>Argomento·successivo</h4>
173 ····<p·class="topless"><a·href="1.8.9.html"174 ····<p·class="topless"><a·href="1.8.9.html"
174 ··························title="next·chapter">Django·1.8.9·release·notes</a></p>175 ··························title="capitolo·successivo">Django·1.8.9·release·notes</a></p>
175 ··</div>176 ··</div>
176 <search·id="searchbox"·style="display:·none"·role="search">177 <search·id="searchbox"·style="display:·none"·role="search">
177 ··<h3·id="searchlabel">Quick·search</h3>178 ··<h3·id="searchlabel">Ricerca·veloce</h3>
178 ····<div·class="searchformwrapper">179 ····<div·class="searchformwrapper">
179 ····<form·class="search"·action="../search.html"·method="get">180 ····<form·class="search"·action="../search.html"·method="get">
180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
181 ······<input·type="submit"·value="Go"·/>182 ······<input·type="submit"·value="Vai"·/>
182 ····</form>183 ····</form>
183 ····</div>184 ····</div>
184 </search>185 </search>
185 <script>document.getElementById('searchbox').style.display·=·"block"</script>186 <script>document.getElementById('searchbox').style.display·=·"block"</script>
186 ········</div>187 ········</div>
187 ······</div>188 ······</div>
188 ··············<h3>Last·update:</h3>189 ··············<h3>Last·update:</h3>
189 ··············<p·class="topless">Sep·03,·2024</p>190 ··············<p·class="topless">set·03,·2024</p>
190 ··········</div>191 ··········</div>
191 ········192 ········
192 ······193 ······
193 ····</div>194 ····</div>
  
194 ····<div·id="ft">195 ····<div·id="ft">
195 ······<div·class="nav">196 ······<div·class="nav">
3.87 KB
html2text {}
Max HTML report size reached
5.44 KB
./usr/share/doc/python-django-doc/html/releases/1.8.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.10·release·notes"·href="1.8.10.html"·/>15 ····<link·rel="next"·title="Django·1.8.10·release·notes"·href="1.8.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.12·release·notes"·href="1.8.12.html"·/>16 ····<link·rel="prev"·title="Django·1.8.12·release·notes"·href="1.8.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 91, 37 lines modifiedOffset 92, 37 lines modified
91 ······92 ······
92 ········93 ········
93 ··········<div·class="yui-b"·id="sidebar">94 ··········<div·class="yui-b"·id="sidebar">
94 ············95 ············
95 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">96 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
96 ········<div·class="sphinxsidebarwrapper">97 ········<div·class="sphinxsidebarwrapper">
97 ··<div>98 ··<div>
98 ····<h4>Previous·topic</h4>99 ····<h4>Argomento·precedente</h4>
99 ····<p·class="topless"><a·href="1.8.12.html"100 ····<p·class="topless"><a·href="1.8.12.html"
100 ··························title="previous·chapter">Django·1.8.12·release·notes</a></p>101 ··························title="capitolo·precedente">Django·1.8.12·release·notes</a></p>
101 ··</div>102 ··</div>
102 ··<div>103 ··<div>
103 ····<h4>Next·topic</h4>104 ····<h4>Argomento·successivo</h4>
104 ····<p·class="topless"><a·href="1.8.10.html"105 ····<p·class="topless"><a·href="1.8.10.html"
105 ··························title="next·chapter">Django·1.8.10·release·notes</a></p>106 ··························title="capitolo·successivo">Django·1.8.10·release·notes</a></p>
106 ··</div>107 ··</div>
107 <search·id="searchbox"·style="display:·none"·role="search">108 <search·id="searchbox"·style="display:·none"·role="search">
108 ··<h3·id="searchlabel">Quick·search</h3>109 ··<h3·id="searchlabel">Ricerca·veloce</h3>
109 ····<div·class="searchformwrapper">110 ····<div·class="searchformwrapper">
110 ····<form·class="search"·action="../search.html"·method="get">111 ····<form·class="search"·action="../search.html"·method="get">
111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
112 ······<input·type="submit"·value="Go"·/>113 ······<input·type="submit"·value="Vai"·/>
113 ····</form>114 ····</form>
114 ····</div>115 ····</div>
115 </search>116 </search>
116 <script>document.getElementById('searchbox').style.display·=·"block"</script>117 <script>document.getElementById('searchbox').style.display·=·"block"</script>
117 ········</div>118 ········</div>
118 ······</div>119 ······</div>
119 ··············<h3>Last·update:</h3>120 ··············<h3>Last·update:</h3>
120 ··············<p·class="topless">Sep·03,·2024</p>121 ··············<p·class="topless">set·03,·2024</p>
121 ··········</div>122 ··········</div>
122 ········123 ········
123 ······124 ······
124 ····</div>125 ····</div>
  
125 ····<div·id="ft">126 ····<div·id="ft">
126 ······<div·class="nav">127 ······<div·class="nav">
1.6 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/1.8.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.11·release·notes"·href="1.8.11.html"·/>15 ····<link·rel="next"·title="Django·1.8.11·release·notes"·href="1.8.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.13·release·notes"·href="1.8.13.html"·/>16 ····<link·rel="prev"·title="Django·1.8.13·release·notes"·href="1.8.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="1.8.13.html"120 ····<p·class="topless"><a·href="1.8.13.html"
120 ··························title="previous·chapter">Django·1.8.13·release·notes</a></p>121 ··························title="capitolo·precedente">Django·1.8.13·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="1.8.11.html"125 ····<p·class="topless"><a·href="1.8.11.html"
125 ··························title="next·chapter">Django·1.8.11·release·notes</a></p>126 ··························title="capitolo·successivo">Django·1.8.11·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.11 KB
html2text {}
Max HTML report size reached
5.76 KB
./usr/share/doc/python-django-doc/html/releases/1.8.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.12·release·notes"·href="1.8.12.html"·/>15 ····<link·rel="next"·title="Django·1.8.12·release·notes"·href="1.8.12.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.14·release·notes"·href="1.8.14.html"·/>16 ····<link·rel="prev"·title="Django·1.8.14·release·notes"·href="1.8.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.8.14.html"117 ····<p·class="topless"><a·href="1.8.14.html"
117 ··························title="previous·chapter">Django·1.8.14·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.8.14·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.8.12.html"122 ····<p·class="topless"><a·href="1.8.12.html"
122 ··························title="next·chapter">Django·1.8.12·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.8.12·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.01 KB
html2text {}
Max HTML report size reached
6.06 KB
./usr/share/doc/python-django-doc/html/releases/1.8.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.13·release·notes"·href="1.8.13.html"·/>15 ····<link·rel="next"·title="Django·1.8.13·release·notes"·href="1.8.13.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.15·release·notes"·href="1.8.15.html"·/>16 ····<link·rel="prev"·title="Django·1.8.15·release·notes"·href="1.8.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 118, 37 lines modifiedOffset 119, 37 lines modified
118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
119 </ul>120 </ul>
120 </li>121 </li>
121 </ul>122 </ul>
  
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="1.8.15.html"126 ····<p·class="topless"><a·href="1.8.15.html"
126 ··························title="previous·chapter">Django·1.8.15·release·notes</a></p>127 ··························title="capitolo·precedente">Django·1.8.15·release·notes</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="1.8.13.html"131 ····<p·class="topless"><a·href="1.8.13.html"
131 ··························title="next·chapter">Django·1.8.13·release·notes</a></p>132 ··························title="capitolo·successivo">Django·1.8.13·release·notes</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../search.html"·method="get">137 ····<form·class="search"·action="../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.31 KB
html2text {}
Max HTML report size reached
6.26 KB
./usr/share/doc/python-django-doc/html/releases/1.8.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.14·release·notes"·href="1.8.14.html"·/>15 ····<link·rel="next"·title="Django·1.8.14·release·notes"·href="1.8.14.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.16·release·notes"·href="1.8.16.html"·/>16 ····<link·rel="prev"·title="Django·1.8.16·release·notes"·href="1.8.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#csrf-protection-bypass-on-a-site-with-google-analytics">CSRF·protection·bypass·on·a·site·with·Google·Analytics</a></li>110 <li><a·class="reference·internal"·href="#csrf-protection-bypass-on-a-site-with-google-analytics">CSRF·protection·bypass·on·a·site·with·Google·Analytics</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.8.16.html"117 ····<p·class="topless"><a·href="1.8.16.html"
117 ··························title="previous·chapter">Django·1.8.16·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.8.16·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.8.14.html"122 ····<p·class="topless"><a·href="1.8.14.html"
122 ··························title="next·chapter">Django·1.8.14·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.8.14·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.42 KB
html2text {}
Max HTML report size reached
6.41 KB
./usr/share/doc/python-django-doc/html/releases/1.8.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.15·release·notes"·href="1.8.15.html"·/>15 ····<link·rel="next"·title="Django·1.8.15·release·notes"·href="1.8.15.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.17·release·notes"·href="1.8.17.html"·/>16 ····<link·rel="prev"·title="Django·1.8.17·release·notes"·href="1.8.17.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#dns-rebinding-vulnerability-when-debug-true">DNS·rebinding·vulnerability·when·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG=True</span></code></a></li>131 <li><a·class="reference·internal"·href="#dns-rebinding-vulnerability-when-debug-true">DNS·rebinding·vulnerability·when·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG=True</span></code></a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="1.8.17.html"138 ····<p·class="topless"><a·href="1.8.17.html"
138 ··························title="previous·chapter">Django·1.8.17·release·notes</a></p>139 ··························title="capitolo·precedente">Django·1.8.17·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="1.8.15.html"143 ····<p·class="topless"><a·href="1.8.15.html"
143 ··························title="next·chapter">Django·1.8.15·release·notes</a></p>144 ··························title="capitolo·successivo">Django·1.8.15·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
2.51 KB
html2text {}
Max HTML report size reached
6.88 KB
./usr/share/doc/python-django-doc/html/releases/1.8.17.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.17·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.17·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.16·release·notes"·href="1.8.16.html"·/>15 ····<link·rel="next"·title="Django·1.8.16·release·notes"·href="1.8.16.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.18·release·notes"·href="1.8.18.html"·/>16 ····<link·rel="prev"·title="Django·1.8.18·release·notes"·href="1.8.18.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 16 lines modifiedOffset 81, 16 lines modified
80 ··<section·id="s-django-1-8-17-release-notes">81 ··<section·id="s-django-1-8-17-release-notes">
81 <span·id="django-1-8-17-release-notes"></span><h1>Django·1.8.17·release·notes<a·class="headerlink"·href="#django-1-8-17-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-8-17-release-notes"></span><h1>Django·1.8.17·release·notes<a·class="headerlink"·href="#django-1-8-17-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·1,·2016</em></p>83 <p><em>December·1,·2016</em></p>
83 <p>Django·1.8.17·fixes·a·regression·in·1.8.16.</p>84 <p>Django·1.8.17·fixes·a·regression·in·1.8.16.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·ORA-00922:88 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·«ORA-00922:
88 missing·or·invalid·option·error·when·the·password·starts·with·a·number·or89 missing·or·invalid·option»·error·when·the·password·starts·with·a·number·or
89 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>90 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>
90 </ul>91 </ul>
91 </section>92 </section>
92 </section>93 </section>
  
  
93 ··········</div>94 ··········</div>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.8.18.html"116 ····<p·class="topless"><a·href="1.8.18.html"
116 ··························title="previous·chapter">Django·1.8.18·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.8.18·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.8.16.html"121 ····<p·class="topless"><a·href="1.8.16.html"
121 ··························title="next·chapter">Django·1.8.16·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.8.16·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
10.2 KB
./usr/share/doc/python-django-doc/html/releases/1.8.18.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.18·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.18·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.17·release·notes"·href="1.8.17.html"·/>15 ····<link·rel="next"·title="Django·1.8.17·release·notes"·href="1.8.17.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.19·release·notes"·href="1.8.19.html"·/>16 ····<link·rel="prev"·title="Django·1.8.19·release·notes"·href="1.8.19.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 17 lines modifiedOffset 82, 17 lines modified
81 <span·id="django-1-8-18-release-notes"></span><h1>Django·1.8.18·release·notes<a·class="headerlink"·href="#django-1-8-18-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-8-18-release-notes"></span><h1>Django·1.8.18·release·notes<a·class="headerlink"·href="#django-1-8-18-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·4,·2017</em></p>83 <p><em>April·4,·2017</em></p>
83 <p>Django·1.8.18·fixes·two·security·issues·in·1.8.17.</p>84 <p>Django·1.8.18·fixes·two·security·issues·in·1.8.17.</p>
84 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">85 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">
85 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases··(e.g.87 <p>Django·relies·on·user·input·in·some·cases··(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
88 to·redirect·the·user·to·an·on·success·URL.·The·security·check·for·these89 to·redirect·the·user·to·an·«on·success»·URL.·The·security·check·for·these
89 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric
90 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·safe·when·they·shouldn’t·be.</p>91 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·«safe»·when·they·shouldn’t·be.</p>
91 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect92 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect
92 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>93 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>
93 </section>94 </section>
94 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">95 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">
95 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>96 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>
96 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the97 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the
97 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The98 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code></a></li>121 <li><a·class="reference·internal"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code></a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.8.19.html"128 ····<p·class="topless"><a·href="1.8.19.html"
128 ··························title="previous·chapter">Django·1.8.19·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.8.19·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.8.17.html"133 ····<p·class="topless"><a·href="1.8.17.html"
133 ··························title="next·chapter">Django·1.8.17·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.8.17·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
3.66 KB
html2text {}
Max HTML report size reached
6.73 KB
./usr/share/doc/python-django-doc/html/releases/1.8.19.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.19·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.19·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.18·release·notes"·href="1.8.18.html"·/>15 ····<link·rel="next"·title="Django·1.8.18·release·notes"·href="1.8.18.html"·/>
15 ····<link·rel="prev"·title="Django·1.9·release·notes"·href="1.9.html"·/>16 ····<link·rel="prev"·title="Django·1.9·release·notes"·href="1.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#cve-2018-7537-denial-of-service-possibility-in-truncatechars-html-and-truncatewords-html-template-filters">CVE-2018-7537:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">truncatechars_html</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code>·template·filters</a></li>121 <li><a·class="reference·internal"·href="#cve-2018-7537-denial-of-service-possibility-in-truncatechars-html-and-truncatewords-html-template-filters">CVE-2018-7537:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">truncatechars_html</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code>·template·filters</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.9.html"128 ····<p·class="topless"><a·href="1.9.html"
128 ··························title="previous·chapter">Django·1.9·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.9·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.8.18.html"133 ····<p·class="topless"><a·href="1.8.18.html"
133 ··························title="next·chapter">Django·1.8.18·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.8.18·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.65 KB
html2text {}
Max HTML report size reached
8.35 KB
./usr/share/doc/python-django-doc/html/releases/1.8.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.1·release·notes"·href="1.8.1.html"·/>15 ····<link·rel="next"·title="Django·1.8.1·release·notes"·href="1.8.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.3·release·notes"·href="1.8.3.html"·/>16 ····<link·rel="prev"·title="Django·1.8.3·release·notes"·href="1.8.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 118, 15 lines modifiedOffset 119, 15 lines modified
118 <li><p>Fixed·a·MySQL·crash·when·a·migration·removes·a·combined·index·(119 <li><p>Fixed·a·MySQL·crash·when·a·migration·removes·a·combined·index·(
119 <code·class="docutils·literal·notranslate"><span·class="pre">unique_together</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">index_together</span></code>)·containing·a·foreign·key120 <code·class="docutils·literal·notranslate"><span·class="pre">unique_together</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">index_together</span></code>)·containing·a·foreign·key
120 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24757">#24757</a>).</p></li>121 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24757">#24757</a>).</p></li>
121 <li><p>Fixed·session·cookie·deletion·when·using·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_DOMAIN"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span></code></a>122 <li><p>Fixed·session·cookie·deletion·when·using·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_DOMAIN"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_DOMAIN</span></code></a>
122 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24799">#24799</a>).</p></li>123 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24799">#24799</a>).</p></li>
123 <li><p>On·PostgreSQL,·when·no·access·is·granted·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">postgres</span></code>·database,124 <li><p>On·PostgreSQL,·when·no·access·is·granted·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">postgres</span></code>·database,
124 Django·now·falls·back·to·the·default·database·when·it·normally·requires·a125 Django·now·falls·back·to·the·default·database·when·it·normally·requires·a
125 no·database·connection·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24791">#24791</a>).</p></li>126 «no·database»·connection·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24791">#24791</a>).</p></li>
126 <li><p>Fixed·display·of·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·widget·when·it’s·used127 <li><p>Fixed·display·of·<code·class="docutils·literal·notranslate"><span·class="pre">contrib.admin</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·widget·when·it’s·used
127 in·a·row·with·other·fields·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24784">#24784</a>).</p></li>128 in·a·row·with·other·fields·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24784">#24784</a>).</p></li>
128 </ul>129 </ul>
129 </section>130 </section>
130 </section>131 </section>
  
  
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>148 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="1.8.3.html"155 ····<p·class="topless"><a·href="1.8.3.html"
155 ··························title="previous·chapter">Django·1.8.3·release·notes</a></p>156 ··························title="capitolo·precedente">Django·1.8.3·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="1.8.1.html"160 ····<p·class="topless"><a·href="1.8.1.html"
160 ··························title="next·chapter">Django·1.8.1·release·notes</a></p>161 ··························title="capitolo·successivo">Django·1.8.1·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
2.92 KB
html2text {}
Max HTML report size reached
8.79 KB
./usr/share/doc/python-django-doc/html/releases/1.8.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.2·release·notes"·href="1.8.2.html"·/>15 ····<link·rel="next"·title="Django·1.8.2·release·notes"·href="1.8.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.4·release·notes"·href="1.8.4.html"·/>16 ····<link·rel="prev"·title="Django·1.8.4·release·notes"·href="1.8.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 <section·id="s-denial-of-service-possibility-by-filling-session-store">89 <section·id="s-denial-of-service-possibility-by-filling-session-store">
89 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>90 <span·id="denial-of-service-possibility-by-filling-session-store"></span><h2>Denial-of-service·possibility·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
90 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record91 <p>In·previous·versions·of·Django,·the·session·backends·created·a·new·empty·record
91 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a92 in·the·session·storage·anytime·<code·class="docutils·literal·notranslate"><span·class="pre">request.session</span></code>·was·accessed·and·there·was·a
92 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session93 session·key·provided·in·the·request·cookies·that·didn’t·already·have·a·session
93 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records94 record.·This·could·allow·an·attacker·to·easily·create·many·new·session·records
94 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially95 simply·by·sending·repeated·requests·with·unknown·session·keys,·potentially
95 filling·up·the·session·store·or·causing·other·users·session·records·to·be96 filling·up·the·session·store·or·causing·other·users·session·records·to·be
96 evicted.</p>97 evicted.</p>
97 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session98 <p>The·built-in·session·backends·now·create·a·session·record·only·if·the·session
98 is·actually·modified;·empty·session·records·are·not·created.·Thus·this99 is·actually·modified;·empty·session·records·are·not·created.·Thus·this
99 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a100 potential·DoS·is·now·only·possible·if·the·site·chooses·to·expose·a
100 session-modifying·view·to·anonymous·users.</p>101 session-modifying·view·to·anonymous·users.</p>
101 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the102 <p>As·each·built-in·session·backend·was·fixed·separately·(rather·than·a·fix·in·the
102 core·sessions·framework),·maintainers·of·third-party·session·backends·should103 core·sessions·framework),·maintainers·of·third-party·session·backends·should
Offset 217, 37 lines modifiedOffset 218, 37 lines modified
217 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>218 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
218 </ul>219 </ul>
219 </li>220 </li>
220 </ul>221 </ul>
  
221 ··</div>222 ··</div>
222 ··<div>223 ··<div>
223 ····<h4>Previous·topic</h4>224 ····<h4>Argomento·precedente</h4>
224 ····<p·class="topless"><a·href="1.8.4.html"225 ····<p·class="topless"><a·href="1.8.4.html"
225 ··························title="previous·chapter">Django·1.8.4·release·notes</a></p>226 ··························title="capitolo·precedente">Django·1.8.4·release·notes</a></p>
226 ··</div>227 ··</div>
227 ··<div>228 ··<div>
228 ····<h4>Next·topic</h4>229 ····<h4>Argomento·successivo</h4>
229 ····<p·class="topless"><a·href="1.8.2.html"230 ····<p·class="topless"><a·href="1.8.2.html"
230 ··························title="next·chapter">Django·1.8.2·release·notes</a></p>231 ··························title="capitolo·successivo">Django·1.8.2·release·notes</a></p>
231 ··</div>232 ··</div>
232 <search·id="searchbox"·style="display:·none"·role="search">233 <search·id="searchbox"·style="display:·none"·role="search">
233 ··<h3·id="searchlabel">Quick·search</h3>234 ··<h3·id="searchlabel">Ricerca·veloce</h3>
234 ····<div·class="searchformwrapper">235 ····<div·class="searchformwrapper">
235 ····<form·class="search"·action="../search.html"·method="get">236 ····<form·class="search"·action="../search.html"·method="get">
236 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
237 ······<input·type="submit"·value="Go"·/>238 ······<input·type="submit"·value="Vai"·/>
238 ····</form>239 ····</form>
239 ····</div>240 ····</div>
240 </search>241 </search>
241 <script>document.getElementById('searchbox').style.display·=·"block"</script>242 <script>document.getElementById('searchbox').style.display·=·"block"</script>
242 ········</div>243 ········</div>
243 ······</div>244 ······</div>
244 ··············<h3>Last·update:</h3>245 ··············<h3>Last·update:</h3>
245 ··············<p·class="topless">Sep·03,·2024</p>246 ··············<p·class="topless">set·03,·2024</p>
246 ··········</div>247 ··········</div>
247 ········248 ········
248 ······249 ······
249 ····</div>250 ····</div>
  
250 ····<div·id="ft">251 ····<div·id="ft">
251 ······<div·class="nav">252 ······<div·class="nav">
3.66 KB
html2text {}
Max HTML report size reached
9.05 KB
./usr/share/doc/python-django-doc/html/releases/1.8.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.3·release·notes"·href="1.8.3.html"·/>15 ····<link·rel="next"·title="Django·1.8.3·release·notes"·href="1.8.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.5·release·notes"·href="1.8.5.html"·/>16 ····<link·rel="prev"·title="Django·1.8.5·release·notes"·href="1.8.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 84, 15 lines modifiedOffset 85, 15 lines modified
84 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">85 <section·id="s-denial-of-service-possibility-in-logout-view-by-filling-session-store">
85 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>86 <span·id="denial-of-service-possibility-in-logout-view-by-filling-session-store"></span><h2>Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">logout()</span></code>·view·by·filling·session·store<a·class="headerlink"·href="#denial-of-service-possibility-in-logout-view-by-filling-session-store"·title="Link·to·this·heading">¶</a></h2>
86 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the87 <p>Previously,·a·session·could·be·created·when·anonymously·accessing·the
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.logout()</span></code>·view·(provided·it·wasn’t·decorated
88 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the89 with·<a·class="reference·internal"·href="../topics/auth/default.html#django.contrib.auth.decorators.login_required"·title="django.contrib.auth.decorators.login_required"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">login_required()</span></code></a>·as·done·in·the
89 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records90 admin).·This·could·allow·an·attacker·to·easily·create·many·new·session·records
90 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or91 by·sending·repeated·requests,·potentially·filling·up·the·session·store·or
91 causing·other·users·session·records·to·be·evicted.</p>92 causing·other·users·session·records·to·be·evicted.</p>
92 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been93 <p>The·<a·class="reference·internal"·href="../ref/middleware.html#django.contrib.sessions.middleware.SessionMiddleware"·title="django.contrib.sessions.middleware.SessionMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SessionMiddleware</span></code></a>·has·been
93 modified·to·no·longer·create·empty·session·records,·including·when94 modified·to·no·longer·create·empty·session·records,·including·when
94 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>95 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_SAVE_EVERY_REQUEST"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_SAVE_EVERY_REQUEST</span></code></a>·is·active.</p>
95 </section>96 </section>
96 <section·id="s-bugfixes">97 <section·id="s-bugfixes">
97 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>98 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
98 <ul·class="simple">99 <ul·class="simple">
Offset 135, 37 lines modifiedOffset 136, 37 lines modified
135 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>136 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
136 </ul>137 </ul>
137 </li>138 </li>
138 </ul>139 </ul>
  
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="1.8.5.html"143 ····<p·class="topless"><a·href="1.8.5.html"
143 ··························title="previous·chapter">Django·1.8.5·release·notes</a></p>144 ··························title="capitolo·precedente">Django·1.8.5·release·notes</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="1.8.3.html"148 ····<p·class="topless"><a·href="1.8.3.html"
148 ··························title="next·chapter">Django·1.8.3·release·notes</a></p>149 ··························title="capitolo·successivo">Django·1.8.3·release·notes</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../search.html"·method="get">154 ····<form·class="search"·action="../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
3.29 KB
html2text {}
Max HTML report size reached
8.28 KB
./usr/share/doc/python-django-doc/html/releases/1.8.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.4·release·notes"·href="1.8.4.html"·/>15 ····<link·rel="next"·title="Django·1.8.4·release·notes"·href="1.8.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.6·release·notes"·href="1.8.6.html"·/>16 ····<link·rel="prev"·title="Django·1.8.6·release·notes"·href="1.8.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 15 lines modifiedOffset 110, 15 lines modified
109 <li><p>Readded·inline·foreign·keys·to·form·instances·when·validating·model·formsets110 <li><p>Readded·inline·foreign·keys·to·form·instances·when·validating·model·formsets
110 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25431">#25431</a>).</p></li>111 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25431">#25431</a>).</p></li>
111 <li><p>Allowed·using·ORM·write·methods·after·disabling·autocommit·with112 <li><p>Allowed·using·ORM·write·methods·after·disabling·autocommit·with
112 <a·class="reference·internal"·href="../topics/db/transactions.html#django.db.transaction.set_autocommit"·title="django.db.transaction.set_autocommit"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">set_autocommit(False)</span></code></a>113 <a·class="reference·internal"·href="../topics/db/transactions.html#django.db.transaction.set_autocommit"·title="django.db.transaction.set_autocommit"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">set_autocommit(False)</span></code></a>
113 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24921">#24921</a>).</p></li>114 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24921">#24921</a>).</p></li>
114 <li><p>Fixed·the·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">test</span>·<span·class="pre">--keepdb</span></code>·option·on·Oracle·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25421">#25421</a>).</p></li>115 <li><p>Fixed·the·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">test</span>·<span·class="pre">--keepdb</span></code>·option·on·Oracle·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25421">#25421</a>).</p></li>
115 <li><p>Fixed·incorrect·queries·with·multiple·many-to-many·fields·on·a·model·with·the116 <li><p>Fixed·incorrect·queries·with·multiple·many-to-many·fields·on·a·model·with·the
116 same·to·model·and·with·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·set·to·+·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24505">#24505</a>,117 same·to·model·and·with·<code·class="docutils·literal·notranslate"><span·class="pre">related_name</span></code>·set·to·+·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24505">#24505</a>,
117 <a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25486">#25486</a>).</p></li>118 <a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25486">#25486</a>).</p></li>
118 <li><p>Fixed·pickling·a·<code·class="docutils·literal·notranslate"><span·class="pre">SimpleLazyObject</span></code>·wrapping·a·model·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25389">#25389</a>).</p></li>119 <li><p>Fixed·pickling·a·<code·class="docutils·literal·notranslate"><span·class="pre">SimpleLazyObject</span></code>·wrapping·a·model·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25389">#25389</a>).</p></li>
119 </ul>120 </ul>
120 </section>121 </section>
121 </section>122 </section>
  
  
Offset 137, 37 lines modifiedOffset 138, 37 lines modified
137 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>138 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
138 </ul>139 </ul>
139 </li>140 </li>
140 </ul>141 </ul>
  
141 ··</div>142 ··</div>
142 ··<div>143 ··<div>
143 ····<h4>Previous·topic</h4>144 ····<h4>Argomento·precedente</h4>
144 ····<p·class="topless"><a·href="1.8.6.html"145 ····<p·class="topless"><a·href="1.8.6.html"
145 ··························title="previous·chapter">Django·1.8.6·release·notes</a></p>146 ··························title="capitolo·precedente">Django·1.8.6·release·notes</a></p>
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Next·topic</h4>149 ····<h4>Argomento·successivo</h4>
149 ····<p·class="topless"><a·href="1.8.4.html"150 ····<p·class="topless"><a·href="1.8.4.html"
150 ··························title="next·chapter">Django·1.8.4·release·notes</a></p>151 ··························title="capitolo·successivo">Django·1.8.4·release·notes</a></p>
151 ··</div>152 ··</div>
152 <search·id="searchbox"·style="display:·none"·role="search">153 <search·id="searchbox"·style="display:·none"·role="search">
153 ··<h3·id="searchlabel">Quick·search</h3>154 ··<h3·id="searchlabel">Ricerca·veloce</h3>
154 ····<div·class="searchformwrapper">155 ····<div·class="searchformwrapper">
155 ····<form·class="search"·action="../search.html"·method="get">156 ····<form·class="search"·action="../search.html"·method="get">
156 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
157 ······<input·type="submit"·value="Go"·/>158 ······<input·type="submit"·value="Vai"·/>
158 ····</form>159 ····</form>
159 ····</div>160 ····</div>
160 </search>161 </search>
161 <script>document.getElementById('searchbox').style.display·=·"block"</script>162 <script>document.getElementById('searchbox').style.display·=·"block"</script>
162 ········</div>163 ········</div>
163 ······</div>164 ······</div>
164 ··············<h3>Last·update:</h3>165 ··············<h3>Last·update:</h3>
165 ··············<p·class="topless">Sep·03,·2024</p>166 ··············<p·class="topless">set·03,·2024</p>
166 ··········</div>167 ··········</div>
167 ········168 ········
168 ······169 ······
169 ····</div>170 ····</div>
  
170 ····<div·id="ft">171 ····<div·id="ft">
171 ······<div·class="nav">172 ······<div·class="nav">
2.63 KB
html2text {}
Max HTML report size reached
8.46 KB
./usr/share/doc/python-django-doc/html/releases/1.8.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.5·release·notes"·href="1.8.5.html"·/>15 ····<link·rel="next"·title="Django·1.8.5·release·notes"·href="1.8.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.7·release·notes"·href="1.8.7.html"·/>16 ····<link·rel="prev"·title="Django·1.8.7·release·notes"·href="1.8.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 83, 15 lines modifiedOffset 84, 15 lines modified
83 <p>Django·1.8.6·adds·official·support·for·Python·3.5·and·fixes·several·bugs·in84 <p>Django·1.8.6·adds·official·support·for·Python·3.5·and·fixes·several·bugs·in
84 1.8.5.</p>85 1.8.5.</p>
85 <section·id="s-bugfixes">86 <section·id="s-bugfixes">
86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>87 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
87 <ul·class="simple">88 <ul·class="simple">
88 <li><p>Fixed·a·regression·causing·<code·class="docutils·literal·notranslate"><span·class="pre">ModelChoiceField</span></code>·to·ignore89 <li><p>Fixed·a·regression·causing·<code·class="docutils·literal·notranslate"><span·class="pre">ModelChoiceField</span></code>·to·ignore
89 <code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code>·on·its·queryset·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25496">#25496</a>).</p></li>90 <code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code>·on·its·queryset·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25496">#25496</a>).</p></li>
90 <li><p>Allowed·mode=memory·in·SQLite·test·database·name·if·supported91 <li><p>Allowed·«mode=memory»·in·SQLite·test·database·name·if·supported
91 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/12118">#12118</a>).</p></li>92 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/12118">#12118</a>).</p></li>
92 <li><p>Fixed·system·check·crash·on·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·to·abstract·model93 <li><p>Fixed·system·check·crash·on·<code·class="docutils·literal·notranslate"><span·class="pre">ForeignKey</span></code>·to·abstract·model
93 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25503">#25503</a>).</p></li>94 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25503">#25503</a>).</p></li>
94 <li><p>Fixed·incorrect·queries·when·you·have·multiple·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>s·on95 <li><p>Fixed·incorrect·queries·when·you·have·multiple·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>s·on
95 different·models·that·have·the·same·field·name,·point·to·the·same·model,·and96 different·models·that·have·the·same·field·name,·point·to·the·same·model,·and
96 have·their·reverse·relations·disabled·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25545">#25545</a>).</p></li>97 have·their·reverse·relations·disabled·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25545">#25545</a>).</p></li>
97 <li><p>Allowed·filtering·over·a·<code·class="docutils·literal·notranslate"><span·class="pre">RawSQL</span></code>·annotation·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25506">#25506</a>).</p></li>98 <li><p>Allowed·filtering·over·a·<code·class="docutils·literal·notranslate"><span·class="pre">RawSQL</span></code>·annotation·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25506">#25506</a>).</p></li>
Offset 135, 37 lines modifiedOffset 136, 37 lines modified
135 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>136 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
136 </ul>137 </ul>
137 </li>138 </li>
138 </ul>139 </ul>
  
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Previous·topic</h4>142 ····<h4>Argomento·precedente</h4>
142 ····<p·class="topless"><a·href="1.8.7.html"143 ····<p·class="topless"><a·href="1.8.7.html"
143 ··························title="previous·chapter">Django·1.8.7·release·notes</a></p>144 ··························title="capitolo·precedente">Django·1.8.7·release·notes</a></p>
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Next·topic</h4>147 ····<h4>Argomento·successivo</h4>
147 ····<p·class="topless"><a·href="1.8.5.html"148 ····<p·class="topless"><a·href="1.8.5.html"
148 ··························title="next·chapter">Django·1.8.5·release·notes</a></p>149 ··························title="capitolo·successivo">Django·1.8.5·release·notes</a></p>
149 ··</div>150 ··</div>
150 <search·id="searchbox"·style="display:·none"·role="search">151 <search·id="searchbox"·style="display:·none"·role="search">
151 ··<h3·id="searchlabel">Quick·search</h3>152 ··<h3·id="searchlabel">Ricerca·veloce</h3>
152 ····<div·class="searchformwrapper">153 ····<div·class="searchformwrapper">
153 ····<form·class="search"·action="../search.html"·method="get">154 ····<form·class="search"·action="../search.html"·method="get">
154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
155 ······<input·type="submit"·value="Go"·/>156 ······<input·type="submit"·value="Vai"·/>
156 ····</form>157 ····</form>
157 ····</div>158 ····</div>
158 </search>159 </search>
159 <script>document.getElementById('searchbox').style.display·=·"block"</script>160 <script>document.getElementById('searchbox').style.display·=·"block"</script>
160 ········</div>161 ········</div>
161 ······</div>162 ······</div>
162 ··············<h3>Last·update:</h3>163 ··············<h3>Last·update:</h3>
163 ··············<p·class="topless">Sep·03,·2024</p>164 ··············<p·class="topless">set·03,·2024</p>
164 ··········</div>165 ··········</div>
165 ········166 ········
166 ······167 ······
167 ····</div>168 ····</div>
  
168 ····<div·id="ft">169 ····<div·id="ft">
169 ······<div·class="nav">170 ······<div·class="nav">
2.96 KB
html2text {}
Max HTML report size reached
5.99 KB
./usr/share/doc/python-django-doc/html/releases/1.8.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.6·release·notes"·href="1.8.6.html"·/>15 ····<link·rel="next"·title="Django·1.8.6·release·notes"·href="1.8.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.8·release·notes"·href="1.8.8.html"·/>16 ····<link·rel="prev"·title="Django·1.8.8·release·notes"·href="1.8.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>148 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="1.8.8.html"155 ····<p·class="topless"><a·href="1.8.8.html"
155 ··························title="previous·chapter">Django·1.8.8·release·notes</a></p>156 ··························title="capitolo·precedente">Django·1.8.8·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="1.8.6.html"160 ····<p·class="topless"><a·href="1.8.6.html"
160 ··························title="next·chapter">Django·1.8.6·release·notes</a></p>161 ··························title="capitolo·successivo">Django·1.8.6·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
2.25 KB
html2text {}
Max HTML report size reached
5.86 KB
./usr/share/doc/python-django-doc/html/releases/1.8.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.7·release·notes"·href="1.8.7.html"·/>15 ····<link·rel="next"·title="Django·1.8.7·release·notes"·href="1.8.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.9·release·notes"·href="1.8.9.html"·/>16 ····<link·rel="prev"·title="Django·1.8.9·release·notes"·href="1.8.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 142, 37 lines modifiedOffset 143, 37 lines modified
142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
143 </ul>144 </ul>
144 </li>145 </li>
145 </ul>146 </ul>
  
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Previous·topic</h4>149 ····<h4>Argomento·precedente</h4>
149 ····<p·class="topless"><a·href="1.8.9.html"150 ····<p·class="topless"><a·href="1.8.9.html"
150 ··························title="previous·chapter">Django·1.8.9·release·notes</a></p>151 ··························title="capitolo·precedente">Django·1.8.9·release·notes</a></p>
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Next·topic</h4>154 ····<h4>Argomento·successivo</h4>
154 ····<p·class="topless"><a·href="1.8.7.html"155 ····<p·class="topless"><a·href="1.8.7.html"
155 ··························title="next·chapter">Django·1.8.7·release·notes</a></p>156 ··························title="capitolo·successivo">Django·1.8.7·release·notes</a></p>
156 ··</div>157 ··</div>
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../search.html"·method="get">161 ····<form·class="search"·action="../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
2.11 KB
html2text {}
Max HTML report size reached
7.68 KB
./usr/share/doc/python-django-doc/html/releases/1.8.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.8·release·notes"·href="1.8.8.html"·/>15 ····<link·rel="next"·title="Django·1.8.8·release·notes"·href="1.8.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.10·release·notes"·href="1.8.10.html"·/>16 ····<link·rel="prev"·title="Django·1.8.10·release·notes"·href="1.8.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-django-1-8-9-release-notes">81 ··<section·id="s-django-1-8-9-release-notes">
81 <span·id="django-1-8-9-release-notes"></span><h1>Django·1.8.9·release·notes<a·class="headerlink"·href="#django-1-8-9-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-8-9-release-notes"></span><h1>Django·1.8.9·release·notes<a·class="headerlink"·href="#django-1-8-9-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2016</em></p>83 <p><em>February·1,·2016</em></p>
83 <p>Django·1.8.9·fixes·several·bugs·in·1.8.8.</p>84 <p>Django·1.8.9·fixes·several·bugs·in·1.8.8.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Fixed·a·regression·that·caused·the·user-tools·items·to·display·on·the88 <li><p>Fixed·a·regression·that·caused·the·«user-tools»·items·to·display·on·the
88 admin’s·logout·page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26035">#26035</a>).</p></li>89 admin’s·logout·page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26035">#26035</a>).</p></li>
89 <li><p>Fixed·a·crash·in·the·translations·system·when·the·current·language·has·no90 <li><p>Fixed·a·crash·in·the·translations·system·when·the·current·language·has·no
90 translations·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26046">#26046</a>).</p></li>91 translations·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26046">#26046</a>).</p></li>
91 <li><p>Fixed·a·regression·that·caused·the·incorrect·day·to·be·selected·when·opening92 <li><p>Fixed·a·regression·that·caused·the·incorrect·day·to·be·selected·when·opening
92 the·admin·calendar·widget·for·timezones·from·GMT+0100·to·GMT+120093 the·admin·calendar·widget·for·timezones·from·GMT+0100·to·GMT+1200
93 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24980">#24980</a>).</p></li>94 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24980">#24980</a>).</p></li>
94 <li><p>Fixed·a·regression·in·1.8.8·causing·incorrect·index·handling·in·migrations·on95 <li><p>Fixed·a·regression·in·1.8.8·causing·incorrect·index·handling·in·migrations·on
Offset 126, 37 lines modifiedOffset 127, 37 lines modified
126 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
127 </ul>128 </ul>
128 </li>129 </li>
129 </ul>130 </ul>
  
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Previous·topic</h4>133 ····<h4>Argomento·precedente</h4>
133 ····<p·class="topless"><a·href="1.8.10.html"134 ····<p·class="topless"><a·href="1.8.10.html"
134 ··························title="previous·chapter">Django·1.8.10·release·notes</a></p>135 ··························title="capitolo·precedente">Django·1.8.10·release·notes</a></p>
135 ··</div>136 ··</div>
136 ··<div>137 ··<div>
137 ····<h4>Next·topic</h4>138 ····<h4>Argomento·successivo</h4>
138 ····<p·class="topless"><a·href="1.8.8.html"139 ····<p·class="topless"><a·href="1.8.8.html"
139 ··························title="next·chapter">Django·1.8.8·release·notes</a></p>140 ··························title="capitolo·successivo">Django·1.8.8·release·notes</a></p>
140 ··</div>141 ··</div>
141 <search·id="searchbox"·style="display:·none"·role="search">142 <search·id="searchbox"·style="display:·none"·role="search">
142 ··<h3·id="searchlabel">Quick·search</h3>143 ··<h3·id="searchlabel">Ricerca·veloce</h3>
143 ····<div·class="searchformwrapper">144 ····<div·class="searchformwrapper">
144 ····<form·class="search"·action="../search.html"·method="get">145 ····<form·class="search"·action="../search.html"·method="get">
145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
146 ······<input·type="submit"·value="Go"·/>147 ······<input·type="submit"·value="Vai"·/>
147 ····</form>148 ····</form>
148 ····</div>149 ····</div>
149 </search>150 </search>
150 <script>document.getElementById('searchbox').style.display·=·"block"</script>151 <script>document.getElementById('searchbox').style.display·=·"block"</script>
151 ········</div>152 ········</div>
152 ······</div>153 ······</div>
153 ··············<h3>Last·update:</h3>154 ··············<h3>Last·update:</h3>
154 ··············<p·class="topless">Sep·03,·2024</p>155 ··············<p·class="topless">set·03,·2024</p>
155 ··········</div>156 ··········</div>
156 ········157 ········
157 ······158 ······
158 ····</div>159 ····</div>
  
159 ····<div·id="ft">160 ····<div·id="ft">
160 ······<div·class="nav">161 ······<div·class="nav">
2.6 KB
html2text {}
Max HTML report size reached
39.0 KB
./usr/share/doc/python-django-doc/html/releases/1.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.7.11·release·notes"·href="1.7.11.html"·/>15 ····<link·rel="next"·title="Django·1.7.11·release·notes"·href="1.7.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.8.1·release·notes"·href="1.8.1.html"·/>16 ····<link·rel="prev"·title="Django·1.8.1·release·notes"·href="1.8.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 <section·id="s-what-s-new-in-django-1-8">104 <section·id="s-what-s-new-in-django-1-8">
104 <span·id="s-whats-new-1-8"></span><span·id="what-s-new-in-django-1-8"></span><span·id="whats-new-1-8"></span><h2>What’s·new·in·Django·1.8<a·class="headerlink"·href="#what-s-new-in-django-1-8"·title="Link·to·this·heading">¶</a></h2>105 <span·id="s-whats-new-1-8"></span><span·id="what-s-new-in-django-1-8"></span><span·id="whats-new-1-8"></span><h2>What’s·new·in·Django·1.8<a·class="headerlink"·href="#what-s-new-in-django-1-8"·title="Link·to·this·heading">¶</a></h2>
105 <section·id="s-model-meta-api">106 <section·id="s-model-meta-api">
106 <span·id="model-meta-api"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Model._meta</span></code>·API<a·class="headerlink"·href="#model-meta-api"·title="Link·to·this·heading">¶</a></h3>107 <span·id="model-meta-api"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">Model._meta</span></code>·API<a·class="headerlink"·href="#model-meta-api"·title="Link·to·this·heading">¶</a></h3>
107 <p>Django·now·has·a·formalized·API·for·<a·class="reference·internal"·href="../ref/models/meta.html"><span·class="doc">Model._meta</span></a>,108 <p>Django·now·has·a·formalized·API·for·<a·class="reference·internal"·href="../ref/models/meta.html"><span·class="doc">Model._meta</span></a>,
108 providing·an·officially·supported·way·to·<a·class="reference·internal"·href="../ref/models/meta.html#model-meta-field-api"><span·class="std·std-ref">retrieve·fields</span></a>·and·filter·fields·based·on·their·<a·class="reference·internal"·href="../ref/models/fields.html#model-field-attributes"><span·class="std·std-ref">attributes</span></a>.</p>109 providing·an·officially·supported·way·to·<a·class="reference·internal"·href="../ref/models/meta.html#model-meta-field-api"><span·class="std·std-ref">retrieve·fields</span></a>·and·filter·fields·based·on·their·<a·class="reference·internal"·href="../ref/models/fields.html#model-field-attributes"><span·class="std·std-ref">attributes</span></a>.</p>
109 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta</span></code>·object·has·been·part·of·Django·since·the·days·of·pre-0.96110 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta</span></code>·object·has·been·part·of·Django·since·the·days·of·pre-0.96
110 Magic·Removal··it·just·wasn’t·an·official,·stable·API.·In·recognition·of111 «Magic·Removal»··it·just·wasn’t·an·official,·stable·API.·In·recognition·of
111 this,·we’ve·endeavored·to·maintain·backwards-compatibility·with·the·old112 this,·we’ve·endeavored·to·maintain·backwards-compatibility·with·the·old
112 API·endpoint·where·possible.·However,·API·endpoints·that·aren’t·part·of·the113 API·endpoint·where·possible.·However,·API·endpoints·that·aren’t·part·of·the
113 new·official·API·have·been·deprecated·and·will·eventually·be·removed.</p>114 new·official·API·have·been·deprecated·and·will·eventually·be·removed.</p>
114 </section>115 </section>
115 <section·id="s-multiple-template-engines">116 <section·id="s-multiple-template-engines">
116 <span·id="multiple-template-engines"></span><h3>Multiple·template·engines<a·class="headerlink"·href="#multiple-template-engines"·title="Link·to·this·heading">¶</a></h3>117 <span·id="multiple-template-engines"></span><h3>Multiple·template·engines<a·class="headerlink"·href="#multiple-template-engines"·title="Link·to·this·heading">¶</a></h3>
117 <p>Django·1.8·defines·a·stable·API·for·integrating·template·backends.·It·includes118 <p>Django·1.8·defines·a·stable·API·for·integrating·template·backends.·It·includes
Offset 631, 15 lines modifiedOffset 632, 15 lines modified
631 </ul>632 </ul>
632 </section>633 </section>
633 </section>634 </section>
634 </section>635 </section>
635 <section·id="s-backwards-incompatible-changes-in-1-8">636 <section·id="s-backwards-incompatible-changes-in-1-8">
636 <span·id="s-backwards-incompatible-1-8"></span><span·id="backwards-incompatible-changes-in-1-8"></span><span·id="backwards-incompatible-1-8"></span><h2>Backwards·incompatible·changes·in·1.8<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-8"·title="Link·to·this·heading">¶</a></h2>637 <span·id="s-backwards-incompatible-1-8"></span><span·id="backwards-incompatible-changes-in-1-8"></span><span·id="backwards-incompatible-1-8"></span><h2>Backwards·incompatible·changes·in·1.8<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-8"·title="Link·to·this·heading">¶</a></h2>
637 <div·class="admonition·warning">638 <div·class="admonition·warning">
638 <p·class="admonition-title">Warning</p>639 <p·class="admonition-title">Avvertimento</p>
639 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the640 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the
640 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-8"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that641 <a·class="reference·internal"·href="../internals/deprecation.html#deprecation-removed-in-1-8"><span·class="std·std-ref">deprecation·plan</span></a>·for·any·features·that
641 have·been·removed.·If·you·haven’t·updated·your·code·within·the642 have·been·removed.·If·you·haven’t·updated·your·code·within·the
642 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a643 deprecation·timeline·for·a·given·feature,·its·removal·may·appear·as·a
643 backwards·incompatible·change.</p>644 backwards·incompatible·change.</p>
644 </div>645 </div>
645 <section·id="s-related-object-operations-are-run-in-a-transaction">646 <section·id="s-related-object-operations-are-run-in-a-transaction">
Offset 654, 15 lines modifiedOffset 655, 15 lines modified
654 <p>This·has·one·backwards·incompatible·side·effect,·signal·handlers·triggered·from655 <p>This·has·one·backwards·incompatible·side·effect,·signal·handlers·triggered·from
655 these·methods·are·now·executed·within·the·method’s·transaction·and·any656 these·methods·are·now·executed·within·the·method’s·transaction·and·any
656 exception·in·a·signal·handler·will·prevent·the·whole·operation.</p>657 exception·in·a·signal·handler·will·prevent·the·whole·operation.</p>
657 </section>658 </section>
658 <section·id="s-assigning-unsaved-objects-to-relations-raises-an-error">659 <section·id="s-assigning-unsaved-objects-to-relations-raises-an-error">
659 <span·id="s-unsaved-model-instance-check-18"></span><span·id="assigning-unsaved-objects-to-relations-raises-an-error"></span><span·id="unsaved-model-instance-check-18"></span><h3>Assigning·unsaved·objects·to·relations·raises·an·error<a·class="headerlink"·href="#assigning-unsaved-objects-to-relations-raises-an-error"·title="Link·to·this·heading">¶</a></h3>660 <span·id="s-unsaved-model-instance-check-18"></span><span·id="assigning-unsaved-objects-to-relations-raises-an-error"></span><span·id="unsaved-model-instance-check-18"></span><h3>Assigning·unsaved·objects·to·relations·raises·an·error<a·class="headerlink"·href="#assigning-unsaved-objects-to-relations-raises-an-error"·title="Link·to·this·heading">¶</a></h3>
660 <div·class="admonition·note">661 <div·class="admonition·note">
661 <p·class="admonition-title">Note</p>662 <p·class="admonition-title">Nota</p>
662 <p>To·more·easily·allow·in-memory·usage·of·models,·this·change·was·reverted·in663 <p>To·more·easily·allow·in-memory·usage·of·models,·this·change·was·reverted·in
663 Django·1.8.4·and·replaced·with·a·check·during·<code·class="docutils·literal·notranslate"><span·class="pre">model.save()</span></code>.·For·example:</p>664 Django·1.8.4·and·replaced·with·a·check·during·<code·class="docutils·literal·notranslate"><span·class="pre">model.save()</span></code>.·For·example:</p>
664 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">create</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span>665 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">create</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span>
665 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span><span·class="o">.</span><span·class="n">author</span>·<span·class="o">=</span>·<span·class="n">Author</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;John&quot;</span><span·class="p">)</span>666 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span><span·class="o">.</span><span·class="n">author</span>·<span·class="o">=</span>·<span·class="n">Author</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;John&quot;</span><span·class="p">)</span>
666 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>667 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">book</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
667 <span·class="gt">Traceback·(most·recent·call·last):</span>668 <span·class="gt">Traceback·(most·recent·call·last):</span>
668 <span·class="c">...</span>669 <span·class="c">...</span>
Offset 968, 15 lines modifiedOffset 969, 15 lines modified
968 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.response_delete"·title="django.contrib.admin.ModelAdmin.response_delete"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.response_delete()</span></code></a>·method969 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.response_delete"·title="django.contrib.admin.ModelAdmin.response_delete"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.response_delete()</span></code></a>·method
969 now·takes·a·second·argument·named·<code·class="docutils·literal·notranslate"><span·class="pre">obj_id</span></code>·which·is·the·serialized970 now·takes·a·second·argument·named·<code·class="docutils·literal·notranslate"><span·class="pre">obj_id</span></code>·which·is·the·serialized
970 identifier·used·to·retrieve·the·object·before·deletion.</p></li>971 identifier·used·to·retrieve·the·object·before·deletion.</p></li>
971 </ul>972 </ul>
972 </section>973 </section>
973 <section·id="s-default-autoescaping-of-functions-in-django-template-defaultfilters">974 <section·id="s-default-autoescaping-of-functions-in-django-template-defaultfilters">
974 <span·id="default-autoescaping-of-functions-in-django-template-defaultfilters"></span><h3>Default·autoescaping·of·functions·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.template.defaultfilters</span></code><a·class="headerlink"·href="#default-autoescaping-of-functions-in-django-template-defaultfilters"·title="Link·to·this·heading">¶</a></h3>975 <span·id="default-autoescaping-of-functions-in-django-template-defaultfilters"></span><h3>Default·autoescaping·of·functions·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.template.defaultfilters</span></code><a·class="headerlink"·href="#default-autoescaping-of-functions-in-django-template-defaultfilters"·title="Link·to·this·heading">¶</a></h3>
975 <p>In·order·to·make·built-in·template·filters·that·output·HTML·safe·by·default976 <p>In·order·to·make·built-in·template·filters·that·output·HTML·«safe·by·default»
976 when·calling·them·in·Python·code,·the·following·functions·in977 when·calling·them·in·Python·code,·the·following·functions·in
977 <code·class="docutils·literal·notranslate"><span·class="pre">django.template.defaultfilters</span></code>·have·been·changed·to·automatically·escape978 <code·class="docutils·literal·notranslate"><span·class="pre">django.template.defaultfilters</span></code>·have·been·changed·to·automatically·escape
978 their·input·value:</p>979 their·input·value:</p>
979 <ul·class="simple">980 <ul·class="simple">
980 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">join</span></code></p></li>981 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">join</span></code></p></li>
981 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">linebreaksbr</span></code></p></li>982 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">linebreaksbr</span></code></p></li>
982 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">linebreaks_filter</span></code></p></li>983 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">linebreaks_filter</span></code></p></li>
Offset 1064, 15 lines modifiedOffset 1065, 15 lines modified
1064 result·of·a·callable.</p></li>1065 result·of·a·callable.</p></li>
1065 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">GenericIPAddressField.empty_strings_allowed</span></code>·is·now·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>.·Database1066 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">GenericIPAddressField.empty_strings_allowed</span></code>·is·now·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>.·Database
1066 backends·that·interpret·empty·strings·as·null·(only·Oracle·among·the·backends1067 backends·that·interpret·empty·strings·as·null·(only·Oracle·among·the·backends
1067 that·Django·includes)·will·no·longer·convert·null·values·back·to·an·empty1068 that·Django·includes)·will·no·longer·convert·null·values·back·to·an·empty
1068 string.·This·is·consistent·with·other·backends.</p></li>1069 string.·This·is·consistent·with·other·backends.</p></li>
1069 <li><p>When·the·<code·class="docutils·literal·notranslate"><span·class="pre">BaseCommand.leave_locale_alone</span></code>1070 <li><p>When·the·<code·class="docutils·literal·notranslate"><span·class="pre">BaseCommand.leave_locale_alone</span></code>
1070 attribute·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·translations·are·now·deactivated·instead·of·forcing1071 attribute·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·translations·are·now·deactivated·instead·of·forcing
1071 the·en-us·locale.·In·the·case·your·models·contained·non-English·strings·and1072 the·«en-us»·locale.·In·the·case·your·models·contained·non-English·strings·and
1072 you·counted·on·English·translations·to·be·activated·in·management·commands,1073 you·counted·on·English·translations·to·be·activated·in·management·commands,
1073 this·will·not·happen·any·longer.·It·might·be·that·new·database·migrations·are1074 this·will·not·happen·any·longer.·It·might·be·that·new·database·migrations·are
1074 generated·(once)·after·migrating·to·1.8.</p></li>1075 generated·(once)·after·migrating·to·1.8.</p></li>
1075 <li><p><a·class="reference·internal"·href="../ref/utils.html#django.utils.translation.get_language"·title="django.utils.translation.get_language"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.utils.translation.get_language()</span></code></a>·now·returns·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·instead1076 <li><p><a·class="reference·internal"·href="../ref/utils.html#django.utils.translation.get_language"·title="django.utils.translation.get_language"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.utils.translation.get_language()</span></code></a>·now·returns·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·instead
1076 of·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_CODE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_CODE</span></code></a>·when·translations·are·temporarily·deactivated.</p></li>1077 of·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_CODE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_CODE</span></code></a>·when·translations·are·temporarily·deactivated.</p></li>
1077 <li><p>When·a·translation·doesn’t·exist·for·a·specific·literal,·the·fallback·is·now1078 <li><p>When·a·translation·doesn’t·exist·for·a·specific·literal,·the·fallback·is·now
1078 taken·from·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_CODE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_CODE</span></code></a>·language·(instead·of·from·the1079 taken·from·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_CODE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_CODE</span></code></a>·language·(instead·of·from·the
Offset 1145, 31 lines modifiedOffset 1146, 31 lines modified
1145 ····<span·class="n">url</span><span·class="p">(</span><span·class="s2">&quot;^other/$&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;otherview&quot;</span><span·class="p">),</span>1146 ····<span·class="n">url</span><span·class="p">(</span><span·class="s2">&quot;^other/$&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;otherview&quot;</span><span·class="p">),</span>
1146 <span·class="p">)</span>1147 <span·class="p">)</span>
1147 </pre></div>1148 </pre></div>
1148 </div>1149 </div>
1149 <p>In·the·modern·era,·we·have·updated·the·tutorial·to·instead·recommend·importing1150 <p>In·the·modern·era,·we·have·updated·the·tutorial·to·instead·recommend·importing
1150 your·views·module·and·referencing·your·view·functions·(or·classes)·directly.1151 your·views·module·and·referencing·your·view·functions·(or·classes)·directly.
1151 This·has·a·number·of·advantages,·all·deriving·from·the·fact·that·we·are·using1152 This·has·a·number·of·advantages,·all·deriving·from·the·fact·that·we·are·using
Max diff block lines reached; 12518/24184 bytes (51.76%) of diff not shown.
15.3 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/1.9.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9·release·notes"·href="1.9.html"·/>15 ····<link·rel="next"·title="Django·1.9·release·notes"·href="1.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.2·release·notes"·href="1.9.2.html"·/>16 ····<link·rel="prev"·title="Django·1.9.2·release·notes"·href="1.9.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 157, 37 lines modifiedOffset 158, 37 lines modified
157 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>158 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
158 </ul>159 </ul>
159 </li>160 </li>
160 </ul>161 </ul>
  
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Previous·topic</h4>164 ····<h4>Argomento·precedente</h4>
164 ····<p·class="topless"><a·href="1.9.2.html"165 ····<p·class="topless"><a·href="1.9.2.html"
165 ··························title="previous·chapter">Django·1.9.2·release·notes</a></p>166 ··························title="capitolo·precedente">Django·1.9.2·release·notes</a></p>
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Next·topic</h4>169 ····<h4>Argomento·successivo</h4>
169 ····<p·class="topless"><a·href="1.9.html"170 ····<p·class="topless"><a·href="1.9.html"
170 ··························title="next·chapter">Django·1.9·release·notes</a></p>171 ··························title="capitolo·successivo">Django·1.9·release·notes</a></p>
171 ··</div>172 ··</div>
172 <search·id="searchbox"·style="display:·none"·role="search">173 <search·id="searchbox"·style="display:·none"·role="search">
173 ··<h3·id="searchlabel">Quick·search</h3>174 ··<h3·id="searchlabel">Ricerca·veloce</h3>
174 ····<div·class="searchformwrapper">175 ····<div·class="searchformwrapper">
175 ····<form·class="search"·action="../search.html"·method="get">176 ····<form·class="search"·action="../search.html"·method="get">
176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
177 ······<input·type="submit"·value="Go"·/>178 ······<input·type="submit"·value="Vai"·/>
178 ····</form>179 ····</form>
179 ····</div>180 ····</div>
180 </search>181 </search>
181 <script>document.getElementById('searchbox').style.display·=·"block"</script>182 <script>document.getElementById('searchbox').style.display·=·"block"</script>
182 ········</div>183 ········</div>
183 ······</div>184 ······</div>
184 ··············<h3>Last·update:</h3>185 ··············<h3>Last·update:</h3>
185 ··············<p·class="topless">Sep·03,·2024</p>186 ··············<p·class="topless">set·03,·2024</p>
186 ··········</div>187 ··········</div>
187 ········188 ········
188 ······189 ······
189 ····</div>190 ····</div>
  
190 ····<div·id="ft">191 ····<div·id="ft">
191 ······<div·class="nav">192 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
6.25 KB
./usr/share/doc/python-django-doc/html/releases/1.9.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.9·release·notes"·href="1.9.9.html"·/>15 ····<link·rel="next"·title="Django·1.9.9·release·notes"·href="1.9.9.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.11·release·notes"·href="1.9.11.html"·/>16 ····<link·rel="prev"·title="Django·1.9.11·release·notes"·href="1.9.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#csrf-protection-bypass-on-a-site-with-google-analytics">CSRF·protection·bypass·on·a·site·with·Google·Analytics</a></li>110 <li><a·class="reference·internal"·href="#csrf-protection-bypass-on-a-site-with-google-analytics">CSRF·protection·bypass·on·a·site·with·Google·Analytics</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="1.9.11.html"117 ····<p·class="topless"><a·href="1.9.11.html"
117 ··························title="previous·chapter">Django·1.9.11·release·notes</a></p>118 ··························title="capitolo·precedente">Django·1.9.11·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="1.9.9.html"122 ····<p·class="topless"><a·href="1.9.9.html"
122 ··························title="next·chapter">Django·1.9.9·release·notes</a></p>123 ··························title="capitolo·successivo">Django·1.9.9·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
6.41 KB
./usr/share/doc/python-django-doc/html/releases/1.9.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.10·release·notes"·href="1.9.10.html"·/>15 ····<link·rel="next"·title="Django·1.9.10·release·notes"·href="1.9.10.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.12·release·notes"·href="1.9.12.html"·/>16 ····<link·rel="prev"·title="Django·1.9.12·release·notes"·href="1.9.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#dns-rebinding-vulnerability-when-debug-true">DNS·rebinding·vulnerability·when·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG=True</span></code></a></li>131 <li><a·class="reference·internal"·href="#dns-rebinding-vulnerability-when-debug-true">DNS·rebinding·vulnerability·when·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG=True</span></code></a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="1.9.12.html"138 ····<p·class="topless"><a·href="1.9.12.html"
138 ··························title="previous·chapter">Django·1.9.12·release·notes</a></p>139 ··························title="capitolo·precedente">Django·1.9.12·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="1.9.10.html"143 ····<p·class="topless"><a·href="1.9.10.html"
143 ··························title="next·chapter">Django·1.9.10·release·notes</a></p>144 ··························title="capitolo·successivo">Django·1.9.10·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
2.51 KB
html2text {}
Max HTML report size reached
6.88 KB
./usr/share/doc/python-django-doc/html/releases/1.9.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.11·release·notes"·href="1.9.11.html"·/>15 ····<link·rel="next"·title="Django·1.9.11·release·notes"·href="1.9.11.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.13·release·notes"·href="1.9.13.html"·/>16 ····<link·rel="prev"·title="Django·1.9.13·release·notes"·href="1.9.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 16 lines modifiedOffset 81, 16 lines modified
80 ··<section·id="s-django-1-9-12-release-notes">81 ··<section·id="s-django-1-9-12-release-notes">
81 <span·id="django-1-9-12-release-notes"></span><h1>Django·1.9.12·release·notes<a·class="headerlink"·href="#django-1-9-12-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-9-12-release-notes"></span><h1>Django·1.9.12·release·notes<a·class="headerlink"·href="#django-1-9-12-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·1,·2016</em></p>83 <p><em>December·1,·2016</em></p>
83 <p>Django·1.9.12·fixes·a·regression·in·1.9.11.</p>84 <p>Django·1.9.12·fixes·a·regression·in·1.9.11.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·ORA-00922:88 <li><p>Quoted·the·Oracle·test·user’s·password·in·queries·to·fix·the·«ORA-00922:
88 missing·or·invalid·option·error·when·the·password·starts·with·a·number·or89 missing·or·invalid·option»·error·when·the·password·starts·with·a·number·or
89 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>90 special·character·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/27420">#27420</a>).</p></li>
90 </ul>91 </ul>
91 </section>92 </section>
92 </section>93 </section>
  
  
93 ··········</div>94 ··········</div>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.9.13.html"116 ····<p·class="topless"><a·href="1.9.13.html"
116 ··························title="previous·chapter">Django·1.9.13·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.9.13·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.9.11.html"121 ····<p·class="topless"><a·href="1.9.11.html"
121 ··························title="next·chapter">Django·1.9.11·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.9.11·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
9.88 KB
./usr/share/doc/python-django-doc/html/releases/1.9.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.12·release·notes"·href="1.9.12.html"·/>15 ····<link·rel="next"·title="Django·1.9.12·release·notes"·href="1.9.12.html"·/>
15 ····<link·rel="prev"·title="Django·1.10·release·notes"·href="1.10.html"·/>16 ····<link·rel="prev"·title="Django·1.10·release·notes"·href="1.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 82, 17 lines modifiedOffset 83, 17 lines modified
82 <p><em>April·4,·2017</em></p>83 <p><em>April·4,·2017</em></p>
83 <p>Django·1.9.13·fixes·two·security·issues·and·a·bug·in·1.9.12.·This·is·the·final84 <p>Django·1.9.13·fixes·two·security·issues·and·a·bug·in·1.9.12.·This·is·the·final
84 release·of·the·1.9.x·series.</p>85 release·of·the·1.9.x·series.</p>
85 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">86 <section·id="s-cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls">
86 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"></span><h2>CVE-2017-7233:·Open·redirect·and·possible·XSS·attack·via·user-supplied·numeric·redirect·URLs<a·class="headerlink"·href="#cve-2017-7233-open-redirect-and-possible-xss-attack-via-user-supplied-numeric-redirect-urls"·title="Link·to·this·heading">¶</a></h2>
87 <p>Django·relies·on·user·input·in·some·cases··(e.g.88 <p>Django·relies·on·user·input·in·some·cases··(e.g.
88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)89 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
89 to·redirect·the·user·to·an·on·success·URL.·The·security·check·for·these90 to·redirect·the·user·to·an·«on·success»·URL.·The·security·check·for·these
90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric91 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·numeric
91 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·safe·when·they·shouldn’t·be.</p>92 URLs·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">http:999999999</span></code>)·«safe»·when·they·shouldn’t·be.</p>
92 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect93 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect
93 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>94 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>
94 </section>95 </section>
95 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">96 <section·id="s-cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve">
96 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>97 <span·id="cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"></span><h2>CVE-2017-7234:·Open·redirect·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.views.static.serve()</span></code><a·class="headerlink"·href="#cve-2017-7234-open-redirect-vulnerability-in-django-views-static-serve"·title="Link·to·this·heading">¶</a></h2>
97 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the98 <p>A·maliciously·crafted·URL·to·a·Django·site·using·the
98 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The99 <a·class="reference·internal"·href="../ref/views.html#django.views.static.serve"·title="django.views.static.serve"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">serve()</span></code></a>·view·could·redirect·to·any·other·domain.·The
Offset 129, 37 lines modifiedOffset 130, 37 lines modified
129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>130 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
130 </ul>131 </ul>
131 </li>132 </li>
132 </ul>133 </ul>
  
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Previous·topic</h4>136 ····<h4>Argomento·precedente</h4>
136 ····<p·class="topless"><a·href="1.10.html"137 ····<p·class="topless"><a·href="1.10.html"
137 ··························title="previous·chapter">Django·1.10·release·notes</a></p>138 ··························title="capitolo·precedente">Django·1.10·release·notes</a></p>
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Next·topic</h4>141 ····<h4>Argomento·successivo</h4>
141 ····<p·class="topless"><a·href="1.9.12.html"142 ····<p·class="topless"><a·href="1.9.12.html"
142 ··························title="next·chapter">Django·1.9.12·release·notes</a></p>143 ··························title="capitolo·successivo">Django·1.9.12·release·notes</a></p>
143 ··</div>144 ··</div>
144 <search·id="searchbox"·style="display:·none"·role="search">145 <search·id="searchbox"·style="display:·none"·role="search">
145 ··<h3·id="searchlabel">Quick·search</h3>146 ··<h3·id="searchlabel">Ricerca·veloce</h3>
146 ····<div·class="searchformwrapper">147 ····<div·class="searchformwrapper">
147 ····<form·class="search"·action="../search.html"·method="get">148 ····<form·class="search"·action="../search.html"·method="get">
148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
149 ······<input·type="submit"·value="Go"·/>150 ······<input·type="submit"·value="Vai"·/>
150 ····</form>151 ····</form>
151 ····</div>152 ····</div>
152 </search>153 </search>
153 <script>document.getElementById('searchbox').style.display·=·"block"</script>154 <script>document.getElementById('searchbox').style.display·=·"block"</script>
154 ········</div>155 ········</div>
155 ······</div>156 ······</div>
156 ··············<h3>Last·update:</h3>157 ··············<h3>Last·update:</h3>
157 ··············<p·class="topless">Sep·03,·2024</p>158 ··············<p·class="topless">set·03,·2024</p>
158 ··········</div>159 ··········</div>
159 ········160 ········
160 ······161 ······
161 ····</div>162 ····</div>
  
162 ····<div·id="ft">163 ····<div·id="ft">
163 ······<div·class="nav">164 ······<div·class="nav">
3.67 KB
html2text {}
Max HTML report size reached
15.3 KB
./usr/share/doc/python-django-doc/html/releases/1.9.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.1·release·notes"·href="1.9.1.html"·/>15 ····<link·rel="next"·title="Django·1.9.1·release·notes"·href="1.9.1.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.3·release·notes"·href="1.9.3.html"·/>16 ····<link·rel="prev"·title="Django·1.9.3·release·notes"·href="1.9.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 19 lines modifiedOffset 81, 19 lines modified
80 ··<section·id="s-django-1-9-2-release-notes">81 ··<section·id="s-django-1-9-2-release-notes">
81 <span·id="django-1-9-2-release-notes"></span><h1>Django·1.9.2·release·notes<a·class="headerlink"·href="#django-1-9-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-9-2-release-notes"></span><h1>Django·1.9.2·release·notes<a·class="headerlink"·href="#django-1-9-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2016</em></p>83 <p><em>February·1,·2016</em></p>
83 <p>Django·1.9.2·fixes·a·security·regression·in·1.9·and·several·bugs·in·1.9.1.·It84 <p>Django·1.9.2·fixes·a·security·regression·in·1.9·and·several·bugs·in·1.9.1.·It
84 also·makes·a·small·backwards·incompatible·change·that·hopefully·doesn’t·affect85 also·makes·a·small·backwards·incompatible·change·that·hopefully·doesn’t·affect
85 any·users.</p>86 any·users.</p>
86 <section·id="s-security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true">87 <section·id="s-security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true">
87 <span·id="security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true"></span><h2>Security·issue:·User·with·change·but·not·add·permission·can·create·objects·for·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code><a·class="headerlink"·href="#security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true"·title="Link·to·this·heading">¶</a></h2>88 <span·id="security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true"></span><h2>Security·issue:·User·with·«change»·but·not·«add»·permission·can·create·objects·for·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code><a·class="headerlink"·href="#security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true"·title="Link·to·this·heading">¶</a></h2>
88 <p>If·a·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·uses·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code>·(not·the·default),·the·admin89 <p>If·a·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>·uses·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code>·(not·the·default),·the·admin
89 provides·an·option·when·editing·objects·to·Save·as·new.·A·regression·in90 provides·an·option·when·editing·objects·to·«Save·as·new».·A·regression·in
90 Django·1.9·prevented·that·form·submission·from·raising·a·Permission·Denied91 Django·1.9·prevented·that·form·submission·from·raising·a·«Permission·Denied»
91 error·for·users·without·the·add·permission.</p>92 error·for·users·without·the·«add»·permission.</p>
92 </section>93 </section>
93 <section·id="s-backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates">94 <section·id="s-backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates">
94 <span·id="backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates"></span><h2>Backwards·incompatible·change:·<code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·rewritten·in·project/app·templates<a·class="headerlink"·href="#backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates"·title="Link·to·this·heading">¶</a></h2>95 <span·id="backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates"></span><h2>Backwards·incompatible·change:·<code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·rewritten·in·project/app·templates<a·class="headerlink"·href="#backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates"·title="Link·to·this·heading">¶</a></h2>
95 <p>The·addition·of·some·Django·template·language·syntax·to·the·default·app96 <p>The·addition·of·some·Django·template·language·syntax·to·the·default·app
96 template·in·Django·1.9·means·those·files·now·have·some·invalid·Python·syntax.97 template·in·Django·1.9·means·those·files·now·have·some·invalid·Python·syntax.
97 This·causes·difficulties·for·packaging·systems·that·unconditionally98 This·causes·difficulties·for·packaging·systems·that·unconditionally
98 byte-compile·<code·class="docutils·literal·notranslate"><span·class="pre">*.py</span></code>·files.</p>99 byte-compile·<code·class="docutils·literal·notranslate"><span·class="pre">*.py</span></code>·files.</p>
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
104 <code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·and·find·this·behavior·problematic.</p>105 <code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·and·find·this·behavior·problematic.</p>
105 </section>106 </section>
106 <section·id="s-bugfixes">107 <section·id="s-bugfixes">
107 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>108 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
108 <ul·class="simple">109 <ul·class="simple">
109 <li><p>Fixed·a·regression·in·<code·class="docutils·literal·notranslate"><span·class="pre">ConditionalGetMiddleware</span></code>·causing·<code·class="docutils·literal·notranslate"><span·class="pre">If-None-Match</span></code>110 <li><p>Fixed·a·regression·in·<code·class="docutils·literal·notranslate"><span·class="pre">ConditionalGetMiddleware</span></code>·causing·<code·class="docutils·literal·notranslate"><span·class="pre">If-None-Match</span></code>
110 checks·to·always·return·HTTP·200·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26024">#26024</a>).</p></li>111 checks·to·always·return·HTTP·200·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26024">#26024</a>).</p></li>
111 <li><p>Fixed·a·regression·that·caused·the·user-tools·items·to·display·on·the112 <li><p>Fixed·a·regression·that·caused·the·«user-tools»·items·to·display·on·the
112 admin’s·logout·page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26035">#26035</a>).</p></li>113 admin’s·logout·page·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26035">#26035</a>).</p></li>
113 <li><p>Fixed·a·crash·in·the·translations·system·when·the·current·language·has·no114 <li><p>Fixed·a·crash·in·the·translations·system·when·the·current·language·has·no
114 translations·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26046">#26046</a>).</p></li>115 translations·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26046">#26046</a>).</p></li>
115 <li><p>Fixed·a·regression·that·caused·the·incorrect·day·to·be·selected·when·opening116 <li><p>Fixed·a·regression·that·caused·the·incorrect·day·to·be·selected·when·opening
116 the·admin·calendar·widget·for·timezones·from·GMT+0100·to·GMT+1200117 the·admin·calendar·widget·for·timezones·from·GMT+0100·to·GMT+1200
117 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24980">#24980</a>).</p></li>118 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/24980">#24980</a>).</p></li>
118 <li><p>Fixed·a·regression·in·the·admin’s·edit·related·model·popup·that·caused·an119 <li><p>Fixed·a·regression·in·the·admin’s·edit·related·model·popup·that·caused·an
Offset 171, 46 lines modifiedOffset 172, 46 lines modified
171 ············172 ············
172 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">173 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
173 ········<div·class="sphinxsidebarwrapper">174 ········<div·class="sphinxsidebarwrapper">
174 ··<div>175 ··<div>
175 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>176 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>
176 ····<ul>177 ····<ul>
177 <li><a·class="reference·internal"·href="#">Django·1.9.2·release·notes</a><ul>178 <li><a·class="reference·internal"·href="#">Django·1.9.2·release·notes</a><ul>
178 <li><a·class="reference·internal"·href="#security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true">Security·issue:·User·with·change·but·not·add·permission·can·create·objects·for·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code></a></li>179 <li><a·class="reference·internal"·href="#security-issue-user-with-change-but-not-add-permission-can-create-objects-for-modeladmins-with-save-as-true">Security·issue:·User·with·«change»·but·not·«add»·permission·can·create·objects·for·<code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code></a></li>
179 <li><a·class="reference·internal"·href="#backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates">Backwards·incompatible·change:·<code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·rewritten·in·project/app·templates</a></li>180 <li><a·class="reference·internal"·href="#backwards-incompatible-change-py-tpl-files-rewritten-in-project-app-templates">Backwards·incompatible·change:·<code·class="docutils·literal·notranslate"><span·class="pre">.py-tpl</span></code>·files·rewritten·in·project/app·templates</a></li>
180 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>181 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
181 </ul>182 </ul>
182 </li>183 </li>
183 </ul>184 </ul>
  
184 ··</div>185 ··</div>
185 ··<div>186 ··<div>
186 ····<h4>Previous·topic</h4>187 ····<h4>Argomento·precedente</h4>
187 ····<p·class="topless"><a·href="1.9.3.html"188 ····<p·class="topless"><a·href="1.9.3.html"
188 ··························title="previous·chapter">Django·1.9.3·release·notes</a></p>189 ··························title="capitolo·precedente">Django·1.9.3·release·notes</a></p>
189 ··</div>190 ··</div>
190 ··<div>191 ··<div>
191 ····<h4>Next·topic</h4>192 ····<h4>Argomento·successivo</h4>
192 ····<p·class="topless"><a·href="1.9.1.html"193 ····<p·class="topless"><a·href="1.9.1.html"
193 ··························title="next·chapter">Django·1.9.1·release·notes</a></p>194 ··························title="capitolo·successivo">Django·1.9.1·release·notes</a></p>
194 ··</div>195 ··</div>
195 <search·id="searchbox"·style="display:·none"·role="search">196 <search·id="searchbox"·style="display:·none"·role="search">
196 ··<h3·id="searchlabel">Quick·search</h3>197 ··<h3·id="searchlabel">Ricerca·veloce</h3>
197 ····<div·class="searchformwrapper">198 ····<div·class="searchformwrapper">
198 ····<form·class="search"·action="../search.html"·method="get">199 ····<form·class="search"·action="../search.html"·method="get">
199 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>200 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
200 ······<input·type="submit"·value="Go"·/>201 ······<input·type="submit"·value="Vai"·/>
201 ····</form>202 ····</form>
202 ····</div>203 ····</div>
203 </search>204 </search>
204 <script>document.getElementById('searchbox').style.display·=·"block"</script>205 <script>document.getElementById('searchbox').style.display·=·"block"</script>
205 ········</div>206 ········</div>
206 ······</div>207 ······</div>
207 ··············<h3>Last·update:</h3>208 ··············<h3>Last·update:</h3>
208 ··············<p·class="topless">Sep·03,·2024</p>209 ··············<p·class="topless">set·03,·2024</p>
209 ··········</div>210 ··········</div>
210 ········211 ········
211 ······212 ······
212 ····</div>213 ····</div>
  
213 ····<div·id="ft">214 ····<div·id="ft">
214 ······<div·class="nav">215 ······<div·class="nav">
5.55 KB
html2text {}
Max HTML report size reached
13.6 KB
./usr/share/doc/python-django-doc/html/releases/1.9.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.2·release·notes"·href="1.9.2.html"·/>15 ····<link·rel="next"·title="Django·1.9.2·release·notes"·href="1.9.2.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.4·release·notes"·href="1.9.4.html"·/>16 ····<link·rel="prev"·title="Django·1.9.4·release·notes"·href="1.9.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 81, 17 lines modifiedOffset 82, 17 lines modified
81 <span·id="django-1-9-3-release-notes"></span><h1>Django·1.9.3·release·notes<a·class="headerlink"·href="#django-1-9-3-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-1-9-3-release-notes"></span><h1>Django·1.9.3·release·notes<a·class="headerlink"·href="#django-1-9-3-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·1,·2016</em></p>83 <p><em>March·1,·2016</em></p>
83 <p>Django·1.9.3·fixes·two·security·issues·and·several·bugs·in·1.9.2.</p>84 <p>Django·1.9.3·fixes·two·security·issues·and·several·bugs·in·1.9.2.</p>
84 <section·id="s-cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth">85 <section·id="s-cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth">
85 <span·id="cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"></span><h2>CVE-2016-2512:·Malicious·redirect·and·possible·XSS·attack·via·user-supplied·redirect·URLs·containing·basic·auth<a·class="headerlink"·href="#cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"></span><h2>CVE-2016-2512:·Malicious·redirect·and·possible·XSS·attack·via·user-supplied·redirect·URLs·containing·basic·auth<a·class="headerlink"·href="#cve-2016-2512-malicious-redirect-and-possible-xss-attack-via-user-supplied-redirect-urls-containing-basic-auth"·title="Link·to·this·heading">¶</a></h2>
86 <p>Django·relies·on·user·input·in·some·cases·(e.g.87 <p>Django·relies·on·user·input·in·some·cases·(e.g.
87 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)88 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.views.login()</span></code>·and·<a·class="reference·internal"·href="../topics/i18n/index.html"><span·class="doc">i18n</span></a>)
88 to·redirect·the·user·to·an·on·success·URL.·The·security·check·for·these89 to·redirect·the·user·to·an·«on·success»·URL.·The·security·check·for·these
89 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·URLs90 redirects·(namely·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.is_safe_url()</span></code>)·considered·some·URLs
90 with·basic·authentication·credentials·safe·when·they·shouldn’t·be.</p>91 with·basic·authentication·credentials·«safe»·when·they·shouldn’t·be.</p>
91 <p>For·example,·a·URL·like·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com\&#64;attacker.com</span></code>·would·be92 <p>For·example,·a·URL·like·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com\&#64;attacker.com</span></code>·would·be
92 considered·safe·if·the·request’s·host·is·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com</span></code>,·but93 considered·safe·if·the·request’s·host·is·<code·class="docutils·literal·notranslate"><span·class="pre">http://mysite.example.com</span></code>,·but
93 redirecting·to·this·URL·sends·the·user·to·<code·class="docutils·literal·notranslate"><span·class="pre">attacker.com</span></code>.</p>94 redirecting·to·this·URL·sends·the·user·to·<code·class="docutils·literal·notranslate"><span·class="pre">attacker.com</span></code>.</p>
94 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect95 <p>Also,·if·a·developer·relies·on·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·to·provide·safe·redirect
95 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>96 targets·and·puts·such·a·URL·into·a·link,·they·could·suffer·from·an·XSS·attack.</p>
96 </section>97 </section>
97 <section·id="s-cve-2016-2513-user-enumeration-through-timing-difference-on-password-hasher-work-factor-upgrade">98 <section·id="s-cve-2016-2513-user-enumeration-through-timing-difference-on-password-hasher-work-factor-upgrade">
Offset 143, 15 lines modifiedOffset 144, 15 lines modified
143 <li><p>Fixed·a·crash·when·filtering·by·a·<code·class="docutils·literal·notranslate"><span·class="pre">Decimal</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">RawQuery</span></code>144 <li><p>Fixed·a·crash·when·filtering·by·a·<code·class="docutils·literal·notranslate"><span·class="pre">Decimal</span></code>·in·<code·class="docutils·literal·notranslate"><span·class="pre">RawQuery</span></code>
144 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26219">#26219</a>).</p></li>145 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26219">#26219</a>).</p></li>
145 <li><p>Reallowed·dashes·in·top-level·domain·names·of·URLs·checked·by146 <li><p>Reallowed·dashes·in·top-level·domain·names·of·URLs·checked·by
146 <code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·to·fix·a·regression·in·Django·1.8·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26204">#26204</a>).</p></li>147 <code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·to·fix·a·regression·in·Django·1.8·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26204">#26204</a>).</p></li>
147 <li><p>Fixed·some·crashing·deprecation·shims·in·<code·class="docutils·literal·notranslate"><span·class="pre">SimpleTemplateResponse</span></code>·that148 <li><p>Fixed·some·crashing·deprecation·shims·in·<code·class="docutils·literal·notranslate"><span·class="pre">SimpleTemplateResponse</span></code>·that
148 regressed·in·Django·1.9·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26253">#26253</a>).</p></li>149 regressed·in·Django·1.9·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26253">#26253</a>).</p></li>
149 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code>·to·reallow·slices·of·subwidgets·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26267">#26267</a>).</p></li>150 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">BoundField</span></code>·to·reallow·slices·of·subwidgets·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26267">#26267</a>).</p></li>
150 <li><p>Changed·the·admin’s·permission·denied·message·in·the·login·template·to·use151 <li><p>Changed·the·admin’s·«permission·denied»·message·in·the·login·template·to·use
151 <code·class="docutils·literal·notranslate"><span·class="pre">get_username</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">username</span></code>·to·support·custom·user·models152 <code·class="docutils·literal·notranslate"><span·class="pre">get_username</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">username</span></code>·to·support·custom·user·models
152 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26231">#26231</a>).</p></li>153 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26231">#26231</a>).</p></li>
153 <li><p>Fixed·a·crash·when·passing·a·nonexistent·template·name·to·the·cached·template154 <li><p>Fixed·a·crash·when·passing·a·nonexistent·template·name·to·the·cached·template
154 loader’s·<code·class="docutils·literal·notranslate"><span·class="pre">load_template()</span></code>·method·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26280">#26280</a>).</p></li>155 loader’s·<code·class="docutils·literal·notranslate"><span·class="pre">load_template()</span></code>·method·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26280">#26280</a>).</p></li>
155 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code>·instances·from·sharing·their·cache156 <li><p>Prevented·<code·class="docutils·literal·notranslate"><span·class="pre">ContentTypeManager</span></code>·instances·from·sharing·their·cache
156 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26286">#26286</a>).</p></li>157 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26286">#26286</a>).</p></li>
157 <li><p>Reverted·a·change·in·Django·1.9.2·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25858">#25858</a>)·that·prevented·relative158 <li><p>Reverted·a·change·in·Django·1.9.2·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/25858">#25858</a>)·that·prevented·relative
Offset 180, 37 lines modifiedOffset 181, 37 lines modified
180 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>181 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
181 </ul>182 </ul>
182 </li>183 </li>
183 </ul>184 </ul>
  
184 ··</div>185 ··</div>
185 ··<div>186 ··<div>
186 ····<h4>Previous·topic</h4>187 ····<h4>Argomento·precedente</h4>
187 ····<p·class="topless"><a·href="1.9.4.html"188 ····<p·class="topless"><a·href="1.9.4.html"
188 ··························title="previous·chapter">Django·1.9.4·release·notes</a></p>189 ··························title="capitolo·precedente">Django·1.9.4·release·notes</a></p>
189 ··</div>190 ··</div>
190 ··<div>191 ··<div>
191 ····<h4>Next·topic</h4>192 ····<h4>Argomento·successivo</h4>
192 ····<p·class="topless"><a·href="1.9.2.html"193 ····<p·class="topless"><a·href="1.9.2.html"
193 ··························title="next·chapter">Django·1.9.2·release·notes</a></p>194 ··························title="capitolo·successivo">Django·1.9.2·release·notes</a></p>
194 ··</div>195 ··</div>
195 <search·id="searchbox"·style="display:·none"·role="search">196 <search·id="searchbox"·style="display:·none"·role="search">
196 ··<h3·id="searchlabel">Quick·search</h3>197 ··<h3·id="searchlabel">Ricerca·veloce</h3>
197 ····<div·class="searchformwrapper">198 ····<div·class="searchformwrapper">
198 ····<form·class="search"·action="../search.html"·method="get">199 ····<form·class="search"·action="../search.html"·method="get">
199 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>200 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
200 ······<input·type="submit"·value="Go"·/>201 ······<input·type="submit"·value="Vai"·/>
201 ····</form>202 ····</form>
202 ····</div>203 ····</div>
203 </search>204 </search>
204 <script>document.getElementById('searchbox').style.display·=·"block"</script>205 <script>document.getElementById('searchbox').style.display·=·"block"</script>
205 ········</div>206 ········</div>
206 ······</div>207 ······</div>
207 ··············<h3>Last·update:</h3>208 ··············<h3>Last·update:</h3>
208 ··············<p·class="topless">Sep·03,·2024</p>209 ··············<p·class="topless">set·03,·2024</p>
209 ··········</div>210 ··········</div>
210 ········211 ········
211 ······212 ······
212 ····</div>213 ····</div>
  
213 ····<div·id="ft">214 ····<div·id="ft">
214 ······<div·class="nav">215 ······<div·class="nav">
5.09 KB
html2text {}
Max HTML report size reached
5.41 KB
./usr/share/doc/python-django-doc/html/releases/1.9.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.3·release·notes"·href="1.9.3.html"·/>15 ····<link·rel="next"·title="Django·1.9.3·release·notes"·href="1.9.3.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.5·release·notes"·href="1.9.5.html"·/>16 ····<link·rel="prev"·title="Django·1.9.5·release·notes"·href="1.9.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 91, 37 lines modifiedOffset 92, 37 lines modified
91 ······92 ······
92 ········93 ········
93 ··········<div·class="yui-b"·id="sidebar">94 ··········<div·class="yui-b"·id="sidebar">
94 ············95 ············
95 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">96 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
96 ········<div·class="sphinxsidebarwrapper">97 ········<div·class="sphinxsidebarwrapper">
97 ··<div>98 ··<div>
98 ····<h4>Previous·topic</h4>99 ····<h4>Argomento·precedente</h4>
99 ····<p·class="topless"><a·href="1.9.5.html"100 ····<p·class="topless"><a·href="1.9.5.html"
100 ··························title="previous·chapter">Django·1.9.5·release·notes</a></p>101 ··························title="capitolo·precedente">Django·1.9.5·release·notes</a></p>
101 ··</div>102 ··</div>
102 ··<div>103 ··<div>
103 ····<h4>Next·topic</h4>104 ····<h4>Argomento·successivo</h4>
104 ····<p·class="topless"><a·href="1.9.3.html"105 ····<p·class="topless"><a·href="1.9.3.html"
105 ··························title="next·chapter">Django·1.9.3·release·notes</a></p>106 ··························title="capitolo·successivo">Django·1.9.3·release·notes</a></p>
106 ··</div>107 ··</div>
107 <search·id="searchbox"·style="display:·none"·role="search">108 <search·id="searchbox"·style="display:·none"·role="search">
108 ··<h3·id="searchlabel">Quick·search</h3>109 ··<h3·id="searchlabel">Ricerca·veloce</h3>
109 ····<div·class="searchformwrapper">110 ····<div·class="searchformwrapper">
110 ····<form·class="search"·action="../search.html"·method="get">111 ····<form·class="search"·action="../search.html"·method="get">
111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>112 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
112 ······<input·type="submit"·value="Go"·/>113 ······<input·type="submit"·value="Vai"·/>
113 ····</form>114 ····</form>
114 ····</div>115 ····</div>
115 </search>116 </search>
116 <script>document.getElementById('searchbox').style.display·=·"block"</script>117 <script>document.getElementById('searchbox').style.display·=·"block"</script>
117 ········</div>118 ········</div>
118 ······</div>119 ······</div>
119 ··············<h3>Last·update:</h3>120 ··············<h3>Last·update:</h3>
120 ··············<p·class="topless">Sep·03,·2024</p>121 ··············<p·class="topless">set·03,·2024</p>
121 ··········</div>122 ··········</div>
122 ········123 ········
123 ······124 ······
124 ····</div>125 ····</div>
  
125 ····<div·id="ft">126 ····<div·id="ft">
126 ······<div·class="nav">127 ······<div·class="nav">
1.59 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/1.9.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.4·release·notes"·href="1.9.4.html"·/>15 ····<link·rel="next"·title="Django·1.9.4·release·notes"·href="1.9.4.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.6·release·notes"·href="1.9.6.html"·/>16 ····<link·rel="prev"·title="Django·1.9.6·release·notes"·href="1.9.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 134, 37 lines modifiedOffset 135, 37 lines modified
134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>135 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
135 </ul>136 </ul>
136 </li>137 </li>
137 </ul>138 </ul>
  
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Previous·topic</h4>141 ····<h4>Argomento·precedente</h4>
141 ····<p·class="topless"><a·href="1.9.6.html"142 ····<p·class="topless"><a·href="1.9.6.html"
142 ··························title="previous·chapter">Django·1.9.6·release·notes</a></p>143 ··························title="capitolo·precedente">Django·1.9.6·release·notes</a></p>
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Next·topic</h4>146 ····<h4>Argomento·successivo</h4>
146 ····<p·class="topless"><a·href="1.9.4.html"147 ····<p·class="topless"><a·href="1.9.4.html"
147 ··························title="next·chapter">Django·1.9.4·release·notes</a></p>148 ··························title="capitolo·successivo">Django·1.9.4·release·notes</a></p>
148 ··</div>149 ··</div>
149 <search·id="searchbox"·style="display:·none"·role="search">150 <search·id="searchbox"·style="display:·none"·role="search">
150 ··<h3·id="searchlabel">Quick·search</h3>151 ··<h3·id="searchlabel">Ricerca·veloce</h3>
151 ····<div·class="searchformwrapper">152 ····<div·class="searchformwrapper">
152 ····<form·class="search"·action="../search.html"·method="get">153 ····<form·class="search"·action="../search.html"·method="get">
153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
154 ······<input·type="submit"·value="Go"·/>155 ······<input·type="submit"·value="Vai"·/>
155 ····</form>156 ····</form>
156 ····</div>157 ····</div>
157 </search>158 </search>
158 <script>document.getElementById('searchbox').style.display·=·"block"</script>159 <script>document.getElementById('searchbox').style.display·=·"block"</script>
159 ········</div>160 ········</div>
160 ······</div>161 ······</div>
161 ··············<h3>Last·update:</h3>162 ··············<h3>Last·update:</h3>
162 ··············<p·class="topless">Sep·03,·2024</p>163 ··············<p·class="topless">set·03,·2024</p>
163 ··········</div>164 ··········</div>
164 ········165 ········
165 ······166 ······
166 ····</div>167 ····</div>
  
167 ····<div·id="ft">168 ····<div·id="ft">
168 ······<div·class="nav">169 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/1.9.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.5·release·notes"·href="1.9.5.html"·/>15 ····<link·rel="next"·title="Django·1.9.5·release·notes"·href="1.9.5.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.7·release·notes"·href="1.9.7.html"·/>16 ····<link·rel="prev"·title="Django·1.9.7·release·notes"·href="1.9.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.9.7.html"128 ····<p·class="topless"><a·href="1.9.7.html"
128 ··························title="previous·chapter">Django·1.9.7·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.9.7·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.9.5.html"133 ····<p·class="topless"><a·href="1.9.5.html"
133 ··························title="next·chapter">Django·1.9.5·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.9.5·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
8.2 KB
./usr/share/doc/python-django-doc/html/releases/1.9.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.6·release·notes"·href="1.9.6.html"·/>15 ····<link·rel="next"·title="Django·1.9.6·release·notes"·href="1.9.6.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.8·release·notes"·href="1.9.8.html"·/>16 ····<link·rel="prev"·title="Django·1.9.8·release·notes"·href="1.9.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 82, 15 lines modifiedOffset 83, 15 lines modified
82 <p><em>June·4,·2016</em></p>83 <p><em>June·4,·2016</em></p>
83 <p>Django·1.9.7·fixes·several·bugs·in·1.9.6.</p>84 <p>Django·1.9.7·fixes·several·bugs·in·1.9.6.</p>
84 <section·id="s-bugfixes">85 <section·id="s-bugfixes">
85 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>86 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
86 <ul·class="simple">87 <ul·class="simple">
87 <li><p>Removed·the·need·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·context·processor·on·the·admin·login88 <li><p>Removed·the·need·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·context·processor·on·the·admin·login
88 page·to·fix·a·regression·in·1.9·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26558">#26558</a>).</p></li>89 page·to·fix·a·regression·in·1.9·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26558">#26558</a>).</p></li>
89 <li><p>Fixed·translation·of·password·validators·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·in·forms90 <li><p>Fixed·translation·of·password·validators·<code·class="docutils·literal·notranslate"><span·class="pre">help_text</span></code>·in·forms
90 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26544">#26544</a>).</p></li>91 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26544">#26544</a>).</p></li>
91 <li><p>Fixed·a·regression·causing·the·cached·template·loader·to·crash·when·using92 <li><p>Fixed·a·regression·causing·the·cached·template·loader·to·crash·when·using
92 lazy·template·names·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26603">#26603</a>).</p></li>93 lazy·template·names·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26603">#26603</a>).</p></li>
93 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">on_commit</span></code>·callbacks·execution·order·when·callbacks·make94 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">on_commit</span></code>·callbacks·execution·order·when·callbacks·make
94 transactions·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26627">#26627</a>).</p></li>95 transactions·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26627">#26627</a>).</p></li>
95 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">HStoreField</span></code>·to·raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">ValidationError</span></code>·instead·of·crashing·on96 <li><p>Fixed·<code·class="docutils·literal·notranslate"><span·class="pre">HStoreField</span></code>·to·raise·a·<code·class="docutils·literal·notranslate"><span·class="pre">ValidationError</span></code>·instead·of·crashing·on
96 non-dictionary·JSON·input·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26672">#26672</a>).</p></li>97 non-dictionary·JSON·input·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/26672">#26672</a>).</p></li>
Offset 119, 37 lines modifiedOffset 120, 37 lines modified
119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
120 </ul>121 </ul>
121 </li>122 </li>
122 </ul>123 </ul>
  
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Previous·topic</h4>126 ····<h4>Argomento·precedente</h4>
126 ····<p·class="topless"><a·href="1.9.8.html"127 ····<p·class="topless"><a·href="1.9.8.html"
127 ··························title="previous·chapter">Django·1.9.8·release·notes</a></p>128 ··························title="capitolo·precedente">Django·1.9.8·release·notes</a></p>
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Next·topic</h4>131 ····<h4>Argomento·successivo</h4>
131 ····<p·class="topless"><a·href="1.9.6.html"132 ····<p·class="topless"><a·href="1.9.6.html"
132 ··························title="next·chapter">Django·1.9.6·release·notes</a></p>133 ··························title="capitolo·successivo">Django·1.9.6·release·notes</a></p>
133 ··</div>134 ··</div>
134 <search·id="searchbox"·style="display:·none"·role="search">135 <search·id="searchbox"·style="display:·none"·role="search">
135 ··<h3·id="searchlabel">Quick·search</h3>136 ··<h3·id="searchlabel">Ricerca·veloce</h3>
136 ····<div·class="searchformwrapper">137 ····<div·class="searchformwrapper">
137 ····<form·class="search"·action="../search.html"·method="get">138 ····<form·class="search"·action="../search.html"·method="get">
138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
139 ······<input·type="submit"·value="Go"·/>140 ······<input·type="submit"·value="Vai"·/>
140 ····</form>141 ····</form>
141 ····</div>142 ····</div>
142 </search>143 </search>
143 <script>document.getElementById('searchbox').style.display·=·"block"</script>144 <script>document.getElementById('searchbox').style.display·=·"block"</script>
144 ········</div>145 ········</div>
145 ······</div>146 ······</div>
146 ··············<h3>Last·update:</h3>147 ··············<h3>Last·update:</h3>
147 ··············<p·class="topless">Sep·03,·2024</p>148 ··············<p·class="topless">set·03,·2024</p>
148 ··········</div>149 ··········</div>
149 ········150 ········
150 ······151 ······
151 ····</div>152 ····</div>
  
152 ····<div·id="ft">153 ····<div·id="ft">
153 ······<div·class="nav">154 ······<div·class="nav">
2.65 KB
html2text {}
Max HTML report size reached
6.07 KB
./usr/share/doc/python-django-doc/html/releases/1.9.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.7·release·notes"·href="1.9.7.html"·/>15 ····<link·rel="next"·title="Django·1.9.7·release·notes"·href="1.9.7.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.9·release·notes"·href="1.9.9.html"·/>16 ····<link·rel="prev"·title="Django·1.9.9·release·notes"·href="1.9.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="1.9.9.html"128 ····<p·class="topless"><a·href="1.9.9.html"
128 ··························title="previous·chapter">Django·1.9.9·release·notes</a></p>129 ··························title="capitolo·precedente">Django·1.9.9·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="1.9.7.html"133 ····<p·class="topless"><a·href="1.9.7.html"
133 ··························title="next·chapter">Django·1.9.7·release·notes</a></p>134 ··························title="capitolo·successivo">Django·1.9.7·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.33 KB
html2text {}
Max HTML report size reached
5.69 KB
./usr/share/doc/python-django-doc/html/releases/1.9.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.9.8·release·notes"·href="1.9.8.html"·/>15 ····<link·rel="next"·title="Django·1.9.8·release·notes"·href="1.9.8.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.10·release·notes"·href="1.9.10.html"·/>16 ····<link·rel="prev"·title="Django·1.9.10·release·notes"·href="1.9.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="1.9.10.html"116 ····<p·class="topless"><a·href="1.9.10.html"
116 ··························title="previous·chapter">Django·1.9.10·release·notes</a></p>117 ··························title="capitolo·precedente">Django·1.9.10·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="1.9.8.html"121 ····<p·class="topless"><a·href="1.9.8.html"
121 ··························title="next·chapter">Django·1.9.8·release·notes</a></p>122 ··························title="capitolo·successivo">Django·1.9.8·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.94 KB
html2text {}
Max HTML report size reached
23.8 KB
./usr/share/doc/python-django-doc/html/releases/1.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·1.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·1.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.8.19·release·notes"·href="1.8.19.html"·/>15 ····<link·rel="next"·title="Django·1.8.19·release·notes"·href="1.8.19.html"·/>
15 ····<link·rel="prev"·title="Django·1.9.1·release·notes"·href="1.9.1.html"·/>16 ····<link·rel="prev"·title="Django·1.9.1·release·notes"·href="1.9.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 213, 15 lines modifiedOffset 214, 15 lines modified
213 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.each_context"·title="django.contrib.admin.AdminSite.each_context"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">AdminSite.each_context()</span></code></a>214 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.each_context"·title="django.contrib.admin.AdminSite.each_context"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">AdminSite.each_context()</span></code></a>
214 method.</p></li>215 method.</p></li>
215 <li><p><a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.empty_value_display"·title="django.contrib.admin.AdminSite.empty_value_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">AdminSite.empty_value_display</span></code></a>·and216 <li><p><a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.AdminSite.empty_value_display"·title="django.contrib.admin.AdminSite.empty_value_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">AdminSite.empty_value_display</span></code></a>·and
216 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.empty_value_display"·title="django.contrib.admin.ModelAdmin.empty_value_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.empty_value_display</span></code></a>·were·added·to·override217 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.empty_value_display"·title="django.contrib.admin.ModelAdmin.empty_value_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.empty_value_display</span></code></a>·were·added·to·override
217 the·display·of·empty·values·in·admin·change·list.·You·can·also·customize·the218 the·display·of·empty·values·in·admin·change·list.·You·can·also·customize·the
218 value·for·each·field.</p></li>219 value·for·each·field.</p></li>
219 <li><p>Added·jQuery·events·<a·class="reference·internal"·href="../ref/contrib/admin/javascript.html#admin-javascript-inline-form-events"><span·class="std·std-ref">when·an·inline·form·is·added·or·removed</span></a>·on·the·change·form·page.</p></li>220 <li><p>Added·jQuery·events·<a·class="reference·internal"·href="../ref/contrib/admin/javascript.html#admin-javascript-inline-form-events"><span·class="std·std-ref">when·an·inline·form·is·added·or·removed</span></a>·on·the·change·form·page.</p></li>
220 <li><p>The·time·picker·widget·includes·a·6·p.m·option·for·consistency·of·having221 <li><p>The·time·picker·widget·includes·a·6·p.m·option·for·consistency·of·having
221 predefined·options·every·6·hours.</p></li>222 predefined·options·every·6·hours.</p></li>
222 <li><p>JavaScript·slug·generation·now·supports·Romanian·characters.</p></li>223 <li><p>JavaScript·slug·generation·now·supports·Romanian·characters.</p></li>
223 </ul>224 </ul>
224 </section>225 </section>
225 <section·id="s-django-contrib-admindocs">226 <section·id="s-django-contrib-admindocs">
226 <span·id="django-contrib-admindocs"></span><h4><a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html#module-django.contrib.admindocs"·title="django.contrib.admindocs:·Django's·admin·documentation·generator."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs</span></code></a><a·class="headerlink"·href="#django-contrib-admindocs"·title="Link·to·this·heading">¶</a></h4>227 <span·id="django-contrib-admindocs"></span><h4><a·class="reference·internal"·href="../ref/contrib/admin/admindocs.html#module-django.contrib.admindocs"·title="django.contrib.admindocs:·Django's·admin·documentation·generator."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admindocs</span></code></a><a·class="headerlink"·href="#django-contrib-admindocs"·title="Link·to·this·heading">¶</a></h4>
227 <ul·class="simple">228 <ul·class="simple">
Offset 460, 15 lines modifiedOffset 461, 15 lines modified
460 <ul>461 <ul>
461 <li><p>Initial·migrations·are·now·marked·with·an·<a·class="reference·internal"·href="../topics/migrations.html#django.db.migrations.Migration.initial"·title="django.db.migrations.Migration.initial"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">initial</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>·class·attribute·which·allows462 <li><p>Initial·migrations·are·now·marked·with·an·<a·class="reference·internal"·href="../topics/migrations.html#django.db.migrations.Migration.initial"·title="django.db.migrations.Migration.initial"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">initial</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>·class·attribute·which·allows
462 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-migrate-fake-initial"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">migrate</span>·<span·class="pre">--fake-initial</span></code></a>·to·more·easily·detect·initial·migrations.</p></li>463 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-migrate-fake-initial"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">migrate</span>·<span·class="pre">--fake-initial</span></code></a>·to·more·easily·detect·initial·migrations.</p></li>
463 <li><p>Added·support·for·serialization·of·<code·class="docutils·literal·notranslate"><span·class="pre">functools.partial</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">LazyObject</span></code>464 <li><p>Added·support·for·serialization·of·<code·class="docutils·literal·notranslate"><span·class="pre">functools.partial</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">LazyObject</span></code>
464 instances.</p></li>465 instances.</p></li>
465 <li><p>When·supplying·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·a·value·in·<a·class="reference·internal"·href="../ref/settings.html#std-setting-MIGRATION_MODULES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIGRATION_MODULES</span></code></a>,·Django466 <li><p>When·supplying·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·a·value·in·<a·class="reference·internal"·href="../ref/settings.html#std-setting-MIGRATION_MODULES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIGRATION_MODULES</span></code></a>,·Django
466 will·consider·the·app·an·app·without·migrations.</p></li>467 will·consider·the·app·an·app·without·migrations.</p></li>
467 <li><p>When·applying·migrations,·the·Rendering·model·states·step·that’s·displayed468 <li><p>When·applying·migrations,·the·«Rendering·model·states»·step·that’s·displayed
468 when·running·migrate·with·verbosity·2·or·higher·now·computes·only·the·states469 when·running·migrate·with·verbosity·2·or·higher·now·computes·only·the·states
469 for·the·migrations·that·have·already·been·applied.·The·model·states·for470 for·the·migrations·that·have·already·been·applied.·The·model·states·for
470 migrations·being·applied·are·generated·on·demand,·drastically·reducing·the471 migrations·being·applied·are·generated·on·demand,·drastically·reducing·the
471 amount·of·required·memory.</p>472 amount·of·required·memory.</p>
472 <p>However,·this·improvement·is·not·available·when·unapplying·migrations·and473 <p>However,·this·improvement·is·not·available·when·unapplying·migrations·and
473 therefore·still·requires·the·precomputation·and·storage·of·the·intermediate474 therefore·still·requires·the·precomputation·and·storage·of·the·intermediate
474 migration·states.</p>475 migration·states.</p>
Offset 583, 15 lines modifiedOffset 584, 15 lines modified
583 <li><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·level·message·for·uncaught·exceptions·raised584 <li><p>A·<code·class="docutils·literal·notranslate"><span·class="pre">WARNING</span></code>·level·message·for·uncaught·exceptions·raised
584 during·the·rendering·of·an·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">include</span>·<span·class="pre">%}</span></code>·when·debug·mode·is·off585 during·the·rendering·of·an·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">include</span>·<span·class="pre">%}</span></code>·when·debug·mode·is·off
585 (helpful·since·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">include</span>·<span·class="pre">%}</span></code>·silences·the·exception·and·returns·an586 (helpful·since·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">include</span>·<span·class="pre">%}</span></code>·silences·the·exception·and·returns·an
586 empty·string).</p></li>587 empty·string).</p></li>
587 </ul>588 </ul>
588 </li>589 </li>
589 <li><p>The·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-firstof"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">firstof</span></code></a>·template·tag·supports·storing·the·output·in·a·variable590 <li><p>The·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatetag-firstof"><code·class="xref·std·std-ttag·docutils·literal·notranslate"><span·class="pre">firstof</span></code></a>·template·tag·supports·storing·the·output·in·a·variable
590 using·as.</p></li>591 using·as.</p></li>
591 <li><p><a·class="reference·internal"·href="../ref/templates/api.html#django.template.Context.update"·title="django.template.Context.update"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.update()</span></code></a>·can·now·be·used·as592 <li><p><a·class="reference·internal"·href="../ref/templates/api.html#django.template.Context.update"·title="django.template.Context.update"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Context.update()</span></code></a>·can·now·be·used·as
592 a·context·manager.</p></li>593 a·context·manager.</p></li>
593 <li><p>Django·template·loaders·can·now·extend·templates·recursively.</p></li>594 <li><p>Django·template·loaders·can·now·extend·templates·recursively.</p></li>
594 <li><p>The·debug·page·template·postmortem·now·include·output·from·each·engine·that595 <li><p>The·debug·page·template·postmortem·now·include·output·from·each·engine·that
595 is·installed.</p></li>596 is·installed.</p></li>
596 <li><p><a·class="reference·internal"·href="../howto/custom-template-backend.html#template-debug-integration"><span·class="std·std-ref">Debug·page·integration</span></a>·for·custom597 <li><p><a·class="reference·internal"·href="../howto/custom-template-backend.html#template-debug-integration"><span·class="std·std-ref">Debug·page·integration</span></a>·for·custom
597 template·engines·was·added.</p></li>598 template·engines·was·added.</p></li>
Offset 638, 15 lines modifiedOffset 639, 15 lines modified
638 </ul>639 </ul>
639 </section>640 </section>
640 </section>641 </section>
641 </section>642 </section>
642 <section·id="s-backwards-incompatible-changes-in-1-9">643 <section·id="s-backwards-incompatible-changes-in-1-9">
643 <span·id="s-backwards-incompatible-1-9"></span><span·id="backwards-incompatible-changes-in-1-9"></span><span·id="backwards-incompatible-1-9"></span><h2>Backwards·incompatible·changes·in·1.9<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-9"·title="Link·to·this·heading">¶</a></h2>644 <span·id="s-backwards-incompatible-1-9"></span><span·id="backwards-incompatible-changes-in-1-9"></span><span·id="backwards-incompatible-1-9"></span><h2>Backwards·incompatible·changes·in·1.9<a·class="headerlink"·href="#backwards-incompatible-changes-in-1-9"·title="Link·to·this·heading">¶</a></h2>
644 <div·class="admonition·warning">645 <div·class="admonition·warning">
645 <p·class="admonition-title">Warning</p>646 <p·class="admonition-title">Avvertimento</p>
646 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the647 <p>In·addition·to·the·changes·outlined·in·this·section,·be·sure·to·review·the
647 <a·class="reference·internal"·href="#removed-features-1-9"><span·class="std·std-ref">Features·removed·in·1.9</span></a>·for·the·features·that·have·reached·the·end·of648 <a·class="reference·internal"·href="#removed-features-1-9"><span·class="std·std-ref">Features·removed·in·1.9</span></a>·for·the·features·that·have·reached·the·end·of
648 their·deprecation·cycle·and·therefore·been·removed.·If·you·haven’t·updated649 their·deprecation·cycle·and·therefore·been·removed.·If·you·haven’t·updated
649 your·code·within·the·deprecation·timeline·for·a·given·feature,·its·removal650 your·code·within·the·deprecation·timeline·for·a·given·feature,·its·removal
650 may·appear·as·a·backwards·incompatible·change.</p>651 may·appear·as·a·backwards·incompatible·change.</p>
651 </div>652 </div>
652 <section·id="s-database-backend-api">653 <section·id="s-database-backend-api">
Offset 740, 15 lines modifiedOffset 741, 15 lines modified
740 <p>Consequently,·the·expected·URLs·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">assertRedirects</span></code>·should·generally741 <p>Consequently,·the·expected·URLs·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">assertRedirects</span></code>·should·generally
741 no·longer·include·the·scheme·and·domain·part·of·the·URLs.·For·example,742 no·longer·include·the·scheme·and·domain·part·of·the·URLs.·For·example,
742 <code·class="docutils·literal·notranslate"><span·class="pre">self.assertRedirects(response,</span>·<span·class="pre">'http://testserver/some-url/')</span></code>·should·be743 <code·class="docutils·literal·notranslate"><span·class="pre">self.assertRedirects(response,</span>·<span·class="pre">'http://testserver/some-url/')</span></code>·should·be
743 replaced·by·<code·class="docutils·literal·notranslate"><span·class="pre">self.assertRedirects(response,</span>·<span·class="pre">'/some-url/')</span></code>·(unless·the744 replaced·by·<code·class="docutils·literal·notranslate"><span·class="pre">self.assertRedirects(response,</span>·<span·class="pre">'/some-url/')</span></code>·(unless·the
744 redirection·specifically·contained·an·absolute·URL).</p>745 redirection·specifically·contained·an·absolute·URL).</p>
745 <p>In·the·rare·case·that·you·need·the·old·behavior·(discovered·with·an·ancient746 <p>In·the·rare·case·that·you·need·the·old·behavior·(discovered·with·an·ancient
746 version·of·Apache·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_scgi</span></code>·that·interprets·a·relative·redirect·as·an747 version·of·Apache·with·<code·class="docutils·literal·notranslate"><span·class="pre">mod_scgi</span></code>·that·interprets·a·relative·redirect·as·an
747 internal·redirect),·you·can·restore·it·by·writing·a·custom·middleware:</p>748 «internal·redirect»),·you·can·restore·it·by·writing·a·custom·middleware:</p>
748 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">LocationHeaderFix</span><span·class="p">(</span><span·class="nb">object</span><span·class="p">):</span>749 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">LocationHeaderFix</span><span·class="p">(</span><span·class="nb">object</span><span·class="p">):</span>
749 ····<span·class="k">def</span>·<span·class="nf">process_response</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">):</span>750 ····<span·class="k">def</span>·<span·class="nf">process_response</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">response</span><span·class="p">):</span>
750 ········<span·class="k">if</span>·<span·class="s2">&quot;Location&quot;</span>·<span·class="ow">in</span>·<span·class="n">response</span><span·class="p">:</span>751 ········<span·class="k">if</span>·<span·class="s2">&quot;Location&quot;</span>·<span·class="ow">in</span>·<span·class="n">response</span><span·class="p">:</span>
751 ············<span·class="n">response</span><span·class="p">[</span><span·class="s2">&quot;Location&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">build_absolute_uri</span><span·class="p">(</span><span·class="n">response</span><span·class="p">[</span><span·class="s2">&quot;Location&quot;</span><span·class="p">])</span>752 ············<span·class="n">response</span><span·class="p">[</span><span·class="s2">&quot;Location&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">request</span><span·class="o">.</span><span·class="n">build_absolute_uri</span><span·class="p">(</span><span·class="n">response</span><span·class="p">[</span><span·class="s2">&quot;Location&quot;</span><span·class="p">])</span>
752 ········<span·class="k">return</span>·<span·class="n">response</span>753 ········<span·class="k">return</span>·<span·class="n">response</span>
753 </pre></div>754 </pre></div>
754 </div>755 </div>
Offset 917, 15 lines modifiedOffset 918, 15 lines modified
917 </pre></div>918 </pre></div>
918 </div>919 </div>
919 <p>would·implicitly·convert·to:</p>920 <p>would·implicitly·convert·to:</p>
920 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Model</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">related_id__in</span><span·class="o">=</span><span·class="n">RelatedModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">())</span>921 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Model</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">related_id__in</span><span·class="o">=</span><span·class="n">RelatedModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">())</span>
921 </pre></div>922 </pre></div>
922 </div>923 </div>
923 <p>resulting·in·SQL·like·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;related_id</span>·<span·class="pre">IN</span>·<span·class="pre">(SELECT</span>·<span·class="pre">id</span>·<span·class="pre">FROM</span>·<span·class="pre">...)&quot;</span></code>.</p>924 <p>resulting·in·SQL·like·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;related_id</span>·<span·class="pre">IN</span>·<span·class="pre">(SELECT</span>·<span·class="pre">id</span>·<span·class="pre">FROM</span>·<span·class="pre">...)&quot;</span></code>.</p>
Max diff block lines reached; 2218/14519 bytes (15.28%) of diff not shown.
9.5 KB
html2text {}
Max HTML report size reached
5.83 KB
./usr/share/doc/python-django-doc/html/releases/2.0.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0·release·notes"·href="2.0.html"·/>15 ····<link·rel="next"·title="Django·2.0·release·notes"·href="2.0.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.2·release·notes"·href="2.0.2.html"·/>16 ····<link·rel="prev"·title="Django·2.0.2·release·notes"·href="2.0.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 128, 37 lines modifiedOffset 129, 37 lines modified
128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
129 </ul>130 </ul>
130 </li>131 </li>
131 </ul>132 </ul>
  
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Previous·topic</h4>135 ····<h4>Argomento·precedente</h4>
135 ····<p·class="topless"><a·href="2.0.2.html"136 ····<p·class="topless"><a·href="2.0.2.html"
136 ··························title="previous·chapter">Django·2.0.2·release·notes</a></p>137 ··························title="capitolo·precedente">Django·2.0.2·release·notes</a></p>
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Next·topic</h4>140 ····<h4>Argomento·successivo</h4>
140 ····<p·class="topless"><a·href="2.0.html"141 ····<p·class="topless"><a·href="2.0.html"
141 ··························title="next·chapter">Django·2.0·release·notes</a></p>142 ··························title="capitolo·successivo">Django·2.0·release·notes</a></p>
142 ··</div>143 ··</div>
143 <search·id="searchbox"·style="display:·none"·role="search">144 <search·id="searchbox"·style="display:·none"·role="search">
144 ··<h3·id="searchlabel">Quick·search</h3>145 ··<h3·id="searchlabel">Ricerca·veloce</h3>
145 ····<div·class="searchformwrapper">146 ····<div·class="searchformwrapper">
146 ····<form·class="search"·action="../search.html"·method="get">147 ····<form·class="search"·action="../search.html"·method="get">
147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
148 ······<input·type="submit"·value="Go"·/>149 ······<input·type="submit"·value="Vai"·/>
149 ····</form>150 ····</form>
150 ····</div>151 ····</div>
151 </search>152 </search>
152 <script>document.getElementById('searchbox').style.display·=·"block"</script>153 <script>document.getElementById('searchbox').style.display·=·"block"</script>
153 ········</div>154 ········</div>
154 ······</div>155 ······</div>
155 ··············<h3>Last·update:</h3>156 ··············<h3>Last·update:</h3>
156 ··············<p·class="topless">Sep·03,·2024</p>157 ··············<p·class="topless">set·03,·2024</p>
157 ··········</div>158 ··········</div>
158 ········159 ········
159 ······160 ······
160 ····</div>161 ····</div>
  
161 ····<div·id="ft">162 ····<div·id="ft">
162 ······<div·class="nav">163 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
6.12 KB
./usr/share/doc/python-django-doc/html/releases/2.0.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.9·release·notes"·href="2.0.9.html"·/>15 ····<link·rel="next"·title="Django·2.0.9·release·notes"·href="2.0.9.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.11·release·notes"·href="2.0.11.html"·/>16 ····<link·rel="prev"·title="Django·2.0.11·release·notes"·href="2.0.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 125, 37 lines modifiedOffset 126, 37 lines modified
125 </li>126 </li>
126 </ul>127 </ul>
127 </li>128 </li>
128 </ul>129 </ul>
  
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Previous·topic</h4>132 ····<h4>Argomento·precedente</h4>
132 ····<p·class="topless"><a·href="2.0.11.html"133 ····<p·class="topless"><a·href="2.0.11.html"
133 ··························title="previous·chapter">Django·2.0.11·release·notes</a></p>134 ··························title="capitolo·precedente">Django·2.0.11·release·notes</a></p>
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Next·topic</h4>137 ····<h4>Argomento·successivo</h4>
137 ····<p·class="topless"><a·href="2.0.9.html"138 ····<p·class="topless"><a·href="2.0.9.html"
138 ··························title="next·chapter">Django·2.0.9·release·notes</a></p>139 ··························title="capitolo·successivo">Django·2.0.9·release·notes</a></p>
139 ··</div>140 ··</div>
140 <search·id="searchbox"·style="display:·none"·role="search">141 <search·id="searchbox"·style="display:·none"·role="search">
141 ··<h3·id="searchlabel">Quick·search</h3>142 ··<h3·id="searchlabel">Ricerca·veloce</h3>
142 ····<div·class="searchformwrapper">143 ····<div·class="searchformwrapper">
143 ····<form·class="search"·action="../search.html"·method="get">144 ····<form·class="search"·action="../search.html"·method="get">
144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
145 ······<input·type="submit"·value="Go"·/>146 ······<input·type="submit"·value="Vai"·/>
146 ····</form>147 ····</form>
147 ····</div>148 ····</div>
148 </search>149 </search>
149 <script>document.getElementById('searchbox').style.display·=·"block"</script>150 <script>document.getElementById('searchbox').style.display·=·"block"</script>
150 ········</div>151 ········</div>
151 ······</div>152 ······</div>
152 ··············<h3>Last·update:</h3>153 ··············<h3>Last·update:</h3>
153 ··············<p·class="topless">Sep·03,·2024</p>154 ··············<p·class="topless">set·03,·2024</p>
154 ··········</div>155 ··········</div>
155 ········156 ········
156 ······157 ······
157 ····</div>158 ····</div>
  
158 ····<div·id="ft">159 ····<div·id="ft">
159 ······<div·class="nav">160 ······<div·class="nav">
2.43 KB
html2text {}
Max HTML report size reached
6.28 KB
./usr/share/doc/python-django-doc/html/releases/2.0.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.10·release·notes"·href="2.0.10.html"·/>15 ····<link·rel="next"·title="Django·2.0.10·release·notes"·href="2.0.10.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.12·release·notes"·href="2.0.12.html"·/>16 ····<link·rel="prev"·title="Django·2.0.12·release·notes"·href="2.0.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format">CVE-2019-6975:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.format()</span></code></a></li>110 <li><a·class="reference·internal"·href="#cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format">CVE-2019-6975:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.format()</span></code></a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="2.0.12.html"117 ····<p·class="topless"><a·href="2.0.12.html"
117 ··························title="previous·chapter">Django·2.0.12·release·notes</a></p>118 ··························title="capitolo·precedente">Django·2.0.12·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="2.0.10.html"122 ····<p·class="topless"><a·href="2.0.10.html"
122 ··························title="next·chapter">Django·2.0.10·release·notes</a></p>123 ··························title="capitolo·successivo">Django·2.0.10·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.33 KB
html2text {}
Max HTML report size reached
5.62 KB
./usr/share/doc/python-django-doc/html/releases/2.0.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.11·release·notes"·href="2.0.11.html"·/>15 ····<link·rel="next"·title="Django·2.0.11·release·notes"·href="2.0.11.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.13·release·notes"·href="2.0.13.html"·/>16 ····<link·rel="prev"·title="Django·2.0.13·release·notes"·href="2.0.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="2.0.13.html"114 ····<p·class="topless"><a·href="2.0.13.html"
114 ··························title="previous·chapter">Django·2.0.13·release·notes</a></p>115 ··························title="capitolo·precedente">Django·2.0.13·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="2.0.11.html"119 ····<p·class="topless"><a·href="2.0.11.html"
119 ··························title="next·chapter">Django·2.0.11·release·notes</a></p>120 ··························title="capitolo·successivo">Django·2.0.11·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
1.86 KB
html2text {}
Max HTML report size reached
5.66 KB
./usr/share/doc/python-django-doc/html/releases/2.0.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.12·release·notes"·href="2.0.12.html"·/>15 ····<link·rel="next"·title="Django·2.0.12·release·notes"·href="2.0.12.html"·/>
15 ····<link·rel="prev"·title="Django·2.1·release·notes"·href="2.1.html"·/>16 ····<link·rel="prev"·title="Django·2.1·release·notes"·href="2.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.1.html"115 ····<p·class="topless"><a·href="2.1.html"
115 ··························title="previous·chapter">Django·2.1·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.1·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.0.12.html"120 ····<p·class="topless"><a·href="2.0.12.html"
120 ··························title="next·chapter">Django·2.0.12·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.0.12·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.92 KB
html2text {}
Max HTML report size reached
10.5 KB
./usr/share/doc/python-django-doc/html/releases/2.0.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.1·release·notes"·href="2.0.1.html"·/>15 ····<link·rel="next"·title="Django·2.0.1·release·notes"·href="2.0.1.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.3·release·notes"·href="2.0.3.html"·/>16 ····<link·rel="prev"·title="Django·2.0.3·release·notes"·href="2.0.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 24 lines modifiedOffset 89, 24 lines modified
88 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·method·even·if·an·incorrect·password·is·entered.89 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·method·even·if·an·incorrect·password·is·entered.
89 This·can·leak·information·about·a·user,·depending·on·what·messages90 This·can·leak·information·about·a·user,·depending·on·what·messages
90 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·raises.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·isn’t91 <code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·raises.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·isn’t
91 overridden,·an·attacker·enter·an·arbitrary·username·and·see·if·that·user·has92 overridden,·an·attacker·enter·an·arbitrary·username·and·see·if·that·user·has
92 been·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">is_active=False</span></code>.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·is·overridden,93 been·set·to·<code·class="docutils·literal·notranslate"><span·class="pre">is_active=False</span></code>.·If·<code·class="docutils·literal·notranslate"><span·class="pre">confirm_login_allowed()</span></code>·is·overridden,
93 more·sensitive·details·could·be·leaked.</p>94 more·sensitive·details·could·be·leaked.</p>
94 <p>This·issue·is·fixed·with·the·caveat·that·<code·class="docutils·literal·notranslate"><span·class="pre">AuthenticationForm</span></code>·can·no·longer95 <p>This·issue·is·fixed·with·the·caveat·that·<code·class="docutils·literal·notranslate"><span·class="pre">AuthenticationForm</span></code>·can·no·longer
95 raise·the·This·account·is·inactive.·error·if·the·authentication·backend96 raise·the·«This·account·is·inactive.»·error·if·the·authentication·backend
96 rejects·inactive·users·(the·default·authentication·backend,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,97 rejects·inactive·users·(the·default·authentication·backend,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelBackend</span></code>,
97 has·done·that·since·Django·1.10).·This·issue·will·be·revisited·for·Django·2.198 has·done·that·since·Django·1.10).·This·issue·will·be·revisited·for·Django·2.1
98 as·a·fix·to·address·the·caveat·will·likely·be·too·invasive·for·inclusion·in99 as·a·fix·to·address·the·caveat·will·likely·be·too·invasive·for·inclusion·in
99 older·versions.</p>100 older·versions.</p>
100 </section>101 </section>
101 <section·id="s-bugfixes">102 <section·id="s-bugfixes">
102 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>103 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
103 <ul·class="simple">104 <ul·class="simple">
104 <li><p>Fixed·hidden·content·at·the·bottom·of·the·The·install·worked·successfully!105 <li><p>Fixed·hidden·content·at·the·bottom·of·the·«The·install·worked·successfully!»
105 page·for·some·languages·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28885">#28885</a>).</p></li>106 page·for·some·languages·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/28885">#28885</a>).</p></li>
106 <li><p>Fixed·incorrect·foreign·key·nullification·if·a·model·has·two·foreign·keys·to107 <li><p>Fixed·incorrect·foreign·key·nullification·if·a·model·has·two·foreign·keys·to
107 the·same·model·and·a·target·model·is·deleted·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29016">#29016</a>).</p></li>108 the·same·model·and·a·target·model·is·deleted·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29016">#29016</a>).</p></li>
108 <li><p>Fixed·regression·in·the·use·of·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.values_list(...,</span>·<span·class="pre">flat=True)</span></code>109 <li><p>Fixed·regression·in·the·use·of·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.values_list(...,</span>·<span·class="pre">flat=True)</span></code>
109 followed·by·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29067">#29067</a>).</p></li>110 followed·by·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29067">#29067</a>).</p></li>
110 <li><p>Fixed·a·regression·where·a·queryset·that·annotates·with·geometry·objects111 <li><p>Fixed·a·regression·where·a·queryset·that·annotates·with·geometry·objects
111 crashes·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29054">#29054</a>).</p></li>112 crashes·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29054">#29054</a>).</p></li>
Offset 138, 37 lines modifiedOffset 139, 37 lines modified
138 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>139 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
139 </ul>140 </ul>
140 </li>141 </li>
141 </ul>142 </ul>
  
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Previous·topic</h4>145 ····<h4>Argomento·precedente</h4>
145 ····<p·class="topless"><a·href="2.0.3.html"146 ····<p·class="topless"><a·href="2.0.3.html"
146 ··························title="previous·chapter">Django·2.0.3·release·notes</a></p>147 ··························title="capitolo·precedente">Django·2.0.3·release·notes</a></p>
147 ··</div>148 ··</div>
148 ··<div>149 ··<div>
149 ····<h4>Next·topic</h4>150 ····<h4>Argomento·successivo</h4>
150 ····<p·class="topless"><a·href="2.0.1.html"151 ····<p·class="topless"><a·href="2.0.1.html"
151 ··························title="next·chapter">Django·2.0.1·release·notes</a></p>152 ··························title="capitolo·successivo">Django·2.0.1·release·notes</a></p>
152 ··</div>153 ··</div>
153 <search·id="searchbox"·style="display:·none"·role="search">154 <search·id="searchbox"·style="display:·none"·role="search">
154 ··<h3·id="searchlabel">Quick·search</h3>155 ··<h3·id="searchlabel">Ricerca·veloce</h3>
155 ····<div·class="searchformwrapper">156 ····<div·class="searchformwrapper">
156 ····<form·class="search"·action="../search.html"·method="get">157 ····<form·class="search"·action="../search.html"·method="get">
157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
158 ······<input·type="submit"·value="Go"·/>159 ······<input·type="submit"·value="Vai"·/>
159 ····</form>160 ····</form>
160 ····</div>161 ····</div>
161 </search>162 </search>
162 <script>document.getElementById('searchbox').style.display·=·"block"</script>163 <script>document.getElementById('searchbox').style.display·=·"block"</script>
163 ········</div>164 ········</div>
164 ······</div>165 ······</div>
165 ··············<h3>Last·update:</h3>166 ··············<h3>Last·update:</h3>
166 ··············<p·class="topless">Sep·03,·2024</p>167 ··············<p·class="topless">set·03,·2024</p>
167 ··········</div>168 ··········</div>
168 ········169 ········
169 ······170 ······
170 ····</div>171 ····</div>
  
171 ····<div·id="ft">172 ····<div·id="ft">
172 ······<div·class="nav">173 ······<div·class="nav">
4.03 KB
html2text {}
Max HTML report size reached
9.32 KB
./usr/share/doc/python-django-doc/html/releases/2.0.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.2·release·notes"·href="2.0.2.html"·/>15 ····<link·rel="next"·title="Django·2.0.2·release·notes"·href="2.0.2.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.4·release·notes"·href="2.0.4.html"·/>16 ····<link·rel="prev"·title="Django·2.0.4·release·notes"·href="2.0.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 </section>104 </section>
104 <section·id="s-bugfixes">105 <section·id="s-bugfixes">
105 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>106 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
106 <ul·class="simple">107 <ul·class="simple">
107 <li><p>Fixed·a·regression·that·caused·sliced·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.distinct().order_by()</span></code>108 <li><p>Fixed·a·regression·that·caused·sliced·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.distinct().order_by()</span></code>
108 followed·by·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·to·crash·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29108">#29108</a>).</p></li>109 followed·by·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·to·crash·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29108">#29108</a>).</p></li>
109 <li><p>Prioritized·the·datetime·and·time·input·formats·without·<code·class="docutils·literal·notranslate"><span·class="pre">%f</span></code>·for·the·Thai110 <li><p>Prioritized·the·datetime·and·time·input·formats·without·<code·class="docutils·literal·notranslate"><span·class="pre">%f</span></code>·for·the·Thai
110 locale·to·fix·the·admin·time·picker·widget·displaying·undefined111 locale·to·fix·the·admin·time·picker·widget·displaying·«undefined»
111 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29109">#29109</a>).</p></li>112 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29109">#29109</a>).</p></li>
112 <li><p>Fixed·crash·with·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by(Exists(...))</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29118">#29118</a>).</p></li>113 <li><p>Fixed·crash·with·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by(Exists(...))</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29118">#29118</a>).</p></li>
113 <li><p>Made·<code·class="docutils·literal·notranslate"><span·class="pre">Q.deconstruct()</span></code>·deterministic·with·multiple·keyword·arguments114 <li><p>Made·<code·class="docutils·literal·notranslate"><span·class="pre">Q.deconstruct()</span></code>·deterministic·with·multiple·keyword·arguments
114 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29125">#29125</a>).·You·may·need·to·modify·<code·class="docutils·literal·notranslate"><span·class="pre">Q</span></code>’s·in·existing·migrations,·or115 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29125">#29125</a>).·You·may·need·to·modify·<code·class="docutils·literal·notranslate"><span·class="pre">Q</span></code>’s·in·existing·migrations,·or
115 accept·an·autogenerated·migration.</p></li>116 accept·an·autogenerated·migration.</p></li>
116 <li><p>Fixed·a·regression·where·a·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·expression·with·a·list·argument·crashes117 <li><p>Fixed·a·regression·where·a·<code·class="docutils·literal·notranslate"><span·class="pre">When()</span></code>·expression·with·a·list·argument·crashes
117 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29166">#29166</a>).</p></li>118 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29166">#29166</a>).</p></li>
Offset 142, 37 lines modifiedOffset 143, 37 lines modified
142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
143 </ul>144 </ul>
144 </li>145 </li>
145 </ul>146 </ul>
  
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Previous·topic</h4>149 ····<h4>Argomento·precedente</h4>
149 ····<p·class="topless"><a·href="2.0.4.html"150 ····<p·class="topless"><a·href="2.0.4.html"
150 ··························title="previous·chapter">Django·2.0.4·release·notes</a></p>151 ··························title="capitolo·precedente">Django·2.0.4·release·notes</a></p>
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Next·topic</h4>154 ····<h4>Argomento·successivo</h4>
154 ····<p·class="topless"><a·href="2.0.2.html"155 ····<p·class="topless"><a·href="2.0.2.html"
155 ··························title="next·chapter">Django·2.0.2·release·notes</a></p>156 ··························title="capitolo·successivo">Django·2.0.2·release·notes</a></p>
156 ··</div>157 ··</div>
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../search.html"·method="get">161 ····<form·class="search"·action="../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
3.67 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/2.0.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.3·release·notes"·href="2.0.3.html"·/>15 ····<link·rel="next"·title="Django·2.0.3·release·notes"·href="2.0.3.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.5·release·notes"·href="2.0.5.html"·/>16 ····<link·rel="prev"·title="Django·2.0.5·release·notes"·href="2.0.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="2.0.5.html"130 ····<p·class="topless"><a·href="2.0.5.html"
130 ··························title="previous·chapter">Django·2.0.5·release·notes</a></p>131 ··························title="capitolo·precedente">Django·2.0.5·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="2.0.3.html"135 ····<p·class="topless"><a·href="2.0.3.html"
135 ··························title="next·chapter">Django·2.0.3·release·notes</a></p>136 ··························title="capitolo·successivo">Django·2.0.3·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/releases/2.0.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.4·release·notes"·href="2.0.4.html"·/>15 ····<link·rel="next"·title="Django·2.0.4·release·notes"·href="2.0.4.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.6·release·notes"·href="2.0.6.html"·/>16 ····<link·rel="prev"·title="Django·2.0.6·release·notes"·href="2.0.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="2.0.6.html"124 ····<p·class="topless"><a·href="2.0.6.html"
124 ··························title="previous·chapter">Django·2.0.6·release·notes</a></p>125 ··························title="capitolo·precedente">Django·2.0.6·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="2.0.4.html"129 ····<p·class="topless"><a·href="2.0.4.html"
129 ··························title="next·chapter">Django·2.0.4·release·notes</a></p>130 ··························title="capitolo·successivo">Django·2.0.4·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.1 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/2.0.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.5·release·notes"·href="2.0.5.html"·/>15 ····<link·rel="next"·title="Django·2.0.5·release·notes"·href="2.0.5.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.7·release·notes"·href="2.0.7.html"·/>16 ····<link·rel="prev"·title="Django·2.0.7·release·notes"·href="2.0.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="2.0.7.html"123 ····<p·class="topless"><a·href="2.0.7.html"
123 ··························title="previous·chapter">Django·2.0.7·release·notes</a></p>124 ··························title="capitolo·precedente">Django·2.0.7·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="2.0.5.html"128 ····<p·class="topless"><a·href="2.0.5.html"
128 ··························title="next·chapter">Django·2.0.5·release·notes</a></p>129 ··························title="capitolo·successivo">Django·2.0.5·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/2.0.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.6·release·notes"·href="2.0.6.html"·/>15 ····<link·rel="next"·title="Django·2.0.6·release·notes"·href="2.0.6.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.8·release·notes"·href="2.0.8.html"·/>16 ····<link·rel="prev"·title="Django·2.0.8·release·notes"·href="2.0.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="2.0.8.html"120 ····<p·class="topless"><a·href="2.0.8.html"
120 ··························title="previous·chapter">Django·2.0.8·release·notes</a></p>121 ··························title="capitolo·precedente">Django·2.0.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="2.0.6.html"125 ····<p·class="topless"><a·href="2.0.6.html"
125 ··························title="next·chapter">Django·2.0.6·release·notes</a></p>126 ··························title="capitolo·successivo">Django·2.0.6·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
6.23 KB
./usr/share/doc/python-django-doc/html/releases/2.0.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.7·release·notes"·href="2.0.7.html"·/>15 ····<link·rel="next"·title="Django·2.0.7·release·notes"·href="2.0.7.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.9·release·notes"·href="2.0.9.html"·/>16 ····<link·rel="prev"·title="Django·2.0.9·release·notes"·href="2.0.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 121, 37 lines modifiedOffset 122, 37 lines modified
121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
122 </ul>123 </ul>
123 </li>124 </li>
124 </ul>125 </ul>
  
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Previous·topic</h4>128 ····<h4>Argomento·precedente</h4>
128 ····<p·class="topless"><a·href="2.0.9.html"129 ····<p·class="topless"><a·href="2.0.9.html"
129 ··························title="previous·chapter">Django·2.0.9·release·notes</a></p>130 ··························title="capitolo·precedente">Django·2.0.9·release·notes</a></p>
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Next·topic</h4>133 ····<h4>Argomento·successivo</h4>
133 ····<p·class="topless"><a·href="2.0.7.html"134 ····<p·class="topless"><a·href="2.0.7.html"
134 ··························title="next·chapter">Django·2.0.7·release·notes</a></p>135 ··························title="capitolo·successivo">Django·2.0.7·release·notes</a></p>
135 ··</div>136 ··</div>
136 <search·id="searchbox"·style="display:·none"·role="search">137 <search·id="searchbox"·style="display:·none"·role="search">
137 ··<h3·id="searchlabel">Quick·search</h3>138 ··<h3·id="searchlabel">Ricerca·veloce</h3>
138 ····<div·class="searchformwrapper">139 ····<div·class="searchformwrapper">
139 ····<form·class="search"·action="../search.html"·method="get">140 ····<form·class="search"·action="../search.html"·method="get">
140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
141 ······<input·type="submit"·value="Go"·/>142 ······<input·type="submit"·value="Vai"·/>
142 ····</form>143 ····</form>
143 ····</div>144 ····</div>
144 </search>145 </search>
145 <script>document.getElementById('searchbox').style.display·=·"block"</script>146 <script>document.getElementById('searchbox').style.display·=·"block"</script>
146 ········</div>147 ········</div>
147 ······</div>148 ······</div>
148 ··············<h3>Last·update:</h3>149 ··············<h3>Last·update:</h3>
149 ··············<p·class="topless">Sep·03,·2024</p>150 ··············<p·class="topless">set·03,·2024</p>
150 ··········</div>151 ··········</div>
151 ········152 ········
152 ······153 ······
153 ····</div>154 ····</div>
  
154 ····<div·id="ft">155 ····<div·id="ft">
155 ······<div·class="nav">156 ······<div·class="nav">
2.48 KB
html2text {}
Max HTML report size reached
5.64 KB
./usr/share/doc/python-django-doc/html/releases/2.0.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.8·release·notes"·href="2.0.8.html"·/>15 ····<link·rel="next"·title="Django·2.0.8·release·notes"·href="2.0.8.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.10·release·notes"·href="2.0.10.html"·/>16 ····<link·rel="prev"·title="Django·2.0.10·release·notes"·href="2.0.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.0.10.html"115 ····<p·class="topless"><a·href="2.0.10.html"
115 ··························title="previous·chapter">Django·2.0.10·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.0.10·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.0.8.html"120 ····<p·class="topless"><a·href="2.0.8.html"
120 ··························title="next·chapter">Django·2.0.8·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.0.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.9 KB
html2text {}
Max HTML report size reached
6.19 KB
./usr/share/doc/python-django-doc/html/releases/2.0.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.0·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.0·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·1.11.29·release·notes"·href="1.11.29.html"·/>15 ····<link·rel="next"·title="Django·1.11.29·release·notes"·href="1.11.29.html"·/>
15 ····<link·rel="prev"·title="Django·2.0.1·release·notes"·href="2.0.1.html"·/>16 ····<link·rel="prev"·title="Django·2.0.1·release·notes"·href="2.0.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 863, 37 lines modifiedOffset 864, 37 lines modified
863 <li><a·class="reference·internal"·href="#features-removed-in-2-0">Features·removed·in·2.0</a></li>864 <li><a·class="reference·internal"·href="#features-removed-in-2-0">Features·removed·in·2.0</a></li>
864 </ul>865 </ul>
865 </li>866 </li>
866 </ul>867 </ul>
  
867 ··</div>868 ··</div>
868 ··<div>869 ··<div>
869 ····<h4>Previous·topic</h4>870 ····<h4>Argomento·precedente</h4>
870 ····<p·class="topless"><a·href="2.0.1.html"871 ····<p·class="topless"><a·href="2.0.1.html"
871 ··························title="previous·chapter">Django·2.0.1·release·notes</a></p>872 ··························title="capitolo·precedente">Django·2.0.1·release·notes</a></p>
872 ··</div>873 ··</div>
873 ··<div>874 ··<div>
874 ····<h4>Next·topic</h4>875 ····<h4>Argomento·successivo</h4>
875 ····<p·class="topless"><a·href="1.11.29.html"876 ····<p·class="topless"><a·href="1.11.29.html"
876 ··························title="next·chapter">Django·1.11.29·release·notes</a></p>877 ··························title="capitolo·successivo">Django·1.11.29·release·notes</a></p>
877 ··</div>878 ··</div>
878 <search·id="searchbox"·style="display:·none"·role="search">879 <search·id="searchbox"·style="display:·none"·role="search">
879 ··<h3·id="searchlabel">Quick·search</h3>880 ··<h3·id="searchlabel">Ricerca·veloce</h3>
880 ····<div·class="searchformwrapper">881 ····<div·class="searchformwrapper">
881 ····<form·class="search"·action="../search.html"·method="get">882 ····<form·class="search"·action="../search.html"·method="get">
882 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>883 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
883 ······<input·type="submit"·value="Go"·/>884 ······<input·type="submit"·value="Vai"·/>
884 ····</form>885 ····</form>
885 ····</div>886 ····</div>
886 </search>887 </search>
887 <script>document.getElementById('searchbox').style.display·=·"block"</script>888 <script>document.getElementById('searchbox').style.display·=·"block"</script>
888 ········</div>889 ········</div>
889 ······</div>890 ······</div>
890 ··············<h3>Last·update:</h3>891 ··············<h3>Last·update:</h3>
891 ··············<p·class="topless">Sep·03,·2024</p>892 ··············<p·class="topless">set·03,·2024</p>
892 ··········</div>893 ··········</div>
893 ········894 ········
894 ······895 ······
895 ····</div>896 ····</div>
  
896 ····<div·id="ft">897 ····<div·id="ft">
897 ······<div·class="nav">898 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
11.6 KB
./usr/share/doc/python-django-doc/html/releases/2.1.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1·release·notes"·href="2.1.html"·/>15 ····<link·rel="next"·title="Django·2.1·release·notes"·href="2.1.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.2·release·notes"·href="2.1.2.html"·/>16 ····<link·rel="prev"·title="Django·2.1.2·release·notes"·href="2.1.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 89, 26 lines modifiedOffset 90, 26 lines modified
89 <li><p>Fixed·a·regression·where·<code·class="docutils·literal·notranslate"><span·class="pre">QueryDict.urlencode()</span></code>·crashed·if·the·dictionary90 <li><p>Fixed·a·regression·where·<code·class="docutils·literal·notranslate"><span·class="pre">QueryDict.urlencode()</span></code>·crashed·if·the·dictionary
90 contains·a·non-string·value·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29627">#29627</a>).</p></li>91 contains·a·non-string·value·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29627">#29627</a>).</p></li>
91 <li><p>Fixed·a·regression·in·Django·2.0·where·using·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">test</span>·<span·class="pre">--keepdb</span></code>92 <li><p>Fixed·a·regression·in·Django·2.0·where·using·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">test</span>·<span·class="pre">--keepdb</span></code>
92 fails·on·PostgreSQL·if·the·database·exists·and·the·user·doesn’t·have93 fails·on·PostgreSQL·if·the·database·exists·and·the·user·doesn’t·have
93 permission·to·create·databases·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29613">#29613</a>).</p></li>94 permission·to·create·databases·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29613">#29613</a>).</p></li>
94 <li><p>Fixed·a·regression·in·Django·2.0·where·combining·<code·class="docutils·literal·notranslate"><span·class="pre">Q</span></code>·objects·with·<code·class="docutils·literal·notranslate"><span·class="pre">__in</span></code>95 <li><p>Fixed·a·regression·in·Django·2.0·where·combining·<code·class="docutils·literal·notranslate"><span·class="pre">Q</span></code>·objects·with·<code·class="docutils·literal·notranslate"><span·class="pre">__in</span></code>
95 lookups·and·lists·crashed·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29643">#29643</a>).</p></li>96 lookups·and·lists·crashed·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29643">#29643</a>).</p></li>
96 <li><p>Fixed·translation·failure·of·<code·class="docutils·literal·notranslate"><span·class="pre">DurationField</span></code>’s·overflow·error·message97 <li><p>Fixed·translation·failure·of·<code·class="docutils·literal·notranslate"><span·class="pre">DurationField</span></code>’s·«overflow»·error·message
97 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29623">#29623</a>).</p></li>98 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29623">#29623</a>).</p></li>
98 <li><p>Fixed·a·regression·where·the·admin·change·form·crashed·if·the·user·doesn’t99 <li><p>Fixed·a·regression·where·the·admin·change·form·crashed·if·the·user·doesn’t
99 have·the·add·permission·to·a·model·that·uses·<code·class="docutils·literal·notranslate"><span·class="pre">TabularInline</span></code>100 have·the·add·permission·to·a·model·that·uses·<code·class="docutils·literal·notranslate"><span·class="pre">TabularInline</span></code>
100 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29637">#29637</a>).</p></li>101 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29637">#29637</a>).</p></li>
101 <li><p>Fixed·a·regression·where·a·<code·class="docutils·literal·notranslate"><span·class="pre">related_query_name</span></code>·reverse·accessor·wasn’t·set102 <li><p>Fixed·a·regression·where·a·<code·class="docutils·literal·notranslate"><span·class="pre">related_query_name</span></code>·reverse·accessor·wasn’t·set
102 up·when·a·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·is·declared·on·an·abstract·base·model103 up·when·a·<code·class="docutils·literal·notranslate"><span·class="pre">GenericRelation</span></code>·is·declared·on·an·abstract·base·model
103 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29653">#29653</a>).</p></li>104 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29653">#29653</a>).</p></li>
104 <li><p>Fixed·the·test·client’s·JSON·serialization·of·a·request·data·dictionary·for105 <li><p>Fixed·the·test·client’s·JSON·serialization·of·a·request·data·dictionary·for
105 structured·content·type·suffixes·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29662">#29662</a>).</p></li>106 structured·content·type·suffixes·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29662">#29662</a>).</p></li>
106 <li><p>Made·the·admin·change·view·redirect·to·the·changelist·view·after·a·POST·if107 <li><p>Made·the·admin·change·view·redirect·to·the·changelist·view·after·a·POST·if
107 the·user·has·the·view·permission·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29663">#29663</a>).</p></li>108 the·user·has·the·view·permission·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29663">#29663</a>).</p></li>
108 <li><p>Fixed·admin·change·view·crash·for·view-only·users·if·the·form·has·an·extra109 <li><p>Fixed·admin·change·view·crash·for·view-only·users·if·the·form·has·an·extra
109 form·field·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29682">#29682</a>).</p></li>110 form·field·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29682">#29682</a>).</p></li>
110 <li><p>Fixed·a·regression·in·Django·2.0.5·where·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.values()</span></code>·or111 <li><p>Fixed·a·regression·in·Django·2.0.5·where·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.values()</span></code>·or
111 <code·class="docutils·literal·notranslate"><span·class="pre">values_list()</span></code>·after·combining·querysets·with·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code>·with112 <code·class="docutils·literal·notranslate"><span·class="pre">values_list()</span></code>·after·combining·querysets·with·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code>·with
112 <code·class="docutils·literal·notranslate"><span·class="pre">union()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">difference()</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">intersection()</span></code>·crashed·due·to113 <code·class="docutils·literal·notranslate"><span·class="pre">union()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">difference()</span></code>,·or·<code·class="docutils·literal·notranslate"><span·class="pre">intersection()</span></code>·crashed·due·to
113 mismatching·columns·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29694">#29694</a>).</p></li>114 mismatching·columns·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29694">#29694</a>).</p></li>
114 <li><p>Fixed·crash·if·<code·class="docutils·literal·notranslate"><span·class="pre">InlineModelAdmin.has_add_permission()</span></code>·doesn’t·accept·the115 <li><p>Fixed·crash·if·<code·class="docutils·literal·notranslate"><span·class="pre">InlineModelAdmin.has_add_permission()</span></code>·doesn’t·accept·the
Offset 134, 37 lines modifiedOffset 135, 37 lines modified
134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>135 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
135 </ul>136 </ul>
136 </li>137 </li>
137 </ul>138 </ul>
  
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Previous·topic</h4>141 ····<h4>Argomento·precedente</h4>
141 ····<p·class="topless"><a·href="2.1.2.html"142 ····<p·class="topless"><a·href="2.1.2.html"
142 ··························title="previous·chapter">Django·2.1.2·release·notes</a></p>143 ··························title="capitolo·precedente">Django·2.1.2·release·notes</a></p>
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Next·topic</h4>146 ····<h4>Argomento·successivo</h4>
146 ····<p·class="topless"><a·href="2.1.html"147 ····<p·class="topless"><a·href="2.1.html"
147 ··························title="next·chapter">Django·2.1·release·notes</a></p>148 ··························title="capitolo·successivo">Django·2.1·release·notes</a></p>
148 ··</div>149 ··</div>
149 <search·id="searchbox"·style="display:·none"·role="search">150 <search·id="searchbox"·style="display:·none"·role="search">
150 ··<h3·id="searchlabel">Quick·search</h3>151 ··<h3·id="searchlabel">Ricerca·veloce</h3>
151 ····<div·class="searchformwrapper">152 ····<div·class="searchformwrapper">
152 ····<form·class="search"·action="../search.html"·method="get">153 ····<form·class="search"·action="../search.html"·method="get">
153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
154 ······<input·type="submit"·value="Go"·/>155 ······<input·type="submit"·value="Vai"·/>
155 ····</form>156 ····</form>
156 ····</div>157 ····</div>
157 </search>158 </search>
158 <script>document.getElementById('searchbox').style.display·=·"block"</script>159 <script>document.getElementById('searchbox').style.display·=·"block"</script>
159 ········</div>160 ········</div>
160 ······</div>161 ······</div>
161 ··············<h3>Last·update:</h3>162 ··············<h3>Last·update:</h3>
162 ··············<p·class="topless">Sep·03,·2024</p>163 ··············<p·class="topless">set·03,·2024</p>
163 ··········</div>164 ··········</div>
164 ········165 ········
165 ······166 ······
166 ····</div>167 ····</div>
  
167 ····<div·id="ft">168 ····<div·id="ft">
168 ······<div·class="nav">169 ······<div·class="nav">
3.75 KB
html2text {}
Max HTML report size reached
6.29 KB
./usr/share/doc/python-django-doc/html/releases/2.1.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.9·release·notes"·href="2.1.9.html"·/>15 ····<link·rel="next"·title="Django·2.1.9·release·notes"·href="2.1.9.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.11·release·notes"·href="2.1.11.html"·/>16 ····<link·rel="prev"·title="Django·2.1.11·release·notes"·href="2.1.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#cve-2019-12781-incorrect-http-detection-with-reverse-proxy-connecting-via-https">CVE-2019-12781:·Incorrect·HTTP·detection·with·reverse-proxy·connecting·via·HTTPS</a></li>118 <li><a·class="reference·internal"·href="#cve-2019-12781-incorrect-http-detection-with-reverse-proxy-connecting-via-https">CVE-2019-12781:·Incorrect·HTTP·detection·with·reverse-proxy·connecting·via·HTTPS</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="2.1.11.html"125 ····<p·class="topless"><a·href="2.1.11.html"
125 ··························title="previous·chapter">Django·2.1.11·release·notes</a></p>126 ··························title="capitolo·precedente">Django·2.1.11·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="2.1.9.html"130 ····<p·class="topless"><a·href="2.1.9.html"
130 ··························title="next·chapter">Django·2.1.9·release·notes</a></p>131 ··························title="capitolo·successivo">Django·2.1.9·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.4 KB
html2text {}
Max HTML report size reached
6.73 KB
./usr/share/doc/python-django-doc/html/releases/2.1.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.10·release·notes"·href="2.1.10.html"·/>15 ····<link·rel="next"·title="Django·2.1.10·release·notes"·href="2.1.10.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.12·release·notes"·href="2.1.12.html"·/>16 ····<link·rel="prev"·title="Django·2.1.12·release·notes"·href="2.1.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 144, 37 lines modifiedOffset 145, 37 lines modified
144 <li><a·class="reference·internal"·href="#cve-2019-14235-potential-memory-exhaustion-in-django-utils-encoding-uri-to-iri">CVE-2019-14235:·Potential·memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>145 <li><a·class="reference·internal"·href="#cve-2019-14235-potential-memory-exhaustion-in-django-utils-encoding-uri-to-iri">CVE-2019-14235:·Potential·memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 </ul>148 </ul>
  
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Previous·topic</h4>151 ····<h4>Argomento·precedente</h4>
151 ····<p·class="topless"><a·href="2.1.12.html"152 ····<p·class="topless"><a·href="2.1.12.html"
152 ··························title="previous·chapter">Django·2.1.12·release·notes</a></p>153 ··························title="capitolo·precedente">Django·2.1.12·release·notes</a></p>
153 ··</div>154 ··</div>
154 ··<div>155 ··<div>
155 ····<h4>Next·topic</h4>156 ····<h4>Argomento·successivo</h4>
156 ····<p·class="topless"><a·href="2.1.10.html"157 ····<p·class="topless"><a·href="2.1.10.html"
157 ··························title="next·chapter">Django·2.1.10·release·notes</a></p>158 ··························title="capitolo·successivo">Django·2.1.10·release·notes</a></p>
158 ··</div>159 ··</div>
159 <search·id="searchbox"·style="display:·none"·role="search">160 <search·id="searchbox"·style="display:·none"·role="search">
160 ··<h3·id="searchlabel">Quick·search</h3>161 ··<h3·id="searchlabel">Ricerca·veloce</h3>
161 ····<div·class="searchformwrapper">162 ····<div·class="searchformwrapper">
162 ····<form·class="search"·action="../search.html"·method="get">163 ····<form·class="search"·action="../search.html"·method="get">
163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
164 ······<input·type="submit"·value="Go"·/>165 ······<input·type="submit"·value="Vai"·/>
165 ····</form>166 ····</form>
166 ····</div>167 ····</div>
167 </search>168 </search>
168 <script>document.getElementById('searchbox').style.display·=·"block"</script>169 <script>document.getElementById('searchbox').style.display·=·"block"</script>
169 ········</div>170 ········</div>
170 ······</div>171 ······</div>
171 ··············<h3>Last·update:</h3>172 ··············<h3>Last·update:</h3>
172 ··············<p·class="topless">Sep·03,·2024</p>173 ··············<p·class="topless">set·03,·2024</p>
173 ··········</div>174 ··········</div>
174 ········175 ········
175 ······176 ······
176 ····</div>177 ····</div>
  
177 ····<div·id="ft">178 ····<div·id="ft">
178 ······<div·class="nav">179 ······<div·class="nav">
2.76 KB
html2text {}
Max HTML report size reached
5.74 KB
./usr/share/doc/python-django-doc/html/releases/2.1.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.11·release·notes"·href="2.1.11.html"·/>15 ····<link·rel="next"·title="Django·2.1.11·release·notes"·href="2.1.11.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.13·release·notes"·href="2.1.13.html"·/>16 ····<link·rel="prev"·title="Django·2.1.13·release·notes"·href="2.1.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="2.1.13.html"117 ····<p·class="topless"><a·href="2.1.13.html"
117 ··························title="previous·chapter">Django·2.1.13·release·notes</a></p>118 ··························title="capitolo·precedente">Django·2.1.13·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="2.1.11.html"122 ····<p·class="topless"><a·href="2.1.11.html"
122 ··························title="next·chapter">Django·2.1.11·release·notes</a></p>123 ··························title="capitolo·successivo">Django·2.1.11·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
1.98 KB
html2text {}
Max HTML report size reached
5.74 KB
./usr/share/doc/python-django-doc/html/releases/2.1.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.12·release·notes"·href="2.1.12.html"·/>15 ····<link·rel="next"·title="Django·2.1.12·release·notes"·href="2.1.12.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.14·release·notes"·href="2.1.14.html"·/>16 ····<link·rel="prev"·title="Django·2.1.14·release·notes"·href="2.1.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="2.1.14.html"116 ····<p·class="topless"><a·href="2.1.14.html"
116 ··························title="previous·chapter">Django·2.1.14·release·notes</a></p>117 ··························title="capitolo·precedente">Django·2.1.14·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="2.1.12.html"121 ····<p·class="topless"><a·href="2.1.12.html"
121 ··························title="next·chapter">Django·2.1.12·release·notes</a></p>122 ··························title="capitolo·successivo">Django·2.1.12·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.99 KB
html2text {}
Max HTML report size reached
5.79 KB
./usr/share/doc/python-django-doc/html/releases/2.1.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.13·release·notes"·href="2.1.13.html"·/>15 ····<link·rel="next"·title="Django·2.1.13·release·notes"·href="2.1.13.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.15·release·notes"·href="2.1.15.html"·/>16 ····<link·rel="prev"·title="Django·2.1.15·release·notes"·href="2.1.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="2.1.15.html"117 ····<p·class="topless"><a·href="2.1.15.html"
117 ··························title="previous·chapter">Django·2.1.15·release·notes</a></p>118 ··························title="capitolo·precedente">Django·2.1.15·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="2.1.13.html"122 ····<p·class="topless"><a·href="2.1.13.html"
122 ··························title="next·chapter">Django·2.1.13·release·notes</a></p>123 ··························title="capitolo·successivo">Django·2.1.13·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.03 KB
html2text {}
Max HTML report size reached
8.58 KB
./usr/share/doc/python-django-doc/html/releases/2.1.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.14·release·notes"·href="2.1.14.html"·/>15 ····<link·rel="next"·title="Django·2.1.14·release·notes"·href="2.1.14.html"·/>
15 ····<link·rel="prev"·title="Django·2.2·release·notes"·href="2.2.html"·/>16 ····<link·rel="prev"·title="Django·2.2·release·notes"·href="2.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 89, 15 lines modifiedOffset 90, 15 lines modified
89 parent·model·but·editable·forms·for·the·inline.</p>90 parent·model·but·editable·forms·for·the·inline.</p>
90 <p>Submitting·these·forms·would·not·allow·direct·edits·to·the·parent·model,·but91 <p>Submitting·these·forms·would·not·allow·direct·edits·to·the·parent·model,·but
91 would·trigger·the·parent·model’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method,·and·cause·pre·and·post-save92 would·trigger·the·parent·model’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method,·and·cause·pre·and·post-save
92 signal·handlers·to·be·invoked.·This·is·a·privilege·escalation·as·a·user·who93 signal·handlers·to·be·invoked.·This·is·a·privilege·escalation·as·a·user·who
93 lacks·permission·to·edit·a·model·should·not·be·able·to·trigger·its·save-related94 lacks·permission·to·edit·a·model·should·not·be·able·to·trigger·its·save-related
94 signals.</p>95 signals.</p>
95 <p>To·resolve·this·issue,·the·permission·handling·code·of·the·Django·admin96 <p>To·resolve·this·issue,·the·permission·handling·code·of·the·Django·admin
96 interface·has·been·changed.·Now,·if·a·user·has·only·the·view·permission·for·a97 interface·has·been·changed.·Now,·if·a·user·has·only·the·«view»·permission·for·a
97 parent·model,·the·entire·displayed·form·will·not·be·editable,·even·if·the·user98 parent·model,·the·entire·displayed·form·will·not·be·editable,·even·if·the·user
98 has·permission·to·edit·models·included·in·inlines.</p>99 has·permission·to·edit·models·included·in·inlines.</p>
99 <p>This·is·a·backwards-incompatible·change,·and·the·Django·security·team·is·aware100 <p>This·is·a·backwards-incompatible·change,·and·the·Django·security·team·is·aware
100 that·some·users·of·Django·were·depending·on·the·ability·to·allow·editing·of101 that·some·users·of·Django·were·depending·on·the·ability·to·allow·editing·of
101 inlines·in·the·admin·form·of·an·otherwise·view-only·parent·model.</p>102 inlines·in·the·admin·form·of·an·otherwise·view-only·parent·model.</p>
102 <p>Given·the·complexity·of·the·Django·admin,·and·in-particular·the·permissions103 <p>Given·the·complexity·of·the·Django·admin,·and·in-particular·the·permissions
103 related·checks,·it·is·the·view·of·the·Django·security·team·that·this·change·was104 related·checks,·it·is·the·view·of·the·Django·security·team·that·this·change·was
Offset 141, 37 lines modifiedOffset 142, 37 lines modified
141 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
142 </ul>143 </ul>
143 </li>144 </li>
144 </ul>145 </ul>
  
145 ··</div>146 ··</div>
146 ··<div>147 ··<div>
147 ····<h4>Previous·topic</h4>148 ····<h4>Argomento·precedente</h4>
148 ····<p·class="topless"><a·href="2.2.html"149 ····<p·class="topless"><a·href="2.2.html"
149 ··························title="previous·chapter">Django·2.2·release·notes</a></p>150 ··························title="capitolo·precedente">Django·2.2·release·notes</a></p>
150 ··</div>151 ··</div>
151 ··<div>152 ··<div>
152 ····<h4>Next·topic</h4>153 ····<h4>Argomento·successivo</h4>
153 ····<p·class="topless"><a·href="2.1.14.html"154 ····<p·class="topless"><a·href="2.1.14.html"
154 ··························title="next·chapter">Django·2.1.14·release·notes</a></p>155 ··························title="capitolo·successivo">Django·2.1.14·release·notes</a></p>
155 ··</div>156 ··</div>
156 <search·id="searchbox"·style="display:·none"·role="search">157 <search·id="searchbox"·style="display:·none"·role="search">
157 ··<h3·id="searchlabel">Quick·search</h3>158 ··<h3·id="searchlabel">Ricerca·veloce</h3>
158 ····<div·class="searchformwrapper">159 ····<div·class="searchformwrapper">
159 ····<form·class="search"·action="../search.html"·method="get">160 ····<form·class="search"·action="../search.html"·method="get">
160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
161 ······<input·type="submit"·value="Go"·/>162 ······<input·type="submit"·value="Vai"·/>
162 ····</form>163 ····</form>
163 ····</div>164 ····</div>
164 </search>165 </search>
165 <script>document.getElementById('searchbox').style.display·=·"block"</script>166 <script>document.getElementById('searchbox').style.display·=·"block"</script>
166 ········</div>167 ········</div>
167 ······</div>168 ······</div>
168 ··············<h3>Last·update:</h3>169 ··············<h3>Last·update:</h3>
169 ··············<p·class="topless">Sep·03,·2024</p>170 ··············<p·class="topless">set·03,·2024</p>
170 ··········</div>171 ··········</div>
171 ········172 ········
172 ······173 ······
173 ····</div>174 ····</div>
  
174 ····<div·id="ft">175 ····<div·id="ft">
175 ······<div·class="nav">176 ······<div·class="nav">
3.63 KB
html2text {}
Max HTML report size reached
9.32 KB
./usr/share/doc/python-django-doc/html/releases/2.1.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.1·release·notes"·href="2.1.1.html"·/>15 ····<link·rel="next"·title="Django·2.1.1·release·notes"·href="2.1.1.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.3·release·notes"·href="2.1.3.html"·/>16 ····<link·rel="prev"·title="Django·2.1.3·release·notes"·href="2.1.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-django-2-1-2-release-notes">81 ··<section·id="s-django-2-1-2-release-notes">
81 <span·id="django-2-1-2-release-notes"></span><h1>Django·2.1.2·release·notes<a·class="headerlink"·href="#django-2-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-1-2-release-notes"></span><h1>Django·2.1.2·release·notes<a·class="headerlink"·href="#django-2-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·1,·2018</em></p>83 <p><em>October·1,·2018</em></p>
83 <p>Django·2.1.2·fixes·a·security·issue·and·several·bugs·in·2.1.1.·Also,·the·latest84 <p>Django·2.1.2·fixes·a·security·issue·and·several·bugs·in·2.1.1.·Also,·the·latest
84 string·translations·from·Transifex·are·incorporated.</p>85 string·translations·from·Transifex·are·incorporated.</p>
85 <section·id="s-cve-2018-16984-password-hash-disclosure-to-view-only-admin-users">86 <section·id="s-cve-2018-16984-password-hash-disclosure-to-view-only-admin-users">
86 <span·id="cve-2018-16984-password-hash-disclosure-to-view-only-admin-users"></span><h2>CVE-2018-16984:·Password·hash·disclosure·to·view·only·admin·users<a·class="headerlink"·href="#cve-2018-16984-password-hash-disclosure-to-view-only-admin-users"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2018-16984-password-hash-disclosure-to-view-only-admin-users"></span><h2>CVE-2018-16984:·Password·hash·disclosure·to·«view·only»·admin·users<a·class="headerlink"·href="#cve-2018-16984-password-hash-disclosure-to-view-only-admin-users"·title="Link·to·this·heading">¶</a></h2>
87 <p>If·an·admin·user·has·the·change·permission·to·the·user·model,·only·part·of·the88 <p>If·an·admin·user·has·the·change·permission·to·the·user·model,·only·part·of·the
88 password·hash·is·displayed·in·the·change·form.·Admin·users·with·the·view·(but89 password·hash·is·displayed·in·the·change·form.·Admin·users·with·the·view·(but
89 not·change)·permission·to·the·user·model·were·displayed·the·entire·hash.·While90 not·change)·permission·to·the·user·model·were·displayed·the·entire·hash.·While
90 it’s·typically·infeasible·to·reverse·a·strong·password·hash,·if·your·site·uses91 it’s·typically·infeasible·to·reverse·a·strong·password·hash,·if·your·site·uses
91 weaker·password·hashing·algorithms·such·as·MD5·or·SHA1,·it·could·be·a·problem.</p>92 weaker·password·hashing·algorithms·such·as·MD5·or·SHA1,·it·could·be·a·problem.</p>
92 </section>93 </section>
93 <section·id="s-bugfixes">94 <section·id="s-bugfixes">
Offset 120, 45 lines modifiedOffset 121, 45 lines modified
120 ············121 ············
121 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">122 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
122 ········<div·class="sphinxsidebarwrapper">123 ········<div·class="sphinxsidebarwrapper">
123 ··<div>124 ··<div>
124 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>125 ····<h3><a·href="../contents.html">Table·of·Contents</a></h3>
125 ····<ul>126 ····<ul>
126 <li><a·class="reference·internal"·href="#">Django·2.1.2·release·notes</a><ul>127 <li><a·class="reference·internal"·href="#">Django·2.1.2·release·notes</a><ul>
127 <li><a·class="reference·internal"·href="#cve-2018-16984-password-hash-disclosure-to-view-only-admin-users">CVE-2018-16984:·Password·hash·disclosure·to·view·only·admin·users</a></li>128 <li><a·class="reference·internal"·href="#cve-2018-16984-password-hash-disclosure-to-view-only-admin-users">CVE-2018-16984:·Password·hash·disclosure·to·«view·only»·admin·users</a></li>
128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
129 </ul>130 </ul>
130 </li>131 </li>
131 </ul>132 </ul>
  
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Previous·topic</h4>135 ····<h4>Argomento·precedente</h4>
135 ····<p·class="topless"><a·href="2.1.3.html"136 ····<p·class="topless"><a·href="2.1.3.html"
136 ··························title="previous·chapter">Django·2.1.3·release·notes</a></p>137 ··························title="capitolo·precedente">Django·2.1.3·release·notes</a></p>
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Next·topic</h4>140 ····<h4>Argomento·successivo</h4>
140 ····<p·class="topless"><a·href="2.1.1.html"141 ····<p·class="topless"><a·href="2.1.1.html"
141 ··························title="next·chapter">Django·2.1.1·release·notes</a></p>142 ··························title="capitolo·successivo">Django·2.1.1·release·notes</a></p>
142 ··</div>143 ··</div>
143 <search·id="searchbox"·style="display:·none"·role="search">144 <search·id="searchbox"·style="display:·none"·role="search">
144 ··<h3·id="searchlabel">Quick·search</h3>145 ··<h3·id="searchlabel">Ricerca·veloce</h3>
145 ····<div·class="searchformwrapper">146 ····<div·class="searchformwrapper">
146 ····<form·class="search"·action="../search.html"·method="get">147 ····<form·class="search"·action="../search.html"·method="get">
147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
148 ······<input·type="submit"·value="Go"·/>149 ······<input·type="submit"·value="Vai"·/>
149 ····</form>150 ····</form>
150 ····</div>151 ····</div>
151 </search>152 </search>
152 <script>document.getElementById('searchbox').style.display·=·"block"</script>153 <script>document.getElementById('searchbox').style.display·=·"block"</script>
153 ········</div>154 ········</div>
154 ······</div>155 ······</div>
155 ··············<h3>Last·update:</h3>156 ··············<h3>Last·update:</h3>
156 ··············<p·class="topless">Sep·03,·2024</p>157 ··············<p·class="topless">set·03,·2024</p>
157 ··········</div>158 ··········</div>
158 ········159 ········
159 ······160 ······
160 ····</div>161 ····</div>
  
161 ····<div·id="ft">162 ····<div·id="ft">
162 ······<div·class="nav">163 ······<div·class="nav">
3.43 KB
html2text {}
Max HTML report size reached
5.85 KB
./usr/share/doc/python-django-doc/html/releases/2.1.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.2·release·notes"·href="2.1.2.html"·/>15 ····<link·rel="next"·title="Django·2.1.2·release·notes"·href="2.1.2.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.4·release·notes"·href="2.1.4.html"·/>16 ····<link·rel="prev"·title="Django·2.1.4·release·notes"·href="2.1.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="2.1.4.html"124 ····<p·class="topless"><a·href="2.1.4.html"
124 ··························title="previous·chapter">Django·2.1.4·release·notes</a></p>125 ··························title="capitolo·precedente">Django·2.1.4·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="2.1.2.html"129 ····<p·class="topless"><a·href="2.1.2.html"
129 ··························title="next·chapter">Django·2.1.2·release·notes</a></p>130 ··························title="capitolo·successivo">Django·2.1.2·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.11 KB
html2text {}
Max HTML report size reached
7.92 KB
./usr/share/doc/python-django-doc/html/releases/2.1.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.3·release·notes"·href="2.1.3.html"·/>15 ····<link·rel="next"·title="Django·2.1.3·release·notes"·href="2.1.3.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.5·release·notes"·href="2.1.5.html"·/>16 ····<link·rel="prev"·title="Django·2.1.5·release·notes"·href="2.1.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 90, 16 lines modifiedOffset 91, 16 lines modified
90 <li><p>Prevented·repetitive·calls·to·<code·class="docutils·literal·notranslate"><span·class="pre">geos_version_tuple()</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">WKBWriter</span></code>91 <li><p>Prevented·repetitive·calls·to·<code·class="docutils·literal·notranslate"><span·class="pre">geos_version_tuple()</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">WKBWriter</span></code>
91 class·in·an·attempt·to·fix·a·random·crash·involving·<code·class="docutils·literal·notranslate"><span·class="pre">LooseVersion</span></code>92 class·in·an·attempt·to·fix·a·random·crash·involving·<code·class="docutils·literal·notranslate"><span·class="pre">LooseVersion</span></code>
92 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29959">#29959</a>).</p></li>93 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29959">#29959</a>).</p></li>
93 <li><p>Fixed·keep-alive·support·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·after·it·was·disabled·to·fix94 <li><p>Fixed·keep-alive·support·in·<code·class="docutils·literal·notranslate"><span·class="pre">runserver</span></code>·after·it·was·disabled·to·fix
94 another·issue·in·Django·2.0·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29849">#29849</a>).</p></li>95 another·issue·in·Django·2.0·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29849">#29849</a>).</p></li>
95 <li><p>Fixed·admin·view-only·change·form·crash·when·using96 <li><p>Fixed·admin·view-only·change·form·crash·when·using
96 <code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin.prepopulated_fields</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29929">#29929</a>).</p></li>97 <code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin.prepopulated_fields</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29929">#29929</a>).</p></li>
97 <li><p>Fixed·Please·correct·the·errors·below·error·message·when·editing·an·object98 <li><p>Fixed·«Please·correct·the·errors·below»·error·message·when·editing·an·object
98 in·the·admin·if·the·user·only·has·the·view·permission·on·inlines99 in·the·admin·if·the·user·only·has·the·«view»·permission·on·inlines
99 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29930">#29930</a>).</p></li>100 (<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/29930">#29930</a>).</p></li>
100 </ul>101 </ul>
101 </section>102 </section>
102 </section>103 </section>
  
  
103 ··········</div>104 ··········</div>
Offset 118, 37 lines modifiedOffset 119, 37 lines modified
118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
119 </ul>120 </ul>
120 </li>121 </li>
121 </ul>122 </ul>
  
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="2.1.5.html"126 ····<p·class="topless"><a·href="2.1.5.html"
126 ··························title="previous·chapter">Django·2.1.5·release·notes</a></p>127 ··························title="capitolo·precedente">Django·2.1.5·release·notes</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="2.1.3.html"131 ····<p·class="topless"><a·href="2.1.3.html"
131 ··························title="next·chapter">Django·2.1.3·release·notes</a></p>132 ··························title="capitolo·successivo">Django·2.1.3·release·notes</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../search.html"·method="get">137 ····<form·class="search"·action="../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.64 KB
html2text {}
Max HTML report size reached
6.06 KB
./usr/share/doc/python-django-doc/html/releases/2.1.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.4·release·notes"·href="2.1.4.html"·/>15 ····<link·rel="next"·title="Django·2.1.4·release·notes"·href="2.1.4.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.6·release·notes"·href="2.1.6.html"·/>16 ····<link·rel="prev"·title="Django·2.1.6·release·notes"·href="2.1.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 129, 37 lines modifiedOffset 130, 37 lines modified
129 </li>130 </li>
130 </ul>131 </ul>
131 </li>132 </li>
132 </ul>133 </ul>
  
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Previous·topic</h4>136 ····<h4>Argomento·precedente</h4>
136 ····<p·class="topless"><a·href="2.1.6.html"137 ····<p·class="topless"><a·href="2.1.6.html"
137 ··························title="previous·chapter">Django·2.1.6·release·notes</a></p>138 ··························title="capitolo·precedente">Django·2.1.6·release·notes</a></p>
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Next·topic</h4>141 ····<h4>Argomento·successivo</h4>
141 ····<p·class="topless"><a·href="2.1.4.html"142 ····<p·class="topless"><a·href="2.1.4.html"
142 ··························title="next·chapter">Django·2.1.4·release·notes</a></p>143 ··························title="capitolo·successivo">Django·2.1.4·release·notes</a></p>
143 ··</div>144 ··</div>
144 <search·id="searchbox"·style="display:·none"·role="search">145 <search·id="searchbox"·style="display:·none"·role="search">
145 ··<h3·id="searchlabel">Quick·search</h3>146 ··<h3·id="searchlabel">Ricerca·veloce</h3>
146 ····<div·class="searchformwrapper">147 ····<div·class="searchformwrapper">
147 ····<form·class="search"·action="../search.html"·method="get">148 ····<form·class="search"·action="../search.html"·method="get">
148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
149 ······<input·type="submit"·value="Go"·/>150 ······<input·type="submit"·value="Vai"·/>
150 ····</form>151 ····</form>
151 ····</div>152 ····</div>
152 </search>153 </search>
153 <script>document.getElementById('searchbox').style.display·=·"block"</script>154 <script>document.getElementById('searchbox').style.display·=·"block"</script>
154 ········</div>155 ········</div>
155 ······</div>156 ······</div>
156 ··············<h3>Last·update:</h3>157 ··············<h3>Last·update:</h3>
157 ··············<p·class="topless">Sep·03,·2024</p>158 ··············<p·class="topless">set·03,·2024</p>
158 ··········</div>159 ··········</div>
159 ········160 ········
160 ······161 ······
161 ····</div>162 ····</div>
  
162 ····<div·id="ft">163 ····<div·id="ft">
163 ······<div·class="nav">164 ······<div·class="nav">
2.38 KB
html2text {}
Max HTML report size reached
6.01 KB
./usr/share/doc/python-django-doc/html/releases/2.1.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.5·release·notes"·href="2.1.5.html"·/>15 ····<link·rel="next"·title="Django·2.1.5·release·notes"·href="2.1.5.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.7·release·notes"·href="2.1.7.html"·/>16 ····<link·rel="prev"·title="Django·2.1.7·release·notes"·href="2.1.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 </li>121 </li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="2.1.7.html"128 ····<p·class="topless"><a·href="2.1.7.html"
128 ··························title="previous·chapter">Django·2.1.7·release·notes</a></p>129 ··························title="capitolo·precedente">Django·2.1.7·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="2.1.5.html"133 ····<p·class="topless"><a·href="2.1.5.html"
133 ··························title="next·chapter">Django·2.1.5·release·notes</a></p>134 ··························title="capitolo·successivo">Django·2.1.5·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.33 KB
html2text {}
Max HTML report size reached
5.59 KB
./usr/share/doc/python-django-doc/html/releases/2.1.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.6·release·notes"·href="2.1.6.html"·/>15 ····<link·rel="next"·title="Django·2.1.6·release·notes"·href="2.1.6.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.8·release·notes"·href="2.1.8.html"·/>16 ····<link·rel="prev"·title="Django·2.1.8·release·notes"·href="2.1.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="2.1.8.html"114 ····<p·class="topless"><a·href="2.1.8.html"
114 ··························title="previous·chapter">Django·2.1.8·release·notes</a></p>115 ··························title="capitolo·precedente">Django·2.1.8·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="2.1.6.html"119 ····<p·class="topless"><a·href="2.1.6.html"
119 ··························title="next·chapter">Django·2.1.6·release·notes</a></p>120 ··························title="capitolo·successivo">Django·2.1.6·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
1.85 KB
html2text {}
Max HTML report size reached
5.67 KB
./usr/share/doc/python-django-doc/html/releases/2.1.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.7·release·notes"·href="2.1.7.html"·/>15 ····<link·rel="next"·title="Django·2.1.7·release·notes"·href="2.1.7.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.9·release·notes"·href="2.1.9.html"·/>16 ····<link·rel="prev"·title="Django·2.1.9·release·notes"·href="2.1.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="2.1.9.html"116 ····<p·class="topless"><a·href="2.1.9.html"
116 ··························title="previous·chapter">Django·2.1.9·release·notes</a></p>117 ··························title="capitolo·precedente">Django·2.1.9·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="2.1.7.html"121 ····<p·class="topless"><a·href="2.1.7.html"
121 ··························title="next·chapter">Django·2.1.7·release·notes</a></p>122 ··························title="capitolo·successivo">Django·2.1.7·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.92 KB
html2text {}
Max HTML report size reached
8.67 KB
./usr/share/doc/python-django-doc/html/releases/2.1.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.8·release·notes"·href="2.1.8.html"·/>15 ····<link·rel="next"·title="Django·2.1.8·release·notes"·href="2.1.8.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.10·release·notes"·href="2.1.10.html"·/>16 ····<link·rel="prev"·title="Django·2.1.10·release·notes"·href="2.1.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-django-2-1-9-release-notes">81 ··<section·id="s-django-2-1-9-release-notes">
81 <span·id="django-2-1-9-release-notes"></span><h1>Django·2.1.9·release·notes<a·class="headerlink"·href="#django-2-1-9-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-1-9-release-notes"></span><h1>Django·2.1.9·release·notes<a·class="headerlink"·href="#django-2-1-9-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>June·3,·2019</em></p>83 <p><em>June·3,·2019</em></p>
83 <p>Django·2.1.9·fixes·security·issues·in·2.1.8.</p>84 <p>Django·2.1.9·fixes·security·issues·in·2.1.8.</p>
84 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">85 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">
85 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·clickable·Current·URL·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed87 <p>The·clickable·«Current·URL»·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed
87 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated88 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated
88 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter89 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter
89 payload,·could·result·in·an·clickable·JavaScript·link.</p>90 payload,·could·result·in·an·clickable·JavaScript·link.</p>
90 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using91 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using
91 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable92 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable
92 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to93 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to
93 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using94 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#patched-bundled-jquery-for-cve-2019-11358-prototype-pollution">Patched·bundled·jQuery·for·CVE-2019-11358:·Prototype·pollution</a></li>123 <li><a·class="reference·internal"·href="#patched-bundled-jquery-for-cve-2019-11358-prototype-pollution">Patched·bundled·jQuery·for·CVE-2019-11358:·Prototype·pollution</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="2.1.10.html"130 ····<p·class="topless"><a·href="2.1.10.html"
130 ··························title="previous·chapter">Django·2.1.10·release·notes</a></p>131 ··························title="capitolo·precedente">Django·2.1.10·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="2.1.8.html"135 ····<p·class="topless"><a·href="2.1.8.html"
135 ··························title="next·chapter">Django·2.1.8·release·notes</a></p>136 ··························title="capitolo·successivo">Django·2.1.8·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
3.03 KB
html2text {}
Max HTML report size reached
35.1 KB
./usr/share/doc/python-django-doc/html/releases/2.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.0.13·release·notes"·href="2.0.13.html"·/>15 ····<link·rel="next"·title="Django·2.0.13·release·notes"·href="2.0.13.html"·/>
15 ····<link·rel="prev"·title="Django·2.1.1·release·notes"·href="2.1.1.html"·/>16 ····<link·rel="prev"·title="Django·2.1.1·release·notes"·href="2.1.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 41 lines modifiedOffset 95, 41 lines modified
94 <p>Django·2.1·supports·Python·3.5,·3.6,·and·3.7.·Django·2.0·is·the·last·version·to95 <p>Django·2.1·supports·Python·3.5,·3.6,·and·3.7.·Django·2.0·is·the·last·version·to
95 support·Python·3.4.··We·<strong>highly·recommend</strong>·and·only·officially·support·the96 support·Python·3.4.··We·<strong>highly·recommend</strong>·and·only·officially·support·the
96 latest·release·of·each·series.</p>97 latest·release·of·each·series.</p>
97 </section>98 </section>
98 <section·id="s-what-s-new-in-django-2-1">99 <section·id="s-what-s-new-in-django-2-1">
99 <span·id="s-whats-new-2-1"></span><span·id="what-s-new-in-django-2-1"></span><span·id="whats-new-2-1"></span><h2>What’s·new·in·Django·2.1<a·class="headerlink"·href="#what-s-new-in-django-2-1"·title="Link·to·this·heading">¶</a></h2>100 <span·id="s-whats-new-2-1"></span><span·id="what-s-new-in-django-2-1"></span><span·id="whats-new-2-1"></span><h2>What’s·new·in·Django·2.1<a·class="headerlink"·href="#what-s-new-in-django-2-1"·title="Link·to·this·heading">¶</a></h2>
100 <section·id="s-model-view-permission">101 <section·id="s-model-view-permission">
101 <span·id="model-view-permission"></span><h3>Model·view·permission<a·class="headerlink"·href="#model-view-permission"·title="Link·to·this·heading">¶</a></h3>102 <span·id="model-view-permission"></span><h3>Model·«view»·permission<a·class="headerlink"·href="#model-view-permission"·title="Link·to·this·heading">¶</a></h3>
102 <p>A·view·permission·is·added·to·the·model·<a·class="reference·internal"·href="../ref/models/options.html#django.db.models.Options.default_permissions"·title="django.db.models.Options.default_permissions"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.default_permissions</span></code></a>.·The·new·permissions·will·be103 <p>A·«view»·permission·is·added·to·the·model·<a·class="reference·internal"·href="../ref/models/options.html#django.db.models.Options.default_permissions"·title="django.db.models.Options.default_permissions"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.default_permissions</span></code></a>.·The·new·permissions·will·be
103 created·automatically·when·running·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-migrate"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">migrate</span></code></a>.</p>104 created·automatically·when·running·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-migrate"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">migrate</span></code></a>.</p>
104 <p>This·allows·giving·users·read-only·access·to·models·in·the·admin.105 <p>This·allows·giving·users·read-only·access·to·models·in·the·admin.
105 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.has_view_permission"·title="django.contrib.admin.ModelAdmin.has_view_permission"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.has_view_permission()</span></code></a>·is·new.·The·implementation·is·backwards106 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.has_view_permission"·title="django.contrib.admin.ModelAdmin.has_view_permission"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.has_view_permission()</span></code></a>·is·new.·The·implementation·is·backwards
106 compatible·in·that·there·isn’t·a·need·to·assign·the·view·permission·to·allow107 compatible·in·that·there·isn’t·a·need·to·assign·the·«view»·permission·to·allow
107 users·who·have·the·change·permission·to·edit·objects.</p>108 users·who·have·the·«change»·permission·to·edit·objects.</p>
108 <p>There·are·a·couple·of·<a·class="reference·internal"·href="#view-permission-backwards-incompatible"><span·class="std·std-ref">backwards·incompatible·considerations</span></a>.</p>109 <p>There·are·a·couple·of·<a·class="reference·internal"·href="#view-permission-backwards-incompatible"><span·class="std·std-ref">backwards·incompatible·considerations</span></a>.</p>
109 </section>110 </section>
110 <section·id="s-minor-features">111 <section·id="s-minor-features">
111 <span·id="minor-features"></span><h3>Minor·features<a·class="headerlink"·href="#minor-features"·title="Link·to·this·heading">¶</a></h3>112 <span·id="minor-features"></span><h3>Minor·features<a·class="headerlink"·href="#minor-features"·title="Link·to·this·heading">¶</a></h3>
112 <section·id="s-django-contrib-admin">113 <section·id="s-django-contrib-admin">
113 <span·id="django-contrib-admin"></span><h4><a·class="reference·internal"·href="../ref/contrib/admin/index.html#module-django.contrib.admin"·title="django.contrib.admin:·Django's·admin·site."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code></a><a·class="headerlink"·href="#django-contrib-admin"·title="Link·to·this·heading">¶</a></h4>114 <span·id="django-contrib-admin"></span><h4><a·class="reference·internal"·href="../ref/contrib/admin/index.html#module-django.contrib.admin"·title="django.contrib.admin:·Django's·admin·site."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.admin</span></code></a><a·class="headerlink"·href="#django-contrib-admin"·title="Link·to·this·heading">¶</a></h4>
114 <ul·class="simple">115 <ul·class="simple">
115 <li><p><a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.search_fields"·title="django.contrib.admin.ModelAdmin.search_fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.search_fields</span></code></a>·now·accepts·any·lookup·such·as116 <li><p><a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.search_fields"·title="django.contrib.admin.ModelAdmin.search_fields"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.search_fields</span></code></a>·now·accepts·any·lookup·such·as
116 <code·class="docutils·literal·notranslate"><span·class="pre">field__exact</span></code>.</p></li>117 <code·class="docutils·literal·notranslate"><span·class="pre">field__exact</span></code>.</p></li>
117 <li><p>jQuery·is·upgraded·from·version·2.2.3·to·3.3.1.</p></li>118 <li><p>jQuery·is·upgraded·from·version·2.2.3·to·3.3.1.</p></li>
118 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.delete_queryset"·title="django.contrib.admin.ModelAdmin.delete_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.delete_queryset()</span></code></a>·method·allows·customizing·the119 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.delete_queryset"·title="django.contrib.admin.ModelAdmin.delete_queryset"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.delete_queryset()</span></code></a>·method·allows·customizing·the
119 deletion·process·of·the·delete·selected·objects·action.</p></li>120 deletion·process·of·the·«delete·selected·objects»·action.</p></li>
120 <li><p>You·can·now·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#overriding-default-admin-site"><span·class="std·std-ref">override·the·default·admin·site</span></a>.</p></li>121 <li><p>You·can·now·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#overriding-default-admin-site"><span·class="std·std-ref">override·the·default·admin·site</span></a>.</p></li>
121 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.sortable_by"·title="django.contrib.admin.ModelAdmin.sortable_by"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.sortable_by</span></code></a>·attribute·and122 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.sortable_by"·title="django.contrib.admin.ModelAdmin.sortable_by"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.sortable_by</span></code></a>·attribute·and
122 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_sortable_by"·title="django.contrib.admin.ModelAdmin.get_sortable_by"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_sortable_by()</span></code></a>·method·allow·limiting·the·columns·that123 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_sortable_by"·title="django.contrib.admin.ModelAdmin.get_sortable_by"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_sortable_by()</span></code></a>·method·allow·limiting·the·columns·that
123 can·be·sorted·in·the·change·list·page.</p></li>124 can·be·sorted·in·the·change·list·page.</p></li>
124 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">admin_order_field</span></code>·attribute·for·elements·in125 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">admin_order_field</span></code>·attribute·for·elements·in
125 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display</span></code></a>·may·now·be·a·query·expression.</p></li>126 <a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_display"·title="django.contrib.admin.ModelAdmin.list_display"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">ModelAdmin.list_display</span></code></a>·may·now·be·a·query·expression.</p></li>
126 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_deleted_objects"·title="django.contrib.admin.ModelAdmin.get_deleted_objects"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_deleted_objects()</span></code></a>·method·allows·customizing127 <li><p>The·new·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_deleted_objects"·title="django.contrib.admin.ModelAdmin.get_deleted_objects"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_deleted_objects()</span></code></a>·method·allows·customizing
127 the·deletion·process·of·the·delete·view·and·the·delete·selected·action.</p></li>128 the·deletion·process·of·the·delete·view·and·the·«delete·selected»·action.</p></li>
128 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">actions.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">change_list_results.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">date_hierarchy.html</span></code>,129 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">actions.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">change_list_results.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">date_hierarchy.html</span></code>,
129 <code·class="docutils·literal·notranslate"><span·class="pre">pagination.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">prepopulated_fields_js.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">search_form.html</span></code>,130 <code·class="docutils·literal·notranslate"><span·class="pre">pagination.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">prepopulated_fields_js.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">search_form.html</span></code>,
130 and·<code·class="docutils·literal·notranslate"><span·class="pre">submit_line.html</span></code>·templates·can·now·be·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-templates-overridden-per-app-or-model"><span·class="std·std-ref">overridden·per·app·or131 and·<code·class="docutils·literal·notranslate"><span·class="pre">submit_line.html</span></code>·templates·can·now·be·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-templates-overridden-per-app-or-model"><span·class="std·std-ref">overridden·per·app·or
131 per·model</span></a>·(besides·overridden132 per·model</span></a>·(besides·overridden
132 globally).</p></li>133 globally).</p></li>
133 <li><p>The·admin·change·list·and·change·form·object·tools·can·now·be·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-templates-overridden-per-app-or-model"><span·class="std·std-ref">overridden134 <li><p>The·admin·change·list·and·change·form·object·tools·can·now·be·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#admin-templates-overridden-per-app-or-model"><span·class="std·std-ref">overridden
134 per·app,·per·model,·or·globally</span></a>135 per·app,·per·model,·or·globally</span></a>
Offset 343, 21 lines modifiedOffset 344, 21 lines modified
343 and·Django’s·CSRF·protection·now·set·the·<code·class="docutils·literal·notranslate"><span·class="pre">SameSite</span></code>·flag·to·<code·class="docutils·literal·notranslate"><span·class="pre">Lax</span></code>·by344 and·Django’s·CSRF·protection·now·set·the·<code·class="docutils·literal·notranslate"><span·class="pre">SameSite</span></code>·flag·to·<code·class="docutils·literal·notranslate"><span·class="pre">Lax</span></code>·by
344 default.·Browsers·that·respect·this·flag·won’t·send·these·cookies·on345 default.·Browsers·that·respect·this·flag·won’t·send·these·cookies·on
345 cross-origin·requests.·If·you·rely·on·the·old·behavior,·set·the346 cross-origin·requests.·If·you·rely·on·the·old·behavior,·set·the
346 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SAMESITE</span></code></a>·and/or·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SAMESITE</span></code></a>347 <a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SAMESITE</span></code></a>·and/or·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_SAMESITE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SAMESITE</span></code></a>
347 setting·to·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p>348 setting·to·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p>
348 </section>349 </section>
349 <section·id="s-considerations-for-the-new-model-view-permission">350 <section·id="s-considerations-for-the-new-model-view-permission">
350 <span·id="s-view-permission-backwards-incompatible"></span><span·id="considerations-for-the-new-model-view-permission"></span><span·id="view-permission-backwards-incompatible"></span><h3>Considerations·for·the·new·model·view·permission<a·class="headerlink"·href="#considerations-for-the-new-model-view-permission"·title="Link·to·this·heading">¶</a></h3>351 <span·id="s-view-permission-backwards-incompatible"></span><span·id="considerations-for-the-new-model-view-permission"></span><span·id="view-permission-backwards-incompatible"></span><h3>Considerations·for·the·new·model·«view»·permission<a·class="headerlink"·href="#considerations-for-the-new-model-view-permission"·title="Link·to·this·heading">¶</a></h3>
351 <section·id="s-custom-admin-forms-need-to-take-the-view-only-case-into-account">352 <section·id="s-custom-admin-forms-need-to-take-the-view-only-case-into-account">
352 <span·id="custom-admin-forms-need-to-take-the-view-only-case-into-account"></span><h4>Custom·admin·forms·need·to·take·the·view-only·case·into·account<a·class="headerlink"·href="#custom-admin-forms-need-to-take-the-view-only-case-into-account"·title="Link·to·this·heading">¶</a></h4>353 <span·id="custom-admin-forms-need-to-take-the-view-only-case-into-account"></span><h4>Custom·admin·forms·need·to·take·the·view-only·case·into·account<a·class="headerlink"·href="#custom-admin-forms-need-to-take-the-view-only-case-into-account"·title="Link·to·this·heading">¶</a></h4>
353 <p>With·the·new·view·permission,·existing·custom·admin·forms·may·raise·errors354 <p>With·the·new·«view»·permission,·existing·custom·admin·forms·may·raise·errors
354 when·a·user·doesn’t·have·the·change·permission·because·the·form·might·access355 when·a·user·doesn’t·have·the·change·permission·because·the·form·might·access
355 nonexistent·fields.·Fix·this·by·overriding·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_form"·title="django.contrib.admin.ModelAdmin.get_form"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_form()</span></code></a>·and356 nonexistent·fields.·Fix·this·by·overriding·<a·class="reference·internal"·href="../ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.get_form"·title="django.contrib.admin.ModelAdmin.get_form"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ModelAdmin.get_form()</span></code></a>·and
356 checking·if·the·user·has·the·change·permissions·and·returning·the·default357 checking·if·the·user·has·the·«change»·permissions·and·returning·the·default
357 form·if·not:</p>358 form·if·not:</p>
358 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">MyAdmin</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">ModelAdmin</span><span·class="p">):</span>359 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">MyAdmin</span><span·class="p">(</span><span·class="n">admin</span><span·class="o">.</span><span·class="n">ModelAdmin</span><span·class="p">):</span>
359 ····<span·class="k">def</span>·<span·class="nf">get_form</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>360 ····<span·class="k">def</span>·<span·class="nf">get_form</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">,</span>·<span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="o">=</span><span·class="kc">None</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
360 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">has_change_permission</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="p">):</span>361 ········<span·class="k">if</span>·<span·class="ow">not</span>·<span·class="bp">self</span><span·class="o">.</span><span·class="n">has_change_permission</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="p">):</span>
361 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_form</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>362 ············<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_form</span><span·class="p">(</span><span·class="n">request</span><span·class="p">,</span>·<span·class="n">obj</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
362 ········<span·class="k">return</span>·<span·class="n">CustomForm</span>363 ········<span·class="k">return</span>·<span·class="n">CustomForm</span>
363 </pre></div>364 </pre></div>
Offset 402, 15 lines modifiedOffset 403, 15 lines modified
402 confirm·that·your·usage·of·these·APIs·don’t·rely·on·the·old·behavior.</p></li>403 confirm·that·your·usage·of·these·APIs·don’t·rely·on·the·old·behavior.</p></li>
403 <li><p>Since·migrations·are·now·loaded·from·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files,·you·might·need·to·delete404 <li><p>Since·migrations·are·now·loaded·from·<code·class="docutils·literal·notranslate"><span·class="pre">.pyc</span></code>·files,·you·might·need·to·delete
404 them·if·you’re·working·in·a·mixed·Python·2·and·Python·3·environment.</p></li>405 them·if·you’re·working·in·a·mixed·Python·2·and·Python·3·environment.</p></li>
405 <li><p>Using·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.fields.JSONField</span></code>·lookup406 <li><p>Using·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.postgres.fields.JSONField</span></code>·lookup
406 value·now·matches·objects·that·have·the·specified·key·and·a·null·value·rather407 value·now·matches·objects·that·have·the·specified·key·and·a·null·value·rather
407 than·objects·that·don’t·have·the·key.</p></li>408 than·objects·that·don’t·have·the·key.</p></li>
408 <li><p>The·admin·CSS·class·<code·class="docutils·literal·notranslate"><span·class="pre">field-box</span></code>·is·renamed·to·<code·class="docutils·literal·notranslate"><span·class="pre">fieldBox</span></code>·to·prevent409 <li><p>The·admin·CSS·class·<code·class="docutils·literal·notranslate"><span·class="pre">field-box</span></code>·is·renamed·to·<code·class="docutils·literal·notranslate"><span·class="pre">fieldBox</span></code>·to·prevent
409 conflicts·with·the·class·given·to·model·fields·named·box.</p></li>410 conflicts·with·the·class·given·to·model·fields·named·«box».</p></li>
410 <li><p>Since·the·admin’s·<code·class="docutils·literal·notranslate"><span·class="pre">actions.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">change_list_results.html</span></code>,411 <li><p>Since·the·admin’s·<code·class="docutils·literal·notranslate"><span·class="pre">actions.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">change_list_results.html</span></code>,
411 <code·class="docutils·literal·notranslate"><span·class="pre">date_hierarchy.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">pagination.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">prepopulated_fields_js.html</span></code>,412 <code·class="docutils·literal·notranslate"><span·class="pre">date_hierarchy.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">pagination.html</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">prepopulated_fields_js.html</span></code>,
412 <code·class="docutils·literal·notranslate"><span·class="pre">search_form.html</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">submit_line.html</span></code>·templates·can·now·be413 <code·class="docutils·literal·notranslate"><span·class="pre">search_form.html</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">submit_line.html</span></code>·templates·can·now·be
413 overridden·per·app·or·per·model,·you·may·need·to·rename·existing·templates414 overridden·per·app·or·per·model,·you·may·need·to·rename·existing·templates
414 with·those·names·that·were·written·for·a·different·purpose.</p></li>415 with·those·names·that·were·written·for·a·different·purpose.</p></li>
415 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.raw()</span></code>·now·caches·its·results·like·regular·querysets.·Use416 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.raw()</span></code>·now·caches·its·results·like·regular·querysets.·Use
416 <code·class="docutils·literal·notranslate"><span·class="pre">iterator()</span></code>·if·you·don’t·want·caching.</p></li>417 <code·class="docutils·literal·notranslate"><span·class="pre">iterator()</span></code>·if·you·don’t·want·caching.</p></li>
Offset 474, 15 lines modifiedOffset 475, 15 lines modified
474 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">DatabaseIntrospection.get_indexes()</span></code>·is·removed.</p></li>475 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">DatabaseIntrospection.get_indexes()</span></code>·is·removed.</p></li>
475 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">authenticate()</span></code>·method·of·authentication·backends·requires·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>476 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">authenticate()</span></code>·method·of·authentication·backends·requires·<code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>
476 as·the·first·positional·argument.</p></li>477 as·the·first·positional·argument.</p></li>
477 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.permalink()</span></code>·decorator·is·removed.</p></li>478 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.db.models.permalink()</span></code>·decorator·is·removed.</p></li>
478 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">USE_ETAGS</span></code>·setting·is·removed.·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code>·and479 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">USE_ETAGS</span></code>·setting·is·removed.·<code·class="docutils·literal·notranslate"><span·class="pre">CommonMiddleware</span></code>·and
479 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.cache.patch_response_headers()</span></code>·no·longer·set·ETags.</p></li>480 <code·class="docutils·literal·notranslate"><span·class="pre">django.utils.cache.patch_response_headers()</span></code>·no·longer·set·ETags.</p></li>
480 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.has_auto_field</span></code>·attribute·is·removed.</p></li>481 <li><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Model._meta.has_auto_field</span></code>·attribute·is·removed.</p></li>
Max diff block lines reached; 5484/23284 bytes (23.55%) of diff not shown.
12.3 KB
html2text {}
Max HTML report size reached
5.85 KB
./usr/share/doc/python-django-doc/html/releases/2.2.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2·release·notes"·href="2.2.html"·/>15 ····<link·rel="next"·title="Django·2.2·release·notes"·href="2.2.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.2·release·notes"·href="2.2.2.html"·/>16 ····<link·rel="prev"·title="Django·2.2.2·release·notes"·href="2.2.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 157, 37 lines modifiedOffset 158, 37 lines modified
157 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>158 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
158 </ul>159 </ul>
159 </li>160 </li>
160 </ul>161 </ul>
  
161 ··</div>162 ··</div>
162 ··<div>163 ··<div>
163 ····<h4>Previous·topic</h4>164 ····<h4>Argomento·precedente</h4>
164 ····<p·class="topless"><a·href="2.2.2.html"165 ····<p·class="topless"><a·href="2.2.2.html"
165 ··························title="previous·chapter">Django·2.2.2·release·notes</a></p>166 ··························title="capitolo·precedente">Django·2.2.2·release·notes</a></p>
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Next·topic</h4>169 ····<h4>Argomento·successivo</h4>
169 ····<p·class="topless"><a·href="2.2.html"170 ····<p·class="topless"><a·href="2.2.html"
170 ··························title="next·chapter">Django·2.2·release·notes</a></p>171 ··························title="capitolo·successivo">Django·2.2·release·notes</a></p>
171 ··</div>172 ··</div>
172 <search·id="searchbox"·style="display:·none"·role="search">173 <search·id="searchbox"·style="display:·none"·role="search">
173 ··<h3·id="searchlabel">Quick·search</h3>174 ··<h3·id="searchlabel">Ricerca·veloce</h3>
174 ····<div·class="searchformwrapper">175 ····<div·class="searchformwrapper">
175 ····<form·class="search"·action="../search.html"·method="get">176 ····<form·class="search"·action="../search.html"·method="get">
176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>177 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
177 ······<input·type="submit"·value="Go"·/>178 ······<input·type="submit"·value="Vai"·/>
178 ····</form>179 ····</form>
179 ····</div>180 ····</div>
180 </search>181 </search>
181 <script>document.getElementById('searchbox').style.display·=·"block"</script>182 <script>document.getElementById('searchbox').style.display·=·"block"</script>
182 ········</div>183 ········</div>
183 ······</div>184 ······</div>
184 ··············<h3>Last·update:</h3>185 ··············<h3>Last·update:</h3>
185 ··············<p·class="topless">Sep·03,·2024</p>186 ··············<p·class="topless">set·03,·2024</p>
186 ··········</div>187 ··········</div>
187 ········188 ········
188 ······189 ······
189 ····</div>190 ····</div>
  
190 ····<div·id="ft">191 ····<div·id="ft">
191 ······<div·class="nav">192 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
6.15 KB
./usr/share/doc/python-django-doc/html/releases/2.2.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.9·release·notes"·href="2.2.9.html"·/>15 ····<link·rel="next"·title="Django·2.2.9·release·notes"·href="2.2.9.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.11·release·notes"·href="2.2.11.html"·/>16 ····<link·rel="prev"·title="Django·2.2.11·release·notes"·href="2.2.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2020-7471-potential-sql-injection-via-stringagg-delimiter">CVE-2020-7471:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg(delimiter)</span></code></a></li>106 <li><a·class="reference·internal"·href="#cve-2020-7471-potential-sql-injection-via-stringagg-delimiter">CVE-2020-7471:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">StringAgg(delimiter)</span></code></a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="2.2.11.html"113 ····<p·class="topless"><a·href="2.2.11.html"
113 ··························title="previous·chapter">Django·2.2.11·release·notes</a></p>114 ··························title="capitolo·precedente">Django·2.2.11·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="2.2.9.html"118 ····<p·class="topless"><a·href="2.2.9.html"
118 ··························title="next·chapter">Django·2.2.9·release·notes</a></p>119 ··························title="capitolo·successivo">Django·2.2.9·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.22 KB
html2text {}
Max HTML report size reached
6.37 KB
./usr/share/doc/python-django-doc/html/releases/2.2.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.10·release·notes"·href="2.2.10.html"·/>15 ····<link·rel="next"·title="Django·2.2.10·release·notes"·href="2.2.10.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.12·release·notes"·href="2.2.12.html"·/>16 ····<link·rel="prev"·title="Django·2.2.12·release·notes"·href="2.2.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="2.2.12.html"124 ····<p·class="topless"><a·href="2.2.12.html"
124 ··························title="previous·chapter">Django·2.2.12·release·notes</a></p>125 ··························title="capitolo·precedente">Django·2.2.12·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="2.2.10.html"129 ····<p·class="topless"><a·href="2.2.10.html"
129 ··························title="next·chapter">Django·2.2.10·release·notes</a></p>130 ··························title="capitolo·successivo">Django·2.2.10·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.61 KB
html2text {}
Max HTML report size reached
5.66 KB
./usr/share/doc/python-django-doc/html/releases/2.2.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.11·release·notes"·href="2.2.11.html"·/>15 ····<link·rel="next"·title="Django·2.2.11·release·notes"·href="2.2.11.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.13·release·notes"·href="2.2.13.html"·/>16 ····<link·rel="prev"·title="Django·2.2.13·release·notes"·href="2.2.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.2.13.html"115 ····<p·class="topless"><a·href="2.2.13.html"
115 ··························title="previous·chapter">Django·2.2.13·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.2.13·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.2.11.html"120 ····<p·class="topless"><a·href="2.2.11.html"
120 ··························title="next·chapter">Django·2.2.11·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.2.11·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.9 KB
html2text {}
Max HTML report size reached
6.25 KB
./usr/share/doc/python-django-doc/html/releases/2.2.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.12·release·notes"·href="2.2.12.html"·/>15 ····<link·rel="next"·title="Django·2.2.12·release·notes"·href="2.2.12.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.14·release·notes"·href="2.2.14.html"·/>16 ····<link·rel="prev"·title="Django·2.2.14·release·notes"·href="2.2.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 126, 37 lines modifiedOffset 127, 37 lines modified
126 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
127 </ul>128 </ul>
128 </li>129 </li>
129 </ul>130 </ul>
  
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Previous·topic</h4>133 ····<h4>Argomento·precedente</h4>
133 ····<p·class="topless"><a·href="2.2.14.html"134 ····<p·class="topless"><a·href="2.2.14.html"
134 ··························title="previous·chapter">Django·2.2.14·release·notes</a></p>135 ··························title="capitolo·precedente">Django·2.2.14·release·notes</a></p>
135 ··</div>136 ··</div>
136 ··<div>137 ··<div>
137 ····<h4>Next·topic</h4>138 ····<h4>Argomento·successivo</h4>
138 ····<p·class="topless"><a·href="2.2.12.html"139 ····<p·class="topless"><a·href="2.2.12.html"
139 ··························title="next·chapter">Django·2.2.12·release·notes</a></p>140 ··························title="capitolo·successivo">Django·2.2.12·release·notes</a></p>
140 ··</div>141 ··</div>
141 <search·id="searchbox"·style="display:·none"·role="search">142 <search·id="searchbox"·style="display:·none"·role="search">
142 ··<h3·id="searchlabel">Quick·search</h3>143 ··<h3·id="searchlabel">Ricerca·veloce</h3>
143 ····<div·class="searchformwrapper">144 ····<div·class="searchformwrapper">
144 ····<form·class="search"·action="../search.html"·method="get">145 ····<form·class="search"·action="../search.html"·method="get">
145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
146 ······<input·type="submit"·value="Go"·/>147 ······<input·type="submit"·value="Vai"·/>
147 ····</form>148 ····</form>
148 ····</div>149 ····</div>
149 </search>150 </search>
150 <script>document.getElementById('searchbox').style.display·=·"block"</script>151 <script>document.getElementById('searchbox').style.display·=·"block"</script>
151 ········</div>152 ········</div>
152 ······</div>153 ······</div>
153 ··············<h3>Last·update:</h3>154 ··············<h3>Last·update:</h3>
154 ··············<p·class="topless">Sep·03,·2024</p>155 ··············<p·class="topless">set·03,·2024</p>
155 ··········</div>156 ··········</div>
156 ········157 ········
157 ······158 ······
158 ····</div>159 ····</div>
  
159 ····<div·id="ft">160 ····<div·id="ft">
160 ······<div·class="nav">161 ······<div·class="nav">
2.5 KB
html2text {}
Max HTML report size reached
5.66 KB
./usr/share/doc/python-django-doc/html/releases/2.2.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.13·release·notes"·href="2.2.13.html"·/>15 ····<link·rel="next"·title="Django·2.2.13·release·notes"·href="2.2.13.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.15·release·notes"·href="2.2.15.html"·/>16 ····<link·rel="prev"·title="Django·2.2.15·release·notes"·href="2.2.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.2.15.html"115 ····<p·class="topless"><a·href="2.2.15.html"
115 ··························title="previous·chapter">Django·2.2.15·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.2.15·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.2.13.html"120 ····<p·class="topless"><a·href="2.2.13.html"
120 ··························title="next·chapter">Django·2.2.13·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.2.13·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.91 KB
html2text {}
Max HTML report size reached
5.85 KB
./usr/share/doc/python-django-doc/html/releases/2.2.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.14·release·notes"·href="2.2.14.html"·/>15 ····<link·rel="next"·title="Django·2.2.14·release·notes"·href="2.2.14.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.16·release·notes"·href="2.2.16.html"·/>16 ····<link·rel="prev"·title="Django·2.2.16·release·notes"·href="2.2.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="2.2.16.html"117 ····<p·class="topless"><a·href="2.2.16.html"
117 ··························title="previous·chapter">Django·2.2.16·release·notes</a></p>118 ··························title="capitolo·precedente">Django·2.2.16·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="2.2.14.html"122 ····<p·class="topless"><a·href="2.2.14.html"
122 ··························title="next·chapter">Django·2.2.14·release·notes</a></p>123 ··························title="capitolo·successivo">Django·2.2.14·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.1 KB
html2text {}
Max HTML report size reached
6.43 KB
./usr/share/doc/python-django-doc/html/releases/2.2.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.15·release·notes"·href="2.2.15.html"·/>15 ····<link·rel="next"·title="Django·2.2.15·release·notes"·href="2.2.15.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.17·release·notes"·href="2.2.17.html"·/>16 ····<link·rel="prev"·title="Django·2.2.17·release·notes"·href="2.2.17.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 128, 37 lines modifiedOffset 129, 37 lines modified
128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
129 </ul>130 </ul>
130 </li>131 </li>
131 </ul>132 </ul>
  
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Previous·topic</h4>135 ····<h4>Argomento·precedente</h4>
135 ····<p·class="topless"><a·href="2.2.17.html"136 ····<p·class="topless"><a·href="2.2.17.html"
136 ··························title="previous·chapter">Django·2.2.17·release·notes</a></p>137 ··························title="capitolo·precedente">Django·2.2.17·release·notes</a></p>
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Next·topic</h4>140 ····<h4>Argomento·successivo</h4>
140 ····<p·class="topless"><a·href="2.2.15.html"141 ····<p·class="topless"><a·href="2.2.15.html"
141 ··························title="next·chapter">Django·2.2.15·release·notes</a></p>142 ··························title="capitolo·successivo">Django·2.2.15·release·notes</a></p>
142 ··</div>143 ··</div>
143 <search·id="searchbox"·style="display:·none"·role="search">144 <search·id="searchbox"·style="display:·none"·role="search">
144 ··<h3·id="searchlabel">Quick·search</h3>145 ··<h3·id="searchlabel">Ricerca·veloce</h3>
145 ····<div·class="searchformwrapper">146 ····<div·class="searchformwrapper">
146 ····<form·class="search"·action="../search.html"·method="get">147 ····<form·class="search"·action="../search.html"·method="get">
147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
148 ······<input·type="submit"·value="Go"·/>149 ······<input·type="submit"·value="Vai"·/>
149 ····</form>150 ····</form>
150 ····</div>151 ····</div>
151 </search>152 </search>
152 <script>document.getElementById('searchbox').style.display·=·"block"</script>153 <script>document.getElementById('searchbox').style.display·=·"block"</script>
153 ········</div>154 ········</div>
154 ······</div>155 ······</div>
155 ··············<h3>Last·update:</h3>156 ··············<h3>Last·update:</h3>
156 ··············<p·class="topless">Sep·03,·2024</p>157 ··············<p·class="topless">set·03,·2024</p>
157 ··········</div>158 ··········</div>
158 ········159 ········
159 ······160 ······
160 ····</div>161 ····</div>
  
161 ····<div·id="ft">162 ····<div·id="ft">
162 ······<div·class="nav">163 ······<div·class="nav">
2.68 KB
html2text {}
Max HTML report size reached
5.34 KB
./usr/share/doc/python-django-doc/html/releases/2.2.17.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.17·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.17·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.16·release·notes"·href="2.2.16.html"·/>15 ····<link·rel="next"·title="Django·2.2.16·release·notes"·href="2.2.16.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.18·release·notes"·href="2.2.18.html"·/>16 ····<link·rel="prev"·title="Django·2.2.18·release·notes"·href="2.2.18.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 90, 37 lines modifiedOffset 91, 37 lines modified
90 ······91 ······
91 ········92 ········
92 ··········<div·class="yui-b"·id="sidebar">93 ··········<div·class="yui-b"·id="sidebar">
93 ············94 ············
94 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">95 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
95 ········<div·class="sphinxsidebarwrapper">96 ········<div·class="sphinxsidebarwrapper">
96 ··<div>97 ··<div>
97 ····<h4>Previous·topic</h4>98 ····<h4>Argomento·precedente</h4>
98 ····<p·class="topless"><a·href="2.2.18.html"99 ····<p·class="topless"><a·href="2.2.18.html"
99 ··························title="previous·chapter">Django·2.2.18·release·notes</a></p>100 ··························title="capitolo·precedente">Django·2.2.18·release·notes</a></p>
100 ··</div>101 ··</div>
101 ··<div>102 ··<div>
102 ····<h4>Next·topic</h4>103 ····<h4>Argomento·successivo</h4>
103 ····<p·class="topless"><a·href="2.2.16.html"104 ····<p·class="topless"><a·href="2.2.16.html"
104 ··························title="next·chapter">Django·2.2.16·release·notes</a></p>105 ··························title="capitolo·successivo">Django·2.2.16·release·notes</a></p>
105 ··</div>106 ··</div>
106 <search·id="searchbox"·style="display:·none"·role="search">107 <search·id="searchbox"·style="display:·none"·role="search">
107 ··<h3·id="searchlabel">Quick·search</h3>108 ··<h3·id="searchlabel">Ricerca·veloce</h3>
108 ····<div·class="searchformwrapper">109 ····<div·class="searchformwrapper">
109 ····<form·class="search"·action="../search.html"·method="get">110 ····<form·class="search"·action="../search.html"·method="get">
110 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
111 ······<input·type="submit"·value="Go"·/>112 ······<input·type="submit"·value="Vai"·/>
112 ····</form>113 ····</form>
113 ····</div>114 ····</div>
114 </search>115 </search>
115 <script>document.getElementById('searchbox').style.display·=·"block"</script>116 <script>document.getElementById('searchbox').style.display·=·"block"</script>
116 ········</div>117 ········</div>
117 ······</div>118 ······</div>
118 ··············<h3>Last·update:</h3>119 ··············<h3>Last·update:</h3>
119 ··············<p·class="topless">Sep·03,·2024</p>120 ··············<p·class="topless">set·03,·2024</p>
120 ··········</div>121 ··········</div>
121 ········122 ········
122 ······123 ······
123 ····</div>124 ····</div>
  
124 ····<div·id="ft">125 ····<div·id="ft">
125 ······<div·class="nav">126 ······<div·class="nav">
1.5 KB
html2text {}
Max HTML report size reached
8.12 KB
./usr/share/doc/python-django-doc/html/releases/2.2.18.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.18·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.18·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.17·release·notes"·href="2.2.17.html"·/>15 ····<link·rel="next"·title="Django·2.2.17·release·notes"·href="2.2.17.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.19·release·notes"·href="2.2.19.html"·/>16 ····<link·rel="prev"·title="Django·2.2.19·release·notes"·href="2.2.19.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.18">79 ··········<div·class="yui-g"·id="releases-2.2.18">
79 ············80 ············
80 ··<section·id="s-django-2-2-18-release-notes">81 ··<section·id="s-django-2-2-18-release-notes">
81 <span·id="django-2-2-18-release-notes"></span><h1>Django·2.2.18·release·notes<a·class="headerlink"·href="#django-2-2-18-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-18-release-notes"></span><h1>Django·2.2.18·release·notes<a·class="headerlink"·href="#django-2-2-18-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2021</em></p>83 <p><em>February·1,·2021</em></p>
83 <p>Django·2.2.18·fixes·a·security·issue·with·severity·low·in·2.2.17.</p>84 <p>Django·2.2.18·fixes·a·security·issue·with·severity·«low»·in·2.2.17.</p>
84 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">85 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">
85 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by
87 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed88 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed
88 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with89 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with
89 dot·segments.</p>90 dot·segments.</p>
90 </section>91 </section>
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract">CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code></a></li>108 <li><a·class="reference·internal"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract">CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code></a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.2.19.html"115 ····<p·class="topless"><a·href="2.2.19.html"
115 ··························title="previous·chapter">Django·2.2.19·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.2.19·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.2.17.html"120 ····<p·class="topless"><a·href="2.2.17.html"
120 ··························title="next·chapter">Django·2.2.17·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.2.17·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.49 KB
html2text {}
Max HTML report size reached
6.42 KB
./usr/share/doc/python-django-doc/html/releases/2.2.19.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.19·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.19·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.18·release·notes"·href="2.2.18.html"·/>15 ····<link·rel="next"·title="Django·2.2.18·release·notes"·href="2.2.18.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.20·release·notes"·href="2.2.20.html"·/>16 ····<link·rel="prev"·title="Django·2.2.20·release·notes"·href="2.2.20.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2021-23336-web-cache-poisoning-via-django-utils-http-limited-parse-qsl">CVE-2021-23336:·Web·cache·poisoning·via·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.limited_parse_qsl()</span></code></a></li>109 <li><a·class="reference·internal"·href="#cve-2021-23336-web-cache-poisoning-via-django-utils-http-limited-parse-qsl">CVE-2021-23336:·Web·cache·poisoning·via·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.limited_parse_qsl()</span></code></a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="2.2.20.html"116 ····<p·class="topless"><a·href="2.2.20.html"
116 ··························title="previous·chapter">Django·2.2.20·release·notes</a></p>117 ··························title="capitolo·precedente">Django·2.2.20·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="2.2.18.html"121 ····<p·class="topless"><a·href="2.2.18.html"
121 ··························title="next·chapter">Django·2.2.18·release·notes</a></p>122 ··························title="capitolo·successivo">Django·2.2.18·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.46 KB
html2text {}
Max HTML report size reached
8.46 KB
./usr/share/doc/python-django-doc/html/releases/2.2.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.1·release·notes"·href="2.2.1.html"·/>15 ····<link·rel="next"·title="Django·2.2.1·release·notes"·href="2.2.1.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.3·release·notes"·href="2.2.3.html"·/>16 ····<link·rel="prev"·title="Django·2.2.3·release·notes"·href="2.2.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-django-2-2-2-release-notes">81 ··<section·id="s-django-2-2-2-release-notes">
81 <span·id="django-2-2-2-release-notes"></span><h1>Django·2.2.2·release·notes<a·class="headerlink"·href="#django-2-2-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-2-release-notes"></span><h1>Django·2.2.2·release·notes<a·class="headerlink"·href="#django-2-2-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>June·3,·2019</em></p>83 <p><em>June·3,·2019</em></p>
83 <p>Django·2.2.2·fixes·security·issues·and·several·bugs·in·2.2.1.</p>84 <p>Django·2.2.2·fixes·security·issues·and·several·bugs·in·2.2.1.</p>
84 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">85 <section·id="s-cve-2019-12308-adminurlfieldwidget-xss">
85 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2019-12308-adminurlfieldwidget-xss"></span><h2>CVE-2019-12308:·AdminURLFieldWidget·XSS<a·class="headerlink"·href="#cve-2019-12308-adminurlfieldwidget-xss"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·clickable·Current·URL·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed87 <p>The·clickable·«Current·URL»·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·displayed
87 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated88 the·provided·value·without·validating·it·as·a·safe·URL.·Thus,·an·unvalidated
88 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter89 value·stored·in·the·database,·or·a·value·provided·as·a·URL·query·parameter
89 payload,·could·result·in·an·clickable·JavaScript·link.</p>90 payload,·could·result·in·an·clickable·JavaScript·link.</p>
90 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using91 <p><code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>·now·validates·the·provided·value·using
91 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable92 <a·class="reference·internal"·href="../ref/validators.html#django.core.validators.URLValidator"·title="django.core.validators.URLValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a>·before·displaying·the·clickable
92 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to93 link.·You·may·customize·the·validator·by·passing·a·<code·class="docutils·literal·notranslate"><span·class="pre">validator_class</span></code>·kwarg·to
93 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using94 <code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget.__init__()</span></code>,·e.g.·when·using
Offset 147, 37 lines modifiedOffset 148, 37 lines modified
147 </li>148 </li>
148 </ul>149 </ul>
149 </li>150 </li>
150 </ul>151 </ul>
  
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Previous·topic</h4>154 ····<h4>Argomento·precedente</h4>
154 ····<p·class="topless"><a·href="2.2.3.html"155 ····<p·class="topless"><a·href="2.2.3.html"
155 ··························title="previous·chapter">Django·2.2.3·release·notes</a></p>156 ··························title="capitolo·precedente">Django·2.2.3·release·notes</a></p>
156 ··</div>157 ··</div>
157 ··<div>158 ··<div>
158 ····<h4>Next·topic</h4>159 ····<h4>Argomento·successivo</h4>
159 ····<p·class="topless"><a·href="2.2.1.html"160 ····<p·class="topless"><a·href="2.2.1.html"
160 ··························title="next·chapter">Django·2.2.1·release·notes</a></p>161 ··························title="capitolo·successivo">Django·2.2.1·release·notes</a></p>
161 ··</div>162 ··</div>
162 <search·id="searchbox"·style="display:·none"·role="search">163 <search·id="searchbox"·style="display:·none"·role="search">
163 ··<h3·id="searchlabel">Quick·search</h3>164 ··<h3·id="searchlabel">Ricerca·veloce</h3>
164 ····<div·class="searchformwrapper">165 ····<div·class="searchformwrapper">
165 ····<form·class="search"·action="../search.html"·method="get">166 ····<form·class="search"·action="../search.html"·method="get">
166 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
167 ······<input·type="submit"·value="Go"·/>168 ······<input·type="submit"·value="Vai"·/>
168 ····</form>169 ····</form>
169 ····</div>170 ····</div>
170 </search>171 </search>
171 <script>document.getElementById('searchbox').style.display·=·"block"</script>172 <script>document.getElementById('searchbox').style.display·=·"block"</script>
172 ········</div>173 ········</div>
173 ······</div>174 ······</div>
174 ··············<h3>Last·update:</h3>175 ··············<h3>Last·update:</h3>
175 ··············<p·class="topless">Sep·03,·2024</p>176 ··············<p·class="topless">set·03,·2024</p>
176 ··········</div>177 ··········</div>
177 ········178 ········
178 ······179 ······
179 ····</div>180 ····</div>
  
180 ····<div·id="ft">181 ····<div·id="ft">
181 ······<div·class="nav">182 ······<div·class="nav">
2.98 KB
html2text {}
Max HTML report size reached
7.38 KB
./usr/share/doc/python-django-doc/html/releases/2.2.20.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.20·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.20·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.19·release·notes"·href="2.2.19.html"·/>15 ····<link·rel="next"·title="Django·2.2.19·release·notes"·href="2.2.19.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.21·release·notes"·href="2.2.21.html"·/>16 ····<link·rel="prev"·title="Django·2.2.21·release·notes"·href="2.2.21.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.20">79 ··········<div·class="yui-g"·id="releases-2.2.20">
79 ············80 ············
80 ··<section·id="s-django-2-2-20-release-notes">81 ··<section·id="s-django-2-2-20-release-notes">
81 <span·id="django-2-2-20-release-notes"></span><h1>Django·2.2.20·release·notes<a·class="headerlink"·href="#django-2-2-20-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-20-release-notes"></span><h1>Django·2.2.20·release·notes<a·class="headerlink"·href="#django-2-2-20-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·6,·2021</em></p>83 <p><em>April·6,·2021</em></p>
83 <p>Django·2.2.20·fixes·a·security·issue·with·severity·low·in·2.2.19.</p>84 <p>Django·2.2.20·fixes·a·security·issue·with·severity·«low»·in·2.2.19.</p>
84 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">85 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">
85 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with87 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with
87 suitably·crafted·file·names.</p>88 suitably·crafted·file·names.</p>
88 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>89 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files">CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files</a></li>107 <li><a·class="reference·internal"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files">CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="2.2.21.html"114 ····<p·class="topless"><a·href="2.2.21.html"
114 ··························title="previous·chapter">Django·2.2.21·release·notes</a></p>115 ··························title="capitolo·precedente">Django·2.2.21·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="2.2.19.html"119 ····<p·class="topless"><a·href="2.2.19.html"
119 ··························title="next·chapter">Django·2.2.19·release·notes</a></p>120 ··························title="capitolo·successivo">Django·2.2.19·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.35 KB
html2text {}
Max HTML report size reached
6.17 KB
./usr/share/doc/python-django-doc/html/releases/2.2.21.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.21·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.21·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.20·release·notes"·href="2.2.20.html"·/>15 ····<link·rel="next"·title="Django·2.2.20·release·notes"·href="2.2.20.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.22·release·notes"·href="2.2.22.html"·/>16 ····<link·rel="prev"·title="Django·2.2.22·release·notes"·href="2.2.22.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2021-31542-potential-directory-traversal-via-uploaded-files">CVE-2021-31542:·Potential·directory-traversal·via·uploaded·files</a></li>108 <li><a·class="reference·internal"·href="#cve-2021-31542-potential-directory-traversal-via-uploaded-files">CVE-2021-31542:·Potential·directory-traversal·via·uploaded·files</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="2.2.22.html"115 ····<p·class="topless"><a·href="2.2.22.html"
115 ··························title="previous·chapter">Django·2.2.22·release·notes</a></p>116 ··························title="capitolo·precedente">Django·2.2.22·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="2.2.20.html"120 ····<p·class="topless"><a·href="2.2.20.html"
120 ··························title="next·chapter">Django·2.2.20·release·notes</a></p>121 ··························title="capitolo·successivo">Django·2.2.20·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.31 KB
html2text {}
Max HTML report size reached
6.53 KB
./usr/share/doc/python-django-doc/html/releases/2.2.22.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.22·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.22·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.21·release·notes"·href="2.2.21.html"·/>15 ····<link·rel="next"·title="Django·2.2.21·release·notes"·href="2.2.21.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.23·release·notes"·href="2.2.23.html"·/>16 ····<link·rel="prev"·title="Django·2.2.23·release·notes"·href="2.2.23.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#cve-2021-32052-header-injection-possibility-since-urlvalidator-accepted-newlines-in-input-on-python-3-9-5">CVE-2021-32052:·Header·injection·possibility·since·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·accepted·newlines·in·input·on·Python·3.9.5+</a></li>113 <li><a·class="reference·internal"·href="#cve-2021-32052-header-injection-possibility-since-urlvalidator-accepted-newlines-in-input-on-python-3-9-5">CVE-2021-32052:·Header·injection·possibility·since·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·accepted·newlines·in·input·on·Python·3.9.5+</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="2.2.23.html"120 ····<p·class="topless"><a·href="2.2.23.html"
120 ··························title="previous·chapter">Django·2.2.23·release·notes</a></p>121 ··························title="capitolo·precedente">Django·2.2.23·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="2.2.21.html"125 ····<p·class="topless"><a·href="2.2.21.html"
125 ··························title="next·chapter">Django·2.2.21·release·notes</a></p>126 ··························title="capitolo·successivo">Django·2.2.21·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.51 KB
html2text {}
Max HTML report size reached
5.74 KB
./usr/share/doc/python-django-doc/html/releases/2.2.23.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.23·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.23·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.22·release·notes"·href="2.2.22.html"·/>15 ····<link·rel="next"·title="Django·2.2.22·release·notes"·href="2.2.22.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.24·release·notes"·href="2.2.24.html"·/>16 ····<link·rel="prev"·title="Django·2.2.24·release·notes"·href="2.2.24.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="2.2.24.html"117 ····<p·class="topless"><a·href="2.2.24.html"
117 ··························title="previous·chapter">Django·2.2.24·release·notes</a></p>118 ··························title="capitolo·precedente">Django·2.2.24·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="2.2.22.html"122 ····<p·class="topless"><a·href="2.2.22.html"
122 ··························title="next·chapter">Django·2.2.22·release·notes</a></p>123 ··························title="capitolo·successivo">Django·2.2.22·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
1.99 KB
html2text {}
Max HTML report size reached
6.74 KB
./usr/share/doc/python-django-doc/html/releases/2.2.24.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.24·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.24·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.23·release·notes"·href="2.2.23.html"·/>15 ····<link·rel="next"·title="Django·2.2.23·release·notes"·href="2.2.23.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.25·release·notes"·href="2.2.25.html"·/>16 ····<link·rel="prev"·title="Django·2.2.25·release·notes"·href="2.2.25.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#cve-2021-33571-possible-indeterminate-ssrf-rfi-and-lfi-attacks-since-validators-accepted-leading-zeros-in-ipv4-addresses">CVE-2021-33571:·Possible·indeterminate·SSRF,·RFI,·and·LFI·attacks·since·validators·accepted·leading·zeros·in·IPv4·addresses</a></li>123 <li><a·class="reference·internal"·href="#cve-2021-33571-possible-indeterminate-ssrf-rfi-and-lfi-attacks-since-validators-accepted-leading-zeros-in-ipv4-addresses">CVE-2021-33571:·Possible·indeterminate·SSRF,·RFI,·and·LFI·attacks·since·validators·accepted·leading·zeros·in·IPv4·addresses</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="2.2.25.html"130 ····<p·class="topless"><a·href="2.2.25.html"
130 ··························title="previous·chapter">Django·2.2.25·release·notes</a></p>131 ··························title="capitolo·precedente">Django·2.2.25·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="2.2.23.html"135 ····<p·class="topless"><a·href="2.2.23.html"
135 ··························title="next·chapter">Django·2.2.23·release·notes</a></p>136 ··························title="capitolo·successivo">Django·2.2.23·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.76 KB
html2text {}
Max HTML report size reached
7.4 KB
./usr/share/doc/python-django-doc/html/releases/2.2.25.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.25·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.25·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.24·release·notes"·href="2.2.24.html"·/>15 ····<link·rel="next"·title="Django·2.2.24·release·notes"·href="2.2.24.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.26·release·notes"·href="2.2.26.html"·/>16 ····<link·rel="prev"·title="Django·2.2.26·release·notes"·href="2.2.26.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.25">79 ··········<div·class="yui-g"·id="releases-2.2.25">
79 ············80 ············
80 ··<section·id="s-django-2-2-25-release-notes">81 ··<section·id="s-django-2-2-25-release-notes">
81 <span·id="django-2-2-25-release-notes"></span><h1>Django·2.2.25·release·notes<a·class="headerlink"·href="#django-2-2-25-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-25-release-notes"></span><h1>Django·2.2.25·release·notes<a·class="headerlink"·href="#django-2-2-25-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·7,·2021</em></p>83 <p><em>December·7,·2021</em></p>
83 <p>Django·2.2.25·fixes·a·security·issue·with·severity·low·in·2.2.24.</p>84 <p>Django·2.2.25·fixes·a·security·issue·with·severity·«low»·in·2.2.24.</p>
84 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">85 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">
85 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>
86 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access87 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access
87 control·based·on·URL·paths.</p>88 control·based·on·URL·paths.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths</a></li>106 <li><a·class="reference·internal"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="2.2.26.html"113 ····<p·class="topless"><a·href="2.2.26.html"
113 ··························title="previous·chapter">Django·2.2.26·release·notes</a></p>114 ··························title="capitolo·precedente">Django·2.2.26·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="2.2.24.html"118 ····<p·class="topless"><a·href="2.2.24.html"
118 ··························title="next·chapter">Django·2.2.24·release·notes</a></p>119 ··························title="capitolo·successivo">Django·2.2.24·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.4 KB
html2text {}
Max HTML report size reached
14.0 KB
./usr/share/doc/python-django-doc/html/releases/2.2.26.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.26·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.26·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.25·release·notes"·href="2.2.25.html"·/>15 ····<link·rel="next"·title="Django·2.2.25·release·notes"·href="2.2.25.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.27·release·notes"·href="2.2.27.html"·/>16 ····<link·rel="prev"·title="Django·2.2.27·release·notes"·href="2.2.27.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 42 lines modifiedOffset 77, 42 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.26">79 ··········<div·class="yui-g"·id="releases-2.2.26">
79 ············80 ············
80 ··<section·id="s-django-2-2-26-release-notes">81 ··<section·id="s-django-2-2-26-release-notes">
81 <span·id="django-2-2-26-release-notes"></span><h1>Django·2.2.26·release·notes<a·class="headerlink"·href="#django-2-2-26-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-26-release-notes"></span><h1>Django·2.2.26·release·notes<a·class="headerlink"·href="#django-2-2-26-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>January·4,·2022</em></p>83 <p><em>January·4,·2022</em></p>
83 <p>Django·2.2.26·fixes·one·security·issue·with·severity·medium·and·two·security84 <p>Django·2.2.26·fixes·one·security·issue·with·severity·«medium»·and·two·security
84 issues·with·severity·low·in·2.2.25.</p>85 issues·with·severity·«low»·in·2.2.25.</p>
85 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">86 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">
86 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead88 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead
88 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the89 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the
89 comparison·values.·On·the·assumption·that·access·to·user·registration·was90 comparison·values.·On·the·assumption·that·access·to·user·registration·was
90 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>91 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>
91 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by92 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by
92 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>93 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>
93 <p>This·issue·has·severity·medium·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>94 <p>This·issue·has·severity·«medium»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
94 </section>95 </section>
95 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">96 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">
96 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>97 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>
97 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the98 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the
98 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information99 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information
99 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>100 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>
100 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted101 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted
101 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on102 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on
102 dictionaries.</p>103 dictionaries.</p>
103 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>104 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>
104 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>105 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
105 </section>106 </section>
106 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">107 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">
107 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>108 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>
108 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably109 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably
109 crafted·file·names.</p>110 crafted·file·names.</p>
110 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>111 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
111 </section>112 </section>
112 </section>113 </section>
  
  
113 ··········</div>114 ··········</div>
114 ········</div>115 ········</div>
115 ······</div>116 ······</div>
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save">CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code></a></li>131 <li><a·class="reference·internal"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save">CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code></a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="2.2.27.html"138 ····<p·class="topless"><a·href="2.2.27.html"
138 ··························title="previous·chapter">Django·2.2.27·release·notes</a></p>139 ··························title="capitolo·precedente">Django·2.2.27·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="2.2.25.html"143 ····<p·class="topless"><a·href="2.2.25.html"
143 ··························title="next·chapter">Django·2.2.25·release·notes</a></p>144 ··························title="capitolo·successivo">Django·2.2.25·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
5.02 KB
html2text {}
Max HTML report size reached
8.66 KB
./usr/share/doc/python-django-doc/html/releases/2.2.27.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.27·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.27·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.26·release·notes"·href="2.2.26.html"·/>15 ····<link·rel="next"·title="Django·2.2.26·release·notes"·href="2.2.26.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.28·release·notes"·href="2.2.28.html"·/>16 ····<link·rel="prev"·title="Django·2.2.28·release·notes"·href="2.2.28.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.27">79 ··········<div·class="yui-g"·id="releases-2.2.27">
79 ············80 ············
80 ··<section·id="s-django-2-2-27-release-notes">81 ··<section·id="s-django-2-2-27-release-notes">
81 <span·id="django-2-2-27-release-notes"></span><h1>Django·2.2.27·release·notes<a·class="headerlink"·href="#django-2-2-27-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-27-release-notes"></span><h1>Django·2.2.27·release·notes<a·class="headerlink"·href="#django-2-2-27-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2022</em></p>83 <p><em>February·1,·2022</em></p>
83 <p>Django·2.2.27·fixes·two·security·issues·with·severity·medium·in·2.2.26.</p>84 <p>Django·2.2.27·fixes·two·security·issues·with·severity·«medium»·in·2.2.26.</p>
84 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">85 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">
85 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,
87 posing·an·XSS·attack·vector.</p>88 posing·an·XSS·attack·vector.</p>
88 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs89 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs
89 information·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·and·it·ensures·all·context90 information·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·and·it·ensures·all·context
90 variables·are·correctly·escaped·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>91 variables·are·correctly·escaped·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#cve-2022-23833-denial-of-service-possibility-in-file-uploads">CVE-2022-23833:·Denial-of-service·possibility·in·file·uploads</a></li>115 <li><a·class="reference·internal"·href="#cve-2022-23833-denial-of-service-possibility-in-file-uploads">CVE-2022-23833:·Denial-of-service·possibility·in·file·uploads</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="2.2.28.html"122 ····<p·class="topless"><a·href="2.2.28.html"
122 ··························title="previous·chapter">Django·2.2.28·release·notes</a></p>123 ··························title="capitolo·precedente">Django·2.2.28·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="2.2.26.html"127 ····<p·class="topless"><a·href="2.2.26.html"
127 ··························title="next·chapter">Django·2.2.26·release·notes</a></p>128 ··························title="capitolo·successivo">Django·2.2.26·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
2.96 KB
html2text {}
Max HTML report size reached
9.38 KB
./usr/share/doc/python-django-doc/html/releases/2.2.28.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.28·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.28·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.27·release·notes"·href="2.2.27.html"·/>15 ····<link·rel="next"·title="Django·2.2.27·release·notes"·href="2.2.27.html"·/>
15 ····<link·rel="prev"·title="Django·3.0·release·notes"·href="3.0.html"·/>16 ····<link·rel="prev"·title="Django·3.0·release·notes"·href="3.0.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-2.2.28">79 ··········<div·class="yui-g"·id="releases-2.2.28">
79 ············80 ············
80 ··<section·id="s-django-2-2-28-release-notes">81 ··<section·id="s-django-2-2-28-release-notes">
81 <span·id="django-2-2-28-release-notes"></span><h1>Django·2.2.28·release·notes<a·class="headerlink"·href="#django-2-2-28-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-2-2-28-release-notes"></span><h1>Django·2.2.28·release·notes<a·class="headerlink"·href="#django-2-2-28-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·11,·2022</em></p>83 <p><em>April·11,·2022</em></p>
83 <p>Django·2.2.28·fixes·two·security·issues·with·severity·high·in·2.2.27.</p>84 <p>Django·2.2.28·fixes·two·security·issues·with·severity·«high»·in·2.2.27.</p>
84 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">85 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">
85 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>
86 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and87 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and
87 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column88 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column
88 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the89 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the
89 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>90 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>
90 </section>91 </section>
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#cve-2022-28347-potential-sql-injection-via-queryset-explain-options-on-postgresql">CVE-2022-28347:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.explain(**options)</span></code>·on·PostgreSQL</a></li>115 <li><a·class="reference·internal"·href="#cve-2022-28347-potential-sql-injection-via-queryset-explain-options-on-postgresql">CVE-2022-28347:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.explain(**options)</span></code>·on·PostgreSQL</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="3.0.html"122 ····<p·class="topless"><a·href="3.0.html"
122 ··························title="previous·chapter">Django·3.0·release·notes</a></p>123 ··························title="capitolo·precedente">Django·3.0·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="2.2.27.html"127 ····<p·class="topless"><a·href="2.2.27.html"
127 ··························title="next·chapter">Django·2.2.27·release·notes</a></p>128 ··························title="capitolo·successivo">Django·2.2.27·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
3.2 KB
html2text {}
Max HTML report size reached
6.1 KB
./usr/share/doc/python-django-doc/html/releases/2.2.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.2·release·notes"·href="2.2.2.html"·/>15 ····<link·rel="next"·title="Django·2.2.2·release·notes"·href="2.2.2.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.4·release·notes"·href="2.2.4.html"·/>16 ····<link·rel="prev"·title="Django·2.2.4·release·notes"·href="2.2.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 131, 37 lines modifiedOffset 132, 37 lines modified
131 </li>132 </li>
132 </ul>133 </ul>
133 </li>134 </li>
134 </ul>135 </ul>
  
135 ··</div>136 ··</div>
136 ··<div>137 ··<div>
137 ····<h4>Previous·topic</h4>138 ····<h4>Argomento·precedente</h4>
138 ····<p·class="topless"><a·href="2.2.4.html"139 ····<p·class="topless"><a·href="2.2.4.html"
139 ··························title="previous·chapter">Django·2.2.4·release·notes</a></p>140 ··························title="capitolo·precedente">Django·2.2.4·release·notes</a></p>
140 ··</div>141 ··</div>
141 ··<div>142 ··<div>
142 ····<h4>Next·topic</h4>143 ····<h4>Argomento·successivo</h4>
143 ····<p·class="topless"><a·href="2.2.2.html"144 ····<p·class="topless"><a·href="2.2.2.html"
144 ··························title="next·chapter">Django·2.2.2·release·notes</a></p>145 ··························title="capitolo·successivo">Django·2.2.2·release·notes</a></p>
145 ··</div>146 ··</div>
146 <search·id="searchbox"·style="display:·none"·role="search">147 <search·id="searchbox"·style="display:·none"·role="search">
147 ··<h3·id="searchlabel">Quick·search</h3>148 ··<h3·id="searchlabel">Ricerca·veloce</h3>
148 ····<div·class="searchformwrapper">149 ····<div·class="searchformwrapper">
149 ····<form·class="search"·action="../search.html"·method="get">150 ····<form·class="search"·action="../search.html"·method="get">
150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>151 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
151 ······<input·type="submit"·value="Go"·/>152 ······<input·type="submit"·value="Vai"·/>
152 ····</form>153 ····</form>
153 ····</div>154 ····</div>
154 </search>155 </search>
155 <script>document.getElementById('searchbox').style.display·=·"block"</script>156 <script>document.getElementById('searchbox').style.display·=·"block"</script>
156 ········</div>157 ········</div>
157 ······</div>158 ······</div>
158 ··············<h3>Last·update:</h3>159 ··············<h3>Last·update:</h3>
159 ··············<p·class="topless">Sep·03,·2024</p>160 ··············<p·class="topless">set·03,·2024</p>
160 ··········</div>161 ··········</div>
161 ········162 ········
162 ······163 ······
163 ····</div>164 ····</div>
  
164 ····<div·id="ft">165 ····<div·id="ft">
165 ······<div·class="nav">166 ······<div·class="nav">
2.42 KB
html2text {}
Max HTML report size reached
6.39 KB
./usr/share/doc/python-django-doc/html/releases/2.2.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.3·release·notes"·href="2.2.3.html"·/>15 ····<link·rel="next"·title="Django·2.2.3·release·notes"·href="2.2.3.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.5·release·notes"·href="2.2.5.html"·/>16 ····<link·rel="prev"·title="Django·2.2.5·release·notes"·href="2.2.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 162, 37 lines modifiedOffset 163, 37 lines modified
162 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>163 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
163 </ul>164 </ul>
164 </li>165 </li>
165 </ul>166 </ul>
  
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Previous·topic</h4>169 ····<h4>Argomento·precedente</h4>
169 ····<p·class="topless"><a·href="2.2.5.html"170 ····<p·class="topless"><a·href="2.2.5.html"
170 ··························title="previous·chapter">Django·2.2.5·release·notes</a></p>171 ··························title="capitolo·precedente">Django·2.2.5·release·notes</a></p>
171 ··</div>172 ··</div>
172 ··<div>173 ··<div>
173 ····<h4>Next·topic</h4>174 ····<h4>Argomento·successivo</h4>
174 ····<p·class="topless"><a·href="2.2.3.html"175 ····<p·class="topless"><a·href="2.2.3.html"
175 ··························title="next·chapter">Django·2.2.3·release·notes</a></p>176 ··························title="capitolo·successivo">Django·2.2.3·release·notes</a></p>
176 ··</div>177 ··</div>
177 <search·id="searchbox"·style="display:·none"·role="search">178 <search·id="searchbox"·style="display:·none"·role="search">
178 ··<h3·id="searchlabel">Quick·search</h3>179 ··<h3·id="searchlabel">Ricerca·veloce</h3>
179 ····<div·class="searchformwrapper">180 ····<div·class="searchformwrapper">
180 ····<form·class="search"·action="../search.html"·method="get">181 ····<form·class="search"·action="../search.html"·method="get">
181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>182 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
182 ······<input·type="submit"·value="Go"·/>183 ······<input·type="submit"·value="Vai"·/>
183 ····</form>184 ····</form>
184 ····</div>185 ····</div>
185 </search>186 </search>
186 <script>document.getElementById('searchbox').style.display·=·"block"</script>187 <script>document.getElementById('searchbox').style.display·=·"block"</script>
187 ········</div>188 ········</div>
188 ······</div>189 ······</div>
189 ··············<h3>Last·update:</h3>190 ··············<h3>Last·update:</h3>
190 ··············<p·class="topless">Sep·03,·2024</p>191 ··············<p·class="topless">set·03,·2024</p>
191 ··········</div>192 ··········</div>
192 ········193 ········
193 ······194 ······
194 ····</div>195 ····</div>
  
195 ····<div·id="ft">196 ····<div·id="ft">
196 ······<div·class="nav">197 ······<div·class="nav">
2.65 KB
html2text {}
Max HTML report size reached
5.97 KB
./usr/share/doc/python-django-doc/html/releases/2.2.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.4·release·notes"·href="2.2.4.html"·/>15 ····<link·rel="next"·title="Django·2.2.4·release·notes"·href="2.2.4.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.6·release·notes"·href="2.2.6.html"·/>16 ····<link·rel="prev"·title="Django·2.2.6·release·notes"·href="2.2.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="2.2.6.html"124 ····<p·class="topless"><a·href="2.2.6.html"
124 ··························title="previous·chapter">Django·2.2.6·release·notes</a></p>125 ··························title="capitolo·precedente">Django·2.2.6·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="2.2.4.html"129 ····<p·class="topless"><a·href="2.2.4.html"
129 ··························title="next·chapter">Django·2.2.4·release·notes</a></p>130 ··························title="capitolo·successivo">Django·2.2.4·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.23 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/2.2.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.5·release·notes"·href="2.2.5.html"·/>15 ····<link·rel="next"·title="Django·2.2.5·release·notes"·href="2.2.5.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.7·release·notes"·href="2.2.7.html"·/>16 ····<link·rel="prev"·title="Django·2.2.7·release·notes"·href="2.2.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="2.2.7.html"119 ····<p·class="topless"><a·href="2.2.7.html"
119 ··························title="previous·chapter">Django·2.2.7·release·notes</a></p>120 ··························title="capitolo·precedente">Django·2.2.7·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="2.2.5.html"124 ····<p·class="topless"><a·href="2.2.5.html"
124 ··························title="next·chapter">Django·2.2.5·release·notes</a></p>125 ··························title="capitolo·successivo">Django·2.2.5·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
5.94 KB
./usr/share/doc/python-django-doc/html/releases/2.2.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.6·release·notes"·href="2.2.6.html"·/>15 ····<link·rel="next"·title="Django·2.2.6·release·notes"·href="2.2.6.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.8·release·notes"·href="2.2.8.html"·/>16 ····<link·rel="prev"·title="Django·2.2.8·release·notes"·href="2.2.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="2.2.8.html"125 ····<p·class="topless"><a·href="2.2.8.html"
125 ··························title="previous·chapter">Django·2.2.8·release·notes</a></p>126 ··························title="capitolo·precedente">Django·2.2.8·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="2.2.6.html"130 ····<p·class="topless"><a·href="2.2.6.html"
130 ··························title="next·chapter">Django·2.2.6·release·notes</a></p>131 ··························title="capitolo·successivo">Django·2.2.6·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.2 KB
html2text {}
Max HTML report size reached
8.54 KB
./usr/share/doc/python-django-doc/html/releases/2.2.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.7·release·notes"·href="2.2.7.html"·/>15 ····<link·rel="next"·title="Django·2.2.7·release·notes"·href="2.2.7.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.9·release·notes"·href="2.2.9.html"·/>16 ····<link·rel="prev"·title="Django·2.2.9·release·notes"·href="2.2.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 90, 15 lines modifiedOffset 91, 15 lines modified
90 parent·model·but·editable·forms·for·the·inline.</p>91 parent·model·but·editable·forms·for·the·inline.</p>
91 <p>Submitting·these·forms·would·not·allow·direct·edits·to·the·parent·model,·but92 <p>Submitting·these·forms·would·not·allow·direct·edits·to·the·parent·model,·but
92 would·trigger·the·parent·model’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method,·and·cause·pre·and·post-save93 would·trigger·the·parent·model’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method,·and·cause·pre·and·post-save
93 signal·handlers·to·be·invoked.·This·is·a·privilege·escalation·as·a·user·who94 signal·handlers·to·be·invoked.·This·is·a·privilege·escalation·as·a·user·who
94 lacks·permission·to·edit·a·model·should·not·be·able·to·trigger·its·save-related95 lacks·permission·to·edit·a·model·should·not·be·able·to·trigger·its·save-related
95 signals.</p>96 signals.</p>
96 <p>To·resolve·this·issue,·the·permission·handling·code·of·the·Django·admin97 <p>To·resolve·this·issue,·the·permission·handling·code·of·the·Django·admin
97 interface·has·been·changed.·Now,·if·a·user·has·only·the·view·permission·for·a98 interface·has·been·changed.·Now,·if·a·user·has·only·the·«view»·permission·for·a
98 parent·model,·the·entire·displayed·form·will·not·be·editable,·even·if·the·user99 parent·model,·the·entire·displayed·form·will·not·be·editable,·even·if·the·user
99 has·permission·to·edit·models·included·in·inlines.</p>100 has·permission·to·edit·models·included·in·inlines.</p>
100 <p>This·is·a·backwards-incompatible·change,·and·the·Django·security·team·is·aware101 <p>This·is·a·backwards-incompatible·change,·and·the·Django·security·team·is·aware
101 that·some·users·of·Django·were·depending·on·the·ability·to·allow·editing·of102 that·some·users·of·Django·were·depending·on·the·ability·to·allow·editing·of
102 inlines·in·the·admin·form·of·an·otherwise·view-only·parent·model.</p>103 inlines·in·the·admin·form·of·an·otherwise·view-only·parent·model.</p>
103 <p>Given·the·complexity·of·the·Django·admin,·and·in-particular·the·permissions104 <p>Given·the·complexity·of·the·Django·admin,·and·in-particular·the·permissions
104 related·checks,·it·is·the·view·of·the·Django·security·team·that·this·change·was105 related·checks,·it·is·the·view·of·the·Django·security·team·that·this·change·was
Offset 148, 37 lines modifiedOffset 149, 37 lines modified
148 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>149 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
149 </ul>150 </ul>
150 </li>151 </li>
151 </ul>152 </ul>
  
152 ··</div>153 ··</div>
153 ··<div>154 ··<div>
154 ····<h4>Previous·topic</h4>155 ····<h4>Argomento·precedente</h4>
155 ····<p·class="topless"><a·href="2.2.9.html"156 ····<p·class="topless"><a·href="2.2.9.html"
156 ··························title="previous·chapter">Django·2.2.9·release·notes</a></p>157 ··························title="capitolo·precedente">Django·2.2.9·release·notes</a></p>
157 ··</div>158 ··</div>
158 ··<div>159 ··<div>
159 ····<h4>Next·topic</h4>160 ····<h4>Argomento·successivo</h4>
160 ····<p·class="topless"><a·href="2.2.7.html"161 ····<p·class="topless"><a·href="2.2.7.html"
161 ··························title="next·chapter">Django·2.2.7·release·notes</a></p>162 ··························title="capitolo·successivo">Django·2.2.7·release·notes</a></p>
162 ··</div>163 ··</div>
163 <search·id="searchbox"·style="display:·none"·role="search">164 <search·id="searchbox"·style="display:·none"·role="search">
164 ··<h3·id="searchlabel">Quick·search</h3>165 ··<h3·id="searchlabel">Ricerca·veloce</h3>
165 ····<div·class="searchformwrapper">166 ····<div·class="searchformwrapper">
166 ····<form·class="search"·action="../search.html"·method="get">167 ····<form·class="search"·action="../search.html"·method="get">
167 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>168 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
168 ······<input·type="submit"·value="Go"·/>169 ······<input·type="submit"·value="Vai"·/>
169 ····</form>170 ····</form>
170 ····</div>171 ····</div>
171 </search>172 </search>
172 <script>document.getElementById('searchbox').style.display·=·"block"</script>173 <script>document.getElementById('searchbox').style.display·=·"block"</script>
173 ········</div>174 ········</div>
174 ······</div>175 ······</div>
175 ··············<h3>Last·update:</h3>176 ··············<h3>Last·update:</h3>
176 ··············<p·class="topless">Sep·03,·2024</p>177 ··············<p·class="topless">set·03,·2024</p>
177 ··········</div>178 ··········</div>
178 ········179 ········
179 ······180 ······
180 ····</div>181 ····</div>
  
181 ····<div·id="ft">182 ····<div·id="ft">
182 ······<div·class="nav">183 ······<div·class="nav">
3.58 KB
html2text {}
Max HTML report size reached
6.25 KB
./usr/share/doc/python-django-doc/html/releases/2.2.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.8·release·notes"·href="2.2.8.html"·/>15 ····<link·rel="next"·title="Django·2.2.8·release·notes"·href="2.2.8.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.10·release·notes"·href="2.2.10.html"·/>16 ····<link·rel="prev"·title="Django·2.2.10·release·notes"·href="2.2.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="2.2.10.html"130 ····<p·class="topless"><a·href="2.2.10.html"
130 ··························title="previous·chapter">Django·2.2.10·release·notes</a></p>131 ··························title="capitolo·precedente">Django·2.2.10·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="2.2.8.html"135 ····<p·class="topless"><a·href="2.2.8.html"
135 ··························title="next·chapter">Django·2.2.8·release·notes</a></p>136 ··························title="capitolo·successivo">Django·2.2.8·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.5 KB
html2text {}
Max HTML report size reached
8.69 KB
./usr/share/doc/python-django-doc/html/releases/2.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·2.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·2.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.1.15·release·notes"·href="2.1.15.html"·/>15 ····<link·rel="next"·title="Django·2.1.15·release·notes"·href="2.1.15.html"·/>
15 ····<link·rel="prev"·title="Django·2.2.1·release·notes"·href="2.2.1.html"·/>16 ····<link·rel="prev"·title="Django·2.2.1·release·notes"·href="2.2.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 494, 15 lines modifiedOffset 495, 15 lines modified
494 with·several·third-party·apps·that·had·models·in·tests·without·migrations.495 with·several·third-party·apps·that·had·models·in·tests·without·migrations.
495 You·must·add·migrations·for·such·models.</p></li>496 You·must·add·migrations·for·such·models.</p></li>
496 <li><p>Providing·an·integer·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">key</span></code>·argument·of·the·<a·class="reference·internal"·href="../topics/cache.html#django.core.cache.cache.delete"·title="django.core.cache.cache.delete"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">cache.delete()</span></code></a>·or497 <li><p>Providing·an·integer·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">key</span></code>·argument·of·the·<a·class="reference·internal"·href="../topics/cache.html#django.core.cache.cache.delete"·title="django.core.cache.cache.delete"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">cache.delete()</span></code></a>·or
497 <a·class="reference·internal"·href="../topics/cache.html#django.core.cache.cache.get"·title="django.core.cache.cache.get"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">cache.get()</span></code></a>·now·raises·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/exceptions.html#ValueError"·title="(in·Python·v3.12)"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ValueError</span></code></a>.</p></li>498 <a·class="reference·internal"·href="../topics/cache.html#django.core.cache.cache.get"·title="django.core.cache.cache.get"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">cache.get()</span></code></a>·now·raises·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/exceptions.html#ValueError"·title="(in·Python·v3.12)"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ValueError</span></code></a>.</p></li>
498 <li><p>Plural·equations·for·some·languages·are·changed,·because·the·latest·versions499 <li><p>Plural·equations·for·some·languages·are·changed,·because·the·latest·versions
499 from·Transifex·are·incorporated.</p>500 from·Transifex·are·incorporated.</p>
500 <div·class="admonition·note">501 <div·class="admonition·note">
501 <p·class="admonition-title">Note</p>502 <p·class="admonition-title">Nota</p>
502 <p>The·ability·to·handle·<code·class="docutils·literal·notranslate"><span·class="pre">.po</span></code>·files·containing·different·plural·equations503 <p>The·ability·to·handle·<code·class="docutils·literal·notranslate"><span·class="pre">.po</span></code>·files·containing·different·plural·equations
503 for·the·same·language·was·added·in·Django·2.2.12.</p>504 for·the·same·language·was·added·in·Django·2.2.12.</p>
504 </div>505 </div>
505 </li>506 </li>
506 </ul>507 </ul>
507 </section>508 </section>
508 </section>509 </section>
Offset 604, 37 lines modifiedOffset 605, 37 lines modified
604 </li>605 </li>
605 </ul>606 </ul>
606 </li>607 </li>
607 </ul>608 </ul>
  
608 ··</div>609 ··</div>
609 ··<div>610 ··<div>
610 ····<h4>Previous·topic</h4>611 ····<h4>Argomento·precedente</h4>
611 ····<p·class="topless"><a·href="2.2.1.html"612 ····<p·class="topless"><a·href="2.2.1.html"
612 ··························title="previous·chapter">Django·2.2.1·release·notes</a></p>613 ··························title="capitolo·precedente">Django·2.2.1·release·notes</a></p>
613 ··</div>614 ··</div>
614 ··<div>615 ··<div>
615 ····<h4>Next·topic</h4>616 ····<h4>Argomento·successivo</h4>
616 ····<p·class="topless"><a·href="2.1.15.html"617 ····<p·class="topless"><a·href="2.1.15.html"
617 ··························title="next·chapter">Django·2.1.15·release·notes</a></p>618 ··························title="capitolo·successivo">Django·2.1.15·release·notes</a></p>
618 ··</div>619 ··</div>
619 <search·id="searchbox"·style="display:·none"·role="search">620 <search·id="searchbox"·style="display:·none"·role="search">
620 ··<h3·id="searchlabel">Quick·search</h3>621 ··<h3·id="searchlabel">Ricerca·veloce</h3>
621 ····<div·class="searchformwrapper">622 ····<div·class="searchformwrapper">
622 ····<form·class="search"·action="../search.html"·method="get">623 ····<form·class="search"·action="../search.html"·method="get">
623 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>624 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
624 ······<input·type="submit"·value="Go"·/>625 ······<input·type="submit"·value="Vai"·/>
625 ····</form>626 ····</form>
626 ····</div>627 ····</div>
627 </search>628 </search>
628 <script>document.getElementById('searchbox').style.display·=·"block"</script>629 <script>document.getElementById('searchbox').style.display·=·"block"</script>
629 ········</div>630 ········</div>
630 ······</div>631 ······</div>
631 ··············<h3>Last·update:</h3>632 ··············<h3>Last·update:</h3>
632 ··············<p·class="topless">Sep·03,·2024</p>633 ··············<p·class="topless">set·03,·2024</p>
633 ··········</div>634 ··········</div>
634 ········635 ········
635 ······636 ······
636 ····</div>637 ····</div>
  
637 ····<div·id="ft">638 ····<div·id="ft">
638 ······<div·class="nav">639 ······<div·class="nav">
3.56 KB
html2text {}
Max HTML report size reached
6.22 KB
./usr/share/doc/python-django-doc/html/releases/3.0.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0·release·notes"·href="3.0.html"·/>15 ····<link·rel="next"·title="Django·3.0·release·notes"·href="3.0.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.2·release·notes"·href="3.0.2.html"·/>16 ····<link·rel="prev"·title="Django·3.0.2·release·notes"·href="3.0.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 133, 37 lines modifiedOffset 134, 37 lines modified
133 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
134 </ul>135 </ul>
135 </li>136 </li>
136 </ul>137 </ul>
  
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Previous·topic</h4>140 ····<h4>Argomento·precedente</h4>
140 ····<p·class="topless"><a·href="3.0.2.html"141 ····<p·class="topless"><a·href="3.0.2.html"
141 ··························title="previous·chapter">Django·3.0.2·release·notes</a></p>142 ··························title="capitolo·precedente">Django·3.0.2·release·notes</a></p>
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Next·topic</h4>145 ····<h4>Argomento·successivo</h4>
145 ····<p·class="topless"><a·href="3.0.html"146 ····<p·class="topless"><a·href="3.0.html"
146 ··························title="next·chapter">Django·3.0·release·notes</a></p>147 ··························title="capitolo·successivo">Django·3.0·release·notes</a></p>
147 ··</div>148 ··</div>
148 <search·id="searchbox"·style="display:·none"·role="search">149 <search·id="searchbox"·style="display:·none"·role="search">
149 ··<h3·id="searchlabel">Quick·search</h3>150 ··<h3·id="searchlabel">Ricerca·veloce</h3>
150 ····<div·class="searchformwrapper">151 ····<div·class="searchformwrapper">
151 ····<form·class="search"·action="../search.html"·method="get">152 ····<form·class="search"·action="../search.html"·method="get">
152 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
153 ······<input·type="submit"·value="Go"·/>154 ······<input·type="submit"·value="Vai"·/>
154 ····</form>155 ····</form>
155 ····</div>156 ····</div>
156 </search>157 </search>
157 <script>document.getElementById('searchbox').style.display·=·"block"</script>158 <script>document.getElementById('searchbox').style.display·=·"block"</script>
158 ········</div>159 ········</div>
159 ······</div>160 ······</div>
160 ··············<h3>Last·update:</h3>161 ··············<h3>Last·update:</h3>
161 ··············<p·class="topless">Sep·03,·2024</p>162 ··············<p·class="topless">set·03,·2024</p>
162 ··········</div>163 ··········</div>
163 ········164 ········
164 ······165 ······
165 ····</div>166 ····</div>
  
166 ····<div·id="ft">167 ····<div·id="ft">
167 ······<div·class="nav">168 ······<div·class="nav">
2.49 KB
html2text {}
Max HTML report size reached
6.43 KB
./usr/share/doc/python-django-doc/html/releases/3.0.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.9·release·notes"·href="3.0.9.html"·/>15 ····<link·rel="next"·title="Django·3.0.9·release·notes"·href="3.0.9.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.11·release·notes"·href="3.0.11.html"·/>16 ····<link·rel="prev"·title="Django·3.0.11·release·notes"·href="3.0.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 128, 37 lines modifiedOffset 129, 37 lines modified
128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
129 </ul>130 </ul>
130 </li>131 </li>
131 </ul>132 </ul>
  
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Previous·topic</h4>135 ····<h4>Argomento·precedente</h4>
135 ····<p·class="topless"><a·href="3.0.11.html"136 ····<p·class="topless"><a·href="3.0.11.html"
136 ··························title="previous·chapter">Django·3.0.11·release·notes</a></p>137 ··························title="capitolo·precedente">Django·3.0.11·release·notes</a></p>
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Next·topic</h4>140 ····<h4>Argomento·successivo</h4>
140 ····<p·class="topless"><a·href="3.0.9.html"141 ····<p·class="topless"><a·href="3.0.9.html"
141 ··························title="next·chapter">Django·3.0.9·release·notes</a></p>142 ··························title="capitolo·successivo">Django·3.0.9·release·notes</a></p>
142 ··</div>143 ··</div>
143 <search·id="searchbox"·style="display:·none"·role="search">144 <search·id="searchbox"·style="display:·none"·role="search">
144 ··<h3·id="searchlabel">Quick·search</h3>145 ··<h3·id="searchlabel">Ricerca·veloce</h3>
145 ····<div·class="searchformwrapper">146 ····<div·class="searchformwrapper">
146 ····<form·class="search"·action="../search.html"·method="get">147 ····<form·class="search"·action="../search.html"·method="get">
147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
148 ······<input·type="submit"·value="Go"·/>149 ······<input·type="submit"·value="Vai"·/>
149 ····</form>150 ····</form>
150 ····</div>151 ····</div>
151 </search>152 </search>
152 <script>document.getElementById('searchbox').style.display·=·"block"</script>153 <script>document.getElementById('searchbox').style.display·=·"block"</script>
153 ········</div>154 ········</div>
154 ······</div>155 ······</div>
155 ··············<h3>Last·update:</h3>156 ··············<h3>Last·update:</h3>
156 ··············<p·class="topless">Sep·03,·2024</p>157 ··············<p·class="topless">set·03,·2024</p>
157 ··········</div>158 ··········</div>
158 ········159 ········
159 ······160 ······
160 ····</div>161 ····</div>
  
161 ····<div·id="ft">162 ····<div·id="ft">
162 ······<div·class="nav">163 ······<div·class="nav">
2.67 KB
html2text {}
Max HTML report size reached
5.71 KB
./usr/share/doc/python-django-doc/html/releases/3.0.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.10·release·notes"·href="3.0.10.html"·/>15 ····<link·rel="next"·title="Django·3.0.10·release·notes"·href="3.0.10.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.12·release·notes"·href="3.0.12.html"·/>16 ····<link·rel="prev"·title="Django·3.0.12·release·notes"·href="3.0.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="3.0.12.html"116 ····<p·class="topless"><a·href="3.0.12.html"
116 ··························title="previous·chapter">Django·3.0.12·release·notes</a></p>117 ··························title="capitolo·precedente">Django·3.0.12·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="3.0.10.html"121 ····<p·class="topless"><a·href="3.0.10.html"
121 ··························title="next·chapter">Django·3.0.10·release·notes</a></p>122 ··························title="capitolo·successivo">Django·3.0.10·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.95 KB
html2text {}
Max HTML report size reached
8.12 KB
./usr/share/doc/python-django-doc/html/releases/3.0.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.11·release·notes"·href="3.0.11.html"·/>15 ····<link·rel="next"·title="Django·3.0.11·release·notes"·href="3.0.11.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.13·release·notes"·href="3.0.13.html"·/>16 ····<link·rel="prev"·title="Django·3.0.13·release·notes"·href="3.0.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.0.12">79 ··········<div·class="yui-g"·id="releases-3.0.12">
79 ············80 ············
80 ··<section·id="s-django-3-0-12-release-notes">81 ··<section·id="s-django-3-0-12-release-notes">
81 <span·id="django-3-0-12-release-notes"></span><h1>Django·3.0.12·release·notes<a·class="headerlink"·href="#django-3-0-12-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-0-12-release-notes"></span><h1>Django·3.0.12·release·notes<a·class="headerlink"·href="#django-3-0-12-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2021</em></p>83 <p><em>February·1,·2021</em></p>
83 <p>Django·3.0.12·fixes·a·security·issue·with·severity·low·in·3.0.11.</p>84 <p>Django·3.0.12·fixes·a·security·issue·with·severity·«low»·in·3.0.11.</p>
84 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">85 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">
85 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by
87 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed88 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed
88 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with89 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with
89 dot·segments.</p>90 dot·segments.</p>
90 </section>91 </section>
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract">CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code></a></li>108 <li><a·class="reference·internal"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract">CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code></a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="3.0.13.html"115 ····<p·class="topless"><a·href="3.0.13.html"
115 ··························title="previous·chapter">Django·3.0.13·release·notes</a></p>116 ··························title="capitolo·precedente">Django·3.0.13·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="3.0.11.html"120 ····<p·class="topless"><a·href="3.0.11.html"
120 ··························title="next·chapter">Django·3.0.11·release·notes</a></p>121 ··························title="capitolo·successivo">Django·3.0.11·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.49 KB
html2text {}
Max HTML report size reached
6.42 KB
./usr/share/doc/python-django-doc/html/releases/3.0.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.12·release·notes"·href="3.0.12.html"·/>15 ····<link·rel="next"·title="Django·3.0.12·release·notes"·href="3.0.12.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.14·release·notes"·href="3.0.14.html"·/>16 ····<link·rel="prev"·title="Django·3.0.14·release·notes"·href="3.0.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2021-23336-web-cache-poisoning-via-django-utils-http-limited-parse-qsl">CVE-2021-23336:·Web·cache·poisoning·via·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.limited_parse_qsl()</span></code></a></li>109 <li><a·class="reference·internal"·href="#cve-2021-23336-web-cache-poisoning-via-django-utils-http-limited-parse-qsl">CVE-2021-23336:·Web·cache·poisoning·via·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.http.limited_parse_qsl()</span></code></a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="3.0.14.html"116 ····<p·class="topless"><a·href="3.0.14.html"
116 ··························title="previous·chapter">Django·3.0.14·release·notes</a></p>117 ··························title="capitolo·precedente">Django·3.0.14·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="3.0.12.html"121 ····<p·class="topless"><a·href="3.0.12.html"
121 ··························title="next·chapter">Django·3.0.12·release·notes</a></p>122 ··························title="capitolo·successivo">Django·3.0.12·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.46 KB
html2text {}
Max HTML report size reached
7.36 KB
./usr/share/doc/python-django-doc/html/releases/3.0.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.13·release·notes"·href="3.0.13.html"·/>15 ····<link·rel="next"·title="Django·3.0.13·release·notes"·href="3.0.13.html"·/>
15 ····<link·rel="prev"·title="Django·3.1·release·notes"·href="3.1.html"·/>16 ····<link·rel="prev"·title="Django·3.1·release·notes"·href="3.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.0.14">79 ··········<div·class="yui-g"·id="releases-3.0.14">
79 ············80 ············
80 ··<section·id="s-django-3-0-14-release-notes">81 ··<section·id="s-django-3-0-14-release-notes">
81 <span·id="django-3-0-14-release-notes"></span><h1>Django·3.0.14·release·notes<a·class="headerlink"·href="#django-3-0-14-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-0-14-release-notes"></span><h1>Django·3.0.14·release·notes<a·class="headerlink"·href="#django-3-0-14-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·6,·2021</em></p>83 <p><em>April·6,·2021</em></p>
83 <p>Django·3.0.14·fixes·a·security·issue·with·severity·low·in·3.0.13.</p>84 <p>Django·3.0.14·fixes·a·security·issue·with·severity·«low»·in·3.0.13.</p>
84 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">85 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">
85 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with87 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with
87 suitably·crafted·file·names.</p>88 suitably·crafted·file·names.</p>
88 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>89 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files">CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files</a></li>107 <li><a·class="reference·internal"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files">CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files</a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="3.1.html"114 ····<p·class="topless"><a·href="3.1.html"
114 ··························title="previous·chapter">Django·3.1·release·notes</a></p>115 ··························title="capitolo·precedente">Django·3.1·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="3.0.13.html"119 ····<p·class="topless"><a·href="3.0.13.html"
119 ··························title="next·chapter">Django·3.0.13·release·notes</a></p>120 ··························title="capitolo·successivo">Django·3.0.13·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.34 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/3.0.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.1·release·notes"·href="3.0.1.html"·/>15 ····<link·rel="next"·title="Django·3.0.1·release·notes"·href="3.0.1.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.3·release·notes"·href="3.0.3.html"·/>16 ····<link·rel="prev"·title="Django·3.0.3·release·notes"·href="3.0.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="3.0.3.html"123 ····<p·class="topless"><a·href="3.0.3.html"
123 ··························title="previous·chapter">Django·3.0.3·release·notes</a></p>124 ··························title="capitolo·precedente">Django·3.0.3·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="3.0.1.html"128 ····<p·class="topless"><a·href="3.0.1.html"
128 ··························title="next·chapter">Django·3.0.1·release·notes</a></p>129 ··························title="capitolo·successivo">Django·3.0.1·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
6.18 KB
./usr/share/doc/python-django-doc/html/releases/3.0.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.2·release·notes"·href="3.0.2.html"·/>15 ····<link·rel="next"·title="Django·3.0.2·release·notes"·href="3.0.2.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.4·release·notes"·href="3.0.4.html"·/>16 ····<link·rel="prev"·title="Django·3.0.4·release·notes"·href="3.0.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 134, 37 lines modifiedOffset 135, 37 lines modified
134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>135 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
135 </ul>136 </ul>
136 </li>137 </li>
137 </ul>138 </ul>
  
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Previous·topic</h4>141 ····<h4>Argomento·precedente</h4>
141 ····<p·class="topless"><a·href="3.0.4.html"142 ····<p·class="topless"><a·href="3.0.4.html"
142 ··························title="previous·chapter">Django·3.0.4·release·notes</a></p>143 ··························title="capitolo·precedente">Django·3.0.4·release·notes</a></p>
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Next·topic</h4>146 ····<h4>Argomento·successivo</h4>
146 ····<p·class="topless"><a·href="3.0.2.html"147 ····<p·class="topless"><a·href="3.0.2.html"
147 ··························title="next·chapter">Django·3.0.2·release·notes</a></p>148 ··························title="capitolo·successivo">Django·3.0.2·release·notes</a></p>
148 ··</div>149 ··</div>
149 <search·id="searchbox"·style="display:·none"·role="search">150 <search·id="searchbox"·style="display:·none"·role="search">
150 ··<h3·id="searchlabel">Quick·search</h3>151 ··<h3·id="searchlabel">Ricerca·veloce</h3>
151 ····<div·class="searchformwrapper">152 ····<div·class="searchformwrapper">
152 ····<form·class="search"·action="../search.html"·method="get">153 ····<form·class="search"·action="../search.html"·method="get">
153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
154 ······<input·type="submit"·value="Go"·/>155 ······<input·type="submit"·value="Vai"·/>
155 ····</form>156 ····</form>
156 ····</div>157 ····</div>
157 </search>158 </search>
158 <script>document.getElementById('searchbox').style.display·=·"block"</script>159 <script>document.getElementById('searchbox').style.display·=·"block"</script>
159 ········</div>160 ········</div>
160 ······</div>161 ······</div>
161 ··············<h3>Last·update:</h3>162 ··············<h3>Last·update:</h3>
162 ··············<p·class="topless">Sep·03,·2024</p>163 ··············<p·class="topless">set·03,·2024</p>
163 ··········</div>164 ··········</div>
164 ········165 ········
165 ······166 ······
166 ····</div>167 ····</div>
  
167 ····<div·id="ft">168 ····<div·id="ft">
168 ······<div·class="nav">169 ······<div·class="nav">
2.44 KB
html2text {}
Max HTML report size reached
6.28 KB
./usr/share/doc/python-django-doc/html/releases/3.0.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.3·release·notes"·href="3.0.3.html"·/>15 ····<link·rel="next"·title="Django·3.0.3·release·notes"·href="3.0.3.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.5·release·notes"·href="3.0.5.html"·/>16 ····<link·rel="prev"·title="Django·3.0.5·release·notes"·href="3.0.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 127, 37 lines modifiedOffset 128, 37 lines modified
127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
128 </ul>129 </ul>
129 </li>130 </li>
130 </ul>131 </ul>
  
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Previous·topic</h4>134 ····<h4>Argomento·precedente</h4>
134 ····<p·class="topless"><a·href="3.0.5.html"135 ····<p·class="topless"><a·href="3.0.5.html"
135 ··························title="previous·chapter">Django·3.0.5·release·notes</a></p>136 ··························title="capitolo·precedente">Django·3.0.5·release·notes</a></p>
136 ··</div>137 ··</div>
137 ··<div>138 ··<div>
138 ····<h4>Next·topic</h4>139 ····<h4>Argomento·successivo</h4>
139 ····<p·class="topless"><a·href="3.0.3.html"140 ····<p·class="topless"><a·href="3.0.3.html"
140 ··························title="next·chapter">Django·3.0.3·release·notes</a></p>141 ··························title="capitolo·successivo">Django·3.0.3·release·notes</a></p>
141 ··</div>142 ··</div>
142 <search·id="searchbox"·style="display:·none"·role="search">143 <search·id="searchbox"·style="display:·none"·role="search">
143 ··<h3·id="searchlabel">Quick·search</h3>144 ··<h3·id="searchlabel">Ricerca·veloce</h3>
144 ····<div·class="searchformwrapper">145 ····<div·class="searchformwrapper">
145 ····<form·class="search"·action="../search.html"·method="get">146 ····<form·class="search"·action="../search.html"·method="get">
146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
147 ······<input·type="submit"·value="Go"·/>148 ······<input·type="submit"·value="Vai"·/>
148 ····</form>149 ····</form>
149 ····</div>150 ····</div>
150 </search>151 </search>
151 <script>document.getElementById('searchbox').style.display·=·"block"</script>152 <script>document.getElementById('searchbox').style.display·=·"block"</script>
152 ········</div>153 ········</div>
153 ······</div>154 ······</div>
154 ··············<h3>Last·update:</h3>155 ··············<h3>Last·update:</h3>
155 ··············<p·class="topless">Sep·03,·2024</p>156 ··············<p·class="topless">set·03,·2024</p>
156 ··········</div>157 ··········</div>
157 ········158 ········
158 ······159 ······
159 ····</div>160 ····</div>
  
160 ····<div·id="ft">161 ····<div·id="ft">
161 ······<div·class="nav">162 ······<div·class="nav">
2.54 KB
html2text {}
Max HTML report size reached
5.86 KB
./usr/share/doc/python-django-doc/html/releases/3.0.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.4·release·notes"·href="3.0.4.html"·/>15 ····<link·rel="next"·title="Django·3.0.4·release·notes"·href="3.0.4.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.6·release·notes"·href="3.0.6.html"·/>16 ····<link·rel="prev"·title="Django·3.0.6·release·notes"·href="3.0.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="3.0.6.html"118 ····<p·class="topless"><a·href="3.0.6.html"
118 ··························title="previous·chapter">Django·3.0.6·release·notes</a></p>119 ··························title="capitolo·precedente">Django·3.0.6·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="3.0.4.html"123 ····<p·class="topless"><a·href="3.0.4.html"
123 ··························title="next·chapter">Django·3.0.4·release·notes</a></p>124 ··························title="capitolo·successivo">Django·3.0.4·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
5.7 KB
./usr/share/doc/python-django-doc/html/releases/3.0.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.5·release·notes"·href="3.0.5.html"·/>15 ····<link·rel="next"·title="Django·3.0.5·release·notes"·href="3.0.5.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.7·release·notes"·href="3.0.7.html"·/>16 ····<link·rel="prev"·title="Django·3.0.7·release·notes"·href="3.0.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="3.0.7.html"116 ····<p·class="topless"><a·href="3.0.7.html"
116 ··························title="previous·chapter">Django·3.0.7·release·notes</a></p>117 ··························title="capitolo·precedente">Django·3.0.7·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="3.0.5.html"121 ····<p·class="topless"><a·href="3.0.5.html"
121 ··························title="next·chapter">Django·3.0.5·release·notes</a></p>122 ··························title="capitolo·successivo">Django·3.0.5·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.96 KB
html2text {}
Max HTML report size reached
6.22 KB
./usr/share/doc/python-django-doc/html/releases/3.0.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.6·release·notes"·href="3.0.6.html"·/>15 ····<link·rel="next"·title="Django·3.0.6·release·notes"·href="3.0.6.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.8·release·notes"·href="3.0.8.html"·/>16 ····<link·rel="prev"·title="Django·3.0.8·release·notes"·href="3.0.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 138, 37 lines modifiedOffset 139, 37 lines modified
138 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>139 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
139 </ul>140 </ul>
140 </li>141 </li>
141 </ul>142 </ul>
  
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Previous·topic</h4>145 ····<h4>Argomento·precedente</h4>
145 ····<p·class="topless"><a·href="3.0.8.html"146 ····<p·class="topless"><a·href="3.0.8.html"
146 ··························title="previous·chapter">Django·3.0.8·release·notes</a></p>147 ··························title="capitolo·precedente">Django·3.0.8·release·notes</a></p>
147 ··</div>148 ··</div>
148 ··<div>149 ··<div>
149 ····<h4>Next·topic</h4>150 ····<h4>Argomento·successivo</h4>
150 ····<p·class="topless"><a·href="3.0.6.html"151 ····<p·class="topless"><a·href="3.0.6.html"
151 ··························title="next·chapter">Django·3.0.6·release·notes</a></p>152 ··························title="capitolo·successivo">Django·3.0.6·release·notes</a></p>
152 ··</div>153 ··</div>
153 <search·id="searchbox"·style="display:·none"·role="search">154 <search·id="searchbox"·style="display:·none"·role="search">
154 ··<h3·id="searchlabel">Quick·search</h3>155 ··<h3·id="searchlabel">Ricerca·veloce</h3>
155 ····<div·class="searchformwrapper">156 ····<div·class="searchformwrapper">
156 ····<form·class="search"·action="../search.html"·method="get">157 ····<form·class="search"·action="../search.html"·method="get">
157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
158 ······<input·type="submit"·value="Go"·/>159 ······<input·type="submit"·value="Vai"·/>
159 ····</form>160 ····</form>
160 ····</div>161 ····</div>
161 </search>162 </search>
162 <script>document.getElementById('searchbox').style.display·=·"block"</script>163 <script>document.getElementById('searchbox').style.display·=·"block"</script>
163 ········</div>164 ········</div>
164 ······</div>165 ······</div>
165 ··············<h3>Last·update:</h3>166 ··············<h3>Last·update:</h3>
166 ··············<p·class="topless">Sep·03,·2024</p>167 ··············<p·class="topless">set·03,·2024</p>
167 ··········</div>168 ··········</div>
168 ········169 ········
169 ······170 ······
170 ····</div>171 ····</div>
  
171 ····<div·id="ft">172 ····<div·id="ft">
172 ······<div·class="nav">173 ······<div·class="nav">
2.48 KB
html2text {}
Max HTML report size reached
5.85 KB
./usr/share/doc/python-django-doc/html/releases/3.0.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.7·release·notes"·href="3.0.7.html"·/>15 ····<link·rel="next"·title="Django·3.0.7·release·notes"·href="3.0.7.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.9·release·notes"·href="3.0.9.html"·/>16 ····<link·rel="prev"·title="Django·3.0.9·release·notes"·href="3.0.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="3.0.9.html"124 ····<p·class="topless"><a·href="3.0.9.html"
124 ··························title="previous·chapter">Django·3.0.9·release·notes</a></p>125 ··························title="capitolo·precedente">Django·3.0.9·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="3.0.7.html"129 ····<p·class="topless"><a·href="3.0.7.html"
129 ··························title="next·chapter">Django·3.0.7·release·notes</a></p>130 ··························title="capitolo·successivo">Django·3.0.7·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.11 KB
html2text {}
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/releases/3.0.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.8·release·notes"·href="3.0.8.html"·/>15 ····<link·rel="next"·title="Django·3.0.8·release·notes"·href="3.0.8.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.10·release·notes"·href="3.0.10.html"·/>16 ····<link·rel="prev"·title="Django·3.0.10·release·notes"·href="3.0.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="3.0.10.html"117 ····<p·class="topless"><a·href="3.0.10.html"
117 ··························title="previous·chapter">Django·3.0.10·release·notes</a></p>118 ··························title="capitolo·precedente">Django·3.0.10·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="3.0.8.html"122 ····<p·class="topless"><a·href="3.0.8.html"
122 ··························title="next·chapter">Django·3.0.8·release·notes</a></p>123 ··························title="capitolo·successivo">Django·3.0.8·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
19.2 KB
./usr/share/doc/python-django-doc/html/releases/3.0.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.0·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.0·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·2.2.28·release·notes"·href="2.2.28.html"·/>15 ····<link·rel="next"·title="Django·2.2.28·release·notes"·href="2.2.28.html"·/>
15 ····<link·rel="prev"·title="Django·3.0.1·release·notes"·href="3.0.1.html"·/>16 ····<link·rel="prev"·title="Django·3.0.1·release·notes"·href="3.0.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 15 lines modifiedOffset 123, 15 lines modified
122 are·not·yet·supported.·You·can,·however,·use·ASGI·middleware·around·Django’s123 are·not·yet·supported.·You·can,·however,·use·ASGI·middleware·around·Django’s
123 application,·allowing·you·to·combine·Django·with·other·ASGI·frameworks.</p>124 application,·allowing·you·to·combine·Django·with·other·ASGI·frameworks.</p>
124 <p>There·is·no·need·to·switch·your·applications·over·unless·you·want·to·start125 <p>There·is·no·need·to·switch·your·applications·over·unless·you·want·to·start
125 experimenting·with·asynchronous·code,·but·we·have126 experimenting·with·asynchronous·code,·but·we·have
126 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">documentation·on·deploying·with·ASGI</span></a>·if127 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">documentation·on·deploying·with·ASGI</span></a>·if
127 you·want·to·learn·more.</p>128 you·want·to·learn·more.</p>
128 <p>Note·that·as·a·side-effect·of·this·change,·Django·is·now·aware·of·asynchronous129 <p>Note·that·as·a·side-effect·of·this·change,·Django·is·now·aware·of·asynchronous
129 event·loops·and·will·block·you·calling·code·marked·as·async·unsafe·-·such·as130 event·loops·and·will·block·you·calling·code·marked·as·«async·unsafe»·-·such·as
130 ORM·operations·-·from·an·asynchronous·context.·If·you·were·using·Django·from131 ORM·operations·-·from·an·asynchronous·context.·If·you·were·using·Django·from
131 async·code·before,·this·may·trigger·if·you·were·doing·it·incorrectly.·If·you132 async·code·before,·this·may·trigger·if·you·were·doing·it·incorrectly.·If·you
132 see·a·<code·class="docutils·literal·notranslate"><span·class="pre">SynchronousOnlyOperation</span></code>·error,·then·closely·examine·your·code·and133 see·a·<code·class="docutils·literal·notranslate"><span·class="pre">SynchronousOnlyOperation</span></code>·error,·then·closely·examine·your·code·and
133 move·any·database·operations·to·be·in·a·synchronous·child·thread.</p>134 move·any·database·operations·to·be·in·a·synchronous·child·thread.</p>
134 </section>135 </section>
135 <section·id="s-exclusion-constraints-on-postgresql">136 <section·id="s-exclusion-constraints-on-postgresql">
136 <span·id="exclusion-constraints-on-postgresql"></span><h3>Exclusion·constraints·on·PostgreSQL<a·class="headerlink"·href="#exclusion-constraints-on-postgresql"·title="Link·to·this·heading">¶</a></h3>137 <span·id="exclusion-constraints-on-postgresql"></span><h3>Exclusion·constraints·on·PostgreSQL<a·class="headerlink"·href="#exclusion-constraints-on-postgresql"·title="Link·to·this·heading">¶</a></h3>
Offset 336, 15 lines modifiedOffset 337, 15 lines modified
336 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.SmallAutoField"·title="django.db.models.SmallAutoField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SmallAutoField</span></code></a>·now·inherit·from337 <a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.SmallAutoField"·title="django.db.models.SmallAutoField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SmallAutoField</span></code></a>·now·inherit·from
337 <code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">BigIntegerField</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">SmallIntegerField</span></code>·respectively.338 <code·class="docutils·literal·notranslate"><span·class="pre">IntegerField</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">BigIntegerField</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">SmallIntegerField</span></code>·respectively.
338 System·checks·and·validators·are·now·also·properly·inherited.</p></li>339 System·checks·and·validators·are·now·also·properly·inherited.</p></li>
339 <li><p><a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.FileField.upload_to"·title="django.db.models.FileField.upload_to"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">FileField.upload_to</span></code></a>·now·supports·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/pathlib.html#pathlib.Path"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">pathlib.Path</span></code></a>.</p></li>340 <li><p><a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.FileField.upload_to"·title="django.db.models.FileField.upload_to"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">FileField.upload_to</span></code></a>·now·supports·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/pathlib.html#pathlib.Path"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">pathlib.Path</span></code></a>.</p></li>
340 <li><p><a·class="reference·internal"·href="../ref/models/constraints.html#django.db.models.CheckConstraint"·title="django.db.models.CheckConstraint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CheckConstraint</span></code></a>·is·now·supported·on·MySQL·8.0.16+.</p></li>341 <li><p><a·class="reference·internal"·href="../ref/models/constraints.html#django.db.models.CheckConstraint"·title="django.db.models.CheckConstraint"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CheckConstraint</span></code></a>·is·now·supported·on·MySQL·8.0.16+.</p></li>
341 <li><p>The·new·<code·class="docutils·literal·notranslate"><span·class="pre">allows_group_by_selected_pks_on_model()</span></code>·method·of342 <li><p>The·new·<code·class="docutils·literal·notranslate"><span·class="pre">allows_group_by_selected_pks_on_model()</span></code>·method·of
342 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.backends.base.BaseDatabaseFeatures</span></code>·allows·optimization·of343 <code·class="docutils·literal·notranslate"><span·class="pre">django.db.backends.base.BaseDatabaseFeatures</span></code>·allows·optimization·of
343 <code·class="docutils·literal·notranslate"><span·class="pre">GROUP</span>·<span·class="pre">BY</span></code>·clauses·to·require·only·the·selected·models·primary·keys.·By344 <code·class="docutils·literal·notranslate"><span·class="pre">GROUP</span>·<span·class="pre">BY</span></code>·clauses·to·require·only·the·selected·models·primary·keys.·By
344 default,·it’s·supported·only·for·managed·models·on·PostgreSQL.</p>345 default,·it’s·supported·only·for·managed·models·on·PostgreSQL.</p>
345 <p>To·enable·the·<code·class="docutils·literal·notranslate"><span·class="pre">GROUP</span>·<span·class="pre">BY</span></code>·primary·key-only·optimization·for·unmanaged346 <p>To·enable·the·<code·class="docutils·literal·notranslate"><span·class="pre">GROUP</span>·<span·class="pre">BY</span></code>·primary·key-only·optimization·for·unmanaged
346 models,·you·have·to·subclass·the·PostgreSQL·database·engine,·overriding·the347 models,·you·have·to·subclass·the·PostgreSQL·database·engine,·overriding·the
347 features·class·<code·class="docutils·literal·notranslate"><span·class="pre">allows_group_by_selected_pks_on_model()</span></code>·method·as·you348 features·class·<code·class="docutils·literal·notranslate"><span·class="pre">allows_group_by_selected_pks_on_model()</span></code>·method·as·you
348 require.·See·<a·class="reference·internal"·href="../ref/databases.html#subclassing-database-backends"><span·class="std·std-ref">Subclassing·the·built-in·database·backends</span></a>·for·an·example.</p>349 require.·See·<a·class="reference·internal"·href="../ref/databases.html#subclassing-database-backends"><span·class="std·std-ref">Subclassing·the·built-in·database·backends</span></a>·for·an·example.</p>
349 </li>350 </li>
350 </ul>351 </ul>
Offset 482, 15 lines modifiedOffset 483, 15 lines modified
482 <span·id="removed-private-python-2-compatibility-apis"></span><h3>Removed·private·Python·2·compatibility·APIs<a·class="headerlink"·href="#removed-private-python-2-compatibility-apis"·title="Link·to·this·heading">¶</a></h3>483 <span·id="removed-private-python-2-compatibility-apis"></span><h3>Removed·private·Python·2·compatibility·APIs<a·class="headerlink"·href="#removed-private-python-2-compatibility-apis"·title="Link·to·this·heading">¶</a></h3>
483 <p>While·Python·2·support·was·removed·in·Django·2.0,·some·private·APIs·weren’t484 <p>While·Python·2·support·was·removed·in·Django·2.0,·some·private·APIs·weren’t
484 removed·from·Django·so·that·third·party·apps·could·continue·using·them·until485 removed·from·Django·so·that·third·party·apps·could·continue·using·them·until
485 the·Python·2·end-of-life.</p>486 the·Python·2·end-of-life.</p>
486 <p>Since·we·expect·apps·to·drop·Python·2·compatibility·when·adding·support·for487 <p>Since·we·expect·apps·to·drop·Python·2·compatibility·when·adding·support·for
487 Django·3.0,·we’re·removing·these·APIs·at·this·time.</p>488 Django·3.0,·we’re·removing·these·APIs·at·this·time.</p>
488 <ul·class="simple">489 <ul·class="simple">
489 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.test.utils.str_prefix()</span></code>·-·Strings·don’t·have·u·prefixes·in490 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.test.utils.str_prefix()</span></code>·-·Strings·don’t·have·u·prefixes·in
490 Python·3.</p></li>491 Python·3.</p></li>
491 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.test.utils.patch_logger()</span></code>·-·Use492 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.test.utils.patch_logger()</span></code>·-·Use
492 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertLogs"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">unittest.TestCase.assertLogs()</span></code></a>·instead.</p></li>493 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase.assertLogs"·title="(in·Python·v3.12)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">unittest.TestCase.assertLogs()</span></code></a>·instead.</p></li>
493 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.lru_cache.lru_cache()</span></code>·-·Alias·of494 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.lru_cache.lru_cache()</span></code>·-·Alias·of
494 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functools.html#functools.lru_cache"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">functools.lru_cache()</span></code></a>.</p></li>495 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functools.html#functools.lru_cache"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">functools.lru_cache()</span></code></a>.</p></li>
495 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.decorators.available_attrs()</span></code>·-·This·function·returns496 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.decorators.available_attrs()</span></code>·-·This·function·returns
496 <code·class="docutils·literal·notranslate"><span·class="pre">functools.WRAPPER_ASSIGNMENTS</span></code>.</p></li>497 <code·class="docutils·literal·notranslate"><span·class="pre">functools.WRAPPER_ASSIGNMENTS</span></code>.</p></li>
Offset 596, 15 lines modifiedOffset 597, 15 lines modified
596 in·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_COOKIE_NAME"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_COOKIE_NAME</span></code></a>·cookie.</p></li>597 in·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-LANGUAGE_COOKIE_NAME"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LANGUAGE_COOKIE_NAME</span></code></a>·cookie.</p></li>
597 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.unescape_entities()</span></code>·is·deprecated·in·favor·of598 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.unescape_entities()</span></code>·is·deprecated·in·favor·of
598 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/html.html#html.unescape"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">html.unescape()</span></code></a>.·Note·that·unlike·<code·class="docutils·literal·notranslate"><span·class="pre">unescape_entities()</span></code>,599 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/html.html#html.unescape"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">html.unescape()</span></code></a>.·Note·that·unlike·<code·class="docutils·literal·notranslate"><span·class="pre">unescape_entities()</span></code>,
599 <code·class="docutils·literal·notranslate"><span·class="pre">html.unescape()</span></code>·evaluates·lazy·strings·immediately.</p></li>600 <code·class="docutils·literal·notranslate"><span·class="pre">html.unescape()</span></code>·evaluates·lazy·strings·immediately.</p></li>
600 <li><p>To·avoid·possible·confusion·as·to·effective·scope,·the·private·internal601 <li><p>To·avoid·possible·confusion·as·to·effective·scope,·the·private·internal
601 utility·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·is·renamed·to602 utility·<code·class="docutils·literal·notranslate"><span·class="pre">is_safe_url()</span></code>·is·renamed·to
602 <code·class="docutils·literal·notranslate"><span·class="pre">url_has_allowed_host_and_scheme()</span></code>.·That·a·URL·has·an·allowed·host·and603 <code·class="docutils·literal·notranslate"><span·class="pre">url_has_allowed_host_and_scheme()</span></code>.·That·a·URL·has·an·allowed·host·and
603 scheme·doesn’t·in·general·imply·that·it’s·safe.·It·may·still·be·quoted604 scheme·doesn’t·in·general·imply·that·it’s·«safe».·It·may·still·be·quoted
604 incorrectly,·for·example.·Ensure·to·also·use605 incorrectly,·for·example.·Ensure·to·also·use
605 <a·class="reference·internal"·href="../ref/utils.html#django.utils.encoding.iri_to_uri"·title="django.utils.encoding.iri_to_uri"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code></a>·on·the·path·component·of·untrusted606 <a·class="reference·internal"·href="../ref/utils.html#django.utils.encoding.iri_to_uri"·title="django.utils.encoding.iri_to_uri"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">iri_to_uri()</span></code></a>·on·the·path·component·of·untrusted
606 URLs.</p></li>607 URLs.</p></li>
607 </ul>608 </ul>
608 </section>609 </section>
609 </section>610 </section>
610 <section·id="s-features-removed-in-3-0">611 <section·id="s-features-removed-in-3-0">
Offset 698, 37 lines modifiedOffset 699, 37 lines modified
698 <li><a·class="reference·internal"·href="#features-removed-in-3-0">Features·removed·in·3.0</a></li>699 <li><a·class="reference·internal"·href="#features-removed-in-3-0">Features·removed·in·3.0</a></li>
699 </ul>700 </ul>
700 </li>701 </li>
701 </ul>702 </ul>
  
702 ··</div>703 ··</div>
703 ··<div>704 ··<div>
704 ····<h4>Previous·topic</h4>705 ····<h4>Argomento·precedente</h4>
705 ····<p·class="topless"><a·href="3.0.1.html"706 ····<p·class="topless"><a·href="3.0.1.html"
706 ··························title="previous·chapter">Django·3.0.1·release·notes</a></p>707 ··························title="capitolo·precedente">Django·3.0.1·release·notes</a></p>
707 ··</div>708 ··</div>
708 ··<div>709 ··<div>
709 ····<h4>Next·topic</h4>710 ····<h4>Argomento·successivo</h4>
710 ····<p·class="topless"><a·href="2.2.28.html"711 ····<p·class="topless"><a·href="2.2.28.html"
711 ··························title="next·chapter">Django·2.2.28·release·notes</a></p>712 ··························title="capitolo·successivo">Django·2.2.28·release·notes</a></p>
712 ··</div>713 ··</div>
713 <search·id="searchbox"·style="display:·none"·role="search">714 <search·id="searchbox"·style="display:·none"·role="search">
714 ··<h3·id="searchlabel">Quick·search</h3>715 ··<h3·id="searchlabel">Ricerca·veloce</h3>
715 ····<div·class="searchformwrapper">716 ····<div·class="searchformwrapper">
716 ····<form·class="search"·action="../search.html"·method="get">717 ····<form·class="search"·action="../search.html"·method="get">
717 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>718 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
718 ······<input·type="submit"·value="Go"·/>719 ······<input·type="submit"·value="Vai"·/>
719 ····</form>720 ····</form>
Max diff block lines reached; 353/11681 bytes (3.02%) of diff not shown.
7.68 KB
html2text {}
Max HTML report size reached
6.38 KB
./usr/share/doc/python-django-doc/html/releases/3.1.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1·release·notes"·href="3.1.html"·/>15 ····<link·rel="next"·title="Django·3.1·release·notes"·href="3.1.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.2·release·notes"·href="3.1.2.html"·/>16 ····<link·rel="prev"·title="Django·3.1.2·release·notes"·href="3.1.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 165, 37 lines modifiedOffset 166, 37 lines modified
165 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>166 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
166 </ul>167 </ul>
167 </li>168 </li>
168 </ul>169 </ul>
  
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Previous·topic</h4>172 ····<h4>Argomento·precedente</h4>
172 ····<p·class="topless"><a·href="3.1.2.html"173 ····<p·class="topless"><a·href="3.1.2.html"
173 ··························title="previous·chapter">Django·3.1.2·release·notes</a></p>174 ··························title="capitolo·precedente">Django·3.1.2·release·notes</a></p>
174 ··</div>175 ··</div>
175 ··<div>176 ··<div>
176 ····<h4>Next·topic</h4>177 ····<h4>Argomento·successivo</h4>
177 ····<p·class="topless"><a·href="3.1.html"178 ····<p·class="topless"><a·href="3.1.html"
178 ··························title="next·chapter">Django·3.1·release·notes</a></p>179 ··························title="capitolo·successivo">Django·3.1·release·notes</a></p>
179 ··</div>180 ··</div>
180 <search·id="searchbox"·style="display:·none"·role="search">181 <search·id="searchbox"·style="display:·none"·role="search">
181 ··<h3·id="searchlabel">Quick·search</h3>182 ··<h3·id="searchlabel">Ricerca·veloce</h3>
182 ····<div·class="searchformwrapper">183 ····<div·class="searchformwrapper">
183 ····<form·class="search"·action="../search.html"·method="get">184 ····<form·class="search"·action="../search.html"·method="get">
184 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>185 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
185 ······<input·type="submit"·value="Go"·/>186 ······<input·type="submit"·value="Vai"·/>
186 ····</form>187 ····</form>
187 ····</div>188 ····</div>
188 </search>189 </search>
189 <script>document.getElementById('searchbox').style.display·=·"block"</script>190 <script>document.getElementById('searchbox').style.display·=·"block"</script>
190 ········</div>191 ········</div>
191 ······</div>192 ······</div>
192 ··············<h3>Last·update:</h3>193 ··············<h3>Last·update:</h3>
193 ··············<p·class="topless">Sep·03,·2024</p>194 ··············<p·class="topless">set·03,·2024</p>
194 ··········</div>195 ··········</div>
195 ········196 ········
196 ······197 ······
197 ····</div>198 ····</div>
  
198 ····<div·id="ft">199 ····<div·id="ft">
199 ······<div·class="nav">200 ······<div·class="nav">
2.65 KB
html2text {}
Max HTML report size reached
6.52 KB
./usr/share/doc/python-django-doc/html/releases/3.1.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.9·release·notes"·href="3.1.9.html"·/>15 ····<link·rel="next"·title="Django·3.1.9·release·notes"·href="3.1.9.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.11·release·notes"·href="3.1.11.html"·/>16 ····<link·rel="prev"·title="Django·3.1.11·release·notes"·href="3.1.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#cve-2021-32052-header-injection-possibility-since-urlvalidator-accepted-newlines-in-input-on-python-3-9-5">CVE-2021-32052:·Header·injection·possibility·since·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·accepted·newlines·in·input·on·Python·3.9.5+</a></li>113 <li><a·class="reference·internal"·href="#cve-2021-32052-header-injection-possibility-since-urlvalidator-accepted-newlines-in-input-on-python-3-9-5">CVE-2021-32052:·Header·injection·possibility·since·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·accepted·newlines·in·input·on·Python·3.9.5+</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="3.1.11.html"120 ····<p·class="topless"><a·href="3.1.11.html"
120 ··························title="previous·chapter">Django·3.1.11·release·notes</a></p>121 ··························title="capitolo·precedente">Django·3.1.11·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="3.1.9.html"125 ····<p·class="topless"><a·href="3.1.9.html"
125 ··························title="next·chapter">Django·3.1.9·release·notes</a></p>126 ··························title="capitolo·successivo">Django·3.1.9·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.51 KB
html2text {}
Max HTML report size reached
5.74 KB
./usr/share/doc/python-django-doc/html/releases/3.1.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.10·release·notes"·href="3.1.10.html"·/>15 ····<link·rel="next"·title="Django·3.1.10·release·notes"·href="3.1.10.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.12·release·notes"·href="3.1.12.html"·/>16 ····<link·rel="prev"·title="Django·3.1.12·release·notes"·href="3.1.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="3.1.12.html"117 ····<p·class="topless"><a·href="3.1.12.html"
117 ··························title="previous·chapter">Django·3.1.12·release·notes</a></p>118 ··························title="capitolo·precedente">Django·3.1.12·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="3.1.10.html"122 ····<p·class="topless"><a·href="3.1.10.html"
122 ··························title="next·chapter">Django·3.1.10·release·notes</a></p>123 ··························title="capitolo·successivo">Django·3.1.10·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
1.98 KB
html2text {}
Max HTML report size reached
6.74 KB
./usr/share/doc/python-django-doc/html/releases/3.1.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.11·release·notes"·href="3.1.11.html"·/>15 ····<link·rel="next"·title="Django·3.1.11·release·notes"·href="3.1.11.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.13·release·notes"·href="3.1.13.html"·/>16 ····<link·rel="prev"·title="Django·3.1.13·release·notes"·href="3.1.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#cve-2021-33571-possible-indeterminate-ssrf-rfi-and-lfi-attacks-since-validators-accepted-leading-zeros-in-ipv4-addresses">CVE-2021-33571:·Possible·indeterminate·SSRF,·RFI,·and·LFI·attacks·since·validators·accepted·leading·zeros·in·IPv4·addresses</a></li>123 <li><a·class="reference·internal"·href="#cve-2021-33571-possible-indeterminate-ssrf-rfi-and-lfi-attacks-since-validators-accepted-leading-zeros-in-ipv4-addresses">CVE-2021-33571:·Possible·indeterminate·SSRF,·RFI,·and·LFI·attacks·since·validators·accepted·leading·zeros·in·IPv4·addresses</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="3.1.13.html"130 ····<p·class="topless"><a·href="3.1.13.html"
130 ··························title="previous·chapter">Django·3.1.13·release·notes</a></p>131 ··························title="capitolo·precedente">Django·3.1.13·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="3.1.11.html"135 ····<p·class="topless"><a·href="3.1.11.html"
135 ··························title="next·chapter">Django·3.1.11·release·notes</a></p>136 ··························title="capitolo·successivo">Django·3.1.11·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.76 KB
html2text {}
Max HTML report size reached
8.23 KB
./usr/share/doc/python-django-doc/html/releases/3.1.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.12·release·notes"·href="3.1.12.html"·/>15 ····<link·rel="next"·title="Django·3.1.12·release·notes"·href="3.1.12.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.14·release·notes"·href="3.1.14.html"·/>16 ····<link·rel="prev"·title="Django·3.1.14·release·notes"·href="3.1.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.1.13">79 ··········<div·class="yui-g"·id="releases-3.1.13">
79 ············80 ············
80 ··<section·id="s-django-3-1-13-release-notes">81 ··<section·id="s-django-3-1-13-release-notes">
81 <span·id="django-3-1-13-release-notes"></span><h1>Django·3.1.13·release·notes<a·class="headerlink"·href="#django-3-1-13-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-1-13-release-notes"></span><h1>Django·3.1.13·release·notes<a·class="headerlink"·href="#django-3-1-13-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·1,·2021</em></p>83 <p><em>July·1,·2021</em></p>
83 <p>Django·3.1.13·fixes·a·security·issue·with·severity·high·in·3.1.12.</p>84 <p>Django·3.1.13·fixes·a·security·issue·with·severity·«high»·in·3.1.12.</p>
84 <section·id="s-cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">85 <section·id="s-cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">
85 <span·id="cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"></span><h2>CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input<a·class="headerlink"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"></span><h2>CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input<a·class="headerlink"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"·title="Link·to·this·heading">¶</a></h2>
86 <p>Unsanitized·user·input·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·could·bypass·intended87 <p>Unsanitized·user·input·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·could·bypass·intended
87 column·reference·validation·in·path·marked·for·deprecation·resulting·in·a88 column·reference·validation·in·path·marked·for·deprecation·resulting·in·a
88 potential·SQL·injection·even·if·a·deprecation·warning·is·emitted.</p>89 potential·SQL·injection·even·if·a·deprecation·warning·is·emitted.</p>
89 <p>As·a·mitigation·the·strict·column·reference·validation·was·restored·for·the90 <p>As·a·mitigation·the·strict·column·reference·validation·was·restored·for·the
90 duration·of·the·deprecation·period.·This·regression·appeared·in·3.1·as·a·side91 duration·of·the·deprecation·period.·This·regression·appeared·in·3.1·as·a·side
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input</a></li>112 <li><a·class="reference·internal"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input</a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="3.1.14.html"119 ····<p·class="topless"><a·href="3.1.14.html"
119 ··························title="previous·chapter">Django·3.1.14·release·notes</a></p>120 ··························title="capitolo·precedente">Django·3.1.14·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="3.1.12.html"124 ····<p·class="topless"><a·href="3.1.12.html"
124 ··························title="next·chapter">Django·3.1.12·release·notes</a></p>125 ··························title="capitolo·successivo">Django·3.1.12·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.78 KB
html2text {}
Max HTML report size reached
7.38 KB
./usr/share/doc/python-django-doc/html/releases/3.1.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.13·release·notes"·href="3.1.13.html"·/>15 ····<link·rel="next"·title="Django·3.1.13·release·notes"·href="3.1.13.html"·/>
15 ····<link·rel="prev"·title="Django·3.2·release·notes"·href="3.2.html"·/>16 ····<link·rel="prev"·title="Django·3.2·release·notes"·href="3.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.1.14">79 ··········<div·class="yui-g"·id="releases-3.1.14">
79 ············80 ············
80 ··<section·id="s-django-3-1-14-release-notes">81 ··<section·id="s-django-3-1-14-release-notes">
81 <span·id="django-3-1-14-release-notes"></span><h1>Django·3.1.14·release·notes<a·class="headerlink"·href="#django-3-1-14-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-1-14-release-notes"></span><h1>Django·3.1.14·release·notes<a·class="headerlink"·href="#django-3-1-14-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·7,·2021</em></p>83 <p><em>December·7,·2021</em></p>
83 <p>Django·3.1.14·fixes·a·security·issue·with·severity·low·in·3.1.13.</p>84 <p>Django·3.1.14·fixes·a·security·issue·with·severity·«low»·in·3.1.13.</p>
84 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">85 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">
85 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>
86 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access87 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access
87 control·based·on·URL·paths.</p>88 control·based·on·URL·paths.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths</a></li>106 <li><a·class="reference·internal"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="3.2.html"113 ····<p·class="topless"><a·href="3.2.html"
113 ··························title="previous·chapter">Django·3.2·release·notes</a></p>114 ··························title="capitolo·precedente">Django·3.2·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="3.1.13.html"118 ····<p·class="topless"><a·href="3.1.13.html"
118 ··························title="next·chapter">Django·3.1.13·release·notes</a></p>119 ··························title="capitolo·successivo">Django·3.1.13·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.39 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/3.1.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.1·release·notes"·href="3.1.1.html"·/>15 ····<link·rel="next"·title="Django·3.1.1·release·notes"·href="3.1.1.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.3·release·notes"·href="3.1.3.html"·/>16 ····<link·rel="prev"·title="Django·3.1.3·release·notes"·href="3.1.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 120, 37 lines modifiedOffset 121, 37 lines modified
120 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
121 </ul>122 </ul>
122 </li>123 </li>
123 </ul>124 </ul>
  
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Previous·topic</h4>127 ····<h4>Argomento·precedente</h4>
127 ····<p·class="topless"><a·href="3.1.3.html"128 ····<p·class="topless"><a·href="3.1.3.html"
128 ··························title="previous·chapter">Django·3.1.3·release·notes</a></p>129 ··························title="capitolo·precedente">Django·3.1.3·release·notes</a></p>
129 ··</div>130 ··</div>
130 ··<div>131 ··<div>
131 ····<h4>Next·topic</h4>132 ····<h4>Argomento·successivo</h4>
132 ····<p·class="topless"><a·href="3.1.1.html"133 ····<p·class="topless"><a·href="3.1.1.html"
133 ··························title="next·chapter">Django·3.1.1·release·notes</a></p>134 ··························title="capitolo·successivo">Django·3.1.1·release·notes</a></p>
134 ··</div>135 ··</div>
135 <search·id="searchbox"·style="display:·none"·role="search">136 <search·id="searchbox"·style="display:·none"·role="search">
136 ··<h3·id="searchlabel">Quick·search</h3>137 ··<h3·id="searchlabel">Ricerca·veloce</h3>
137 ····<div·class="searchformwrapper">138 ····<div·class="searchformwrapper">
138 ····<form·class="search"·action="../search.html"·method="get">139 ····<form·class="search"·action="../search.html"·method="get">
139 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
140 ······<input·type="submit"·value="Go"·/>141 ······<input·type="submit"·value="Vai"·/>
141 ····</form>142 ····</form>
142 ····</div>143 ····</div>
143 </search>144 </search>
144 <script>document.getElementById('searchbox').style.display·=·"block"</script>145 <script>document.getElementById('searchbox').style.display·=·"block"</script>
145 ········</div>146 ········</div>
146 ······</div>147 ······</div>
147 ··············<h3>Last·update:</h3>148 ··············<h3>Last·update:</h3>
148 ··············<p·class="topless">Sep·03,·2024</p>149 ··············<p·class="topless">set·03,·2024</p>
149 ··········</div>150 ··········</div>
150 ········151 ········
151 ······152 ······
152 ····</div>153 ····</div>
  
153 ····<div·id="ft">154 ····<div·id="ft">
154 ······<div·class="nav">155 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
5.81 KB
./usr/share/doc/python-django-doc/html/releases/3.1.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.2·release·notes"·href="3.1.2.html"·/>15 ····<link·rel="next"·title="Django·3.1.2·release·notes"·href="3.1.2.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.4·release·notes"·href="3.1.4.html"·/>16 ····<link·rel="prev"·title="Django·3.1.4·release·notes"·href="3.1.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 144, 37 lines modifiedOffset 145, 37 lines modified
144 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>145 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 </ul>148 </ul>
  
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Previous·topic</h4>151 ····<h4>Argomento·precedente</h4>
151 ····<p·class="topless"><a·href="3.1.4.html"152 ····<p·class="topless"><a·href="3.1.4.html"
152 ··························title="previous·chapter">Django·3.1.4·release·notes</a></p>153 ··························title="capitolo·precedente">Django·3.1.4·release·notes</a></p>
153 ··</div>154 ··</div>
154 ··<div>155 ··<div>
155 ····<h4>Next·topic</h4>156 ····<h4>Argomento·successivo</h4>
156 ····<p·class="topless"><a·href="3.1.2.html"157 ····<p·class="topless"><a·href="3.1.2.html"
157 ··························title="next·chapter">Django·3.1.2·release·notes</a></p>158 ··························title="capitolo·successivo">Django·3.1.2·release·notes</a></p>
158 ··</div>159 ··</div>
159 <search·id="searchbox"·style="display:·none"·role="search">160 <search·id="searchbox"·style="display:·none"·role="search">
160 ··<h3·id="searchlabel">Quick·search</h3>161 ··<h3·id="searchlabel">Ricerca·veloce</h3>
161 ····<div·class="searchformwrapper">162 ····<div·class="searchformwrapper">
162 ····<form·class="search"·action="../search.html"·method="get">163 ····<form·class="search"·action="../search.html"·method="get">
163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
164 ······<input·type="submit"·value="Go"·/>165 ······<input·type="submit"·value="Vai"·/>
165 ····</form>166 ····</form>
166 ····</div>167 ····</div>
167 </search>168 </search>
168 <script>document.getElementById('searchbox').style.display·=·"block"</script>169 <script>document.getElementById('searchbox').style.display·=·"block"</script>
169 ········</div>170 ········</div>
170 ······</div>171 ······</div>
171 ··············<h3>Last·update:</h3>172 ··············<h3>Last·update:</h3>
172 ··············<p·class="topless">Sep·03,·2024</p>173 ··············<p·class="topless">set·03,·2024</p>
173 ··········</div>174 ··········</div>
174 ········175 ········
175 ······176 ······
176 ····</div>177 ····</div>
  
177 ····<div·id="ft">178 ····<div·id="ft">
178 ······<div·class="nav">179 ······<div·class="nav">
2.06 KB
html2text {}
Max HTML report size reached
5.89 KB
./usr/share/doc/python-django-doc/html/releases/3.1.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.3·release·notes"·href="3.1.3.html"·/>15 ····<link·rel="next"·title="Django·3.1.3·release·notes"·href="3.1.3.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.5·release·notes"·href="3.1.5.html"·/>16 ····<link·rel="prev"·title="Django·3.1.5·release·notes"·href="3.1.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 122, 37 lines modifiedOffset 123, 37 lines modified
122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
123 </ul>124 </ul>
124 </li>125 </li>
125 </ul>126 </ul>
  
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Previous·topic</h4>129 ····<h4>Argomento·precedente</h4>
129 ····<p·class="topless"><a·href="3.1.5.html"130 ····<p·class="topless"><a·href="3.1.5.html"
130 ··························title="previous·chapter">Django·3.1.5·release·notes</a></p>131 ··························title="capitolo·precedente">Django·3.1.5·release·notes</a></p>
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Next·topic</h4>134 ····<h4>Argomento·successivo</h4>
134 ····<p·class="topless"><a·href="3.1.3.html"135 ····<p·class="topless"><a·href="3.1.3.html"
135 ··························title="next·chapter">Django·3.1.3·release·notes</a></p>136 ··························title="capitolo·successivo">Django·3.1.3·release·notes</a></p>
136 ··</div>137 ··</div>
137 <search·id="searchbox"·style="display:·none"·role="search">138 <search·id="searchbox"·style="display:·none"·role="search">
138 ··<h3·id="searchlabel">Quick·search</h3>139 ··<h3·id="searchlabel">Ricerca·veloce</h3>
139 ····<div·class="searchformwrapper">140 ····<div·class="searchformwrapper">
140 ····<form·class="search"·action="../search.html"·method="get">141 ····<form·class="search"·action="../search.html"·method="get">
141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
142 ······<input·type="submit"·value="Go"·/>143 ······<input·type="submit"·value="Vai"·/>
143 ····</form>144 ····</form>
144 ····</div>145 ····</div>
145 </search>146 </search>
146 <script>document.getElementById('searchbox').style.display·=·"block"</script>147 <script>document.getElementById('searchbox').style.display·=·"block"</script>
147 ········</div>148 ········</div>
148 ······</div>149 ······</div>
149 ··············<h3>Last·update:</h3>150 ··············<h3>Last·update:</h3>
150 ··············<p·class="topless">Sep·03,·2024</p>151 ··············<p·class="topless">set·03,·2024</p>
151 ··········</div>152 ··········</div>
152 ········153 ········
153 ······154 ······
154 ····</div>155 ····</div>
  
155 ····<div·id="ft">156 ····<div·id="ft">
156 ······<div·class="nav">157 ······<div·class="nav">
2.15 KB
html2text {}
Max HTML report size reached
5.93 KB
./usr/share/doc/python-django-doc/html/releases/3.1.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.4·release·notes"·href="3.1.4.html"·/>15 ····<link·rel="next"·title="Django·3.1.4·release·notes"·href="3.1.4.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.6·release·notes"·href="3.1.6.html"·/>16 ····<link·rel="prev"·title="Django·3.1.6·release·notes"·href="3.1.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="3.1.6.html"124 ····<p·class="topless"><a·href="3.1.6.html"
124 ··························title="previous·chapter">Django·3.1.6·release·notes</a></p>125 ··························title="capitolo·precedente">Django·3.1.6·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="3.1.4.html"129 ····<p·class="topless"><a·href="3.1.4.html"
129 ··························title="next·chapter">Django·3.1.4·release·notes</a></p>130 ··························title="capitolo·successivo">Django·3.1.4·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
2.19 KB
html2text {}
Max HTML report size reached
8.17 KB
./usr/share/doc/python-django-doc/html/releases/3.1.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.5·release·notes"·href="3.1.5.html"·/>15 ····<link·rel="next"·title="Django·3.1.5·release·notes"·href="3.1.5.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.7·release·notes"·href="3.1.7.html"·/>16 ····<link·rel="prev"·title="Django·3.1.7·release·notes"·href="3.1.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.1.6">79 ··········<div·class="yui-g"·id="releases-3.1.6">
79 ············80 ············
80 ··<section·id="s-django-3-1-6-release-notes">81 ··<section·id="s-django-3-1-6-release-notes">
81 <span·id="django-3-1-6-release-notes"></span><h1>Django·3.1.6·release·notes<a·class="headerlink"·href="#django-3-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-1-6-release-notes"></span><h1>Django·3.1.6·release·notes<a·class="headerlink"·href="#django-3-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2021</em></p>83 <p><em>February·1,·2021</em></p>
83 <p>Django·3.1.6·fixes·a·security·issue·with·severity·low·and·a·bug·in·3.1.5.</p>84 <p>Django·3.1.6·fixes·a·security·issue·with·severity·«low»·and·a·bug·in·3.1.5.</p>
84 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">85 <section·id="s-cve-2021-3281-potential-directory-traversal-via-archive-extract">
85 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-3281-potential-directory-traversal-via-archive-extract"></span><h2>CVE-2021-3281:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">archive.extract()</span></code><a·class="headerlink"·href="#cve-2021-3281-potential-directory-traversal-via-archive-extract"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.archive.extract()</span></code>·function,·used·by
87 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed88 <a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startapp-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startapp</span>·<span·class="pre">--template</span></code></a>·and·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-startproject-template"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">startproject</span>·<span·class="pre">--template</span></code></a>,·allowed
88 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with89 directory-traversal·via·an·archive·with·absolute·paths·or·relative·paths·with
89 dot·segments.</p>90 dot·segments.</p>
90 </section>91 </section>
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="3.1.7.html"123 ····<p·class="topless"><a·href="3.1.7.html"
123 ··························title="previous·chapter">Django·3.1.7·release·notes</a></p>124 ··························title="capitolo·precedente">Django·3.1.7·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="3.1.5.html"128 ····<p·class="topless"><a·href="3.1.5.html"
128 ··························title="next·chapter">Django·3.1.5·release·notes</a></p>129 ··························title="capitolo·successivo">Django·3.1.5·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.73 KB
html2text {}
Max HTML report size reached
6.15 KB
./usr/share/doc/python-django-doc/html/releases/3.1.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.6·release·notes"·href="3.1.6.html"·/>15 ····<link·rel="next"·title="Django·3.1.6·release·notes"·href="3.1.6.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.8·release·notes"·href="3.1.8.html"·/>16 ····<link·rel="prev"·title="Django·3.1.8·release·notes"·href="3.1.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="3.1.8.html"125 ····<p·class="topless"><a·href="3.1.8.html"
125 ··························title="previous·chapter">Django·3.1.8·release·notes</a></p>126 ··························title="capitolo·precedente">Django·3.1.8·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="3.1.6.html"130 ····<p·class="topless"><a·href="3.1.6.html"
130 ··························title="next·chapter">Django·3.1.6·release·notes</a></p>131 ··························title="capitolo·successivo">Django·3.1.6·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
7.58 KB
./usr/share/doc/python-django-doc/html/releases/3.1.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.7·release·notes"·href="3.1.7.html"·/>15 ····<link·rel="next"·title="Django·3.1.7·release·notes"·href="3.1.7.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.9·release·notes"·href="3.1.9.html"·/>16 ····<link·rel="prev"·title="Django·3.1.9·release·notes"·href="3.1.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.1.8">79 ··········<div·class="yui-g"·id="releases-3.1.8">
79 ············80 ············
80 ··<section·id="s-django-3-1-8-release-notes">81 ··<section·id="s-django-3-1-8-release-notes">
81 <span·id="django-3-1-8-release-notes"></span><h1>Django·3.1.8·release·notes<a·class="headerlink"·href="#django-3-1-8-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-1-8-release-notes"></span><h1>Django·3.1.8·release·notes<a·class="headerlink"·href="#django-3-1-8-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·6,·2021</em></p>83 <p><em>April·6,·2021</em></p>
83 <p>Django·3.1.8·fixes·a·security·issue·with·severity·low·and·a·bug·in·3.1.7.</p>84 <p>Django·3.1.8·fixes·a·security·issue·with·severity·«low»·and·a·bug·in·3.1.7.</p>
84 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">85 <section·id="s-cve-2021-28658-potential-directory-traversal-via-uploaded-files">
85 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-28658-potential-directory-traversal-via-uploaded-files"></span><h2>CVE-2021-28658:·Potential·directory-traversal·via·uploaded·files<a·class="headerlink"·href="#cve-2021-28658-potential-directory-traversal-via-uploaded-files"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with87 <p><code·class="docutils·literal·notranslate"><span·class="pre">MultiPartParser</span></code>·allowed·directory-traversal·via·uploaded·files·with
87 suitably·crafted·file·names.</p>88 suitably·crafted·file·names.</p>
88 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>89 <p>Built-in·upload·handlers·were·not·affected·by·this·vulnerability.</p>
89 </section>90 </section>
90 <section·id="s-bugfixes">91 <section·id="s-bugfixes">
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="3.1.9.html"123 ····<p·class="topless"><a·href="3.1.9.html"
123 ··························title="previous·chapter">Django·3.1.9·release·notes</a></p>124 ··························title="capitolo·precedente">Django·3.1.9·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="3.1.7.html"128 ····<p·class="topless"><a·href="3.1.7.html"
128 ··························title="next·chapter">Django·3.1.7·release·notes</a></p>129 ··························title="capitolo·successivo">Django·3.1.7·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.65 KB
html2text {}
Max HTML report size reached
6.15 KB
./usr/share/doc/python-django-doc/html/releases/3.1.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.8·release·notes"·href="3.1.8.html"·/>15 ····<link·rel="next"·title="Django·3.1.8·release·notes"·href="3.1.8.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.10·release·notes"·href="3.1.10.html"·/>16 ····<link·rel="prev"·title="Django·3.1.10·release·notes"·href="3.1.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2021-31542-potential-directory-traversal-via-uploaded-files">CVE-2021-31542:·Potential·directory-traversal·via·uploaded·files</a></li>108 <li><a·class="reference·internal"·href="#cve-2021-31542-potential-directory-traversal-via-uploaded-files">CVE-2021-31542:·Potential·directory-traversal·via·uploaded·files</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="3.1.10.html"115 ····<p·class="topless"><a·href="3.1.10.html"
115 ··························title="previous·chapter">Django·3.1.10·release·notes</a></p>116 ··························title="capitolo·precedente">Django·3.1.10·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="3.1.8.html"120 ····<p·class="topless"><a·href="3.1.8.html"
120 ··························title="next·chapter">Django·3.1.8·release·notes</a></p>121 ··························title="capitolo·successivo">Django·3.1.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.3 KB
html2text {}
Max HTML report size reached
6.11 KB
./usr/share/doc/python-django-doc/html/releases/3.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.0.14·release·notes"·href="3.0.14.html"·/>15 ····<link·rel="next"·title="Django·3.0.14·release·notes"·href="3.0.14.html"·/>
15 ····<link·rel="prev"·title="Django·3.1.1·release·notes"·href="3.1.1.html"·/>16 ····<link·rel="prev"·title="Django·3.1.1·release·notes"·href="3.1.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 878, 37 lines modifiedOffset 879, 37 lines modified
878 <li><a·class="reference·internal"·href="#features-removed-in-3-1">Features·removed·in·3.1</a></li>879 <li><a·class="reference·internal"·href="#features-removed-in-3-1">Features·removed·in·3.1</a></li>
879 </ul>880 </ul>
880 </li>881 </li>
881 </ul>882 </ul>
  
882 ··</div>883 ··</div>
883 ··<div>884 ··<div>
884 ····<h4>Previous·topic</h4>885 ····<h4>Argomento·precedente</h4>
885 ····<p·class="topless"><a·href="3.1.1.html"886 ····<p·class="topless"><a·href="3.1.1.html"
886 ··························title="previous·chapter">Django·3.1.1·release·notes</a></p>887 ··························title="capitolo·precedente">Django·3.1.1·release·notes</a></p>
887 ··</div>888 ··</div>
888 ··<div>889 ··<div>
889 ····<h4>Next·topic</h4>890 ····<h4>Argomento·successivo</h4>
890 ····<p·class="topless"><a·href="3.0.14.html"891 ····<p·class="topless"><a·href="3.0.14.html"
891 ··························title="next·chapter">Django·3.0.14·release·notes</a></p>892 ··························title="capitolo·successivo">Django·3.0.14·release·notes</a></p>
892 ··</div>893 ··</div>
893 <search·id="searchbox"·style="display:·none"·role="search">894 <search·id="searchbox"·style="display:·none"·role="search">
894 ··<h3·id="searchlabel">Quick·search</h3>895 ··<h3·id="searchlabel">Ricerca·veloce</h3>
895 ····<div·class="searchformwrapper">896 ····<div·class="searchformwrapper">
896 ····<form·class="search"·action="../search.html"·method="get">897 ····<form·class="search"·action="../search.html"·method="get">
897 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>898 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
898 ······<input·type="submit"·value="Go"·/>899 ······<input·type="submit"·value="Vai"·/>
899 ····</form>900 ····</form>
900 ····</div>901 ····</div>
901 </search>902 </search>
902 <script>document.getElementById('searchbox').style.display·=·"block"</script>903 <script>document.getElementById('searchbox').style.display·=·"block"</script>
903 ········</div>904 ········</div>
904 ······</div>905 ······</div>
905 ··············<h3>Last·update:</h3>906 ··············<h3>Last·update:</h3>
906 ··············<p·class="topless">Sep·03,·2024</p>907 ··············<p·class="topless">set·03,·2024</p>
907 ··········</div>908 ··········</div>
908 ········909 ········
909 ······910 ······
910 ····</div>911 ····</div>
  
911 ····<div·id="ft">912 ····<div·id="ft">
912 ······<div·class="nav">913 ······<div·class="nav">
2.34 KB
html2text {}
Max HTML report size reached
6.17 KB
./usr/share/doc/python-django-doc/html/releases/3.2.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2·release·notes"·href="3.2.html"·/>15 ····<link·rel="next"·title="Django·3.2·release·notes"·href="3.2.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.2·release·notes"·href="3.2.2.html"·/>16 ····<link·rel="prev"·title="Django·3.2.2·release·notes"·href="3.2.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 160, 37 lines modifiedOffset 161, 37 lines modified
160 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>161 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
161 </ul>162 </ul>
162 </li>163 </li>
163 </ul>164 </ul>
  
164 ··</div>165 ··</div>
165 ··<div>166 ··<div>
166 ····<h4>Previous·topic</h4>167 ····<h4>Argomento·precedente</h4>
167 ····<p·class="topless"><a·href="3.2.2.html"168 ····<p·class="topless"><a·href="3.2.2.html"
168 ··························title="previous·chapter">Django·3.2.2·release·notes</a></p>169 ··························title="capitolo·precedente">Django·3.2.2·release·notes</a></p>
169 ··</div>170 ··</div>
170 ··<div>171 ··<div>
171 ····<h4>Next·topic</h4>172 ····<h4>Argomento·successivo</h4>
172 ····<p·class="topless"><a·href="3.2.html"173 ····<p·class="topless"><a·href="3.2.html"
173 ··························title="next·chapter">Django·3.2·release·notes</a></p>174 ··························title="capitolo·successivo">Django·3.2·release·notes</a></p>
174 ··</div>175 ··</div>
175 <search·id="searchbox"·style="display:·none"·role="search">176 <search·id="searchbox"·style="display:·none"·role="search">
176 ··<h3·id="searchlabel">Quick·search</h3>177 ··<h3·id="searchlabel">Ricerca·veloce</h3>
177 ····<div·class="searchformwrapper">178 ····<div·class="searchformwrapper">
178 ····<form·class="search"·action="../search.html"·method="get">179 ····<form·class="search"·action="../search.html"·method="get">
179 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
180 ······<input·type="submit"·value="Go"·/>181 ······<input·type="submit"·value="Vai"·/>
181 ····</form>182 ····</form>
182 ····</div>183 ····</div>
183 </search>184 </search>
184 <script>document.getElementById('searchbox').style.display·=·"block"</script>185 <script>document.getElementById('searchbox').style.display·=·"block"</script>
185 ········</div>186 ········</div>
186 ······</div>187 ······</div>
187 ··············<h3>Last·update:</h3>188 ··············<h3>Last·update:</h3>
188 ··············<p·class="topless">Sep·03,·2024</p>189 ··············<p·class="topless">set·03,·2024</p>
189 ··········</div>190 ··········</div>
190 ········191 ········
191 ······192 ······
192 ····</div>193 ····</div>
  
193 ····<div·id="ft">194 ····<div·id="ft">
194 ······<div·class="nav">195 ······<div·class="nav">
2.44 KB
html2text {}
Max HTML report size reached
7.68 KB
./usr/share/doc/python-django-doc/html/releases/3.2.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.9·release·notes"·href="3.2.9.html"·/>15 ····<link·rel="next"·title="Django·3.2.9·release·notes"·href="3.2.9.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.11·release·notes"·href="3.2.11.html"·/>16 ····<link·rel="prev"·title="Django·3.2.11·release·notes"·href="3.2.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.10">79 ··········<div·class="yui-g"·id="releases-3.2.10">
79 ············80 ············
80 ··<section·id="s-django-3-2-10-release-notes">81 ··<section·id="s-django-3-2-10-release-notes">
81 <span·id="django-3-2-10-release-notes"></span><h1>Django·3.2.10·release·notes<a·class="headerlink"·href="#django-3-2-10-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-10-release-notes"></span><h1>Django·3.2.10·release·notes<a·class="headerlink"·href="#django-3-2-10-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>December·7,·2021</em></p>83 <p><em>December·7,·2021</em></p>
83 <p>Django·3.2.10·fixes·a·security·issue·with·severity·low·and·a·bug·in·3.2.9.</p>84 <p>Django·3.2.10·fixes·a·security·issue·with·severity·«low»·and·a·bug·in·3.2.9.</p>
84 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">85 <section·id="s-cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths">
85 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"></span><h2>CVE-2021-44420:·Potential·bypass·of·an·upstream·access·control·based·on·URL·paths<a·class="headerlink"·href="#cve-2021-44420-potential-bypass-of-an-upstream-access-control-based-on-url-paths"·title="Link·to·this·heading">¶</a></h2>
86 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access87 <p>HTTP·requests·for·URLs·with·trailing·newlines·could·bypass·an·upstream·access
87 control·based·on·URL·paths.</p>88 control·based·on·URL·paths.</p>
88 </section>89 </section>
89 <section·id="s-bugfixes">90 <section·id="s-bugfixes">
90 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>91 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>115 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="3.2.11.html"122 ····<p·class="topless"><a·href="3.2.11.html"
122 ··························title="previous·chapter">Django·3.2.11·release·notes</a></p>123 ··························title="capitolo·precedente">Django·3.2.11·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="3.2.9.html"127 ····<p·class="topless"><a·href="3.2.9.html"
127 ··························title="next·chapter">Django·3.2.9·release·notes</a></p>128 ··························title="capitolo·successivo">Django·3.2.9·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
2.68 KB
html2text {}
Max HTML report size reached
14.0 KB
./usr/share/doc/python-django-doc/html/releases/3.2.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.10·release·notes"·href="3.2.10.html"·/>15 ····<link·rel="next"·title="Django·3.2.10·release·notes"·href="3.2.10.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.12·release·notes"·href="3.2.12.html"·/>16 ····<link·rel="prev"·title="Django·3.2.12·release·notes"·href="3.2.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 42 lines modifiedOffset 77, 42 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.11">79 ··········<div·class="yui-g"·id="releases-3.2.11">
79 ············80 ············
80 ··<section·id="s-django-3-2-11-release-notes">81 ··<section·id="s-django-3-2-11-release-notes">
81 <span·id="django-3-2-11-release-notes"></span><h1>Django·3.2.11·release·notes<a·class="headerlink"·href="#django-3-2-11-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-11-release-notes"></span><h1>Django·3.2.11·release·notes<a·class="headerlink"·href="#django-3-2-11-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>January·4,·2022</em></p>83 <p><em>January·4,·2022</em></p>
83 <p>Django·3.2.11·fixes·one·security·issue·with·severity·medium·and·two·security84 <p>Django·3.2.11·fixes·one·security·issue·with·severity·«medium»·and·two·security
84 issues·with·severity·low·in·3.2.10.</p>85 issues·with·severity·«low»·in·3.2.10.</p>
85 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">86 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">
86 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead88 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead
88 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the89 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the
89 comparison·values.·On·the·assumption·that·access·to·user·registration·was90 comparison·values.·On·the·assumption·that·access·to·user·registration·was
90 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>91 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>
91 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by92 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by
92 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>93 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>
93 <p>This·issue·has·severity·medium·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>94 <p>This·issue·has·severity·«medium»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
94 </section>95 </section>
95 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">96 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">
96 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>97 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>
97 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the98 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the
98 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information99 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information
99 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>100 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>
100 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted101 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted
101 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on102 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on
102 dictionaries.</p>103 dictionaries.</p>
103 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>104 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>
104 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>105 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
105 </section>106 </section>
106 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">107 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">
107 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>108 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>
108 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably109 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably
109 crafted·file·names.</p>110 crafted·file·names.</p>
110 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>111 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
111 </section>112 </section>
112 </section>113 </section>
  
  
113 ··········</div>114 ··········</div>
114 ········</div>115 ········</div>
115 ······</div>116 ······</div>
Offset 130, 37 lines modifiedOffset 131, 37 lines modified
130 <li><a·class="reference·internal"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save">CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code></a></li>131 <li><a·class="reference·internal"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save">CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code></a></li>
131 </ul>132 </ul>
132 </li>133 </li>
133 </ul>134 </ul>
  
134 ··</div>135 ··</div>
135 ··<div>136 ··<div>
136 ····<h4>Previous·topic</h4>137 ····<h4>Argomento·precedente</h4>
137 ····<p·class="topless"><a·href="3.2.12.html"138 ····<p·class="topless"><a·href="3.2.12.html"
138 ··························title="previous·chapter">Django·3.2.12·release·notes</a></p>139 ··························title="capitolo·precedente">Django·3.2.12·release·notes</a></p>
139 ··</div>140 ··</div>
140 ··<div>141 ··<div>
141 ····<h4>Next·topic</h4>142 ····<h4>Argomento·successivo</h4>
142 ····<p·class="topless"><a·href="3.2.10.html"143 ····<p·class="topless"><a·href="3.2.10.html"
143 ··························title="next·chapter">Django·3.2.10·release·notes</a></p>144 ··························title="capitolo·successivo">Django·3.2.10·release·notes</a></p>
144 ··</div>145 ··</div>
145 <search·id="searchbox"·style="display:·none"·role="search">146 <search·id="searchbox"·style="display:·none"·role="search">
146 ··<h3·id="searchlabel">Quick·search</h3>147 ··<h3·id="searchlabel">Ricerca·veloce</h3>
147 ····<div·class="searchformwrapper">148 ····<div·class="searchformwrapper">
148 ····<form·class="search"·action="../search.html"·method="get">149 ····<form·class="search"·action="../search.html"·method="get">
149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>150 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
150 ······<input·type="submit"·value="Go"·/>151 ······<input·type="submit"·value="Vai"·/>
151 ····</form>152 ····</form>
152 ····</div>153 ····</div>
153 </search>154 </search>
154 <script>document.getElementById('searchbox').style.display·=·"block"</script>155 <script>document.getElementById('searchbox').style.display·=·"block"</script>
155 ········</div>156 ········</div>
156 ······</div>157 ······</div>
157 ··············<h3>Last·update:</h3>158 ··············<h3>Last·update:</h3>
158 ··············<p·class="topless">Sep·03,·2024</p>159 ··············<p·class="topless">set·03,·2024</p>
159 ··········</div>160 ··········</div>
160 ········161 ········
161 ······162 ······
162 ····</div>163 ····</div>
  
163 ····<div·id="ft">164 ····<div·id="ft">
164 ······<div·class="nav">165 ······<div·class="nav">
5.02 KB
html2text {}
Max HTML report size reached
8.66 KB
./usr/share/doc/python-django-doc/html/releases/3.2.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.11·release·notes"·href="3.2.11.html"·/>15 ····<link·rel="next"·title="Django·3.2.11·release·notes"·href="3.2.11.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.13·release·notes"·href="3.2.13.html"·/>16 ····<link·rel="prev"·title="Django·3.2.13·release·notes"·href="3.2.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.12">79 ··········<div·class="yui-g"·id="releases-3.2.12">
79 ············80 ············
80 ··<section·id="s-django-3-2-12-release-notes">81 ··<section·id="s-django-3-2-12-release-notes">
81 <span·id="django-3-2-12-release-notes"></span><h1>Django·3.2.12·release·notes<a·class="headerlink"·href="#django-3-2-12-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-12-release-notes"></span><h1>Django·3.2.12·release·notes<a·class="headerlink"·href="#django-3-2-12-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2022</em></p>83 <p><em>February·1,·2022</em></p>
83 <p>Django·3.2.12·fixes·two·security·issues·with·severity·medium·in·3.2.11.</p>84 <p>Django·3.2.12·fixes·two·security·issues·with·severity·«medium»·in·3.2.11.</p>
84 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">85 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">
85 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,
87 posing·an·XSS·attack·vector.</p>88 posing·an·XSS·attack·vector.</p>
88 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs89 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs
89 information·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·and·it·ensures·all·context90 information·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·and·it·ensures·all·context
90 variables·are·correctly·escaped·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>91 variables·are·correctly·escaped·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>·setting·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>
Offset 114, 37 lines modifiedOffset 115, 37 lines modified
114 <li><a·class="reference·internal"·href="#cve-2022-23833-denial-of-service-possibility-in-file-uploads">CVE-2022-23833:·Denial-of-service·possibility·in·file·uploads</a></li>115 <li><a·class="reference·internal"·href="#cve-2022-23833-denial-of-service-possibility-in-file-uploads">CVE-2022-23833:·Denial-of-service·possibility·in·file·uploads</a></li>
115 </ul>116 </ul>
116 </li>117 </li>
117 </ul>118 </ul>
  
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Previous·topic</h4>121 ····<h4>Argomento·precedente</h4>
121 ····<p·class="topless"><a·href="3.2.13.html"122 ····<p·class="topless"><a·href="3.2.13.html"
122 ··························title="previous·chapter">Django·3.2.13·release·notes</a></p>123 ··························title="capitolo·precedente">Django·3.2.13·release·notes</a></p>
123 ··</div>124 ··</div>
124 ··<div>125 ··<div>
125 ····<h4>Next·topic</h4>126 ····<h4>Argomento·successivo</h4>
126 ····<p·class="topless"><a·href="3.2.11.html"127 ····<p·class="topless"><a·href="3.2.11.html"
127 ··························title="next·chapter">Django·3.2.11·release·notes</a></p>128 ··························title="capitolo·successivo">Django·3.2.11·release·notes</a></p>
128 ··</div>129 ··</div>
129 <search·id="searchbox"·style="display:·none"·role="search">130 <search·id="searchbox"·style="display:·none"·role="search">
130 ··<h3·id="searchlabel">Quick·search</h3>131 ··<h3·id="searchlabel">Ricerca·veloce</h3>
131 ····<div·class="searchformwrapper">132 ····<div·class="searchformwrapper">
132 ····<form·class="search"·action="../search.html"·method="get">133 ····<form·class="search"·action="../search.html"·method="get">
133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
134 ······<input·type="submit"·value="Go"·/>135 ······<input·type="submit"·value="Vai"·/>
135 ····</form>136 ····</form>
136 ····</div>137 ····</div>
137 </search>138 </search>
138 <script>document.getElementById('searchbox').style.display·=·"block"</script>139 <script>document.getElementById('searchbox').style.display·=·"block"</script>
139 ········</div>140 ········</div>
140 ······</div>141 ······</div>
141 ··············<h3>Last·update:</h3>142 ··············<h3>Last·update:</h3>
142 ··············<p·class="topless">Sep·03,·2024</p>143 ··············<p·class="topless">set·03,·2024</p>
143 ··········</div>144 ··········</div>
144 ········145 ········
145 ······146 ······
146 ····</div>147 ····</div>
  
147 ····<div·id="ft">148 ····<div·id="ft">
148 ······<div·class="nav">149 ······<div·class="nav">
2.96 KB
html2text {}
Max HTML report size reached
9.19 KB
./usr/share/doc/python-django-doc/html/releases/3.2.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.12·release·notes"·href="3.2.12.html"·/>15 ····<link·rel="next"·title="Django·3.2.12·release·notes"·href="3.2.12.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.14·release·notes"·href="3.2.14.html"·/>16 ····<link·rel="prev"·title="Django·3.2.14·release·notes"·href="3.2.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.13">79 ··········<div·class="yui-g"·id="releases-3.2.13">
79 ············80 ············
80 ··<section·id="s-django-3-2-13-release-notes">81 ··<section·id="s-django-3-2-13-release-notes">
81 <span·id="django-3-2-13-release-notes"></span><h1>Django·3.2.13·release·notes<a·class="headerlink"·href="#django-3-2-13-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-13-release-notes"></span><h1>Django·3.2.13·release·notes<a·class="headerlink"·href="#django-3-2-13-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·11,·2022</em></p>83 <p><em>April·11,·2022</em></p>
83 <p>Django·3.2.13·fixes·two·security·issues·with·severity·high·in84 <p>Django·3.2.13·fixes·two·security·issues·with·severity·«high»·in
84 3.2.12·and·a·regression·in·3.2.4.</p>85 3.2.12·and·a·regression·in·3.2.4.</p>
85 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">86 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">
86 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and88 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and
88 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column89 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column
89 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the90 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the
90 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>91 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>
Offset 124, 37 lines modifiedOffset 125, 37 lines modified
124 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>125 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
125 </ul>126 </ul>
126 </li>127 </li>
127 </ul>128 </ul>
  
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Previous·topic</h4>131 ····<h4>Argomento·precedente</h4>
131 ····<p·class="topless"><a·href="3.2.14.html"132 ····<p·class="topless"><a·href="3.2.14.html"
132 ··························title="previous·chapter">Django·3.2.14·release·notes</a></p>133 ··························title="capitolo·precedente">Django·3.2.14·release·notes</a></p>
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Next·topic</h4>136 ····<h4>Argomento·successivo</h4>
136 ····<p·class="topless"><a·href="3.2.12.html"137 ····<p·class="topless"><a·href="3.2.12.html"
137 ··························title="next·chapter">Django·3.2.12·release·notes</a></p>138 ··························title="capitolo·successivo">Django·3.2.12·release·notes</a></p>
138 ··</div>139 ··</div>
139 <search·id="searchbox"·style="display:·none"·role="search">140 <search·id="searchbox"·style="display:·none"·role="search">
140 ··<h3·id="searchlabel">Quick·search</h3>141 ··<h3·id="searchlabel">Ricerca·veloce</h3>
141 ····<div·class="searchformwrapper">142 ····<div·class="searchformwrapper">
142 ····<form·class="search"·action="../search.html"·method="get">143 ····<form·class="search"·action="../search.html"·method="get">
143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
144 ······<input·type="submit"·value="Go"·/>145 ······<input·type="submit"·value="Vai"·/>
145 ····</form>146 ····</form>
146 ····</div>147 ····</div>
147 </search>148 </search>
148 <script>document.getElementById('searchbox').style.display·=·"block"</script>149 <script>document.getElementById('searchbox').style.display·=·"block"</script>
149 ········</div>150 ········</div>
150 ······</div>151 ······</div>
151 ··············<h3>Last·update:</h3>152 ··············<h3>Last·update:</h3>
152 ··············<p·class="topless">Sep·03,·2024</p>153 ··············<p·class="topless">set·03,·2024</p>
153 ··········</div>154 ··········</div>
154 ········155 ········
155 ······156 ······
156 ····</div>157 ····</div>
  
157 ····<div·id="ft">158 ····<div·id="ft">
158 ······<div·class="nav">159 ······<div·class="nav">
3.21 KB
html2text {}
Max HTML report size reached
8.64 KB
./usr/share/doc/python-django-doc/html/releases/3.2.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.13·release·notes"·href="3.2.13.html"·/>15 ····<link·rel="next"·title="Django·3.2.13·release·notes"·href="3.2.13.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.15·release·notes"·href="3.2.15.html"·/>16 ····<link·rel="prev"·title="Django·3.2.15·release·notes"·href="3.2.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.14">79 ··········<div·class="yui-g"·id="releases-3.2.14">
79 ············80 ············
80 ··<section·id="s-django-3-2-14-release-notes">81 ··<section·id="s-django-3-2-14-release-notes">
81 <span·id="django-3-2-14-release-notes"></span><h1>Django·3.2.14·release·notes<a·class="headerlink"·href="#django-3-2-14-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-14-release-notes"></span><h1>Django·3.2.14·release·notes<a·class="headerlink"·href="#django-3-2-14-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·4,·2022</em></p>83 <p><em>July·4,·2022</em></p>
83 <p>Django·3.2.14·fixes·a·security·issue·with·severity·high·in·3.2.13.</p>84 <p>Django·3.2.14·fixes·a·security·issue·with·severity·«high»·in·3.2.13.</p>
84 <section·id="s-cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">85 <section·id="s-cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">
85 <span·id="cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"></span><h2>CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments<a·class="headerlink"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"></span><h2>CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments<a·class="headerlink"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"·title="Link·to·this·heading">¶</a></h2>
86 <p><a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Trunc"·title="django.db.models.functions.Trunc"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Trunc()</span></code></a>·and87 <p><a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Trunc"·title="django.db.models.functions.Trunc"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Trunc()</span></code></a>·and
87 <a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Extract"·title="django.db.models.functions.Extract"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Extract()</span></code></a>·database·functions·were88 <a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Extract"·title="django.db.models.functions.Extract"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Extract()</span></code></a>·database·functions·were
88 subject·to·SQL·injection·if·untrusted·data·was·used·as·a89 subject·to·SQL·injection·if·untrusted·data·was·used·as·a
89 <code·class="docutils·literal·notranslate"><span·class="pre">kind</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·value.</p>90 <code·class="docutils·literal·notranslate"><span·class="pre">kind</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·value.</p>
90 <p>Applications·that·constrain·the·lookup·name·and·kind·choice·to·a·known·safe91 <p>Applications·that·constrain·the·lookup·name·and·kind·choice·to·a·known·safe
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments</a></li>110 <li><a·class="reference·internal"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="3.2.15.html"117 ····<p·class="topless"><a·href="3.2.15.html"
117 ··························title="previous·chapter">Django·3.2.15·release·notes</a></p>118 ··························title="capitolo·precedente">Django·3.2.15·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="3.2.13.html"122 ····<p·class="topless"><a·href="3.2.13.html"
122 ··························title="next·chapter">Django·3.2.13·release·notes</a></p>123 ··························title="capitolo·successivo">Django·3.2.13·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.6 KB
html2text {}
Max HTML report size reached
8.19 KB
./usr/share/doc/python-django-doc/html/releases/3.2.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.14·release·notes"·href="3.2.14.html"·/>15 ····<link·rel="next"·title="Django·3.2.14·release·notes"·href="3.2.14.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.16·release·notes"·href="3.2.16.html"·/>16 ····<link·rel="prev"·title="Django·3.2.16·release·notes"·href="3.2.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.15">79 ··········<div·class="yui-g"·id="releases-3.2.15">
79 ············80 ············
80 ··<section·id="s-django-3-2-15-release-notes">81 ··<section·id="s-django-3-2-15-release-notes">
81 <span·id="django-3-2-15-release-notes"></span><h1>Django·3.2.15·release·notes<a·class="headerlink"·href="#django-3-2-15-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-15-release-notes"></span><h1>Django·3.2.15·release·notes<a·class="headerlink"·href="#django-3-2-15-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>August·3,·2022</em></p>83 <p><em>August·3,·2022</em></p>
83 <p>Django·3.2.15·fixes·a·security·issue·with·severity·high·in·3.2.14.</p>84 <p>Django·3.2.15·fixes·a·security·issue·with·severity·«high»·in·3.2.14.</p>
84 <section·id="s-cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">85 <section·id="s-cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">
85 <span·id="cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"></span><h2>CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code><a·class="headerlink"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"></span><h2>CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code><a·class="headerlink"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"·title="Link·to·this·heading">¶</a></h2>
86 <p>An·application·may·have·been·vulnerable·to·a·reflected·file·download·(RFD)87 <p>An·application·may·have·been·vulnerable·to·a·reflected·file·download·(RFD)
87 attack·that·sets·the·Content-Disposition·header·of·a88 attack·that·sets·the·Content-Disposition·header·of·a
88 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·was·derived·from89 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·was·derived·from
89 user-supplied·input.·The·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·is·now·escaped·to·avoid·this·possibility.</p>90 user-supplied·input.·The·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·is·now·escaped·to·avoid·this·possibility.</p>
90 </section>91 </section>
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a></li>108 <li><a·class="reference·internal"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="3.2.16.html"115 ····<p·class="topless"><a·href="3.2.16.html"
115 ··························title="previous·chapter">Django·3.2.16·release·notes</a></p>116 ··························title="capitolo·precedente">Django·3.2.16·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="3.2.14.html"120 ····<p·class="topless"><a·href="3.2.14.html"
120 ··························title="next·chapter">Django·3.2.14·release·notes</a></p>121 ··························title="capitolo·successivo">Django·3.2.14·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.56 KB
html2text {}
Max HTML report size reached
7.43 KB
./usr/share/doc/python-django-doc/html/releases/3.2.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.15·release·notes"·href="3.2.15.html"·/>15 ····<link·rel="next"·title="Django·3.2.15·release·notes"·href="3.2.15.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.17·release·notes"·href="3.2.17.html"·/>16 ····<link·rel="prev"·title="Django·3.2.17·release·notes"·href="3.2.17.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.16">79 ··········<div·class="yui-g"·id="releases-3.2.16">
79 ············80 ············
80 ··<section·id="s-django-3-2-16-release-notes">81 ··<section·id="s-django-3-2-16-release-notes">
81 <span·id="django-3-2-16-release-notes"></span><h1>Django·3.2.16·release·notes<a·class="headerlink"·href="#django-3-2-16-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-16-release-notes"></span><h1>Django·3.2.16·release·notes<a·class="headerlink"·href="#django-3-2-16-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2022</em></p>83 <p><em>October·4,·2022</em></p>
83 <p>Django·3.2.16·fixes·a·security·issue·with·severity·medium·in·3.2.15.</p>84 <p>Django·3.2.16·fixes·a·security·issue·with·severity·«medium»·in·3.2.15.</p>
84 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">85 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">
85 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via87 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via
87 the·locale·parameter.</p>88 the·locale·parameter.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs</a></li>106 <li><a·class="reference·internal"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="3.2.17.html"113 ····<p·class="topless"><a·href="3.2.17.html"
113 ··························title="previous·chapter">Django·3.2.17·release·notes</a></p>114 ··························title="capitolo·precedente">Django·3.2.17·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="3.2.15.html"118 ····<p·class="topless"><a·href="3.2.15.html"
118 ··························title="next·chapter">Django·3.2.15·release·notes</a></p>119 ··························title="capitolo·successivo">Django·3.2.15·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.42 KB
html2text {}
Max HTML report size reached
7.99 KB
./usr/share/doc/python-django-doc/html/releases/3.2.17.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.17·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.17·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.16·release·notes"·href="3.2.16.html"·/>15 ····<link·rel="next"·title="Django·3.2.16·release·notes"·href="3.2.16.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.18·release·notes"·href="3.2.18.html"·/>16 ····<link·rel="prev"·title="Django·3.2.18·release·notes"·href="3.2.18.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.17">79 ··········<div·class="yui-g"·id="releases-3.2.17">
79 ············80 ············
80 ··<section·id="s-django-3-2-17-release-notes">81 ··<section·id="s-django-3-2-17-release-notes">
81 <span·id="django-3-2-17-release-notes"></span><h1>Django·3.2.17·release·notes<a·class="headerlink"·href="#django-3-2-17-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-17-release-notes"></span><h1>Django·3.2.17·release·notes<a·class="headerlink"·href="#django-3-2-17-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2023</em></p>83 <p><em>February·1,·2023</em></p>
83 <p>Django·3.2.17·fixes·a·security·issue·with·severity·moderate·in·3.2.16.</p>84 <p>Django·3.2.17·fixes·a·security·issue·with·severity·«moderate»·in·3.2.16.</p>
84 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">85 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">
85 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid87 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid
87 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via88 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via
88 excessive·memory·usage·if·large·header·values·are·sent.</p>89 excessive·memory·usage·if·large·header·values·are·sent.</p>
89 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now90 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now
90 parsed·up·to·a·maximum·length.</p>91 parsed·up·to·a·maximum·length.</p>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers">CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers</a></li>109 <li><a·class="reference·internal"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers">CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="3.2.18.html"116 ····<p·class="topless"><a·href="3.2.18.html"
116 ··························title="previous·chapter">Django·3.2.18·release·notes</a></p>117 ··························title="capitolo·precedente">Django·3.2.18·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="3.2.16.html"121 ····<p·class="topless"><a·href="3.2.16.html"
121 ··························title="next·chapter">Django·3.2.16·release·notes</a></p>122 ··························title="capitolo·successivo">Django·3.2.16·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.57 KB
html2text {}
Max HTML report size reached
7.88 KB
./usr/share/doc/python-django-doc/html/releases/3.2.18.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.18·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.18·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.17·release·notes"·href="3.2.17.html"·/>15 ····<link·rel="next"·title="Django·3.2.17·release·notes"·href="3.2.17.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.19·release·notes"·href="3.2.19.html"·/>16 ····<link·rel="prev"·title="Django·3.2.19·release·notes"·href="3.2.19.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.18">79 ··········<div·class="yui-g"·id="releases-3.2.18">
79 ············80 ············
80 ··<section·id="s-django-3-2-18-release-notes">81 ··<section·id="s-django-3-2-18-release-notes">
81 <span·id="django-3-2-18-release-notes"></span><h1>Django·3.2.18·release·notes<a·class="headerlink"·href="#django-3-2-18-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-18-release-notes"></span><h1>Django·3.2.18·release·notes<a·class="headerlink"·href="#django-3-2-18-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·14,·2023</em></p>83 <p><em>February·14,·2023</em></p>
83 <p>Django·3.2.18·fixes·a·security·issue·with·severity·moderate·in·3.2.17.</p>84 <p>Django·3.2.18·fixes·a·security·issue·with·severity·«moderate»·in·3.2.17.</p>
84 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">85 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">
85 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>
86 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files87 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files
87 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service88 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service
88 attack.</p>89 attack.</p>
89 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new90 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new
90 <a·class="reference·internal"·href="../ref/settings.html#std-setting-DATA_UPLOAD_MAX_NUMBER_FILES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATA_UPLOAD_MAX_NUMBER_FILES</span></code></a>·setting.</p>91 <a·class="reference·internal"·href="../ref/settings.html#std-setting-DATA_UPLOAD_MAX_NUMBER_FILES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATA_UPLOAD_MAX_NUMBER_FILES</span></code></a>·setting.</p>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads</a></li>109 <li><a·class="reference·internal"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="3.2.19.html"116 ····<p·class="topless"><a·href="3.2.19.html"
116 ··························title="previous·chapter">Django·3.2.19·release·notes</a></p>117 ··························title="capitolo·precedente">Django·3.2.19·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="3.2.17.html"121 ····<p·class="topless"><a·href="3.2.17.html"
121 ··························title="next·chapter">Django·3.2.17·release·notes</a></p>122 ··························title="capitolo·successivo">Django·3.2.17·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.59 KB
html2text {}
Max HTML report size reached
9.12 KB
./usr/share/doc/python-django-doc/html/releases/3.2.19.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.19·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.19·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.18·release·notes"·href="3.2.18.html"·/>15 ····<link·rel="next"·title="Django·3.2.18·release·notes"·href="3.2.18.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.20·release·notes"·href="3.2.20.html"·/>16 ····<link·rel="prev"·title="Django·3.2.20·release·notes"·href="3.2.20.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.19">79 ··········<div·class="yui-g"·id="releases-3.2.19">
79 ············80 ············
80 ··<section·id="s-django-3-2-19-release-notes">81 ··<section·id="s-django-3-2-19-release-notes">
81 <span·id="django-3-2-19-release-notes"></span><h1>Django·3.2.19·release·notes<a·class="headerlink"·href="#django-3-2-19-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-19-release-notes"></span><h1>Django·3.2.19·release·notes<a·class="headerlink"·href="#django-3-2-19-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>May·3,·2023</em></p>83 <p><em>May·3,·2023</em></p>
83 <p>Django·3.2.19·fixes·a·security·issue·with·severity·low·in·3.2.18.</p>84 <p>Django·3.2.19·fixes·a·security·issue·with·severity·«low»·in·3.2.18.</p>
84 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">85 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">
85 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>
86 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by87 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by
87 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last88 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last
88 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>89 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>
89 topic·suggested·otherwise.</p>90 topic·suggested·otherwise.</p>
90 <p>In·order·to·avoid·the·vulnerability,·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.ClearableFileInput"·title="django.forms.ClearableFileInput"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code></a>91 <p>In·order·to·avoid·the·vulnerability,·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.ClearableFileInput"·title="django.forms.ClearableFileInput"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code></a>
Offset 113, 37 lines modifiedOffset 114, 37 lines modified
113 <li><a·class="reference·internal"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field</a></li>114 <li><a·class="reference·internal"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field</a></li>
114 </ul>115 </ul>
115 </li>116 </li>
116 </ul>117 </ul>
  
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Previous·topic</h4>120 ····<h4>Argomento·precedente</h4>
120 ····<p·class="topless"><a·href="3.2.20.html"121 ····<p·class="topless"><a·href="3.2.20.html"
121 ··························title="previous·chapter">Django·3.2.20·release·notes</a></p>122 ··························title="capitolo·precedente">Django·3.2.20·release·notes</a></p>
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Next·topic</h4>125 ····<h4>Argomento·successivo</h4>
125 ····<p·class="topless"><a·href="3.2.18.html"126 ····<p·class="topless"><a·href="3.2.18.html"
126 ··························title="next·chapter">Django·3.2.18·release·notes</a></p>127 ··························title="capitolo·successivo">Django·3.2.18·release·notes</a></p>
127 ··</div>128 ··</div>
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../search.html"·method="get">132 ····<form·class="search"·action="../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
3.11 KB
html2text {}
Max HTML report size reached
6.26 KB
./usr/share/doc/python-django-doc/html/releases/3.2.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.1·release·notes"·href="3.2.1.html"·/>15 ····<link·rel="next"·title="Django·3.2.1·release·notes"·href="3.2.1.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.3·release·notes"·href="3.2.3.html"·/>16 ····<link·rel="prev"·title="Django·3.2.3·release·notes"·href="3.2.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 121, 37 lines modifiedOffset 122, 37 lines modified
121 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>122 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
122 </ul>123 </ul>
123 </li>124 </li>
124 </ul>125 </ul>
  
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Previous·topic</h4>128 ····<h4>Argomento·precedente</h4>
128 ····<p·class="topless"><a·href="3.2.3.html"129 ····<p·class="topless"><a·href="3.2.3.html"
129 ··························title="previous·chapter">Django·3.2.3·release·notes</a></p>130 ··························title="capitolo·precedente">Django·3.2.3·release·notes</a></p>
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Next·topic</h4>133 ····<h4>Argomento·successivo</h4>
133 ····<p·class="topless"><a·href="3.2.1.html"134 ····<p·class="topless"><a·href="3.2.1.html"
134 ··························title="next·chapter">Django·3.2.1·release·notes</a></p>135 ··························title="capitolo·successivo">Django·3.2.1·release·notes</a></p>
135 ··</div>136 ··</div>
136 <search·id="searchbox"·style="display:·none"·role="search">137 <search·id="searchbox"·style="display:·none"·role="search">
137 ··<h3·id="searchlabel">Quick·search</h3>138 ··<h3·id="searchlabel">Ricerca·veloce</h3>
138 ····<div·class="searchformwrapper">139 ····<div·class="searchformwrapper">
139 ····<form·class="search"·action="../search.html"·method="get">140 ····<form·class="search"·action="../search.html"·method="get">
140 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>141 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
141 ······<input·type="submit"·value="Go"·/>142 ······<input·type="submit"·value="Vai"·/>
142 ····</form>143 ····</form>
143 ····</div>144 ····</div>
144 </search>145 </search>
145 <script>document.getElementById('searchbox').style.display·=·"block"</script>146 <script>document.getElementById('searchbox').style.display·=·"block"</script>
146 ········</div>147 ········</div>
147 ······</div>148 ······</div>
148 ··············<h3>Last·update:</h3>149 ··············<h3>Last·update:</h3>
149 ··············<p·class="topless">Sep·03,·2024</p>150 ··············<p·class="topless">set·03,·2024</p>
150 ··········</div>151 ··········</div>
151 ········152 ········
152 ······153 ······
153 ····</div>154 ····</div>
  
154 ····<div·id="ft">155 ····<div·id="ft">
155 ······<div·class="nav">156 ······<div·class="nav">
2.52 KB
html2text {}
Max HTML report size reached
8.28 KB
./usr/share/doc/python-django-doc/html/releases/3.2.20.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.20·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.20·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.19·release·notes"·href="3.2.19.html"·/>15 ····<link·rel="next"·title="Django·3.2.19·release·notes"·href="3.2.19.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.21·release·notes"·href="3.2.21.html"·/>16 ····<link·rel="prev"·title="Django·3.2.21·release·notes"·href="3.2.21.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.20">79 ··········<div·class="yui-g"·id="releases-3.2.20">
79 ············80 ············
80 ··<section·id="s-django-3-2-20-release-notes">81 ··<section·id="s-django-3-2-20-release-notes">
81 <span·id="django-3-2-20-release-notes"></span><h1>Django·3.2.20·release·notes<a·class="headerlink"·href="#django-3-2-20-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-20-release-notes"></span><h1>Django·3.2.20·release·notes<a·class="headerlink"·href="#django-3-2-20-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·3,·2023</em></p>83 <p><em>July·3,·2023</em></p>
83 <p>Django·3.2.20·fixes·a·security·issue·with·severity·moderate·in·3.2.19.</p>84 <p>Django·3.2.20·fixes·a·security·issue·with·severity·«moderate»·in·3.2.19.</p>
84 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">85 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">
85 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular87 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular
87 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name88 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name
88 labels·of·emails·and·URLs.</p>89 labels·of·emails·and·URLs.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a></li>107 <li><a·class="reference·internal"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="3.2.21.html"114 ····<p·class="topless"><a·href="3.2.21.html"
114 ··························title="previous·chapter">Django·3.2.21·release·notes</a></p>115 ··························title="capitolo·precedente">Django·3.2.21·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="3.2.19.html"119 ····<p·class="topless"><a·href="3.2.19.html"
119 ··························title="next·chapter">Django·3.2.19·release·notes</a></p>120 ··························title="capitolo·successivo">Django·3.2.19·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.62 KB
html2text {}
Max HTML report size reached
7.9 KB
./usr/share/doc/python-django-doc/html/releases/3.2.21.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.21·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.21·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.20·release·notes"·href="3.2.20.html"·/>15 ····<link·rel="next"·title="Django·3.2.20·release·notes"·href="3.2.20.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.22·release·notes"·href="3.2.22.html"·/>16 ····<link·rel="prev"·title="Django·3.2.22·release·notes"·href="3.2.22.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.21">79 ··········<div·class="yui-g"·id="releases-3.2.21">
79 ············80 ············
80 ··<section·id="s-django-3-2-21-release-notes">81 ··<section·id="s-django-3-2-21-release-notes">
81 <span·id="django-3-2-21-release-notes"></span><h1>Django·3.2.21·release·notes<a·class="headerlink"·href="#django-3-2-21-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-21-release-notes"></span><h1>Django·3.2.21·release·notes<a·class="headerlink"·href="#django-3-2-21-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>September·4,·2023</em></p>83 <p><em>September·4,·2023</em></p>
83 <p>Django·3.2.21·fixes·a·security·issue·with·severity·moderate·in·3.2.20.</p>84 <p>Django·3.2.21·fixes·a·security·issue·with·severity·«moderate»·in·3.2.20.</p>
84 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">85 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">
85 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of87 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of
87 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode88 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode
88 characters.</p>89 characters.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>107 <li><a·class="reference·internal"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="3.2.22.html"114 ····<p·class="topless"><a·href="3.2.22.html"
114 ··························title="previous·chapter">Django·3.2.22·release·notes</a></p>115 ··························title="capitolo·precedente">Django·3.2.22·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="3.2.20.html"119 ····<p·class="topless"><a·href="3.2.20.html"
119 ··························title="next·chapter">Django·3.2.20·release·notes</a></p>120 ··························title="capitolo·successivo">Django·3.2.20·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.55 KB
html2text {}
Max HTML report size reached
8.63 KB
./usr/share/doc/python-django-doc/html/releases/3.2.22.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.22·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.22·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.21·release·notes"·href="3.2.21.html"·/>15 ····<link·rel="next"·title="Django·3.2.21·release·notes"·href="3.2.21.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.23·release·notes"·href="3.2.23.html"·/>16 ····<link·rel="prev"·title="Django·3.2.23·release·notes"·href="3.2.23.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.22">79 ··········<div·class="yui-g"·id="releases-3.2.22">
79 ············80 ············
80 ··<section·id="s-django-3-2-22-release-notes">81 ··<section·id="s-django-3-2-22-release-notes">
81 <span·id="django-3-2-22-release-notes"></span><h1>Django·3.2.22·release·notes<a·class="headerlink"·href="#django-3-2-22-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-22-release-notes"></span><h1>Django·3.2.22·release·notes<a·class="headerlink"·href="#django-3-2-22-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2023</em></p>83 <p><em>October·4,·2023</em></p>
83 <p>Django·3.2.22·fixes·a·security·issue·with·severity·moderate·in·3.2.21.</p>84 <p>Django·3.2.22·fixes·a·security·issue·with·severity·«moderate»·in·3.2.21.</p>
84 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">85 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">
85 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>
86 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the87 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the
87 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>88 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>
88 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular89 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular
89 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a90 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a
90 very·long,·potentially·malformed·HTML·input,·the·evaluation·would·still·be91 very·long,·potentially·malformed·HTML·input,·the·evaluation·would·still·be
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code></a></li>116 <li><a·class="reference·internal"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code></a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="3.2.23.html"123 ····<p·class="topless"><a·href="3.2.23.html"
123 ··························title="previous·chapter">Django·3.2.23·release·notes</a></p>124 ··························title="capitolo·precedente">Django·3.2.23·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="3.2.21.html"128 ····<p·class="topless"><a·href="3.2.21.html"
128 ··························title="next·chapter">Django·3.2.21·release·notes</a></p>129 ··························title="capitolo·successivo">Django·3.2.21·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.89 KB
html2text {}
Max HTML report size reached
8.41 KB
./usr/share/doc/python-django-doc/html/releases/3.2.23.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.23·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.23·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.22·release·notes"·href="3.2.22.html"·/>15 ····<link·rel="next"·title="Django·3.2.22·release·notes"·href="3.2.22.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.24·release·notes"·href="3.2.24.html"·/>16 ····<link·rel="prev"·title="Django·3.2.24·release·notes"·href="3.2.24.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.23">79 ··········<div·class="yui-g"·id="releases-3.2.23">
79 ············80 ············
80 ··<section·id="s-django-3-2-23-release-notes">81 ··<section·id="s-django-3-2-23-release-notes">
81 <span·id="django-3-2-23-release-notes"></span><h1>Django·3.2.23·release·notes<a·class="headerlink"·href="#django-3-2-23-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-23-release-notes"></span><h1>Django·3.2.23·release·notes<a·class="headerlink"·href="#django-3-2-23-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>November·1,·2023</em></p>83 <p><em>November·1,·2023</em></p>
83 <p>Django·3.2.23·fixes·a·security·issue·with·severity·moderate·in·3.2.22.</p>84 <p>Django·3.2.23·fixes·a·security·issue·with·severity·«moderate»·in·3.2.22.</p>
84 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">85 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">
85 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on87 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on
87 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was88 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was
88 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very89 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very
89 large·number·of·Unicode·characters.</p>90 large·number·of·Unicode·characters.</p>
90 <p>In·order·to·avoid·the·vulnerability,·invalid·values·longer·than91 <p>In·order·to·avoid·the·vulnerability,·invalid·values·longer·than
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows</a></li>111 <li><a·class="reference·internal"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="3.2.24.html"118 ····<p·class="topless"><a·href="3.2.24.html"
118 ··························title="previous·chapter">Django·3.2.24·release·notes</a></p>119 ··························title="capitolo·precedente">Django·3.2.24·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="3.2.22.html"123 ····<p·class="topless"><a·href="3.2.22.html"
123 ··························title="next·chapter">Django·3.2.22·release·notes</a></p>124 ··························title="capitolo·successivo">Django·3.2.22·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.75 KB
html2text {}
Max HTML report size reached
7.55 KB
./usr/share/doc/python-django-doc/html/releases/3.2.24.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.24·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.24·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.23·release·notes"·href="3.2.23.html"·/>15 ····<link·rel="next"·title="Django·3.2.23·release·notes"·href="3.2.23.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.25·release·notes"·href="3.2.25.html"·/>16 ····<link·rel="prev"·title="Django·3.2.25·release·notes"·href="3.2.25.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.24">79 ··········<div·class="yui-g"·id="releases-3.2.24">
79 ············80 ············
80 ··<section·id="s-django-3-2-24-release-notes">81 ··<section·id="s-django-3-2-24-release-notes">
81 <span·id="django-3-2-24-release-notes"></span><h1>Django·3.2.24·release·notes<a·class="headerlink"·href="#django-3-2-24-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-24-release-notes"></span><h1>Django·3.2.24·release·notes<a·class="headerlink"·href="#django-3-2-24-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·6,·2024</em></p>83 <p><em>February·6,·2024</em></p>
83 <p>Django·3.2.24·fixes·a·security·issue·with·severity·moderate·in·3.2.23.</p>84 <p>Django·3.2.24·fixes·a·security·issue·with·severity·«moderate»·in·3.2.23.</p>
84 <section·id="s-cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">85 <section·id="s-cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">
85 <span·id="cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"></span><h2>CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter<a·class="headerlink"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"></span><h2>CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter<a·class="headerlink"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter·was·subject·to·a·potential·denial-of-service87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter·was·subject·to·a·potential·denial-of-service
87 attack·when·used·with·very·long·strings.</p>88 attack·when·used·with·very·long·strings.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter</a></li>106 <li><a·class="reference·internal"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="3.2.25.html"113 ····<p·class="topless"><a·href="3.2.25.html"
113 ··························title="previous·chapter">Django·3.2.25·release·notes</a></p>114 ··························title="capitolo·precedente">Django·3.2.25·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="3.2.23.html"118 ····<p·class="topless"><a·href="3.2.23.html"
118 ··························title="next·chapter">Django·3.2.23·release·notes</a></p>119 ··························title="capitolo·successivo">Django·3.2.23·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.37 KB
html2text {}
Max HTML report size reached
8.68 KB
./usr/share/doc/python-django-doc/html/releases/3.2.25.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.25·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.25·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.24·release·notes"·href="3.2.24.html"·/>15 ····<link·rel="next"·title="Django·3.2.24·release·notes"·href="3.2.24.html"·/>
15 ····<link·rel="prev"·title="Django·4.0·release·notes"·href="4.0.html"·/>16 ····<link·rel="prev"·title="Django·4.0·release·notes"·href="4.0.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.25">79 ··········<div·class="yui-g"·id="releases-3.2.25">
79 ············80 ············
80 ··<section·id="s-django-3-2-25-release-notes">81 ··<section·id="s-django-3-2-25-release-notes">
81 <span·id="django-3-2-25-release-notes"></span><h1>Django·3.2.25·release·notes<a·class="headerlink"·href="#django-3-2-25-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-25-release-notes"></span><h1>Django·3.2.25·release·notes<a·class="headerlink"·href="#django-3-2-25-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·4,·2024</em></p>83 <p><em>March·4,·2024</em></p>
83 <p>Django·3.2.25·fixes·a·security·issue·with·severity·moderate·and·a·regression84 <p>Django·3.2.25·fixes·a·security·issue·with·severity·«moderate»·and·a·regression
84 in·3.2.24.</p>85 in·3.2.24.</p>
85 <section·id="s-cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words">86 <section·id="s-cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words">
86 <span·id="cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"></span><h2>CVE-2024-27351:·Potential·regular·expression·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code><a·class="headerlink"·href="#cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"></span><h2>CVE-2024-27351:·Potential·regular·expression·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code><a·class="headerlink"·href="#cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"·title="Link·to·this·heading">¶</a></h2>
87 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code>·method·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·and88 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code>·method·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·and
88 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-truncatewords_html"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code></a>·template·filter·were·subject·to·a·potential89 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-truncatewords_html"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code></a>·template·filter·were·subject·to·a·potential
89 regular·expression·denial-of-service·attack·using·a·suitably·crafted·string90 regular·expression·denial-of-service·attack·using·a·suitably·crafted·string
90 (follow·up·to·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>·and·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2023-43665">CVE-2023-43665</a>).</p>91 (follow·up·to·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>·and·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2023-43665">CVE-2023-43665</a>).</p>
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="4.0.html"124 ····<p·class="topless"><a·href="4.0.html"
124 ··························title="previous·chapter">Django·4.0·release·notes</a></p>125 ··························title="capitolo·precedente">Django·4.0·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="3.2.24.html"129 ····<p·class="topless"><a·href="3.2.24.html"
129 ··························title="next·chapter">Django·3.2.24·release·notes</a></p>130 ··························title="capitolo·successivo">Django·3.2.24·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
3.0 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/releases/3.2.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.2·release·notes"·href="3.2.2.html"·/>15 ····<link·rel="next"·title="Django·3.2.2·release·notes"·href="3.2.2.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.4·release·notes"·href="3.2.4.html"·/>16 ····<link·rel="prev"·title="Django·3.2.4·release·notes"·href="3.2.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="3.2.4.html"120 ····<p·class="topless"><a·href="3.2.4.html"
120 ··························title="previous·chapter">Django·3.2.4·release·notes</a></p>121 ··························title="capitolo·precedente">Django·3.2.4·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="3.2.2.html"125 ····<p·class="topless"><a·href="3.2.2.html"
125 ··························title="next·chapter">Django·3.2.2·release·notes</a></p>126 ··························title="capitolo·successivo">Django·3.2.2·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.12 KB
html2text {}
Max HTML report size reached
6.42 KB
./usr/share/doc/python-django-doc/html/releases/3.2.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.3·release·notes"·href="3.2.3.html"·/>15 ····<link·rel="next"·title="Django·3.2.3·release·notes"·href="3.2.3.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.5·release·notes"·href="3.2.5.html"·/>16 ····<link·rel="prev"·title="Django·3.2.5·release·notes"·href="3.2.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 144, 37 lines modifiedOffset 145, 37 lines modified
144 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>145 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
145 </ul>146 </ul>
146 </li>147 </li>
147 </ul>148 </ul>
  
148 ··</div>149 ··</div>
149 ··<div>150 ··<div>
150 ····<h4>Previous·topic</h4>151 ····<h4>Argomento·precedente</h4>
151 ····<p·class="topless"><a·href="3.2.5.html"152 ····<p·class="topless"><a·href="3.2.5.html"
152 ··························title="previous·chapter">Django·3.2.5·release·notes</a></p>153 ··························title="capitolo·precedente">Django·3.2.5·release·notes</a></p>
153 ··</div>154 ··</div>
154 ··<div>155 ··<div>
155 ····<h4>Next·topic</h4>156 ····<h4>Argomento·successivo</h4>
156 ····<p·class="topless"><a·href="3.2.3.html"157 ····<p·class="topless"><a·href="3.2.3.html"
157 ··························title="next·chapter">Django·3.2.3·release·notes</a></p>158 ··························title="capitolo·successivo">Django·3.2.3·release·notes</a></p>
158 ··</div>159 ··</div>
159 <search·id="searchbox"·style="display:·none"·role="search">160 <search·id="searchbox"·style="display:·none"·role="search">
160 ··<h3·id="searchlabel">Quick·search</h3>161 ··<h3·id="searchlabel">Ricerca·veloce</h3>
161 ····<div·class="searchformwrapper">162 ····<div·class="searchformwrapper">
162 ····<form·class="search"·action="../search.html"·method="get">163 ····<form·class="search"·action="../search.html"·method="get">
163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>164 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
164 ······<input·type="submit"·value="Go"·/>165 ······<input·type="submit"·value="Vai"·/>
165 ····</form>166 ····</form>
166 ····</div>167 ····</div>
167 </search>168 </search>
168 <script>document.getElementById('searchbox').style.display·=·"block"</script>169 <script>document.getElementById('searchbox').style.display·=·"block"</script>
169 ········</div>170 ········</div>
170 ······</div>171 ······</div>
171 ··············<h3>Last·update:</h3>172 ··············<h3>Last·update:</h3>
172 ··············<p·class="topless">Sep·03,·2024</p>173 ··············<p·class="topless">set·03,·2024</p>
173 ··········</div>174 ··········</div>
174 ········175 ········
175 ······176 ······
176 ····</div>177 ····</div>
  
177 ····<div·id="ft">178 ····<div·id="ft">
178 ······<div·class="nav">179 ······<div·class="nav">
2.67 KB
html2text {}
Max HTML report size reached
8.08 KB
./usr/share/doc/python-django-doc/html/releases/3.2.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.4·release·notes"·href="3.2.4.html"·/>15 ····<link·rel="next"·title="Django·3.2.4·release·notes"·href="3.2.4.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.6·release·notes"·href="3.2.6.html"·/>16 ····<link·rel="prev"·title="Django·3.2.6·release·notes"·href="3.2.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-3.2.5">79 ··········<div·class="yui-g"·id="releases-3.2.5">
79 ············80 ············
80 ··<section·id="s-django-3-2-5-release-notes">81 ··<section·id="s-django-3-2-5-release-notes">
81 <span·id="django-3-2-5-release-notes"></span><h1>Django·3.2.5·release·notes<a·class="headerlink"·href="#django-3-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-3-2-5-release-notes"></span><h1>Django·3.2.5·release·notes<a·class="headerlink"·href="#django-3-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·1,·2021</em></p>83 <p><em>July·1,·2021</em></p>
83 <p>Django·3.2.5·fixes·a·security·issue·with·severity·high·and·several·bugs·in84 <p>Django·3.2.5·fixes·a·security·issue·with·severity·«high»·and·several·bugs·in
84 3.2.4.·Also,·the·latest·string·translations·from·Transifex·are·incorporated.</p>85 3.2.4.·Also,·the·latest·string·translations·from·Transifex·are·incorporated.</p>
85 <section·id="s-cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">86 <section·id="s-cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input">
86 <span·id="cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"></span><h2>CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input<a·class="headerlink"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"></span><h2>CVE-2021-35042:·Potential·SQL·injection·via·unsanitized·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·input<a·class="headerlink"·href="#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input"·title="Link·to·this·heading">¶</a></h2>
87 <p>Unsanitized·user·input·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·could·bypass·intended88 <p>Unsanitized·user·input·passed·to·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.order_by()</span></code>·could·bypass·intended
88 column·reference·validation·in·path·marked·for·deprecation·resulting·in·a89 column·reference·validation·in·path·marked·for·deprecation·resulting·in·a
89 potential·SQL·injection·even·if·a·deprecation·warning·is·emitted.</p>90 potential·SQL·injection·even·if·a·deprecation·warning·is·emitted.</p>
90 <p>As·a·mitigation·the·strict·column·reference·validation·was·restored·for·the91 <p>As·a·mitigation·the·strict·column·reference·validation·was·restored·for·the
Offset 129, 37 lines modifiedOffset 130, 37 lines modified
129 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>130 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
130 </ul>131 </ul>
131 </li>132 </li>
132 </ul>133 </ul>
  
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Previous·topic</h4>136 ····<h4>Argomento·precedente</h4>
136 ····<p·class="topless"><a·href="3.2.6.html"137 ····<p·class="topless"><a·href="3.2.6.html"
137 ··························title="previous·chapter">Django·3.2.6·release·notes</a></p>138 ··························title="capitolo·precedente">Django·3.2.6·release·notes</a></p>
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Next·topic</h4>141 ····<h4>Argomento·successivo</h4>
141 ····<p·class="topless"><a·href="3.2.4.html"142 ····<p·class="topless"><a·href="3.2.4.html"
142 ··························title="next·chapter">Django·3.2.4·release·notes</a></p>143 ··························title="capitolo·successivo">Django·3.2.4·release·notes</a></p>
143 ··</div>144 ··</div>
144 <search·id="searchbox"·style="display:·none"·role="search">145 <search·id="searchbox"·style="display:·none"·role="search">
145 ··<h3·id="searchlabel">Quick·search</h3>146 ··<h3·id="searchlabel">Ricerca·veloce</h3>
146 ····<div·class="searchformwrapper">147 ····<div·class="searchformwrapper">
147 ····<form·class="search"·action="../search.html"·method="get">148 ····<form·class="search"·action="../search.html"·method="get">
148 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>149 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
149 ······<input·type="submit"·value="Go"·/>150 ······<input·type="submit"·value="Vai"·/>
150 ····</form>151 ····</form>
151 ····</div>152 ····</div>
152 </search>153 </search>
153 <script>document.getElementById('searchbox').style.display·=·"block"</script>154 <script>document.getElementById('searchbox').style.display·=·"block"</script>
154 ········</div>155 ········</div>
155 ······</div>156 ······</div>
156 ··············<h3>Last·update:</h3>157 ··············<h3>Last·update:</h3>
157 ··············<p·class="topless">Sep·03,·2024</p>158 ··············<p·class="topless">set·03,·2024</p>
158 ··········</div>159 ··········</div>
159 ········160 ········
160 ······161 ······
161 ····</div>162 ····</div>
  
162 ····<div·id="ft">163 ····<div·id="ft">
163 ······<div·class="nav">164 ······<div·class="nav">
2.85 KB
html2text {}
Max HTML report size reached
5.83 KB
./usr/share/doc/python-django-doc/html/releases/3.2.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.5·release·notes"·href="3.2.5.html"·/>15 ····<link·rel="next"·title="Django·3.2.5·release·notes"·href="3.2.5.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.7·release·notes"·href="3.2.7.html"·/>16 ····<link·rel="prev"·title="Django·3.2.7·release·notes"·href="3.2.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="3.2.7.html"119 ····<p·class="topless"><a·href="3.2.7.html"
119 ··························title="previous·chapter">Django·3.2.7·release·notes</a></p>120 ··························title="capitolo·precedente">Django·3.2.7·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="3.2.5.html"124 ····<p·class="topless"><a·href="3.2.5.html"
124 ··························title="next·chapter">Django·3.2.5·release·notes</a></p>125 ··························title="capitolo·successivo">Django·3.2.5·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
5.65 KB
./usr/share/doc/python-django-doc/html/releases/3.2.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.6·release·notes"·href="3.2.6.html"·/>15 ····<link·rel="next"·title="Django·3.2.6·release·notes"·href="3.2.6.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.8·release·notes"·href="3.2.8.html"·/>16 ····<link·rel="prev"·title="Django·3.2.8·release·notes"·href="3.2.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="3.2.8.html"115 ····<p·class="topless"><a·href="3.2.8.html"
115 ··························title="previous·chapter">Django·3.2.8·release·notes</a></p>116 ··························title="capitolo·precedente">Django·3.2.8·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="3.2.6.html"120 ····<p·class="topless"><a·href="3.2.6.html"
120 ··························title="next·chapter">Django·3.2.6·release·notes</a></p>121 ··························title="capitolo·successivo">Django·3.2.6·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.91 KB
html2text {}
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/releases/3.2.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.7·release·notes"·href="3.2.7.html"·/>15 ····<link·rel="next"·title="Django·3.2.7·release·notes"·href="3.2.7.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.9·release·notes"·href="3.2.9.html"·/>16 ····<link·rel="prev"·title="Django·3.2.9·release·notes"·href="3.2.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="3.2.9.html"118 ····<p·class="topless"><a·href="3.2.9.html"
118 ··························title="previous·chapter">Django·3.2.9·release·notes</a></p>119 ··························title="capitolo·precedente">Django·3.2.9·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="3.2.7.html"123 ····<p·class="topless"><a·href="3.2.7.html"
123 ··························title="next·chapter">Django·3.2.7·release·notes</a></p>124 ··························title="capitolo·successivo">Django·3.2.7·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.1 KB
html2text {}
Max HTML report size reached
5.7 KB
./usr/share/doc/python-django-doc/html/releases/3.2.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.8·release·notes"·href="3.2.8.html"·/>15 ····<link·rel="next"·title="Django·3.2.8·release·notes"·href="3.2.8.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.10·release·notes"·href="3.2.10.html"·/>16 ····<link·rel="prev"·title="Django·3.2.10·release·notes"·href="3.2.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="3.2.10.html"115 ····<p·class="topless"><a·href="3.2.10.html"
115 ··························title="previous·chapter">Django·3.2.10·release·notes</a></p>116 ··························title="capitolo·precedente">Django·3.2.10·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="3.2.8.html"120 ····<p·class="topless"><a·href="3.2.8.html"
120 ··························title="next·chapter">Django·3.2.8·release·notes</a></p>121 ··························title="capitolo·successivo">Django·3.2.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.96 KB
html2text {}
Max HTML report size reached
9.2 KB
./usr/share/doc/python-django-doc/html/releases/3.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·3.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·3.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.1.14·release·notes"·href="3.1.14.html"·/>15 ····<link·rel="next"·title="Django·3.1.14·release·notes"·href="3.1.14.html"·/>
15 ····<link·rel="prev"·title="Django·3.2.1·release·notes"·href="3.2.1.html"·/>16 ····<link·rel="prev"·title="Django·3.2.1·release·notes"·href="3.2.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 671, 15 lines modifiedOffset 672, 15 lines modified
671 <span·id="dropped-support-for-mysql-5-6"></span><h3>Dropped·support·for·MySQL·5.6<a·class="headerlink"·href="#dropped-support-for-mysql-5-6"·title="Link·to·this·heading">¶</a></h3>672 <span·id="dropped-support-for-mysql-5-6"></span><h3>Dropped·support·for·MySQL·5.6<a·class="headerlink"·href="#dropped-support-for-mysql-5-6"·title="Link·to·this·heading">¶</a></h3>
672 <p>The·end·of·upstream·support·for·MySQL·5.6·is·April·2021.·Django·3.2·supports673 <p>The·end·of·upstream·support·for·MySQL·5.6·is·April·2021.·Django·3.2·supports
673 MySQL·5.7·and·higher.</p>674 MySQL·5.7·and·higher.</p>
674 </section>675 </section>
675 <section·id="s-miscellaneous">676 <section·id="s-miscellaneous">
676 <span·id="miscellaneous"></span><h3>Miscellaneous<a·class="headerlink"·href="#miscellaneous"·title="Link·to·this·heading">¶</a></h3>677 <span·id="miscellaneous"></span><h3>Miscellaneous<a·class="headerlink"·href="#miscellaneous"·title="Link·to·this·heading">¶</a></h3>
677 <ul>678 <ul>
678 <li><p>Django·now·supports·non-<code·class="docutils·literal·notranslate"><span·class="pre">pytz</span></code>·time·zones,·such·as·Python·3.9+s679 <li><p>Django·now·supports·non-<code·class="docutils·literal·notranslate"><span·class="pre">pytz</span></code>·time·zones,·such·as·Python·3.9+s
679 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>·module·and·its·backport.</p></li>680 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>·module·and·its·backport.</p></li>
680 <li><p>The·undocumented·<code·class="docutils·literal·notranslate"><span·class="pre">SpatiaLiteOperations.proj4_version()</span></code>·method·is·renamed681 <li><p>The·undocumented·<code·class="docutils·literal·notranslate"><span·class="pre">SpatiaLiteOperations.proj4_version()</span></code>·method·is·renamed
681 to·<code·class="docutils·literal·notranslate"><span·class="pre">proj_version()</span></code>.</p></li>682 to·<code·class="docutils·literal·notranslate"><span·class="pre">proj_version()</span></code>.</p></li>
682 <li><p><a·class="reference·internal"·href="../ref/utils.html#django.utils.text.slugify"·title="django.utils.text.slugify"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">slugify()</span></code></a>·now·removes·leading·and·trailing·dashes683 <li><p><a·class="reference·internal"·href="../ref/utils.html#django.utils.text.slugify"·title="django.utils.text.slugify"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">slugify()</span></code></a>·now·removes·leading·and·trailing·dashes
683 and·underscores.</p></li>684 and·underscores.</p></li>
684 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/humanize.html#std-templatefilter-intcomma"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intcomma</span></code></a>·and·<a·class="reference·internal"·href="../ref/contrib/humanize.html#std-templatefilter-intword"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intword</span></code></a>·template·filters·no·longer685 <li><p>The·<a·class="reference·internal"·href="../ref/contrib/humanize.html#std-templatefilter-intcomma"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intcomma</span></code></a>·and·<a·class="reference·internal"·href="../ref/contrib/humanize.html#std-templatefilter-intword"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intword</span></code></a>·template·filters·no·longer
685 depend·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code>·setting.</p></li>686 depend·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code>·setting.</p></li>
Offset 843, 37 lines modifiedOffset 844, 37 lines modified
843 </li>844 </li>
844 </ul>845 </ul>
845 </li>846 </li>
846 </ul>847 </ul>
  
847 ··</div>848 ··</div>
848 ··<div>849 ··<div>
849 ····<h4>Previous·topic</h4>850 ····<h4>Argomento·precedente</h4>
850 ····<p·class="topless"><a·href="3.2.1.html"851 ····<p·class="topless"><a·href="3.2.1.html"
851 ··························title="previous·chapter">Django·3.2.1·release·notes</a></p>852 ··························title="capitolo·precedente">Django·3.2.1·release·notes</a></p>
852 ··</div>853 ··</div>
853 ··<div>854 ··<div>
854 ····<h4>Next·topic</h4>855 ····<h4>Argomento·successivo</h4>
855 ····<p·class="topless"><a·href="3.1.14.html"856 ····<p·class="topless"><a·href="3.1.14.html"
856 ··························title="next·chapter">Django·3.1.14·release·notes</a></p>857 ··························title="capitolo·successivo">Django·3.1.14·release·notes</a></p>
857 ··</div>858 ··</div>
858 <search·id="searchbox"·style="display:·none"·role="search">859 <search·id="searchbox"·style="display:·none"·role="search">
859 ··<h3·id="searchlabel">Quick·search</h3>860 ··<h3·id="searchlabel">Ricerca·veloce</h3>
860 ····<div·class="searchformwrapper">861 ····<div·class="searchformwrapper">
861 ····<form·class="search"·action="../search.html"·method="get">862 ····<form·class="search"·action="../search.html"·method="get">
862 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>863 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
863 ······<input·type="submit"·value="Go"·/>864 ······<input·type="submit"·value="Vai"·/>
864 ····</form>865 ····</form>
865 ····</div>866 ····</div>
866 </search>867 </search>
867 <script>document.getElementById('searchbox').style.display·=·"block"</script>868 <script>document.getElementById('searchbox').style.display·=·"block"</script>
868 ········</div>869 ········</div>
869 ······</div>870 ······</div>
870 ··············<h3>Last·update:</h3>871 ··············<h3>Last·update:</h3>
871 ··············<p·class="topless">Sep·03,·2024</p>872 ··············<p·class="topless">set·03,·2024</p>
872 ··········</div>873 ··········</div>
873 ········874 ········
874 ······875 ······
875 ····</div>876 ····</div>
  
876 ····<div·id="ft">877 ····<div·id="ft">
877 ······<div·class="nav">878 ······<div·class="nav">
3.4 KB
html2text {}
Max HTML report size reached
14.7 KB
./usr/share/doc/python-django-doc/html/releases/4.0.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0·release·notes"·href="4.0.html"·/>15 ····<link·rel="next"·title="Django·4.0·release·notes"·href="4.0.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.2·release·notes"·href="4.0.2.html"·/>16 ····<link·rel="prev"·title="Django·4.0.2·release·notes"·href="4.0.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 42 lines modifiedOffset 77, 42 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.1">79 ··········<div·class="yui-g"·id="releases-4.0.1">
79 ············80 ············
80 ··<section·id="s-django-4-0-1-release-notes">81 ··<section·id="s-django-4-0-1-release-notes">
81 <span·id="django-4-0-1-release-notes"></span><h1>Django·4.0.1·release·notes<a·class="headerlink"·href="#django-4-0-1-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-1-release-notes"></span><h1>Django·4.0.1·release·notes<a·class="headerlink"·href="#django-4-0-1-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>January·4,·2022</em></p>83 <p><em>January·4,·2022</em></p>
83 <p>Django·4.0.1·fixes·one·security·issue·with·severity·medium,·two·security84 <p>Django·4.0.1·fixes·one·security·issue·with·severity·«medium»,·two·security
84 issues·with·severity·low,·and·several·bugs·in·4.0.</p>85 issues·with·severity·«low»,·and·several·bugs·in·4.0.</p>
85 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">86 <section·id="s-cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator">
86 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"></span><h2>CVE-2021-45115:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code><a·class="headerlink"·href="#cve-2021-45115-denial-of-service-possibility-in-userattributesimilarityvalidator"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead88 <p><a·class="reference·internal"·href="../topics/auth/passwords.html#django.contrib.auth.password_validation.UserAttributeSimilarityValidator"·title="django.contrib.auth.password_validation.UserAttributeSimilarityValidator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code></a>·incurred·significant·overhead
88 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the89 evaluating·submitted·password·that·were·artificially·large·in·relative·to·the
89 comparison·values.·On·the·assumption·that·access·to·user·registration·was90 comparison·values.·On·the·assumption·that·access·to·user·registration·was
90 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>91 unrestricted·this·provided·a·potential·vector·for·a·denial-of-service·attack.</p>
91 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by92 <p>In·order·to·mitigate·this·issue,·relatively·long·values·are·now·ignored·by
92 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>93 <code·class="docutils·literal·notranslate"><span·class="pre">UserAttributeSimilarityValidator</span></code>.</p>
93 <p>This·issue·has·severity·medium·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>94 <p>This·issue·has·severity·«medium»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
94 </section>95 </section>
95 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">96 <section·id="s-cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter">
96 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>97 <span·id="cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"></span><h2>CVE-2021-45116:·Potential·information·disclosure·in·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·template·filter<a·class="headerlink"·href="#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter"·title="Link·to·this·heading">¶</a></h2>
97 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the98 <p>Due·to·leveraging·the·Django·Template·Language’s·variable·resolution·logic,·the
98 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information99 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-dictsort"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">dictsort</span></code></a>·template·filter·was·potentially·vulnerable·to·information
99 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>100 disclosure·or·unintended·method·calls,·if·passed·a·suitably·crafted·key.</p>
100 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted101 <p>In·order·to·avoid·this·possibility,·<code·class="docutils·literal·notranslate"><span·class="pre">dictsort</span></code>·now·works·with·a·restricted
101 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on102 resolution·logic,·that·will·not·call·methods,·nor·allow·indexing·on
102 dictionaries.</p>103 dictionaries.</p>
103 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>104 <p>As·a·reminder,·all·untrusted·user·input·should·be·validated·before·use.</p>
104 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>105 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
105 </section>106 </section>
106 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">107 <section·id="s-cve-2021-45452-potential-directory-traversal-via-storage-save">
107 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>108 <span·id="cve-2021-45452-potential-directory-traversal-via-storage-save"></span><h2>CVE-2021-45452:·Potential·directory-traversal·via·<code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code><a·class="headerlink"·href="#cve-2021-45452-potential-directory-traversal-via-storage-save"·title="Link·to·this·heading">¶</a></h2>
108 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably109 <p><code·class="docutils·literal·notranslate"><span·class="pre">Storage.save()</span></code>·allowed·directory-traversal·if·directly·passed·suitably
109 crafted·file·names.</p>110 crafted·file·names.</p>
110 <p>This·issue·has·severity·low·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>111 <p>This·issue·has·severity·«low»·according·to·the·<a·class="reference·internal"·href="../internals/security.html#security-disclosure"><span·class="std·std-ref">Django·security·policy</span></a>.</p>
111 </section>112 </section>
112 <section·id="s-bugfixes">113 <section·id="s-bugfixes">
113 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>114 <span·id="bugfixes"></span><h2>Bugfixes<a·class="headerlink"·href="#bugfixes"·title="Link·to·this·heading">¶</a></h2>
114 <ul·class="simple">115 <ul·class="simple">
115 <li><p>Fixed·a·regression·in·Django·4.0·that·caused·a·crash·of116 <li><p>Fixed·a·regression·in·Django·4.0·that·caused·a·crash·of
116 <code·class="docutils·literal·notranslate"><span·class="pre">assertFormsetError()</span></code>·on·a·formset·named·<code·class="docutils·literal·notranslate"><span·class="pre">form</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33346">#33346</a>).</p></li>117 <code·class="docutils·literal·notranslate"><span·class="pre">assertFormsetError()</span></code>·on·a·formset·named·<code·class="docutils·literal·notranslate"><span·class="pre">form</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33346">#33346</a>).</p></li>
117 <li><p>Fixed·a·bug·in·Django·4.0·that·caused·a·crash·on·booleans·with·the118 <li><p>Fixed·a·bug·in·Django·4.0·that·caused·a·crash·on·booleans·with·the
Offset 150, 37 lines modifiedOffset 151, 37 lines modified
150 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>151 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
151 </ul>152 </ul>
152 </li>153 </li>
153 </ul>154 </ul>
  
154 ··</div>155 ··</div>
155 ··<div>156 ··<div>
156 ····<h4>Previous·topic</h4>157 ····<h4>Argomento·precedente</h4>
157 ····<p·class="topless"><a·href="4.0.2.html"158 ····<p·class="topless"><a·href="4.0.2.html"
158 ··························title="previous·chapter">Django·4.0.2·release·notes</a></p>159 ··························title="capitolo·precedente">Django·4.0.2·release·notes</a></p>
159 ··</div>160 ··</div>
160 ··<div>161 ··<div>
161 ····<h4>Next·topic</h4>162 ····<h4>Argomento·successivo</h4>
162 ····<p·class="topless"><a·href="4.0.html"163 ····<p·class="topless"><a·href="4.0.html"
163 ··························title="next·chapter">Django·4.0·release·notes</a></p>164 ··························title="capitolo·successivo">Django·4.0·release·notes</a></p>
164 ··</div>165 ··</div>
165 <search·id="searchbox"·style="display:·none"·role="search">166 <search·id="searchbox"·style="display:·none"·role="search">
166 ··<h3·id="searchlabel">Quick·search</h3>167 ··<h3·id="searchlabel">Ricerca·veloce</h3>
167 ····<div·class="searchformwrapper">168 ····<div·class="searchformwrapper">
168 ····<form·class="search"·action="../search.html"·method="get">169 ····<form·class="search"·action="../search.html"·method="get">
169 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>170 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
170 ······<input·type="submit"·value="Go"·/>171 ······<input·type="submit"·value="Vai"·/>
171 ····</form>172 ····</form>
172 ····</div>173 ····</div>
173 </search>174 </search>
174 <script>document.getElementById('searchbox').style.display·=·"block"</script>175 <script>document.getElementById('searchbox').style.display·=·"block"</script>
175 ········</div>176 ········</div>
176 ······</div>177 ······</div>
177 ··············<h3>Last·update:</h3>178 ··············<h3>Last·update:</h3>
178 ··············<p·class="topless">Sep·03,·2024</p>179 ··············<p·class="topless">set·03,·2024</p>
179 ··········</div>180 ··········</div>
180 ········181 ········
181 ······182 ······
182 ····</div>183 ····</div>
  
183 ····<div·id="ft">184 ····<div·id="ft">
184 ······<div·class="nav">185 ······<div·class="nav">
5.43 KB
html2text {}
Max HTML report size reached
7.85 KB
./usr/share/doc/python-django-doc/html/releases/4.0.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.9·release·notes"·href="4.0.9.html"·/>15 ····<link·rel="next"·title="Django·4.0.9·release·notes"·href="4.0.9.html"·/>
15 ····<link·rel="prev"·title="Django·4.1·release·notes"·href="4.1.html"·/>16 ····<link·rel="prev"·title="Django·4.1·release·notes"·href="4.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.10">79 ··········<div·class="yui-g"·id="releases-4.0.10">
79 ············80 ············
80 ··<section·id="s-django-4-0-10-release-notes">81 ··<section·id="s-django-4-0-10-release-notes">
81 <span·id="django-4-0-10-release-notes"></span><h1>Django·4.0.10·release·notes<a·class="headerlink"·href="#django-4-0-10-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-10-release-notes"></span><h1>Django·4.0.10·release·notes<a·class="headerlink"·href="#django-4-0-10-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·14,·2023</em></p>83 <p><em>February·14,·2023</em></p>
83 <p>Django·4.0.10·fixes·a·security·issue·with·severity·moderate·in·4.0.9.</p>84 <p>Django·4.0.10·fixes·a·security·issue·with·severity·«moderate»·in·4.0.9.</p>
84 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">85 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">
85 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>
86 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files87 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files
87 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service88 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service
88 attack.</p>89 attack.</p>
89 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new90 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new
90 <a·class="reference·internal"·href="../ref/settings.html#std-setting-DATA_UPLOAD_MAX_NUMBER_FILES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATA_UPLOAD_MAX_NUMBER_FILES</span></code></a>·setting.</p>91 <a·class="reference·internal"·href="../ref/settings.html#std-setting-DATA_UPLOAD_MAX_NUMBER_FILES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATA_UPLOAD_MAX_NUMBER_FILES</span></code></a>·setting.</p>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads</a></li>109 <li><a·class="reference·internal"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="4.1.html"116 ····<p·class="topless"><a·href="4.1.html"
116 ··························title="previous·chapter">Django·4.1·release·notes</a></p>117 ··························title="capitolo·precedente">Django·4.1·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="4.0.9.html"121 ····<p·class="topless"><a·href="4.0.9.html"
121 ··························title="next·chapter">Django·4.0.9·release·notes</a></p>122 ··························title="capitolo·successivo">Django·4.0.9·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.58 KB
html2text {}
Max HTML report size reached
8.23 KB
./usr/share/doc/python-django-doc/html/releases/4.0.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.1·release·notes"·href="4.0.1.html"·/>15 ····<link·rel="next"·title="Django·4.0.1·release·notes"·href="4.0.1.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.3·release·notes"·href="4.0.3.html"·/>16 ····<link·rel="prev"·title="Django·4.0.3·release·notes"·href="4.0.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.2">79 ··········<div·class="yui-g"·id="releases-4.0.2">
79 ············80 ············
80 ··<section·id="s-django-4-0-2-release-notes">81 ··<section·id="s-django-4-0-2-release-notes">
81 <span·id="django-4-0-2-release-notes"></span><h1>Django·4.0.2·release·notes<a·class="headerlink"·href="#django-4-0-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-2-release-notes"></span><h1>Django·4.0.2·release·notes<a·class="headerlink"·href="#django-4-0-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2022</em></p>83 <p><em>February·1,·2022</em></p>
83 <p>Django·4.0.2·fixes·two·security·issues·with·severity·medium·and·several·bugs84 <p>Django·4.0.2·fixes·two·security·issues·with·severity·«medium»·and·several·bugs
84 in·4.0.1.·Also,·the·latest·string·translations·from·Transifex·are·incorporated,85 in·4.0.1.·Also,·the·latest·string·translations·from·Transifex·are·incorporated,
85 with·a·special·mention·for·Bulgarian·(fully·translated).</p>86 with·a·special·mention·for·Bulgarian·(fully·translated).</p>
86 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">87 <section·id="s-cve-2022-22818-possible-xss-via-debug-template-tag">
87 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>88 <span·id="cve-2022-22818-possible-xss-via-debug-template-tag"></span><h2>CVE-2022-22818:·Possible·XSS·via·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag<a·class="headerlink"·href="#cve-2022-22818-possible-xss-via-debug-template-tag"·title="Link·to·this·heading">¶</a></h2>
88 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,89 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·template·tag·didn’t·properly·encode·the·current·context,
89 posing·an·XSS·attack·vector.</p>90 posing·an·XSS·attack·vector.</p>
90 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs91 <p>In·order·to·avoid·this·vulnerability,·<code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">debug</span>·<span·class="pre">%}</span></code>·no·longer·outputs
Offset 143, 37 lines modifiedOffset 144, 37 lines modified
143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>144 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
144 </ul>145 </ul>
145 </li>146 </li>
146 </ul>147 </ul>
  
147 ··</div>148 ··</div>
148 ··<div>149 ··<div>
149 ····<h4>Previous·topic</h4>150 ····<h4>Argomento·precedente</h4>
150 ····<p·class="topless"><a·href="4.0.3.html"151 ····<p·class="topless"><a·href="4.0.3.html"
151 ··························title="previous·chapter">Django·4.0.3·release·notes</a></p>152 ··························title="capitolo·precedente">Django·4.0.3·release·notes</a></p>
152 ··</div>153 ··</div>
153 ··<div>154 ··<div>
154 ····<h4>Next·topic</h4>155 ····<h4>Argomento·successivo</h4>
155 ····<p·class="topless"><a·href="4.0.1.html"156 ····<p·class="topless"><a·href="4.0.1.html"
156 ··························title="next·chapter">Django·4.0.1·release·notes</a></p>157 ··························title="capitolo·successivo">Django·4.0.1·release·notes</a></p>
157 ··</div>158 ··</div>
158 <search·id="searchbox"·style="display:·none"·role="search">159 <search·id="searchbox"·style="display:·none"·role="search">
159 ··<h3·id="searchlabel">Quick·search</h3>160 ··<h3·id="searchlabel">Ricerca·veloce</h3>
160 ····<div·class="searchformwrapper">161 ····<div·class="searchformwrapper">
161 ····<form·class="search"·action="../search.html"·method="get">162 ····<form·class="search"·action="../search.html"·method="get">
162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>163 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
163 ······<input·type="submit"·value="Go"·/>164 ······<input·type="submit"·value="Vai"·/>
164 ····</form>165 ····</form>
165 ····</div>166 ····</div>
166 </search>167 </search>
167 <script>document.getElementById('searchbox').style.display·=·"block"</script>168 <script>document.getElementById('searchbox').style.display·=·"block"</script>
168 ········</div>169 ········</div>
169 ······</div>170 ······</div>
170 ··············<h3>Last·update:</h3>171 ··············<h3>Last·update:</h3>
171 ··············<p·class="topless">Sep·03,·2024</p>172 ··············<p·class="topless">set·03,·2024</p>
172 ··········</div>173 ··········</div>
173 ········174 ········
174 ······175 ······
175 ····</div>176 ····</div>
  
176 ····<div·id="ft">177 ····<div·id="ft">
177 ······<div·class="nav">178 ······<div·class="nav">
2.94 KB
html2text {}
Max HTML report size reached
5.92 KB
./usr/share/doc/python-django-doc/html/releases/4.0.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.2·release·notes"·href="4.0.2.html"·/>15 ····<link·rel="next"·title="Django·4.0.2·release·notes"·href="4.0.2.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.4·release·notes"·href="4.0.4.html"·/>16 ····<link·rel="prev"·title="Django·4.0.4·release·notes"·href="4.0.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 112, 37 lines modifiedOffset 113, 37 lines modified
112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
113 </ul>114 </ul>
114 </li>115 </li>
115 </ul>116 </ul>
  
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Previous·topic</h4>119 ····<h4>Argomento·precedente</h4>
119 ····<p·class="topless"><a·href="4.0.4.html"120 ····<p·class="topless"><a·href="4.0.4.html"
120 ··························title="previous·chapter">Django·4.0.4·release·notes</a></p>121 ··························title="capitolo·precedente">Django·4.0.4·release·notes</a></p>
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Next·topic</h4>124 ····<h4>Argomento·successivo</h4>
124 ····<p·class="topless"><a·href="4.0.2.html"125 ····<p·class="topless"><a·href="4.0.2.html"
125 ··························title="next·chapter">Django·4.0.2·release·notes</a></p>126 ··························title="capitolo·successivo">Django·4.0.2·release·notes</a></p>
126 ··</div>127 ··</div>
127 <search·id="searchbox"·style="display:·none"·role="search">128 <search·id="searchbox"·style="display:·none"·role="search">
128 ··<h3·id="searchlabel">Quick·search</h3>129 ··<h3·id="searchlabel">Ricerca·veloce</h3>
129 ····<div·class="searchformwrapper">130 ····<div·class="searchformwrapper">
130 ····<form·class="search"·action="../search.html"·method="get">131 ····<form·class="search"·action="../search.html"·method="get">
131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
132 ······<input·type="submit"·value="Go"·/>133 ······<input·type="submit"·value="Vai"·/>
133 ····</form>134 ····</form>
134 ····</div>135 ····</div>
135 </search>136 </search>
136 <script>document.getElementById('searchbox').style.display·=·"block"</script>137 <script>document.getElementById('searchbox').style.display·=·"block"</script>
137 ········</div>138 ········</div>
138 ······</div>139 ······</div>
139 ··············<h3>Last·update:</h3>140 ··············<h3>Last·update:</h3>
140 ··············<p·class="topless">Sep·03,·2024</p>141 ··············<p·class="topless">set·03,·2024</p>
141 ··········</div>142 ··········</div>
142 ········143 ········
143 ······144 ······
144 ····</div>145 ····</div>
  
145 ····<div·id="ft">146 ····<div·id="ft">
146 ······<div·class="nav">147 ······<div·class="nav">
2.18 KB
html2text {}
Max HTML report size reached
9.14 KB
./usr/share/doc/python-django-doc/html/releases/4.0.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.3·release·notes"·href="4.0.3.html"·/>15 ····<link·rel="next"·title="Django·4.0.3·release·notes"·href="4.0.3.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.5·release·notes"·href="4.0.5.html"·/>16 ····<link·rel="prev"·title="Django·4.0.5·release·notes"·href="4.0.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.4">79 ··········<div·class="yui-g"·id="releases-4.0.4">
79 ············80 ············
80 ··<section·id="s-django-4-0-4-release-notes">81 ··<section·id="s-django-4-0-4-release-notes">
81 <span·id="django-4-0-4-release-notes"></span><h1>Django·4.0.4·release·notes<a·class="headerlink"·href="#django-4-0-4-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-4-release-notes"></span><h1>Django·4.0.4·release·notes<a·class="headerlink"·href="#django-4-0-4-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>April·11,·2022</em></p>83 <p><em>April·11,·2022</em></p>
83 <p>Django·4.0.4·fixes·two·security·issues·with·severity·high·and·two·bugs·in84 <p>Django·4.0.4·fixes·two·security·issues·with·severity·«high»·and·two·bugs·in
84 4.0.3.</p>85 4.0.3.</p>
85 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">86 <section·id="s-cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra">
86 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"></span><h2>CVE-2022-28346:·Potential·SQL·injection·in·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">extra()</span></code><a·class="headerlink"·href="#cve-2022-28346-potential-sql-injection-in-queryset-annotate-aggregate-and-extra"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and88 <p><a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.annotate"·title="django.db.models.query.QuerySet.annotate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">QuerySet.annotate()</span></code></a>,·<a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.aggregate"·title="django.db.models.query.QuerySet.aggregate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">aggregate()</span></code></a>,·and
88 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column89 <a·class="reference·internal"·href="../ref/models/querysets.html#django.db.models.query.QuerySet.extra"·title="django.db.models.query.QuerySet.extra"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">extra()</span></code></a>·methods·were·subject·to·SQL·injection·in·column
89 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the90 aliases,·using·a·suitably·crafted·dictionary,·with·dictionary·expansion,·as·the
90 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>91 <code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>·passed·to·these·methods.</p>
Offset 126, 37 lines modifiedOffset 127, 37 lines modified
126 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
127 </ul>128 </ul>
128 </li>129 </li>
129 </ul>130 </ul>
  
130 ··</div>131 ··</div>
131 ··<div>132 ··<div>
132 ····<h4>Previous·topic</h4>133 ····<h4>Argomento·precedente</h4>
133 ····<p·class="topless"><a·href="4.0.5.html"134 ····<p·class="topless"><a·href="4.0.5.html"
134 ··························title="previous·chapter">Django·4.0.5·release·notes</a></p>135 ··························title="capitolo·precedente">Django·4.0.5·release·notes</a></p>
135 ··</div>136 ··</div>
136 ··<div>137 ··<div>
137 ····<h4>Next·topic</h4>138 ····<h4>Argomento·successivo</h4>
138 ····<p·class="topless"><a·href="4.0.3.html"139 ····<p·class="topless"><a·href="4.0.3.html"
139 ··························title="next·chapter">Django·4.0.3·release·notes</a></p>140 ··························title="capitolo·successivo">Django·4.0.3·release·notes</a></p>
140 ··</div>141 ··</div>
141 <search·id="searchbox"·style="display:·none"·role="search">142 <search·id="searchbox"·style="display:·none"·role="search">
142 ··<h3·id="searchlabel">Quick·search</h3>143 ··<h3·id="searchlabel">Ricerca·veloce</h3>
143 ····<div·class="searchformwrapper">144 ····<div·class="searchformwrapper">
144 ····<form·class="search"·action="../search.html"·method="get">145 ····<form·class="search"·action="../search.html"·method="get">
145 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
146 ······<input·type="submit"·value="Go"·/>147 ······<input·type="submit"·value="Vai"·/>
147 ····</form>148 ····</form>
148 ····</div>149 ····</div>
149 </search>150 </search>
150 <script>document.getElementById('searchbox').style.display·=·"block"</script>151 <script>document.getElementById('searchbox').style.display·=·"block"</script>
151 ········</div>152 ········</div>
152 ······</div>153 ······</div>
153 ··············<h3>Last·update:</h3>154 ··············<h3>Last·update:</h3>
154 ··············<p·class="topless">Sep·03,·2024</p>155 ··············<p·class="topless">set·03,·2024</p>
155 ··········</div>156 ··········</div>
156 ········157 ········
157 ······158 ······
158 ····</div>159 ····</div>
  
159 ····<div·id="ft">160 ····<div·id="ft">
160 ······<div·class="nav">161 ······<div·class="nav">
3.18 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/4.0.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.4·release·notes"·href="4.0.4.html"·/>15 ····<link·rel="next"·title="Django·4.0.4·release·notes"·href="4.0.4.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.6·release·notes"·href="4.0.6.html"·/>16 ····<link·rel="prev"·title="Django·4.0.6·release·notes"·href="4.0.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 111, 37 lines modifiedOffset 112, 37 lines modified
111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>112 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
112 </ul>113 </ul>
113 </li>114 </li>
114 </ul>115 </ul>
  
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Previous·topic</h4>118 ····<h4>Argomento·precedente</h4>
118 ····<p·class="topless"><a·href="4.0.6.html"119 ····<p·class="topless"><a·href="4.0.6.html"
119 ··························title="previous·chapter">Django·4.0.6·release·notes</a></p>120 ··························title="capitolo·precedente">Django·4.0.6·release·notes</a></p>
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Next·topic</h4>123 ····<h4>Argomento·successivo</h4>
123 ····<p·class="topless"><a·href="4.0.4.html"124 ····<p·class="topless"><a·href="4.0.4.html"
124 ··························title="next·chapter">Django·4.0.4·release·notes</a></p>125 ··························title="capitolo·successivo">Django·4.0.4·release·notes</a></p>
125 ··</div>126 ··</div>
126 <search·id="searchbox"·style="display:·none"·role="search">127 <search·id="searchbox"·style="display:·none"·role="search">
127 ··<h3·id="searchlabel">Quick·search</h3>128 ··<h3·id="searchlabel">Ricerca·veloce</h3>
128 ····<div·class="searchformwrapper">129 ····<div·class="searchformwrapper">
129 ····<form·class="search"·action="../search.html"·method="get">130 ····<form·class="search"·action="../search.html"·method="get">
130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>131 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
131 ······<input·type="submit"·value="Go"·/>132 ······<input·type="submit"·value="Vai"·/>
132 ····</form>133 ····</form>
133 ····</div>134 ····</div>
134 </search>135 </search>
135 <script>document.getElementById('searchbox').style.display·=·"block"</script>136 <script>document.getElementById('searchbox').style.display·=·"block"</script>
136 ········</div>137 ········</div>
137 ······</div>138 ······</div>
138 ··············<h3>Last·update:</h3>139 ··············<h3>Last·update:</h3>
139 ··············<p·class="topless">Sep·03,·2024</p>140 ··············<p·class="topless">set·03,·2024</p>
140 ··········</div>141 ··········</div>
141 ········142 ········
142 ······143 ······
143 ····</div>144 ····</div>
  
144 ····<div·id="ft">145 ····<div·id="ft">
145 ······<div·class="nav">146 ······<div·class="nav">
2.14 KB
html2text {}
Max HTML report size reached
8.61 KB
./usr/share/doc/python-django-doc/html/releases/4.0.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.5·release·notes"·href="4.0.5.html"·/>15 ····<link·rel="next"·title="Django·4.0.5·release·notes"·href="4.0.5.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.7·release·notes"·href="4.0.7.html"·/>16 ····<link·rel="prev"·title="Django·4.0.7·release·notes"·href="4.0.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.6">79 ··········<div·class="yui-g"·id="releases-4.0.6">
79 ············80 ············
80 ··<section·id="s-django-4-0-6-release-notes">81 ··<section·id="s-django-4-0-6-release-notes">
81 <span·id="django-4-0-6-release-notes"></span><h1>Django·4.0.6·release·notes<a·class="headerlink"·href="#django-4-0-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-6-release-notes"></span><h1>Django·4.0.6·release·notes<a·class="headerlink"·href="#django-4-0-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·4,·2022</em></p>83 <p><em>July·4,·2022</em></p>
83 <p>Django·4.0.6·fixes·a·security·issue·with·severity·high·in·4.0.5.</p>84 <p>Django·4.0.6·fixes·a·security·issue·with·severity·«high»·in·4.0.5.</p>
84 <section·id="s-cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">85 <section·id="s-cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">
85 <span·id="cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"></span><h2>CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments<a·class="headerlink"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"></span><h2>CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments<a·class="headerlink"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments"·title="Link·to·this·heading">¶</a></h2>
86 <p><a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Trunc"·title="django.db.models.functions.Trunc"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Trunc()</span></code></a>·and87 <p><a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Trunc"·title="django.db.models.functions.Trunc"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Trunc()</span></code></a>·and
87 <a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Extract"·title="django.db.models.functions.Extract"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Extract()</span></code></a>·database·functions·were88 <a·class="reference·internal"·href="../ref/models/database-functions.html#django.db.models.functions.Extract"·title="django.db.models.functions.Extract"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Extract()</span></code></a>·database·functions·were
88 subject·to·SQL·injection·if·untrusted·data·was·used·as·a89 subject·to·SQL·injection·if·untrusted·data·was·used·as·a
89 <code·class="docutils·literal·notranslate"><span·class="pre">kind</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·value.</p>90 <code·class="docutils·literal·notranslate"><span·class="pre">kind</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">lookup_name</span></code>·value.</p>
90 <p>Applications·that·constrain·the·lookup·name·and·kind·choice·to·a·known·safe91 <p>Applications·that·constrain·the·lookup·name·and·kind·choice·to·a·known·safe
Offset 109, 37 lines modifiedOffset 110, 37 lines modified
109 <li><a·class="reference·internal"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments</a></li>110 <li><a·class="reference·internal"·href="#cve-2022-34265-potential-sql-injection-via-trunc-kind-and-extract-lookup-name-arguments">CVE-2022-34265:·Potential·SQL·injection·via·<code·class="docutils·literal·notranslate"><span·class="pre">Trunc(kind)</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Extract(lookup_name)</span></code>·arguments</a></li>
110 </ul>111 </ul>
111 </li>112 </li>
112 </ul>113 </ul>
  
113 ··</div>114 ··</div>
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="4.0.7.html"117 ····<p·class="topless"><a·href="4.0.7.html"
117 ··························title="previous·chapter">Django·4.0.7·release·notes</a></p>118 ··························title="capitolo·precedente">Django·4.0.7·release·notes</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="4.0.5.html"122 ····<p·class="topless"><a·href="4.0.5.html"
122 ··························title="next·chapter">Django·4.0.5·release·notes</a></p>123 ··························title="capitolo·successivo">Django·4.0.5·release·notes</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../search.html"·method="get">128 ····<form·class="search"·action="../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.59 KB
html2text {}
Max HTML report size reached
8.15 KB
./usr/share/doc/python-django-doc/html/releases/4.0.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.6·release·notes"·href="4.0.6.html"·/>15 ····<link·rel="next"·title="Django·4.0.6·release·notes"·href="4.0.6.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.8·release·notes"·href="4.0.8.html"·/>16 ····<link·rel="prev"·title="Django·4.0.8·release·notes"·href="4.0.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.7">79 ··········<div·class="yui-g"·id="releases-4.0.7">
79 ············80 ············
80 ··<section·id="s-django-4-0-7-release-notes">81 ··<section·id="s-django-4-0-7-release-notes">
81 <span·id="django-4-0-7-release-notes"></span><h1>Django·4.0.7·release·notes<a·class="headerlink"·href="#django-4-0-7-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-7-release-notes"></span><h1>Django·4.0.7·release·notes<a·class="headerlink"·href="#django-4-0-7-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>August·3,·2022</em></p>83 <p><em>August·3,·2022</em></p>
83 <p>Django·4.0.7·fixes·a·security·issue·with·severity·high·in·4.0.6.</p>84 <p>Django·4.0.7·fixes·a·security·issue·with·severity·«high»·in·4.0.6.</p>
84 <section·id="s-cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">85 <section·id="s-cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">
85 <span·id="cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"></span><h2>CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code><a·class="headerlink"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"></span><h2>CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code><a·class="headerlink"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse"·title="Link·to·this·heading">¶</a></h2>
86 <p>An·application·may·have·been·vulnerable·to·a·reflected·file·download·(RFD)87 <p>An·application·may·have·been·vulnerable·to·a·reflected·file·download·(RFD)
87 attack·that·sets·the·Content-Disposition·header·of·a88 attack·that·sets·the·Content-Disposition·header·of·a
88 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·was·derived·from89 <a·class="reference·internal"·href="../ref/request-response.html#django.http.FileResponse"·title="django.http.FileResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a>·when·the·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·was·derived·from
89 user-supplied·input.·The·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·is·now·escaped·to·avoid·this·possibility.</p>90 user-supplied·input.·The·<code·class="docutils·literal·notranslate"><span·class="pre">filename</span></code>·is·now·escaped·to·avoid·this·possibility.</p>
90 </section>91 </section>
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a></li>108 <li><a·class="reference·internal"·href="#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse">CVE-2022-36359:·Potential·reflected·file·download·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">FileResponse</span></code></a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="4.0.8.html"115 ····<p·class="topless"><a·href="4.0.8.html"
115 ··························title="previous·chapter">Django·4.0.8·release·notes</a></p>116 ··························title="capitolo·precedente">Django·4.0.8·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="4.0.6.html"120 ····<p·class="topless"><a·href="4.0.6.html"
120 ··························title="next·chapter">Django·4.0.6·release·notes</a></p>121 ··························title="capitolo·successivo">Django·4.0.6·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
2.55 KB
html2text {}
Max HTML report size reached
7.39 KB
./usr/share/doc/python-django-doc/html/releases/4.0.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.7·release·notes"·href="4.0.7.html"·/>15 ····<link·rel="next"·title="Django·4.0.7·release·notes"·href="4.0.7.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.9·release·notes"·href="4.0.9.html"·/>16 ····<link·rel="prev"·title="Django·4.0.9·release·notes"·href="4.0.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.8">79 ··········<div·class="yui-g"·id="releases-4.0.8">
79 ············80 ············
80 ··<section·id="s-django-4-0-8-release-notes">81 ··<section·id="s-django-4-0-8-release-notes">
81 <span·id="django-4-0-8-release-notes"></span><h1>Django·4.0.8·release·notes<a·class="headerlink"·href="#django-4-0-8-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-8-release-notes"></span><h1>Django·4.0.8·release·notes<a·class="headerlink"·href="#django-4-0-8-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2022</em></p>83 <p><em>October·4,·2022</em></p>
83 <p>Django·4.0.8·fixes·a·security·issue·with·severity·medium·in·4.0.7.</p>84 <p>Django·4.0.8·fixes·a·security·issue·with·severity·«medium»·in·4.0.7.</p>
84 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">85 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">
85 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>
86 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via87 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via
87 the·locale·parameter.</p>88 the·locale·parameter.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs</a></li>106 <li><a·class="reference·internal"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="4.0.9.html"113 ····<p·class="topless"><a·href="4.0.9.html"
113 ··························title="previous·chapter">Django·4.0.9·release·notes</a></p>114 ··························title="capitolo·precedente">Django·4.0.9·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="4.0.7.html"118 ····<p·class="topless"><a·href="4.0.7.html"
118 ··························title="next·chapter">Django·4.0.7·release·notes</a></p>119 ··························title="capitolo·successivo">Django·4.0.7·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.41 KB
html2text {}
Max HTML report size reached
7.96 KB
./usr/share/doc/python-django-doc/html/releases/4.0.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.8·release·notes"·href="4.0.8.html"·/>15 ····<link·rel="next"·title="Django·4.0.8·release·notes"·href="4.0.8.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.10·release·notes"·href="4.0.10.html"·/>16 ····<link·rel="prev"·title="Django·4.0.10·release·notes"·href="4.0.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.0.9">79 ··········<div·class="yui-g"·id="releases-4.0.9">
79 ············80 ············
80 ··<section·id="s-django-4-0-9-release-notes">81 ··<section·id="s-django-4-0-9-release-notes">
81 <span·id="django-4-0-9-release-notes"></span><h1>Django·4.0.9·release·notes<a·class="headerlink"·href="#django-4-0-9-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-0-9-release-notes"></span><h1>Django·4.0.9·release·notes<a·class="headerlink"·href="#django-4-0-9-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2023</em></p>83 <p><em>February·1,·2023</em></p>
83 <p>Django·4.0.9·fixes·a·security·issue·with·severity·moderate·in·4.0.8.</p>84 <p>Django·4.0.9·fixes·a·security·issue·with·severity·«moderate»·in·4.0.8.</p>
84 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">85 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">
85 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid87 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid
87 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via88 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via
88 excessive·memory·usage·if·large·header·values·are·sent.</p>89 excessive·memory·usage·if·large·header·values·are·sent.</p>
89 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now90 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now
90 parsed·up·to·a·maximum·length.</p>91 parsed·up·to·a·maximum·length.</p>
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers">CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers</a></li>109 <li><a·class="reference·internal"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers">CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="4.0.10.html"116 ····<p·class="topless"><a·href="4.0.10.html"
116 ··························title="previous·chapter">Django·4.0.10·release·notes</a></p>117 ··························title="capitolo·precedente">Django·4.0.10·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="4.0.8.html"121 ····<p·class="topless"><a·href="4.0.8.html"
121 ··························title="next·chapter">Django·4.0.8·release·notes</a></p>122 ··························title="capitolo·successivo">Django·4.0.8·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.55 KB
html2text {}
Max HTML report size reached
5.97 KB
./usr/share/doc/python-django-doc/html/releases/4.0.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.0·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.0·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·3.2.25·release·notes"·href="3.2.25.html"·/>15 ····<link·rel="next"·title="Django·3.2.25·release·notes"·href="3.2.25.html"·/>
15 ····<link·rel="prev"·title="Django·4.0.1·release·notes"·href="4.0.1.html"·/>16 ····<link·rel="prev"·title="Django·4.0.1·release·notes"·href="4.0.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 786, 37 lines modifiedOffset 787, 37 lines modified
786 <li><a·class="reference·internal"·href="#features-removed-in-4-0">Features·removed·in·4.0</a></li>787 <li><a·class="reference·internal"·href="#features-removed-in-4-0">Features·removed·in·4.0</a></li>
787 </ul>788 </ul>
788 </li>789 </li>
789 </ul>790 </ul>
  
790 ··</div>791 ··</div>
791 ··<div>792 ··<div>
792 ····<h4>Previous·topic</h4>793 ····<h4>Argomento·precedente</h4>
793 ····<p·class="topless"><a·href="4.0.1.html"794 ····<p·class="topless"><a·href="4.0.1.html"
794 ··························title="previous·chapter">Django·4.0.1·release·notes</a></p>795 ··························title="capitolo·precedente">Django·4.0.1·release·notes</a></p>
795 ··</div>796 ··</div>
796 ··<div>797 ··<div>
797 ····<h4>Next·topic</h4>798 ····<h4>Argomento·successivo</h4>
798 ····<p·class="topless"><a·href="3.2.25.html"799 ····<p·class="topless"><a·href="3.2.25.html"
799 ··························title="next·chapter">Django·3.2.25·release·notes</a></p>800 ··························title="capitolo·successivo">Django·3.2.25·release·notes</a></p>
800 ··</div>801 ··</div>
801 <search·id="searchbox"·style="display:·none"·role="search">802 <search·id="searchbox"·style="display:·none"·role="search">
802 ··<h3·id="searchlabel">Quick·search</h3>803 ··<h3·id="searchlabel">Ricerca·veloce</h3>
803 ····<div·class="searchformwrapper">804 ····<div·class="searchformwrapper">
804 ····<form·class="search"·action="../search.html"·method="get">805 ····<form·class="search"·action="../search.html"·method="get">
805 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>806 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
806 ······<input·type="submit"·value="Go"·/>807 ······<input·type="submit"·value="Vai"·/>
807 ····</form>808 ····</form>
808 ····</div>809 ····</div>
809 </search>810 </search>
810 <script>document.getElementById('searchbox').style.display·=·"block"</script>811 <script>document.getElementById('searchbox').style.display·=·"block"</script>
811 ········</div>812 ········</div>
812 ······</div>813 ······</div>
813 ··············<h3>Last·update:</h3>814 ··············<h3>Last·update:</h3>
814 ··············<p·class="topless">Sep·03,·2024</p>815 ··············<p·class="topless">set·03,·2024</p>
815 ··········</div>816 ··········</div>
816 ········817 ········
817 ······818 ······
818 ····</div>819 ····</div>
  
819 ····<div·id="ft">820 ····<div·id="ft">
820 ······<div·class="nav">821 ······<div·class="nav">
2.21 KB
html2text {}
Max HTML report size reached
10.1 KB
./usr/share/doc/python-django-doc/html/releases/4.1.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1·release·notes"·href="4.1.html"·/>15 ····<link·rel="next"·title="Django·4.1·release·notes"·href="4.1.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.2·release·notes"·href="4.1.2.html"·/>16 ····<link·rel="prev"·title="Django·4.1.2·release·notes"·href="4.1.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 16 lines modifiedOffset 89, 16 lines modified
88 is·not·installed·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33886">#33886</a>).</p></li>89 is·not·installed·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33886">#33886</a>).</p></li>
89 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of·admin’s·autocomplete90 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of·admin’s·autocomplete
90 widgets·when·translations·are·deactivated·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33888">#33888</a>).</p></li>91 widgets·when·translations·are·deactivated·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33888">#33888</a>).</p></li>
91 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">test</span></code>92 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">test</span></code>
92 management·command·when·running·in·parallel·and·<code·class="docutils·literal·notranslate"><span·class="pre">multiprocessing</span></code>·start93 management·command·when·running·in·parallel·and·<code·class="docutils·literal·notranslate"><span·class="pre">multiprocessing</span></code>·start
93 method·is·<code·class="docutils·literal·notranslate"><span·class="pre">spawn</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33891">#33891</a>).</p></li>94 method·is·<code·class="docutils·literal·notranslate"><span·class="pre">spawn</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33891">#33891</a>).</p></li>
94 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·an·incorrect·redirection·to·the95 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·an·incorrect·redirection·to·the
95 admin·changelist·view·when·using·<em>Save·and·continue·editing</em>·and·<em>Save·and96 admin·changelist·view·when·using·<em>«Save·and·continue·editing»</em>·and·<em>«Save·and
96 add·another</em>·options·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33893">#33893</a>).</p></li>97 add·another»</em>·options·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33893">#33893</a>).</p></li>
97 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of98 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·crash·of
98 <a·class="reference·internal"·href="../ref/models/expressions.html#django.db.models.expressions.Window"·title="django.db.models.expressions.Window"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Window</span></code></a>·expressions·with99 <a·class="reference·internal"·href="../ref/models/expressions.html#django.db.models.expressions.Window"·title="django.db.models.expressions.Window"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Window</span></code></a>·expressions·with
99 <a·class="reference·internal"·href="../ref/contrib/postgres/aggregates.html#django.contrib.postgres.aggregates.ArrayAgg"·title="django.contrib.postgres.aggregates.ArrayAgg"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ArrayAgg</span></code></a>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33898">#33898</a>).</p></li>100 <a·class="reference·internal"·href="../ref/contrib/postgres/aggregates.html#django.contrib.postgres.aggregates.ArrayAgg"·title="django.contrib.postgres.aggregates.ArrayAgg"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ArrayAgg</span></code></a>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33898">#33898</a>).</p></li>
100 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·migration·crash·on·SQLite101 <li><p>Fixed·a·regression·in·Django·4.1·that·caused·a·migration·crash·on·SQLite
101 3.35.5+·when·removing·an·indexed·field·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33899">#33899</a>).</p></li>102 3.35.5+·when·removing·an·indexed·field·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33899">#33899</a>).</p></li>
102 <li><p>Fixed·a·bug·in·Django·4.1·that·caused·a·crash·of·model·validation·on103 <li><p>Fixed·a·bug·in·Django·4.1·that·caused·a·crash·of·model·validation·on
103 <code·class="docutils·literal·notranslate"><span·class="pre">UniqueConstraint()</span></code>·with·field·names·in·<code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33902">#33902</a>).</p></li>104 <code·class="docutils·literal·notranslate"><span·class="pre">UniqueConstraint()</span></code>·with·field·names·in·<code·class="docutils·literal·notranslate"><span·class="pre">expressions</span></code>·(<a·class="extlink-ticket·reference·external"·href="https://code.djangoproject.com/ticket/33902">#33902</a>).</p></li>
Offset 141, 37 lines modifiedOffset 142, 37 lines modified
141 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
142 </ul>143 </ul>
143 </li>144 </li>
144 </ul>145 </ul>
  
145 ··</div>146 ··</div>
146 ··<div>147 ··<div>
147 ····<h4>Previous·topic</h4>148 ····<h4>Argomento·precedente</h4>
148 ····<p·class="topless"><a·href="4.1.2.html"149 ····<p·class="topless"><a·href="4.1.2.html"
149 ··························title="previous·chapter">Django·4.1.2·release·notes</a></p>150 ··························title="capitolo·precedente">Django·4.1.2·release·notes</a></p>
150 ··</div>151 ··</div>
151 ··<div>152 ··<div>
152 ····<h4>Next·topic</h4>153 ····<h4>Argomento·successivo</h4>
153 ····<p·class="topless"><a·href="4.1.html"154 ····<p·class="topless"><a·href="4.1.html"
154 ··························title="next·chapter">Django·4.1·release·notes</a></p>155 ··························title="capitolo·successivo">Django·4.1·release·notes</a></p>
155 ··</div>156 ··</div>
156 <search·id="searchbox"·style="display:·none"·role="search">157 <search·id="searchbox"·style="display:·none"·role="search">
157 ··<h3·id="searchlabel">Quick·search</h3>158 ··<h3·id="searchlabel">Ricerca·veloce</h3>
158 ····<div·class="searchformwrapper">159 ····<div·class="searchformwrapper">
159 ····<form·class="search"·action="../search.html"·method="get">160 ····<form·class="search"·action="../search.html"·method="get">
160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
161 ······<input·type="submit"·value="Go"·/>162 ······<input·type="submit"·value="Vai"·/>
162 ····</form>163 ····</form>
163 ····</div>164 ····</div>
164 </search>165 </search>
165 <script>document.getElementById('searchbox').style.display·=·"block"</script>166 <script>document.getElementById('searchbox').style.display·=·"block"</script>
166 ········</div>167 ········</div>
167 ······</div>168 ······</div>
168 ··············<h3>Last·update:</h3>169 ··············<h3>Last·update:</h3>
169 ··············<p·class="topless">Sep·03,·2024</p>170 ··············<p·class="topless">set·03,·2024</p>
170 ··········</div>171 ··········</div>
171 ········172 ········
172 ······173 ······
173 ····</div>174 ····</div>
  
174 ····<div·id="ft">175 ····<div·id="ft">
175 ······<div·class="nav">176 ······<div·class="nav">
3.56 KB
html2text {}
Max HTML report size reached
8.26 KB
./usr/share/doc/python-django-doc/html/releases/4.1.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.9·release·notes"·href="4.1.9.html"·/>15 ····<link·rel="next"·title="Django·4.1.9·release·notes"·href="4.1.9.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.11·release·notes"·href="4.1.11.html"·/>16 ····<link·rel="prev"·title="Django·4.1.11·release·notes"·href="4.1.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.10">79 ··········<div·class="yui-g"·id="releases-4.1.10">
79 ············80 ············
80 ··<section·id="s-django-4-1-10-release-notes">81 ··<section·id="s-django-4-1-10-release-notes">
81 <span·id="django-4-1-10-release-notes"></span><h1>Django·4.1.10·release·notes<a·class="headerlink"·href="#django-4-1-10-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-10-release-notes"></span><h1>Django·4.1.10·release·notes<a·class="headerlink"·href="#django-4-1-10-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·3,·2023</em></p>83 <p><em>July·3,·2023</em></p>
83 <p>Django·4.1.10·fixes·a·security·issue·with·severity·moderate·in·4.1.9.</p>84 <p>Django·4.1.10·fixes·a·security·issue·with·severity·«moderate»·in·4.1.9.</p>
84 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">85 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">
85 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular87 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular
87 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name88 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name
88 labels·of·emails·and·URLs.</p>89 labels·of·emails·and·URLs.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a></li>107 <li><a·class="reference·internal"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code></a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="4.1.11.html"114 ····<p·class="topless"><a·href="4.1.11.html"
114 ··························title="previous·chapter">Django·4.1.11·release·notes</a></p>115 ··························title="capitolo·precedente">Django·4.1.11·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="4.1.9.html"119 ····<p·class="topless"><a·href="4.1.9.html"
119 ··························title="next·chapter">Django·4.1.9·release·notes</a></p>120 ··························title="capitolo·successivo">Django·4.1.9·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.61 KB
html2text {}
Max HTML report size reached
7.9 KB
./usr/share/doc/python-django-doc/html/releases/4.1.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.10·release·notes"·href="4.1.10.html"·/>15 ····<link·rel="next"·title="Django·4.1.10·release·notes"·href="4.1.10.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.12·release·notes"·href="4.1.12.html"·/>16 ····<link·rel="prev"·title="Django·4.1.12·release·notes"·href="4.1.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.11">79 ··········<div·class="yui-g"·id="releases-4.1.11">
79 ············80 ············
80 ··<section·id="s-django-4-1-11-release-notes">81 ··<section·id="s-django-4-1-11-release-notes">
81 <span·id="django-4-1-11-release-notes"></span><h1>Django·4.1.11·release·notes<a·class="headerlink"·href="#django-4-1-11-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-11-release-notes"></span><h1>Django·4.1.11·release·notes<a·class="headerlink"·href="#django-4-1-11-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>September·4,·2023</em></p>83 <p><em>September·4,·2023</em></p>
83 <p>Django·4.1.11·fixes·a·security·issue·with·severity·moderate·in·4.1.10.</p>84 <p>Django·4.1.11·fixes·a·security·issue·with·severity·«moderate»·in·4.1.10.</p>
84 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">85 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">
85 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>
86 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of87 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of
87 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode88 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode
88 characters.</p>89 characters.</p>
89 </section>90 </section>
90 </section>91 </section>
Offset 106, 37 lines modifiedOffset 107, 37 lines modified
106 <li><a·class="reference·internal"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>107 <li><a·class="reference·internal"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code></a></li>
107 </ul>108 </ul>
108 </li>109 </li>
109 </ul>110 </ul>
  
110 ··</div>111 ··</div>
111 ··<div>112 ··<div>
112 ····<h4>Previous·topic</h4>113 ····<h4>Argomento·precedente</h4>
113 ····<p·class="topless"><a·href="4.1.12.html"114 ····<p·class="topless"><a·href="4.1.12.html"
114 ··························title="previous·chapter">Django·4.1.12·release·notes</a></p>115 ··························title="capitolo·precedente">Django·4.1.12·release·notes</a></p>
115 ··</div>116 ··</div>
116 ··<div>117 ··<div>
117 ····<h4>Next·topic</h4>118 ····<h4>Argomento·successivo</h4>
118 ····<p·class="topless"><a·href="4.1.10.html"119 ····<p·class="topless"><a·href="4.1.10.html"
119 ··························title="next·chapter">Django·4.1.10·release·notes</a></p>120 ··························title="capitolo·successivo">Django·4.1.10·release·notes</a></p>
120 ··</div>121 ··</div>
121 <search·id="searchbox"·style="display:·none"·role="search">122 <search·id="searchbox"·style="display:·none"·role="search">
122 ··<h3·id="searchlabel">Quick·search</h3>123 ··<h3·id="searchlabel">Ricerca·veloce</h3>
123 ····<div·class="searchformwrapper">124 ····<div·class="searchformwrapper">
124 ····<form·class="search"·action="../search.html"·method="get">125 ····<form·class="search"·action="../search.html"·method="get">
125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
126 ······<input·type="submit"·value="Go"·/>127 ······<input·type="submit"·value="Vai"·/>
127 ····</form>128 ····</form>
128 ····</div>129 ····</div>
129 </search>130 </search>
130 <script>document.getElementById('searchbox').style.display·=·"block"</script>131 <script>document.getElementById('searchbox').style.display·=·"block"</script>
131 ········</div>132 ········</div>
132 ······</div>133 ······</div>
133 ··············<h3>Last·update:</h3>134 ··············<h3>Last·update:</h3>
134 ··············<p·class="topless">Sep·03,·2024</p>135 ··············<p·class="topless">set·03,·2024</p>
135 ··········</div>136 ··········</div>
136 ········137 ········
137 ······138 ······
138 ····</div>139 ····</div>
  
139 ····<div·id="ft">140 ····<div·id="ft">
140 ······<div·class="nav">141 ······<div·class="nav">
2.55 KB
html2text {}
Max HTML report size reached
8.63 KB
./usr/share/doc/python-django-doc/html/releases/4.1.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.11·release·notes"·href="4.1.11.html"·/>15 ····<link·rel="next"·title="Django·4.1.11·release·notes"·href="4.1.11.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.13·release·notes"·href="4.1.13.html"·/>16 ····<link·rel="prev"·title="Django·4.1.13·release·notes"·href="4.1.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.12">79 ··········<div·class="yui-g"·id="releases-4.1.12">
79 ············80 ············
80 ··<section·id="s-django-4-1-12-release-notes">81 ··<section·id="s-django-4-1-12-release-notes">
81 <span·id="django-4-1-12-release-notes"></span><h1>Django·4.1.12·release·notes<a·class="headerlink"·href="#django-4-1-12-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-12-release-notes"></span><h1>Django·4.1.12·release·notes<a·class="headerlink"·href="#django-4-1-12-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2023</em></p>83 <p><em>October·4,·2023</em></p>
83 <p>Django·4.1.12·fixes·a·security·issue·with·severity·moderate·in·4.1.11.</p>84 <p>Django·4.1.12·fixes·a·security·issue·with·severity·«moderate»·in·4.1.11.</p>
84 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">85 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">
85 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>
86 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the87 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the
87 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>88 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>
88 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular89 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular
89 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a90 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a
90 very·long,·potentially·malformed·HTML·input,·the·evaluation·would·still·be91 very·long,·potentially·malformed·HTML·input,·the·evaluation·would·still·be
Offset 115, 37 lines modifiedOffset 116, 37 lines modified
115 <li><a·class="reference·internal"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code></a></li>116 <li><a·class="reference·internal"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code></a></li>
116 </ul>117 </ul>
117 </li>118 </li>
118 </ul>119 </ul>
  
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Previous·topic</h4>122 ····<h4>Argomento·precedente</h4>
122 ····<p·class="topless"><a·href="4.1.13.html"123 ····<p·class="topless"><a·href="4.1.13.html"
123 ··························title="previous·chapter">Django·4.1.13·release·notes</a></p>124 ··························title="capitolo·precedente">Django·4.1.13·release·notes</a></p>
124 ··</div>125 ··</div>
125 ··<div>126 ··<div>
126 ····<h4>Next·topic</h4>127 ····<h4>Argomento·successivo</h4>
127 ····<p·class="topless"><a·href="4.1.11.html"128 ····<p·class="topless"><a·href="4.1.11.html"
128 ··························title="next·chapter">Django·4.1.11·release·notes</a></p>129 ··························title="capitolo·successivo">Django·4.1.11·release·notes</a></p>
129 ··</div>130 ··</div>
130 <search·id="searchbox"·style="display:·none"·role="search">131 <search·id="searchbox"·style="display:·none"·role="search">
131 ··<h3·id="searchlabel">Quick·search</h3>132 ··<h3·id="searchlabel">Ricerca·veloce</h3>
132 ····<div·class="searchformwrapper">133 ····<div·class="searchformwrapper">
133 ····<form·class="search"·action="../search.html"·method="get">134 ····<form·class="search"·action="../search.html"·method="get">
134 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
135 ······<input·type="submit"·value="Go"·/>136 ······<input·type="submit"·value="Vai"·/>
136 ····</form>137 ····</form>
137 ····</div>138 ····</div>
138 </search>139 </search>
139 <script>document.getElementById('searchbox').style.display·=·"block"</script>140 <script>document.getElementById('searchbox').style.display·=·"block"</script>
140 ········</div>141 ········</div>
141 ······</div>142 ······</div>
142 ··············<h3>Last·update:</h3>143 ··············<h3>Last·update:</h3>
143 ··············<p·class="topless">Sep·03,·2024</p>144 ··············<p·class="topless">set·03,·2024</p>
144 ··········</div>145 ··········</div>
145 ········146 ········
146 ······147 ······
147 ····</div>148 ····</div>
  
148 ····<div·id="ft">149 ····<div·id="ft">
149 ······<div·class="nav">150 ······<div·class="nav">
2.89 KB
html2text {}
Max HTML report size reached
8.38 KB
./usr/share/doc/python-django-doc/html/releases/4.1.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.12·release·notes"·href="4.1.12.html"·/>15 ····<link·rel="next"·title="Django·4.1.12·release·notes"·href="4.1.12.html"·/>
15 ····<link·rel="prev"·title="Django·4.2·release·notes"·href="4.2.html"·/>16 ····<link·rel="prev"·title="Django·4.2·release·notes"·href="4.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.13">79 ··········<div·class="yui-g"·id="releases-4.1.13">
79 ············80 ············
80 ··<section·id="s-django-4-1-13-release-notes">81 ··<section·id="s-django-4-1-13-release-notes">
81 <span·id="django-4-1-13-release-notes"></span><h1>Django·4.1.13·release·notes<a·class="headerlink"·href="#django-4-1-13-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-13-release-notes"></span><h1>Django·4.1.13·release·notes<a·class="headerlink"·href="#django-4-1-13-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>November·1,·2023</em></p>83 <p><em>November·1,·2023</em></p>
83 <p>Django·4.1.13·fixes·a·security·issue·with·severity·moderate·in·4.1.12.</p>84 <p>Django·4.1.13·fixes·a·security·issue·with·severity·«moderate»·in·4.1.12.</p>
84 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">85 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">
85 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on87 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on
87 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was88 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was
88 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very89 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very
89 large·number·of·Unicode·characters.</p>90 large·number·of·Unicode·characters.</p>
90 <p>In·order·to·avoid·the·vulnerability,·invalid·values·longer·than91 <p>In·order·to·avoid·the·vulnerability,·invalid·values·longer·than
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows</a></li>111 <li><a·class="reference·internal"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="4.2.html"118 ····<p·class="topless"><a·href="4.2.html"
118 ··························title="previous·chapter">Django·4.2·release·notes</a></p>119 ··························title="capitolo·precedente">Django·4.2·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="4.1.12.html"123 ····<p·class="topless"><a·href="4.1.12.html"
123 ··························title="next·chapter">Django·4.1.12·release·notes</a></p>124 ··························title="capitolo·successivo">Django·4.1.12·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.74 KB
html2text {}
Max HTML report size reached
7.65 KB
./usr/share/doc/python-django-doc/html/releases/4.1.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.1·release·notes"·href="4.1.1.html"·/>15 ····<link·rel="next"·title="Django·4.1.1·release·notes"·href="4.1.1.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.3·release·notes"·href="4.1.3.html"·/>16 ····<link·rel="prev"·title="Django·4.1.3·release·notes"·href="4.1.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.2">79 ··········<div·class="yui-g"·id="releases-4.1.2">
79 ············80 ············
80 ··<section·id="s-django-4-1-2-release-notes">81 ··<section·id="s-django-4-1-2-release-notes">
81 <span·id="django-4-1-2-release-notes"></span><h1>Django·4.1.2·release·notes<a·class="headerlink"·href="#django-4-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-2-release-notes"></span><h1>Django·4.1.2·release·notes<a·class="headerlink"·href="#django-4-1-2-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2022</em></p>83 <p><em>October·4,·2022</em></p>
83 <p>Django·4.1.2·fixes·a·security·issue·with·severity·medium·and·several·bugs·in84 <p>Django·4.1.2·fixes·a·security·issue·with·severity·«medium»·and·several·bugs·in
84 4.1.1.</p>85 4.1.1.</p>
85 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">86 <section·id="s-cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls">
86 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"></span><h2>CVE-2022-41323:·Potential·denial-of-service·vulnerability·in·internationalized·URLs<a·class="headerlink"·href="#cve-2022-41323-potential-denial-of-service-vulnerability-in-internationalized-urls"·title="Link·to·this·heading">¶</a></h2>
87 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via88 <p>Internationalized·URLs·were·subject·to·potential·denial·of·service·attack·via
88 the·locale·parameter.</p>89 the·locale·parameter.</p>
89 </section>90 </section>
90 <section·id="s-bugfixes">91 <section·id="s-bugfixes">
Offset 142, 37 lines modifiedOffset 143, 37 lines modified
142 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>143 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
143 </ul>144 </ul>
144 </li>145 </li>
145 </ul>146 </ul>
  
146 ··</div>147 ··</div>
147 ··<div>148 ··<div>
148 ····<h4>Previous·topic</h4>149 ····<h4>Argomento·precedente</h4>
149 ····<p·class="topless"><a·href="4.1.3.html"150 ····<p·class="topless"><a·href="4.1.3.html"
150 ··························title="previous·chapter">Django·4.1.3·release·notes</a></p>151 ··························title="capitolo·precedente">Django·4.1.3·release·notes</a></p>
151 ··</div>152 ··</div>
152 ··<div>153 ··<div>
153 ····<h4>Next·topic</h4>154 ····<h4>Argomento·successivo</h4>
154 ····<p·class="topless"><a·href="4.1.1.html"155 ····<p·class="topless"><a·href="4.1.1.html"
155 ··························title="next·chapter">Django·4.1.1·release·notes</a></p>156 ··························title="capitolo·successivo">Django·4.1.1·release·notes</a></p>
156 ··</div>157 ··</div>
157 <search·id="searchbox"·style="display:·none"·role="search">158 <search·id="searchbox"·style="display:·none"·role="search">
158 ··<h3·id="searchlabel">Quick·search</h3>159 ··<h3·id="searchlabel">Ricerca·veloce</h3>
159 ····<div·class="searchformwrapper">160 ····<div·class="searchformwrapper">
160 ····<form·class="search"·action="../search.html"·method="get">161 ····<form·class="search"·action="../search.html"·method="get">
161 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>162 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
162 ······<input·type="submit"·value="Go"·/>163 ······<input·type="submit"·value="Vai"·/>
163 ····</form>164 ····</form>
164 ····</div>165 ····</div>
165 </search>166 </search>
166 <script>document.getElementById('searchbox').style.display·=·"block"</script>167 <script>document.getElementById('searchbox').style.display·=·"block"</script>
167 ········</div>168 ········</div>
168 ······</div>169 ······</div>
169 ··············<h3>Last·update:</h3>170 ··············<h3>Last·update:</h3>
170 ··············<p·class="topless">Sep·03,·2024</p>171 ··············<p·class="topless">set·03,·2024</p>
171 ··········</div>172 ··········</div>
172 ········173 ········
173 ······174 ······
174 ····</div>175 ····</div>
  
175 ····<div·id="ft">176 ····<div·id="ft">
176 ······<div·class="nav">177 ······<div·class="nav">
2.77 KB
html2text {}
Max HTML report size reached
5.77 KB
./usr/share/doc/python-django-doc/html/releases/4.1.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.2·release·notes"·href="4.1.2.html"·/>15 ····<link·rel="next"·title="Django·4.1.2·release·notes"·href="4.1.2.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.4·release·notes"·href="4.1.4.html"·/>16 ····<link·rel="prev"·title="Django·4.1.4·release·notes"·href="4.1.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="4.1.4.html"116 ····<p·class="topless"><a·href="4.1.4.html"
116 ··························title="previous·chapter">Django·4.1.4·release·notes</a></p>117 ··························title="capitolo·precedente">Django·4.1.4·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="4.1.2.html"121 ····<p·class="topless"><a·href="4.1.2.html"
121 ··························title="next·chapter">Django·4.1.2·release·notes</a></p>122 ··························title="capitolo·successivo">Django·4.1.2·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
2.03 KB
html2text {}
Max HTML report size reached
5.88 KB
./usr/share/doc/python-django-doc/html/releases/4.1.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.3·release·notes"·href="4.1.3.html"·/>15 ····<link·rel="next"·title="Django·4.1.3·release·notes"·href="4.1.3.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.5·release·notes"·href="4.1.5.html"·/>16 ····<link·rel="prev"·title="Django·4.1.5·release·notes"·href="4.1.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 118, 37 lines modifiedOffset 119, 37 lines modified
118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
119 </ul>120 </ul>
120 </li>121 </li>
121 </ul>122 </ul>
  
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="4.1.5.html"126 ····<p·class="topless"><a·href="4.1.5.html"
126 ··························title="previous·chapter">Django·4.1.5·release·notes</a></p>127 ··························title="capitolo·precedente">Django·4.1.5·release·notes</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="4.1.3.html"131 ····<p·class="topless"><a·href="4.1.3.html"
131 ··························title="next·chapter">Django·4.1.3·release·notes</a></p>132 ··························title="capitolo·successivo">Django·4.1.3·release·notes</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../search.html"·method="get">137 ····<form·class="search"·action="../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.13 KB
html2text {}
Max HTML report size reached
5.76 KB
./usr/share/doc/python-django-doc/html/releases/4.1.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.4·release·notes"·href="4.1.4.html"·/>15 ····<link·rel="next"·title="Django·4.1.4·release·notes"·href="4.1.4.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.6·release·notes"·href="4.1.6.html"·/>16 ····<link·rel="prev"·title="Django·4.1.6·release·notes"·href="4.1.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 110, 37 lines modifiedOffset 111, 37 lines modified
110 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>111 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
111 </ul>112 </ul>
112 </li>113 </li>
113 </ul>114 </ul>
  
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Previous·topic</h4>117 ····<h4>Argomento·precedente</h4>
117 ····<p·class="topless"><a·href="4.1.6.html"118 ····<p·class="topless"><a·href="4.1.6.html"
118 ··························title="previous·chapter">Django·4.1.6·release·notes</a></p>119 ··························title="capitolo·precedente">Django·4.1.6·release·notes</a></p>
119 ··</div>120 ··</div>
120 ··<div>121 ··<div>
121 ····<h4>Next·topic</h4>122 ····<h4>Argomento·successivo</h4>
122 ····<p·class="topless"><a·href="4.1.4.html"123 ····<p·class="topless"><a·href="4.1.4.html"
123 ··························title="next·chapter">Django·4.1.4·release·notes</a></p>124 ··························title="capitolo·successivo">Django·4.1.4·release·notes</a></p>
124 ··</div>125 ··</div>
125 <search·id="searchbox"·style="display:·none"·role="search">126 <search·id="searchbox"·style="display:·none"·role="search">
126 ··<h3·id="searchlabel">Quick·search</h3>127 ··<h3·id="searchlabel">Ricerca·veloce</h3>
127 ····<div·class="searchformwrapper">128 ····<div·class="searchformwrapper">
128 ····<form·class="search"·action="../search.html"·method="get">129 ····<form·class="search"·action="../search.html"·method="get">
129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>130 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
130 ······<input·type="submit"·value="Go"·/>131 ······<input·type="submit"·value="Vai"·/>
131 ····</form>132 ····</form>
132 ····</div>133 ····</div>
133 </search>134 </search>
134 <script>document.getElementById('searchbox').style.display·=·"block"</script>135 <script>document.getElementById('searchbox').style.display·=·"block"</script>
135 ········</div>136 ········</div>
136 ······</div>137 ······</div>
137 ··············<h3>Last·update:</h3>138 ··············<h3>Last·update:</h3>
138 ··············<p·class="topless">Sep·03,·2024</p>139 ··············<p·class="topless">set·03,·2024</p>
139 ··········</div>140 ··········</div>
140 ········141 ········
141 ······142 ······
142 ····</div>143 ····</div>
  
143 ····<div·id="ft">144 ····<div·id="ft">
144 ······<div·class="nav">145 ······<div·class="nav">
2.02 KB
html2text {}
Max HTML report size reached
7.92 KB
./usr/share/doc/python-django-doc/html/releases/4.1.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.5·release·notes"·href="4.1.5.html"·/>15 ····<link·rel="next"·title="Django·4.1.5·release·notes"·href="4.1.5.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.7·release·notes"·href="4.1.7.html"·/>16 ····<link·rel="prev"·title="Django·4.1.7·release·notes"·href="4.1.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.6">79 ··········<div·class="yui-g"·id="releases-4.1.6">
79 ············80 ············
80 ··<section·id="s-django-4-1-6-release-notes">81 ··<section·id="s-django-4-1-6-release-notes">
81 <span·id="django-4-1-6-release-notes"></span><h1>Django·4.1.6·release·notes<a·class="headerlink"·href="#django-4-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-6-release-notes"></span><h1>Django·4.1.6·release·notes<a·class="headerlink"·href="#django-4-1-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·1,·2023</em></p>83 <p><em>February·1,·2023</em></p>
83 <p>Django·4.1.6·fixes·a·security·issue·with·severity·moderate·and·a·bug·in84 <p>Django·4.1.6·fixes·a·security·issue·with·severity·«moderate»·and·a·bug·in
84 4.1.5.</p>85 4.1.5.</p>
85 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">86 <section·id="s-cve-2023-23969-potential-denial-of-service-via-accept-language-headers">
86 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-23969-potential-denial-of-service-via-accept-language-headers"></span><h2>CVE-2023-23969:·Potential·denial-of-service·via·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers<a·class="headerlink"·href="#cve-2023-23969-potential-denial-of-service-via-accept-language-headers"·title="Link·to·this·heading">¶</a></h2>
87 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid88 <p>The·parsed·values·of·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·headers·are·cached·in·order·to·avoid
88 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via89 repetitive·parsing.·This·leads·to·a·potential·denial-of-service·vector·via
89 excessive·memory·usage·if·large·header·values·are·sent.</p>90 excessive·memory·usage·if·large·header·values·are·sent.</p>
90 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now91 <p>In·order·to·avoid·this·vulnerability,·the·<code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header·is·now
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="4.1.7.html"125 ····<p·class="topless"><a·href="4.1.7.html"
125 ··························title="previous·chapter">Django·4.1.7·release·notes</a></p>126 ··························title="capitolo·precedente">Django·4.1.7·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="4.1.5.html"130 ····<p·class="topless"><a·href="4.1.5.html"
130 ··························title="next·chapter">Django·4.1.5·release·notes</a></p>131 ··························title="capitolo·successivo">Django·4.1.5·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.74 KB
html2text {}
Max HTML report size reached
7.6 KB
./usr/share/doc/python-django-doc/html/releases/4.1.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.6·release·notes"·href="4.1.6.html"·/>15 ····<link·rel="next"·title="Django·4.1.6·release·notes"·href="4.1.6.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.8·release·notes"·href="4.1.8.html"·/>16 ····<link·rel="prev"·title="Django·4.1.8·release·notes"·href="4.1.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.7">79 ··········<div·class="yui-g"·id="releases-4.1.7">
79 ············80 ············
80 ··<section·id="s-django-4-1-7-release-notes">81 ··<section·id="s-django-4-1-7-release-notes">
81 <span·id="django-4-1-7-release-notes"></span><h1>Django·4.1.7·release·notes<a·class="headerlink"·href="#django-4-1-7-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-7-release-notes"></span><h1>Django·4.1.7·release·notes<a·class="headerlink"·href="#django-4-1-7-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·14,·2023</em></p>83 <p><em>February·14,·2023</em></p>
83 <p>Django·4.1.7·fixes·a·security·issue·with·severity·moderate·and·a·bug·in84 <p>Django·4.1.7·fixes·a·security·issue·with·severity·«moderate»·and·a·bug·in
84 4.1.6.</p>85 4.1.6.</p>
85 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">86 <section·id="s-cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads">
86 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"></span><h2>CVE-2023-24580:·Potential·denial-of-service·vulnerability·in·file·uploads<a·class="headerlink"·href="#cve-2023-24580-potential-denial-of-service-vulnerability-in-file-uploads"·title="Link·to·this·heading">¶</a></h2>
87 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files88 <p>Passing·certain·inputs·to·multipart·forms·could·result·in·too·many·open·files
88 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service89 or·memory·exhaustion,·and·provided·a·potential·vector·for·a·denial-of-service
89 attack.</p>90 attack.</p>
90 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new91 <p>The·number·of·files·parts·parsed·is·now·limited·via·the·new
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="4.1.8.html"125 ····<p·class="topless"><a·href="4.1.8.html"
125 ··························title="previous·chapter">Django·4.1.8·release·notes</a></p>126 ··························title="capitolo·precedente">Django·4.1.8·release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="4.1.6.html"130 ····<p·class="topless"><a·href="4.1.6.html"
130 ··························title="next·chapter">Django·4.1.6·release·notes</a></p>131 ··························title="capitolo·successivo">Django·4.1.6·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
2.68 KB
html2text {}
Max HTML report size reached
5.65 KB
./usr/share/doc/python-django-doc/html/releases/4.1.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.7·release·notes"·href="4.1.7.html"·/>15 ····<link·rel="next"·title="Django·4.1.7·release·notes"·href="4.1.7.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.9·release·notes"·href="4.1.9.html"·/>16 ····<link·rel="prev"·title="Django·4.1.9·release·notes"·href="4.1.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="4.1.9.html"115 ····<p·class="topless"><a·href="4.1.9.html"
115 ··························title="previous·chapter">Django·4.1.9·release·notes</a></p>116 ··························title="capitolo·precedente">Django·4.1.9·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="4.1.7.html"120 ····<p·class="topless"><a·href="4.1.7.html"
120 ··························title="next·chapter">Django·4.1.7·release·notes</a></p>121 ··························title="capitolo·successivo">Django·4.1.7·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.91 KB
html2text {}
Max HTML report size reached
9.09 KB
./usr/share/doc/python-django-doc/html/releases/4.1.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.8·release·notes"·href="4.1.8.html"·/>15 ····<link·rel="next"·title="Django·4.1.8·release·notes"·href="4.1.8.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.10·release·notes"·href="4.1.10.html"·/>16 ····<link·rel="prev"·title="Django·4.1.10·release·notes"·href="4.1.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.1.9">79 ··········<div·class="yui-g"·id="releases-4.1.9">
79 ············80 ············
80 ··<section·id="s-django-4-1-9-release-notes">81 ··<section·id="s-django-4-1-9-release-notes">
81 <span·id="django-4-1-9-release-notes"></span><h1>Django·4.1.9·release·notes<a·class="headerlink"·href="#django-4-1-9-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-1-9-release-notes"></span><h1>Django·4.1.9·release·notes<a·class="headerlink"·href="#django-4-1-9-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>May·3,·2023</em></p>83 <p><em>May·3,·2023</em></p>
83 <p>Django·4.1.9·fixes·a·security·issue·with·severity·low·in·4.1.8.</p>84 <p>Django·4.1.9·fixes·a·security·issue·with·severity·«low»·in·4.1.8.</p>
84 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">85 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">
85 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>
86 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by87 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by
87 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last88 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last
88 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>89 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>
89 topic·suggested·otherwise.</p>90 topic·suggested·otherwise.</p>
90 <p>In·order·to·avoid·the·vulnerability,·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.ClearableFileInput"·title="django.forms.ClearableFileInput"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code></a>91 <p>In·order·to·avoid·the·vulnerability,·<a·class="reference·internal"·href="../ref/forms/widgets.html#django.forms.ClearableFileInput"·title="django.forms.ClearableFileInput"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ClearableFileInput</span></code></a>
Offset 113, 37 lines modifiedOffset 114, 37 lines modified
113 <li><a·class="reference·internal"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field</a></li>114 <li><a·class="reference·internal"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field</a></li>
114 </ul>115 </ul>
115 </li>116 </li>
116 </ul>117 </ul>
  
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Previous·topic</h4>120 ····<h4>Argomento·precedente</h4>
120 ····<p·class="topless"><a·href="4.1.10.html"121 ····<p·class="topless"><a·href="4.1.10.html"
121 ··························title="previous·chapter">Django·4.1.10·release·notes</a></p>122 ··························title="capitolo·precedente">Django·4.1.10·release·notes</a></p>
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Next·topic</h4>125 ····<h4>Argomento·successivo</h4>
125 ····<p·class="topless"><a·href="4.1.8.html"126 ····<p·class="topless"><a·href="4.1.8.html"
126 ··························title="next·chapter">Django·4.1.8·release·notes</a></p>127 ··························title="capitolo·successivo">Django·4.1.8·release·notes</a></p>
127 ··</div>128 ··</div>
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../search.html"·method="get">132 ····<form·class="search"·action="../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
3.1 KB
html2text {}
Max HTML report size reached
8.54 KB
./usr/share/doc/python-django-doc/html/releases/4.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.0.10·release·notes"·href="4.0.10.html"·/>15 ····<link·rel="next"·title="Django·4.0.10·release·notes"·href="4.0.10.html"·/>
15 ····<link·rel="prev"·title="Django·4.1.1·release·notes"·href="4.1.1.html"·/>16 ····<link·rel="prev"·title="Django·4.1.1·release·notes"·href="4.1.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 238, 15 lines modifiedOffset 239, 15 lines modified
238 </ul>239 </ul>
239 </section>240 </section>
240 <section·id="s-database-backends">241 <section·id="s-database-backends">
241 <span·id="database-backends"></span><h4>Database·backends<a·class="headerlink"·href="#database-backends"·title="Link·to·this·heading">¶</a></h4>242 <span·id="database-backends"></span><h4>Database·backends<a·class="headerlink"·href="#database-backends"·title="Link·to·this·heading">¶</a></h4>
242 <ul·class="simple">243 <ul·class="simple">
243 <li><p>Third-party·database·backends·can·now·specify·the·minimum·required·version·of244 <li><p>Third-party·database·backends·can·now·specify·the·minimum·required·version·of
244 the·database·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">DatabaseFeatures.minimum_database_version</span></code>245 the·database·using·the·<code·class="docutils·literal·notranslate"><span·class="pre">DatabaseFeatures.minimum_database_version</span></code>
245 attribute·which·is·a·tuple·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">(10,</span>·<span·class="pre">0)</span></code>·means·10.0).·If·a·minimum246 attribute·which·is·a·tuple·(e.g.·<code·class="docutils·literal·notranslate"><span·class="pre">(10,</span>·<span·class="pre">0)</span></code>·means·«10.0»).·If·a·minimum
246 version·is·specified,·backends·must·also·implement247 version·is·specified,·backends·must·also·implement
247 <code·class="docutils·literal·notranslate"><span·class="pre">DatabaseWrapper.get_database_version()</span></code>,·which·returns·a·tuple·of·the248 <code·class="docutils·literal·notranslate"><span·class="pre">DatabaseWrapper.get_database_version()</span></code>,·which·returns·a·tuple·of·the
248 current·database·version.·The·backend’s249 current·database·version.·The·backend’s
249 <code·class="docutils·literal·notranslate"><span·class="pre">DatabaseWrapper.init_connection_state()</span></code>·method·must·call·<code·class="docutils·literal·notranslate"><span·class="pre">super()</span></code>·in250 <code·class="docutils·literal·notranslate"><span·class="pre">DatabaseWrapper.init_connection_state()</span></code>·method·must·call·<code·class="docutils·literal·notranslate"><span·class="pre">super()</span></code>·in
250 order·for·the·check·to·run.</p></li>251 order·for·the·check·to·run.</p></li>
251 </ul>252 </ul>
252 </section>253 </section>
Offset 794, 37 lines modifiedOffset 795, 37 lines modified
794 <li><a·class="reference·internal"·href="#features-removed-in-4-1">Features·removed·in·4.1</a></li>795 <li><a·class="reference·internal"·href="#features-removed-in-4-1">Features·removed·in·4.1</a></li>
795 </ul>796 </ul>
796 </li>797 </li>
797 </ul>798 </ul>
  
798 ··</div>799 ··</div>
799 ··<div>800 ··<div>
800 ····<h4>Previous·topic</h4>801 ····<h4>Argomento·precedente</h4>
801 ····<p·class="topless"><a·href="4.1.1.html"802 ····<p·class="topless"><a·href="4.1.1.html"
802 ··························title="previous·chapter">Django·4.1.1·release·notes</a></p>803 ··························title="capitolo·precedente">Django·4.1.1·release·notes</a></p>
803 ··</div>804 ··</div>
804 ··<div>805 ··<div>
805 ····<h4>Next·topic</h4>806 ····<h4>Argomento·successivo</h4>
806 ····<p·class="topless"><a·href="4.0.10.html"807 ····<p·class="topless"><a·href="4.0.10.html"
807 ··························title="next·chapter">Django·4.0.10·release·notes</a></p>808 ··························title="capitolo·successivo">Django·4.0.10·release·notes</a></p>
808 ··</div>809 ··</div>
809 <search·id="searchbox"·style="display:·none"·role="search">810 <search·id="searchbox"·style="display:·none"·role="search">
810 ··<h3·id="searchlabel">Quick·search</h3>811 ··<h3·id="searchlabel">Ricerca·veloce</h3>
811 ····<div·class="searchformwrapper">812 ····<div·class="searchformwrapper">
812 ····<form·class="search"·action="../search.html"·method="get">813 ····<form·class="search"·action="../search.html"·method="get">
813 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>814 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
814 ······<input·type="submit"·value="Go"·/>815 ······<input·type="submit"·value="Vai"·/>
815 ····</form>816 ····</form>
816 ····</div>817 ····</div>
817 </search>818 </search>
818 <script>document.getElementById('searchbox').style.display·=·"block"</script>819 <script>document.getElementById('searchbox').style.display·=·"block"</script>
819 ········</div>820 ········</div>
820 ······</div>821 ······</div>
821 ··············<h3>Last·update:</h3>822 ··············<h3>Last·update:</h3>
822 ··············<p·class="topless">Sep·03,·2024</p>823 ··············<p·class="topless">set·03,·2024</p>
823 ··········</div>824 ··········</div>
824 ········825 ········
825 ······826 ······
826 ····</div>827 ····</div>
  
827 ····<div·id="ft">828 ····<div·id="ft">
828 ······<div·class="nav">829 ······<div·class="nav">
3.48 KB
html2text {}
Max HTML report size reached
8.55 KB
./usr/share/doc/python-django-doc/html/releases/4.2.1.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.1·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.1·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2·release·notes"·href="4.2.html"·/>15 ····<link·rel="next"·title="Django·4.2·release·notes"·href="4.2.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.2·release·notes"·href="4.2.2.html"·/>16 ····<link·rel="prev"·title="Django·4.2.2·release·notes"·href="4.2.2.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.1">79 ··········<div·class="yui-g"·id="releases-4.2.1">
79 ············80 ············
80 ··<section·id="s-django-4-2-1-release-notes">81 ··<section·id="s-django-4-2-1-release-notes">
81 <span·id="django-4-2-1-release-notes"></span><h1>Django·4.2.1·release·notes<a·class="headerlink"·href="#django-4-2-1-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-1-release-notes"></span><h1>Django·4.2.1·release·notes<a·class="headerlink"·href="#django-4-2-1-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>May·3,·2023</em></p>83 <p><em>May·3,·2023</em></p>
83 <p>Django·4.2.1·fixes·a·security·issue·with·severity·low·and·several·bugs·in84 <p>Django·4.2.1·fixes·a·security·issue·with·severity·«low»·and·several·bugs·in
84 4.2.</p>85 4.2.</p>
85 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">86 <section·id="s-cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field">
86 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"></span><h2>CVE-2023-31047:·Potential·bypass·of·validation·when·uploading·multiple·files·using·one·form·field<a·class="headerlink"·href="#cve-2023-31047-potential-bypass-of-validation-when-uploading-multiple-files-using-one-form-field"·title="Link·to·this·heading">¶</a></h2>
87 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by88 <p>Uploading·multiple·files·using·one·form·field·has·never·been·supported·by
88 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last89 <a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.FileField</span></code></a>·or·<a·class="reference·internal"·href="../ref/forms/fields.html#django.forms.ImageField"·title="django.forms.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">forms.ImageField</span></code></a>·as·only·the·last
89 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>90 uploaded·file·was·validated.·Unfortunately,·<a·class="reference·internal"·href="../topics/http/file-uploads.html#uploading-multiple-files"><span·class="std·std-ref">Uploading·multiple·files</span></a>
90 topic·suggested·otherwise.</p>91 topic·suggested·otherwise.</p>
Offset 156, 37 lines modifiedOffset 157, 37 lines modified
156 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>157 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
157 </ul>158 </ul>
158 </li>159 </li>
159 </ul>160 </ul>
  
160 ··</div>161 ··</div>
161 ··<div>162 ··<div>
162 ····<h4>Previous·topic</h4>163 ····<h4>Argomento·precedente</h4>
163 ····<p·class="topless"><a·href="4.2.2.html"164 ····<p·class="topless"><a·href="4.2.2.html"
164 ··························title="previous·chapter">Django·4.2.2·release·notes</a></p>165 ··························title="capitolo·precedente">Django·4.2.2·release·notes</a></p>
165 ··</div>166 ··</div>
166 ··<div>167 ··<div>
167 ····<h4>Next·topic</h4>168 ····<h4>Argomento·successivo</h4>
168 ····<p·class="topless"><a·href="4.2.html"169 ····<p·class="topless"><a·href="4.2.html"
169 ··························title="next·chapter">Django·4.2·release·notes</a></p>170 ··························title="capitolo·successivo">Django·4.2·release·notes</a></p>
170 ··</div>171 ··</div>
171 <search·id="searchbox"·style="display:·none"·role="search">172 <search·id="searchbox"·style="display:·none"·role="search">
172 ··<h3·id="searchlabel">Quick·search</h3>173 ··<h3·id="searchlabel">Ricerca·veloce</h3>
173 ····<div·class="searchformwrapper">174 ····<div·class="searchformwrapper">
174 ····<form·class="search"·action="../search.html"·method="get">175 ····<form·class="search"·action="../search.html"·method="get">
175 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>176 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
176 ······<input·type="submit"·value="Go"·/>177 ······<input·type="submit"·value="Vai"·/>
177 ····</form>178 ····</form>
178 ····</div>179 ····</div>
179 </search>180 </search>
180 <script>document.getElementById('searchbox').style.display·=·"block"</script>181 <script>document.getElementById('searchbox').style.display·=·"block"</script>
181 ········</div>182 ········</div>
182 ······</div>183 ······</div>
183 ··············<h3>Last·update:</h3>184 ··············<h3>Last·update:</h3>
184 ··············<p·class="topless">Sep·03,·2024</p>185 ··············<p·class="topless">set·03,·2024</p>
185 ··········</div>186 ··········</div>
186 ········187 ········
187 ······188 ······
188 ····</div>189 ····</div>
  
189 ····<div·id="ft">190 ····<div·id="ft">
190 ······<div·class="nav">191 ······<div·class="nav">
3.01 KB
html2text {}
Max HTML report size reached
7.54 KB
./usr/share/doc/python-django-doc/html/releases/4.2.10.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.10·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.10·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.9·release·notes"·href="4.2.9.html"·/>15 ····<link·rel="next"·title="Django·4.2.9·release·notes"·href="4.2.9.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.11·release·notes"·href="4.2.11.html"·/>16 ····<link·rel="prev"·title="Django·4.2.11·release·notes"·href="4.2.11.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.10">79 ··········<div·class="yui-g"·id="releases-4.2.10">
79 ············80 ············
80 ··<section·id="s-django-4-2-10-release-notes">81 ··<section·id="s-django-4-2-10-release-notes">
81 <span·id="django-4-2-10-release-notes"></span><h1>Django·4.2.10·release·notes<a·class="headerlink"·href="#django-4-2-10-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-10-release-notes"></span><h1>Django·4.2.10·release·notes<a·class="headerlink"·href="#django-4-2-10-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>February·6,·2024</em></p>83 <p><em>February·6,·2024</em></p>
83 <p>Django·4.2.10·fixes·a·security·issue·with·severity·moderate·in·4.2.9.</p>84 <p>Django·4.2.10·fixes·a·security·issue·with·severity·«moderate»·in·4.2.9.</p>
84 <section·id="s-cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">85 <section·id="s-cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">
85 <span·id="cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"></span><h2>CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter<a·class="headerlink"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"·title="Link·to·this·heading">¶</a></h2>86 <span·id="cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"></span><h2>CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter<a·class="headerlink"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter"·title="Link·to·this·heading">¶</a></h2>
86 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter·was·subject·to·a·potential·denial-of-service87 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter·was·subject·to·a·potential·denial-of-service
87 attack·when·used·with·very·long·strings.</p>88 attack·when·used·with·very·long·strings.</p>
88 </section>89 </section>
89 </section>90 </section>
  
Offset 105, 37 lines modifiedOffset 106, 37 lines modified
105 <li><a·class="reference·internal"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter</a></li>106 <li><a·class="reference·internal"·href="#cve-2024-24680-potential-denial-of-service-in-intcomma-template-filter">CVE-2024-24680:·Potential·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">intcomma</span></code>·template·filter</a></li>
106 </ul>107 </ul>
107 </li>108 </li>
108 </ul>109 </ul>
  
109 ··</div>110 ··</div>
110 ··<div>111 ··<div>
111 ····<h4>Previous·topic</h4>112 ····<h4>Argomento·precedente</h4>
112 ····<p·class="topless"><a·href="4.2.11.html"113 ····<p·class="topless"><a·href="4.2.11.html"
113 ··························title="previous·chapter">Django·4.2.11·release·notes</a></p>114 ··························title="capitolo·precedente">Django·4.2.11·release·notes</a></p>
114 ··</div>115 ··</div>
115 ··<div>116 ··<div>
116 ····<h4>Next·topic</h4>117 ····<h4>Argomento·successivo</h4>
117 ····<p·class="topless"><a·href="4.2.9.html"118 ····<p·class="topless"><a·href="4.2.9.html"
118 ··························title="next·chapter">Django·4.2.9·release·notes</a></p>119 ··························title="capitolo·successivo">Django·4.2.9·release·notes</a></p>
119 ··</div>120 ··</div>
120 <search·id="searchbox"·style="display:·none"·role="search">121 <search·id="searchbox"·style="display:·none"·role="search">
121 ··<h3·id="searchlabel">Quick·search</h3>122 ··<h3·id="searchlabel">Ricerca·veloce</h3>
122 ····<div·class="searchformwrapper">123 ····<div·class="searchformwrapper">
123 ····<form·class="search"·action="../search.html"·method="get">124 ····<form·class="search"·action="../search.html"·method="get">
124 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>125 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
125 ······<input·type="submit"·value="Go"·/>126 ······<input·type="submit"·value="Vai"·/>
126 ····</form>127 ····</form>
127 ····</div>128 ····</div>
128 </search>129 </search>
129 <script>document.getElementById('searchbox').style.display·=·"block"</script>130 <script>document.getElementById('searchbox').style.display·=·"block"</script>
130 ········</div>131 ········</div>
131 ······</div>132 ······</div>
132 ··············<h3>Last·update:</h3>133 ··············<h3>Last·update:</h3>
133 ··············<p·class="topless">Sep·03,·2024</p>134 ··············<p·class="topless">set·03,·2024</p>
134 ··········</div>135 ··········</div>
135 ········136 ········
136 ······137 ······
137 ····</div>138 ····</div>
  
138 ····<div·id="ft">139 ····<div·id="ft">
139 ······<div·class="nav">140 ······<div·class="nav">
2.37 KB
html2text {}
Max HTML report size reached
8.71 KB
./usr/share/doc/python-django-doc/html/releases/4.2.11.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.11·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.11·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.10·release·notes"·href="4.2.10.html"·/>15 ····<link·rel="next"·title="Django·4.2.10·release·notes"·href="4.2.10.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.12·release·notes"·href="4.2.12.html"·/>16 ····<link·rel="prev"·title="Django·4.2.12·release·notes"·href="4.2.12.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.11">79 ··········<div·class="yui-g"·id="releases-4.2.11">
79 ············80 ············
80 ··<section·id="s-django-4-2-11-release-notes">81 ··<section·id="s-django-4-2-11-release-notes">
81 <span·id="django-4-2-11-release-notes"></span><h1>Django·4.2.11·release·notes<a·class="headerlink"·href="#django-4-2-11-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-11-release-notes"></span><h1>Django·4.2.11·release·notes<a·class="headerlink"·href="#django-4-2-11-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>March·4,·2024</em></p>83 <p><em>March·4,·2024</em></p>
83 <p>Django·4.2.11·fixes·a·security·issue·with·severity·moderate·and·a·regression84 <p>Django·4.2.11·fixes·a·security·issue·with·severity·«moderate»·and·a·regression
84 in·4.2.10.</p>85 in·4.2.10.</p>
85 <section·id="s-cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words">86 <section·id="s-cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words">
86 <span·id="cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"></span><h2>CVE-2024-27351:·Potential·regular·expression·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code><a·class="headerlink"·href="#cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"></span><h2>CVE-2024-27351:·Potential·regular·expression·denial-of-service·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code><a·class="headerlink"·href="#cve-2024-27351-potential-regular-expression-denial-of-service-in-django-utils-text-truncator-words"·title="Link·to·this·heading">¶</a></h2>
87 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code>·method·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·and88 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator.words()</span></code>·method·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·and
88 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-truncatewords_html"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code></a>·template·filter·were·subject·to·a·potential89 <a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-truncatewords_html"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">truncatewords_html</span></code></a>·template·filter·were·subject·to·a·potential
89 regular·expression·denial-of-service·attack·using·a·suitably·crafted·string90 regular·expression·denial-of-service·attack·using·a·suitably·crafted·string
90 (follow·up·to·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>·and·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2023-43665">CVE-2023-43665</a>).</p>91 (follow·up·to·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>·and·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2023-43665">CVE-2023-43665</a>).</p>
Offset 116, 37 lines modifiedOffset 117, 37 lines modified
116 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>117 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
117 </ul>118 </ul>
118 </li>119 </li>
119 </ul>120 </ul>
  
120 ··</div>121 ··</div>
121 ··<div>122 ··<div>
122 ····<h4>Previous·topic</h4>123 ····<h4>Argomento·precedente</h4>
123 ····<p·class="topless"><a·href="4.2.12.html"124 ····<p·class="topless"><a·href="4.2.12.html"
124 ··························title="previous·chapter">Django·4.2.12·release·notes</a></p>125 ··························title="capitolo·precedente">Django·4.2.12·release·notes</a></p>
125 ··</div>126 ··</div>
126 ··<div>127 ··<div>
127 ····<h4>Next·topic</h4>128 ····<h4>Argomento·successivo</h4>
128 ····<p·class="topless"><a·href="4.2.10.html"129 ····<p·class="topless"><a·href="4.2.10.html"
129 ··························title="next·chapter">Django·4.2.10·release·notes</a></p>130 ··························title="capitolo·successivo">Django·4.2.10·release·notes</a></p>
130 ··</div>131 ··</div>
131 <search·id="searchbox"·style="display:·none"·role="search">132 <search·id="searchbox"·style="display:·none"·role="search">
132 ··<h3·id="searchlabel">Quick·search</h3>133 ··<h3·id="searchlabel">Ricerca·veloce</h3>
133 ····<div·class="searchformwrapper">134 ····<div·class="searchformwrapper">
134 ····<form·class="search"·action="../search.html"·method="get">135 ····<form·class="search"·action="../search.html"·method="get">
135 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
136 ······<input·type="submit"·value="Go"·/>137 ······<input·type="submit"·value="Vai"·/>
137 ····</form>138 ····</form>
138 ····</div>139 ····</div>
139 </search>140 </search>
140 <script>document.getElementById('searchbox').style.display·=·"block"</script>141 <script>document.getElementById('searchbox').style.display·=·"block"</script>
141 ········</div>142 ········</div>
142 ······</div>143 ······</div>
143 ··············<h3>Last·update:</h3>144 ··············<h3>Last·update:</h3>
144 ··············<p·class="topless">Sep·03,·2024</p>145 ··············<p·class="topless">set·03,·2024</p>
145 ··········</div>146 ··········</div>
146 ········147 ········
147 ······148 ······
148 ····</div>149 ····</div>
  
149 ····<div·id="ft">150 ····<div·id="ft">
150 ······<div·class="nav">151 ······<div·class="nav">
3.01 KB
html2text {}
Max HTML report size reached
5.73 KB
./usr/share/doc/python-django-doc/html/releases/4.2.12.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.12·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.12·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.11·release·notes"·href="4.2.11.html"·/>15 ····<link·rel="next"·title="Django·4.2.11·release·notes"·href="4.2.11.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.13·release·notes"·href="4.2.13.html"·/>16 ····<link·rel="prev"·title="Django·4.2.13·release·notes"·href="4.2.13.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>109 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
109 </ul>110 </ul>
110 </li>111 </li>
111 </ul>112 </ul>
  
112 ··</div>113 ··</div>
113 ··<div>114 ··<div>
114 ····<h4>Previous·topic</h4>115 ····<h4>Argomento·precedente</h4>
115 ····<p·class="topless"><a·href="4.2.13.html"116 ····<p·class="topless"><a·href="4.2.13.html"
116 ··························title="previous·chapter">Django·4.2.13·release·notes</a></p>117 ··························title="capitolo·precedente">Django·4.2.13·release·notes</a></p>
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Next·topic</h4>120 ····<h4>Argomento·successivo</h4>
120 ····<p·class="topless"><a·href="4.2.11.html"121 ····<p·class="topless"><a·href="4.2.11.html"
121 ··························title="next·chapter">Django·4.2.11·release·notes</a></p>122 ··························title="capitolo·successivo">Django·4.2.11·release·notes</a></p>
122 ··</div>123 ··</div>
123 <search·id="searchbox"·style="display:·none"·role="search">124 <search·id="searchbox"·style="display:·none"·role="search">
124 ··<h3·id="searchlabel">Quick·search</h3>125 ··<h3·id="searchlabel">Ricerca·veloce</h3>
125 ····<div·class="searchformwrapper">126 ····<div·class="searchformwrapper">
126 ····<form·class="search"·action="../search.html"·method="get">127 ····<form·class="search"·action="../search.html"·method="get">
127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
128 ······<input·type="submit"·value="Go"·/>129 ······<input·type="submit"·value="Vai"·/>
129 ····</form>130 ····</form>
130 ····</div>131 ····</div>
131 </search>132 </search>
132 <script>document.getElementById('searchbox').style.display·=·"block"</script>133 <script>document.getElementById('searchbox').style.display·=·"block"</script>
133 ········</div>134 ········</div>
134 ······</div>135 ······</div>
135 ··············<h3>Last·update:</h3>136 ··············<h3>Last·update:</h3>
136 ··············<p·class="topless">Sep·03,·2024</p>137 ··············<p·class="topless">set·03,·2024</p>
137 ··········</div>138 ··········</div>
138 ········139 ········
139 ······140 ······
140 ····</div>141 ····</div>
  
141 ····<div·id="ft">142 ····<div·id="ft">
142 ······<div·class="nav">143 ······<div·class="nav">
1.97 KB
html2text {}
Max HTML report size reached
5.33 KB
./usr/share/doc/python-django-doc/html/releases/4.2.13.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.13·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.13·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.12·release·notes"·href="4.2.12.html"·/>15 ····<link·rel="next"·title="Django·4.2.12·release·notes"·href="4.2.12.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.14·release·notes"·href="4.2.14.html"·/>16 ····<link·rel="prev"·title="Django·4.2.14·release·notes"·href="4.2.14.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 90, 37 lines modifiedOffset 91, 37 lines modified
90 ······91 ······
91 ········92 ········
92 ··········<div·class="yui-b"·id="sidebar">93 ··········<div·class="yui-b"·id="sidebar">
93 ············94 ············
94 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">95 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
95 ········<div·class="sphinxsidebarwrapper">96 ········<div·class="sphinxsidebarwrapper">
96 ··<div>97 ··<div>
97 ····<h4>Previous·topic</h4>98 ····<h4>Argomento·precedente</h4>
98 ····<p·class="topless"><a·href="4.2.14.html"99 ····<p·class="topless"><a·href="4.2.14.html"
99 ··························title="previous·chapter">Django·4.2.14·release·notes</a></p>100 ··························title="capitolo·precedente">Django·4.2.14·release·notes</a></p>
100 ··</div>101 ··</div>
101 ··<div>102 ··<div>
102 ····<h4>Next·topic</h4>103 ····<h4>Argomento·successivo</h4>
103 ····<p·class="topless"><a·href="4.2.12.html"104 ····<p·class="topless"><a·href="4.2.12.html"
104 ··························title="next·chapter">Django·4.2.12·release·notes</a></p>105 ··························title="capitolo·successivo">Django·4.2.12·release·notes</a></p>
105 ··</div>106 ··</div>
106 <search·id="searchbox"·style="display:·none"·role="search">107 <search·id="searchbox"·style="display:·none"·role="search">
107 ··<h3·id="searchlabel">Quick·search</h3>108 ··<h3·id="searchlabel">Ricerca·veloce</h3>
108 ····<div·class="searchformwrapper">109 ····<div·class="searchformwrapper">
109 ····<form·class="search"·action="../search.html"·method="get">110 ····<form·class="search"·action="../search.html"·method="get">
110 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>111 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
111 ······<input·type="submit"·value="Go"·/>112 ······<input·type="submit"·value="Vai"·/>
112 ····</form>113 ····</form>
113 ····</div>114 ····</div>
114 </search>115 </search>
115 <script>document.getElementById('searchbox').style.display·=·"block"</script>116 <script>document.getElementById('searchbox').style.display·=·"block"</script>
116 ········</div>117 ········</div>
117 ······</div>118 ······</div>
118 ··············<h3>Last·update:</h3>119 ··············<h3>Last·update:</h3>
119 ··············<p·class="topless">Sep·03,·2024</p>120 ··············<p·class="topless">set·03,·2024</p>
120 ··········</div>121 ··········</div>
121 ········122 ········
122 ······123 ······
123 ····</div>124 ····</div>
  
124 ····<div·id="ft">125 ····<div·id="ft">
125 ······<div·class="nav">126 ······<div·class="nav">
1.49 KB
html2text {}
Max HTML report size reached
9.43 KB
./usr/share/doc/python-django-doc/html/releases/4.2.14.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.14·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.14·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.13·release·notes"·href="4.2.13.html"·/>15 ····<link·rel="next"·title="Django·4.2.13·release·notes"·href="4.2.13.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.15·release·notes"·href="4.2.15.html"·/>16 ····<link·rel="prev"·title="Django·4.2.15·release·notes"·href="4.2.15.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 16 lines modifiedOffset 77, 16 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.14">79 ··········<div·class="yui-g"·id="releases-4.2.14">
79 ············80 ············
80 ··<section·id="s-django-4-2-14-release-notes">81 ··<section·id="s-django-4-2-14-release-notes">
81 <span·id="django-4-2-14-release-notes"></span><h1>Django·4.2.14·release·notes<a·class="headerlink"·href="#django-4-2-14-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-14-release-notes"></span><h1>Django·4.2.14·release·notes<a·class="headerlink"·href="#django-4-2-14-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·9,·2024</em></p>83 <p><em>July·9,·2024</em></p>
83 <p>Django·4.2.14·fixes·two·security·issues·with·severity·moderate·and·two84 <p>Django·4.2.14·fixes·two·security·issues·with·severity·«moderate»·and·two
84 security·issues·with·severity·low·in·4.2.13.</p>85 security·issues·with·severity·«low»·in·4.2.13.</p>
85 <section·id="s-cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize">86 <section·id="s-cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize">
86 <span·id="cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"></span><h2>CVE-2024-38875:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.html.urlize()</span></code><a·class="headerlink"·href="#cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"></span><h2>CVE-2024-38875:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.html.urlize()</span></code><a·class="headerlink"·href="#cve-2024-38875-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlize</span></code></a>·and·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlizetrunc"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlizetrunc</span></code></a>·were·subject·to·a·potential88 <p><a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlize</span></code></a>·and·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlizetrunc"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlizetrunc</span></code></a>·were·subject·to·a·potential
88 denial-of-service·attack·via·certain·inputs·with·a·very·large·number·of89 denial-of-service·attack·via·certain·inputs·with·a·very·large·number·of
89 brackets.</p>90 brackets.</p>
90 </section>91 </section>
91 <section·id="s-cve-2024-39329-username-enumeration-through-timing-difference-for-users-with-unusable-passwords">92 <section·id="s-cve-2024-39329-username-enumeration-through-timing-difference-for-users-with-unusable-passwords">
Offset 136, 37 lines modifiedOffset 137, 37 lines modified
136 <li><a·class="reference·internal"·href="#cve-2024-39614-potential-denial-of-service-vulnerability-in-get-supported-language-variant">CVE-2024-39614:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">get_supported_language_variant()</span></code></a></li>137 <li><a·class="reference·internal"·href="#cve-2024-39614-potential-denial-of-service-vulnerability-in-get-supported-language-variant">CVE-2024-39614:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">get_supported_language_variant()</span></code></a></li>
137 </ul>138 </ul>
138 </li>139 </li>
139 </ul>140 </ul>
  
140 ··</div>141 ··</div>
141 ··<div>142 ··<div>
142 ····<h4>Previous·topic</h4>143 ····<h4>Argomento·precedente</h4>
143 ····<p·class="topless"><a·href="4.2.15.html"144 ····<p·class="topless"><a·href="4.2.15.html"
144 ··························title="previous·chapter">Django·4.2.15·release·notes</a></p>145 ··························title="capitolo·precedente">Django·4.2.15·release·notes</a></p>
145 ··</div>146 ··</div>
146 ··<div>147 ··<div>
147 ····<h4>Next·topic</h4>148 ····<h4>Argomento·successivo</h4>
148 ····<p·class="topless"><a·href="4.2.13.html"149 ····<p·class="topless"><a·href="4.2.13.html"
149 ··························title="next·chapter">Django·4.2.13·release·notes</a></p>150 ··························title="capitolo·successivo">Django·4.2.13·release·notes</a></p>
150 ··</div>151 ··</div>
151 <search·id="searchbox"·style="display:·none"·role="search">152 <search·id="searchbox"·style="display:·none"·role="search">
152 ··<h3·id="searchlabel">Quick·search</h3>153 ··<h3·id="searchlabel">Ricerca·veloce</h3>
153 ····<div·class="searchformwrapper">154 ····<div·class="searchformwrapper">
154 ····<form·class="search"·action="../search.html"·method="get">155 ····<form·class="search"·action="../search.html"·method="get">
155 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>156 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
156 ······<input·type="submit"·value="Go"·/>157 ······<input·type="submit"·value="Vai"·/>
157 ····</form>158 ····</form>
158 ····</div>159 ····</div>
159 </search>160 </search>
160 <script>document.getElementById('searchbox').style.display·=·"block"</script>161 <script>document.getElementById('searchbox').style.display·=·"block"</script>
161 ········</div>162 ········</div>
162 ······</div>163 ······</div>
163 ··············<h3>Last·update:</h3>164 ··············<h3>Last·update:</h3>
164 ··············<p·class="topless">Sep·03,·2024</p>165 ··············<p·class="topless">set·03,·2024</p>
165 ··········</div>166 ··········</div>
166 ········167 ········
167 ······168 ······
168 ····</div>169 ····</div>
  
169 ····<div·id="ft">170 ····<div·id="ft">
170 ······<div·class="nav">171 ······<div·class="nav">
3.63 KB
html2text {}
Max HTML report size reached
8.7 KB
./usr/share/doc/python-django-doc/html/releases/4.2.15.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.15·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.15·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.14·release·notes"·href="4.2.14.html"·/>15 ····<link·rel="next"·title="Django·4.2.14·release·notes"·href="4.2.14.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.16·release·notes"·href="4.2.16.html"·/>16 ····<link·rel="prev"·title="Django·4.2.16·release·notes"·href="4.2.16.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 16 lines modifiedOffset 77, 16 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.15">79 ··········<div·class="yui-g"·id="releases-4.2.15">
79 ············80 ············
80 ··<section·id="s-django-4-2-15-release-notes">81 ··<section·id="s-django-4-2-15-release-notes">
81 <span·id="django-4-2-15-release-notes"></span><h1>Django·4.2.15·release·notes<a·class="headerlink"·href="#django-4-2-15-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-15-release-notes"></span><h1>Django·4.2.15·release·notes<a·class="headerlink"·href="#django-4-2-15-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>August·6,·2024</em></p>83 <p><em>August·6,·2024</em></p>
83 <p>Django·4.2.15·fixes·three·security·issues·with·severity·moderate,·one84 <p>Django·4.2.15·fixes·three·security·issues·with·severity·«moderate»,·one
84 security·issue·with·severity·high,·and·a·regression·in·4.2.14.</p>85 security·issue·with·severity·«high»,·and·a·regression·in·4.2.14.</p>
85 <section·id="s-cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat">86 <section·id="s-cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat">
86 <span·id="cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat"></span><h2>CVE-2024-41989:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.floatformat()</span></code><a·class="headerlink"·href="#cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat"></span><h2>CVE-2024-41989:·Memory·exhaustion·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.numberformat.floatformat()</span></code><a·class="headerlink"·href="#cve-2024-41989-memory-exhaustion-in-django-utils-numberformat-floatformat"·title="Link·to·this·heading">¶</a></h2>
87 <p>If·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-floatformat"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">floatformat</span></code></a>·received·a·string·representation·of·a·number·in88 <p>If·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-floatformat"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">floatformat</span></code></a>·received·a·string·representation·of·a·number·in
88 scientific·notation·with·a·large·exponent,·it·could·lead·to·significant·memory89 scientific·notation·with·a·large·exponent,·it·could·lead·to·significant·memory
89 consumption.</p>90 consumption.</p>
90 <p>To·avoid·this,·decimals·with·more·than·200·digits·are·now·returned·as·is.</p>91 <p>To·avoid·this,·decimals·with·more·than·200·digits·are·now·returned·as·is.</p>
91 </section>92 </section>
Offset 138, 37 lines modifiedOffset 139, 37 lines modified
138 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>139 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
139 </ul>140 </ul>
140 </li>141 </li>
141 </ul>142 </ul>
  
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Previous·topic</h4>145 ····<h4>Argomento·precedente</h4>
145 ····<p·class="topless"><a·href="4.2.16.html"146 ····<p·class="topless"><a·href="4.2.16.html"
146 ··························title="previous·chapter">Django·4.2.16·release·notes</a></p>147 ··························title="capitolo·precedente">Django·4.2.16·release·notes</a></p>
147 ··</div>148 ··</div>
148 ··<div>149 ··<div>
149 ····<h4>Next·topic</h4>150 ····<h4>Argomento·successivo</h4>
150 ····<p·class="topless"><a·href="4.2.14.html"151 ····<p·class="topless"><a·href="4.2.14.html"
151 ··························title="next·chapter">Django·4.2.14·release·notes</a></p>152 ··························title="capitolo·successivo">Django·4.2.14·release·notes</a></p>
152 ··</div>153 ··</div>
153 <search·id="searchbox"·style="display:·none"·role="search">154 <search·id="searchbox"·style="display:·none"·role="search">
154 ··<h3·id="searchlabel">Quick·search</h3>155 ··<h3·id="searchlabel">Ricerca·veloce</h3>
155 ····<div·class="searchformwrapper">156 ····<div·class="searchformwrapper">
156 ····<form·class="search"·action="../search.html"·method="get">157 ····<form·class="search"·action="../search.html"·method="get">
157 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>158 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
158 ······<input·type="submit"·value="Go"·/>159 ······<input·type="submit"·value="Vai"·/>
159 ····</form>160 ····</form>
160 ····</div>161 ····</div>
161 </search>162 </search>
162 <script>document.getElementById('searchbox').style.display·=·"block"</script>163 <script>document.getElementById('searchbox').style.display·=·"block"</script>
163 ········</div>164 ········</div>
164 ······</div>165 ······</div>
165 ··············<h3>Last·update:</h3>166 ··············<h3>Last·update:</h3>
166 ··············<p·class="topless">Sep·03,·2024</p>167 ··············<p·class="topless">set·03,·2024</p>
167 ··········</div>168 ··········</div>
168 ········169 ········
169 ······170 ······
170 ····</div>171 ····</div>
  
171 ····<div·id="ft">172 ····<div·id="ft">
172 ······<div·class="nav">173 ······<div·class="nav">
3.35 KB
html2text {}
Max HTML report size reached
9.02 KB
./usr/share/doc/python-django-doc/html/releases/4.2.16.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.16·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.16·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.15·release·notes"·href="4.2.15.html"·/>15 ····<link·rel="next"·title="Django·4.2.15·release·notes"·href="4.2.15.html"·/>
15 ····<link·rel="prev"·title="Release·notes"·href="index.html"·/>16 ····<link·rel="prev"·title="Release·notes"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 16 lines modifiedOffset 77, 16 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.16">79 ··········<div·class="yui-g"·id="releases-4.2.16">
79 ············80 ············
80 ··<section·id="s-django-4-2-16-release-notes">81 ··<section·id="s-django-4-2-16-release-notes">
81 <span·id="django-4-2-16-release-notes"></span><h1>Django·4.2.16·release·notes<a·class="headerlink"·href="#django-4-2-16-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-16-release-notes"></span><h1>Django·4.2.16·release·notes<a·class="headerlink"·href="#django-4-2-16-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>September·3,·2024</em></p>83 <p><em>September·3,·2024</em></p>
83 <p>Django·4.2.16·fixes·one·security·issue·with·severity·moderate·and·one84 <p>Django·4.2.16·fixes·one·security·issue·with·severity·«moderate»·and·one
84 security·issue·with·severity·low·in·4.2.15.</p>85 security·issue·with·severity·«low»·in·4.2.15.</p>
85 <section·id="s-cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize">86 <section·id="s-cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize">
86 <span·id="cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"></span><h2>CVE-2024-45230:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.html.urlize()</span></code><a·class="headerlink"·href="#cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"></span><h2>CVE-2024-45230:·Potential·denial-of-service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.html.urlize()</span></code><a·class="headerlink"·href="#cve-2024-45230-potential-denial-of-service-vulnerability-in-django-utils-html-urlize"·title="Link·to·this·heading">¶</a></h2>
87 <p><a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlize</span></code></a>·and·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlizetrunc"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlizetrunc</span></code></a>·were·subject·to·a·potential88 <p><a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlize</span></code></a>·and·<a·class="reference·internal"·href="../ref/templates/builtins.html#std-templatefilter-urlizetrunc"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">urlizetrunc</span></code></a>·were·subject·to·a·potential
88 denial-of-service·attack·via·very·large·inputs·with·a·specific·sequence·of89 denial-of-service·attack·via·very·large·inputs·with·a·specific·sequence·of
89 characters.</p>90 characters.</p>
90 </section>91 </section>
91 <section·id="s-cve-2024-45231-potential-user-email-enumeration-via-response-status-on-password-reset">92 <section·id="s-cve-2024-45231-potential-user-email-enumeration-via-response-status-on-password-reset">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 <li><a·class="reference·internal"·href="#cve-2024-45231-potential-user-email-enumeration-via-response-status-on-password-reset">CVE-2024-45231:·Potential·user·email·enumeration·via·response·status·on·password·reset</a></li>118 <li><a·class="reference·internal"·href="#cve-2024-45231-potential-user-email-enumeration-via-response-status-on-password-reset">CVE-2024-45231:·Potential·user·email·enumeration·via·response·status·on·password·reset</a></li>
118 </ul>119 </ul>
119 </li>120 </li>
120 </ul>121 </ul>
  
121 ··</div>122 ··</div>
122 ··<div>123 ··<div>
123 ····<h4>Previous·topic</h4>124 ····<h4>Argomento·precedente</h4>
124 ····<p·class="topless"><a·href="index.html"125 ····<p·class="topless"><a·href="index.html"
125 ··························title="previous·chapter">Release·notes</a></p>126 ··························title="capitolo·precedente">Release·notes</a></p>
126 ··</div>127 ··</div>
127 ··<div>128 ··<div>
128 ····<h4>Next·topic</h4>129 ····<h4>Argomento·successivo</h4>
129 ····<p·class="topless"><a·href="4.2.15.html"130 ····<p·class="topless"><a·href="4.2.15.html"
130 ··························title="next·chapter">Django·4.2.15·release·notes</a></p>131 ··························title="capitolo·successivo">Django·4.2.15·release·notes</a></p>
131 ··</div>132 ··</div>
132 <search·id="searchbox"·style="display:·none"·role="search">133 <search·id="searchbox"·style="display:·none"·role="search">
133 ··<h3·id="searchlabel">Quick·search</h3>134 ··<h3·id="searchlabel">Ricerca·veloce</h3>
134 ····<div·class="searchformwrapper">135 ····<div·class="searchformwrapper">
135 ····<form·class="search"·action="../search.html"·method="get">136 ····<form·class="search"·action="../search.html"·method="get">
136 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
137 ······<input·type="submit"·value="Go"·/>138 ······<input·type="submit"·value="Vai"·/>
138 ····</form>139 ····</form>
139 ····</div>140 ····</div>
140 </search>141 </search>
141 <script>document.getElementById('searchbox').style.display·=·"block"</script>142 <script>document.getElementById('searchbox').style.display·=·"block"</script>
142 ········</div>143 ········</div>
143 ······</div>144 ······</div>
144 ··············<h3>Last·update:</h3>145 ··············<h3>Last·update:</h3>
145 ··············<p·class="topless">Sep·03,·2024</p>146 ··············<p·class="topless">set·03,·2024</p>
146 ··········</div>147 ··········</div>
147 ········148 ········
148 ······149 ······
149 ····</div>150 ····</div>
  
150 ····<div·id="ft">151 ····<div·id="ft">
151 ······<div·class="nav">152 ······<div·class="nav">
3.35 KB
html2text {}
Max HTML report size reached
5.83 KB
./usr/share/doc/python-django-doc/html/releases/4.2.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.1·release·notes"·href="4.2.1.html"·/>15 ····<link·rel="next"·title="Django·4.2.1·release·notes"·href="4.2.1.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.3·release·notes"·href="4.2.3.html"·/>16 ····<link·rel="prev"·title="Django·4.2.3·release·notes"·href="4.2.3.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 133, 37 lines modifiedOffset 134, 37 lines modified
133 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>134 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
134 </ul>135 </ul>
135 </li>136 </li>
136 </ul>137 </ul>
  
137 ··</div>138 ··</div>
138 ··<div>139 ··<div>
139 ····<h4>Previous·topic</h4>140 ····<h4>Argomento·precedente</h4>
140 ····<p·class="topless"><a·href="4.2.3.html"141 ····<p·class="topless"><a·href="4.2.3.html"
141 ··························title="previous·chapter">Django·4.2.3·release·notes</a></p>142 ··························title="capitolo·precedente">Django·4.2.3·release·notes</a></p>
142 ··</div>143 ··</div>
143 ··<div>144 ··<div>
144 ····<h4>Next·topic</h4>145 ····<h4>Argomento·successivo</h4>
145 ····<p·class="topless"><a·href="4.2.1.html"146 ····<p·class="topless"><a·href="4.2.1.html"
146 ··························title="next·chapter">Django·4.2.1·release·notes</a></p>147 ··························title="capitolo·successivo">Django·4.2.1·release·notes</a></p>
147 ··</div>148 ··</div>
148 <search·id="searchbox"·style="display:·none"·role="search">149 <search·id="searchbox"·style="display:·none"·role="search">
149 ··<h3·id="searchlabel">Quick·search</h3>150 ··<h3·id="searchlabel">Ricerca·veloce</h3>
150 ····<div·class="searchformwrapper">151 ····<div·class="searchformwrapper">
151 ····<form·class="search"·action="../search.html"·method="get">152 ····<form·class="search"·action="../search.html"·method="get">
152 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
153 ······<input·type="submit"·value="Go"·/>154 ······<input·type="submit"·value="Vai"·/>
154 ····</form>155 ····</form>
155 ····</div>156 ····</div>
156 </search>157 </search>
157 <script>document.getElementById('searchbox').style.display·=·"block"</script>158 <script>document.getElementById('searchbox').style.display·=·"block"</script>
158 ········</div>159 ········</div>
159 ······</div>160 ······</div>
160 ··············<h3>Last·update:</h3>161 ··············<h3>Last·update:</h3>
161 ··············<p·class="topless">Sep·03,·2024</p>162 ··············<p·class="topless">set·03,·2024</p>
162 ··········</div>163 ··········</div>
163 ········164 ········
164 ······165 ······
165 ····</div>166 ····</div>
  
166 ····<div·id="ft">167 ····<div·id="ft">
167 ······<div·class="nav">168 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
8.17 KB
./usr/share/doc/python-django-doc/html/releases/4.2.3.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.3·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.3·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.2·release·notes"·href="4.2.2.html"·/>15 ····<link·rel="next"·title="Django·4.2.2·release·notes"·href="4.2.2.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.4·release·notes"·href="4.2.4.html"·/>16 ····<link·rel="prev"·title="Django·4.2.4·release·notes"·href="4.2.4.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.3">79 ··········<div·class="yui-g"·id="releases-4.2.3">
79 ············80 ············
80 ··<section·id="s-django-4-2-3-release-notes">81 ··<section·id="s-django-4-2-3-release-notes">
81 <span·id="django-4-2-3-release-notes"></span><h1>Django·4.2.3·release·notes<a·class="headerlink"·href="#django-4-2-3-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-3-release-notes"></span><h1>Django·4.2.3·release·notes<a·class="headerlink"·href="#django-4-2-3-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>July·3,·2023</em></p>83 <p><em>July·3,·2023</em></p>
83 <p>Django·4.2.3·fixes·a·security·issue·with·severity·moderate·and·several·bugs84 <p>Django·4.2.3·fixes·a·security·issue·with·severity·«moderate»·and·several·bugs
84 in·4.2.2.</p>85 in·4.2.2.</p>
85 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">86 <section·id="s-cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator">
86 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"></span><h2>CVE-2023-36053:·Potential·regular·expression·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>/<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code><a·class="headerlink"·href="#cve-2023-36053-potential-regular-expression-denial-of-service-vulnerability-in-emailvalidator-urlvalidator"·title="Link·to·this·heading">¶</a></h2>
87 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular88 <p><code·class="docutils·literal·notranslate"><span·class="pre">EmailValidator</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">URLValidator</span></code>·were·subject·to·potential·regular
88 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name89 expression·denial·of·service·attack·via·a·very·large·number·of·domain·name
89 labels·of·emails·and·URLs.</p>90 labels·of·emails·and·URLs.</p>
90 </section>91 </section>
Offset 118, 37 lines modifiedOffset 119, 37 lines modified
118 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>119 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
119 </ul>120 </ul>
120 </li>121 </li>
121 </ul>122 </ul>
  
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="4.2.4.html"126 ····<p·class="topless"><a·href="4.2.4.html"
126 ··························title="previous·chapter">Django·4.2.4·release·notes</a></p>127 ··························title="capitolo·precedente">Django·4.2.4·release·notes</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="4.2.2.html"131 ····<p·class="topless"><a·href="4.2.2.html"
131 ··························title="next·chapter">Django·4.2.2·release·notes</a></p>132 ··························title="capitolo·successivo">Django·4.2.2·release·notes</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../search.html"·method="get">137 ····<form·class="search"·action="../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.87 KB
html2text {}
Max HTML report size reached
5.84 KB
./usr/share/doc/python-django-doc/html/releases/4.2.4.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.4·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.4·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.3·release·notes"·href="4.2.3.html"·/>15 ····<link·rel="next"·title="Django·4.2.3·release·notes"·href="4.2.3.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.5·release·notes"·href="4.2.5.html"·/>16 ····<link·rel="prev"·title="Django·4.2.5·release·notes"·href="4.2.5.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 113, 37 lines modifiedOffset 114, 37 lines modified
113 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>114 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
114 </ul>115 </ul>
115 </li>116 </li>
116 </ul>117 </ul>
  
117 ··</div>118 ··</div>
118 ··<div>119 ··<div>
119 ····<h4>Previous·topic</h4>120 ····<h4>Argomento·precedente</h4>
120 ····<p·class="topless"><a·href="4.2.5.html"121 ····<p·class="topless"><a·href="4.2.5.html"
121 ··························title="previous·chapter">Django·4.2.5·release·notes</a></p>122 ··························title="capitolo·precedente">Django·4.2.5·release·notes</a></p>
122 ··</div>123 ··</div>
123 ··<div>124 ··<div>
124 ····<h4>Next·topic</h4>125 ····<h4>Argomento·successivo</h4>
125 ····<p·class="topless"><a·href="4.2.3.html"126 ····<p·class="topless"><a·href="4.2.3.html"
126 ··························title="next·chapter">Django·4.2.3·release·notes</a></p>127 ··························title="capitolo·successivo">Django·4.2.3·release·notes</a></p>
127 ··</div>128 ··</div>
128 <search·id="searchbox"·style="display:·none"·role="search">129 <search·id="searchbox"·style="display:·none"·role="search">
129 ··<h3·id="searchlabel">Quick·search</h3>130 ··<h3·id="searchlabel">Ricerca·veloce</h3>
130 ····<div·class="searchformwrapper">131 ····<div·class="searchformwrapper">
131 ····<form·class="search"·action="../search.html"·method="get">132 ····<form·class="search"·action="../search.html"·method="get">
132 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>133 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
133 ······<input·type="submit"·value="Go"·/>134 ······<input·type="submit"·value="Vai"·/>
134 ····</form>135 ····</form>
135 ····</div>136 ····</div>
136 </search>137 </search>
137 <script>document.getElementById('searchbox').style.display·=·"block"</script>138 <script>document.getElementById('searchbox').style.display·=·"block"</script>
138 ········</div>139 ········</div>
139 ······</div>140 ······</div>
140 ··············<h3>Last·update:</h3>141 ··············<h3>Last·update:</h3>
141 ··············<p·class="topless">Sep·03,·2024</p>142 ··············<p·class="topless">set·03,·2024</p>
142 ··········</div>143 ··········</div>
143 ········144 ········
144 ······145 ······
145 ····</div>146 ····</div>
  
146 ····<div·id="ft">147 ····<div·id="ft">
147 ······<div·class="nav">148 ······<div·class="nav">
2.1 KB
html2text {}
Max HTML report size reached
8.01 KB
./usr/share/doc/python-django-doc/html/releases/4.2.5.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.5·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.5·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.4·release·notes"·href="4.2.4.html"·/>15 ····<link·rel="next"·title="Django·4.2.4·release·notes"·href="4.2.4.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.6·release·notes"·href="4.2.6.html"·/>16 ····<link·rel="prev"·title="Django·4.2.6·release·notes"·href="4.2.6.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.5">79 ··········<div·class="yui-g"·id="releases-4.2.5">
79 ············80 ············
80 ··<section·id="s-django-4-2-5-release-notes">81 ··<section·id="s-django-4-2-5-release-notes">
81 <span·id="django-4-2-5-release-notes"></span><h1>Django·4.2.5·release·notes<a·class="headerlink"·href="#django-4-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-5-release-notes"></span><h1>Django·4.2.5·release·notes<a·class="headerlink"·href="#django-4-2-5-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>September·4,·2023</em></p>83 <p><em>September·4,·2023</em></p>
83 <p>Django·4.2.5·fixes·a·security·issue·with·severity·moderate·and·several·bugs84 <p>Django·4.2.5·fixes·a·security·issue·with·severity·«moderate»·and·several·bugs
84 in·4.2.4.</p>85 in·4.2.4.</p>
85 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">86 <section·id="s-cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri">
86 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"></span><h2>CVE-2023-41164:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code><a·class="headerlink"·href="#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri"·title="Link·to·this·heading">¶</a></h2>
87 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of88 <p><code·class="docutils·literal·notranslate"><span·class="pre">django.utils.encoding.uri_to_iri()</span></code>·was·subject·to·potential·denial·of
88 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode89 service·attack·via·certain·inputs·with·a·very·large·number·of·Unicode
89 characters.</p>90 characters.</p>
90 </section>91 </section>
Offset 124, 37 lines modifiedOffset 125, 37 lines modified
124 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>125 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
125 </ul>126 </ul>
126 </li>127 </li>
127 </ul>128 </ul>
  
128 ··</div>129 ··</div>
129 ··<div>130 ··<div>
130 ····<h4>Previous·topic</h4>131 ····<h4>Argomento·precedente</h4>
131 ····<p·class="topless"><a·href="4.2.6.html"132 ····<p·class="topless"><a·href="4.2.6.html"
132 ··························title="previous·chapter">Django·4.2.6·release·notes</a></p>133 ··························title="capitolo·precedente">Django·4.2.6·release·notes</a></p>
133 ··</div>134 ··</div>
134 ··<div>135 ··<div>
135 ····<h4>Next·topic</h4>136 ····<h4>Argomento·successivo</h4>
136 ····<p·class="topless"><a·href="4.2.4.html"137 ····<p·class="topless"><a·href="4.2.4.html"
137 ··························title="next·chapter">Django·4.2.4·release·notes</a></p>138 ··························title="capitolo·successivo">Django·4.2.4·release·notes</a></p>
138 ··</div>139 ··</div>
139 <search·id="searchbox"·style="display:·none"·role="search">140 <search·id="searchbox"·style="display:·none"·role="search">
140 ··<h3·id="searchlabel">Quick·search</h3>141 ··<h3·id="searchlabel">Ricerca·veloce</h3>
141 ····<div·class="searchformwrapper">142 ····<div·class="searchformwrapper">
142 ····<form·class="search"·action="../search.html"·method="get">143 ····<form·class="search"·action="../search.html"·method="get">
143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>144 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
144 ······<input·type="submit"·value="Go"·/>145 ······<input·type="submit"·value="Vai"·/>
145 ····</form>146 ····</form>
146 ····</div>147 ····</div>
147 </search>148 </search>
148 <script>document.getElementById('searchbox').style.display·=·"block"</script>149 <script>document.getElementById('searchbox').style.display·=·"block"</script>
149 ········</div>150 ········</div>
150 ······</div>151 ······</div>
151 ··············<h3>Last·update:</h3>152 ··············<h3>Last·update:</h3>
152 ··············<p·class="topless">Sep·03,·2024</p>153 ··············<p·class="topless">set·03,·2024</p>
153 ··········</div>154 ··········</div>
154 ········155 ········
155 ······156 ······
156 ····</div>157 ····</div>
  
157 ····<div·id="ft">158 ····<div·id="ft">
158 ······<div·class="nav">159 ······<div·class="nav">
2.91 KB
html2text {}
Max HTML report size reached
8.22 KB
./usr/share/doc/python-django-doc/html/releases/4.2.6.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.6·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.6·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.5·release·notes"·href="4.2.5.html"·/>15 ····<link·rel="next"·title="Django·4.2.5·release·notes"·href="4.2.5.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.7·release·notes"·href="4.2.7.html"·/>16 ····<link·rel="prev"·title="Django·4.2.7·release·notes"·href="4.2.7.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.6">79 ··········<div·class="yui-g"·id="releases-4.2.6">
79 ············80 ············
80 ··<section·id="s-django-4-2-6-release-notes">81 ··<section·id="s-django-4-2-6-release-notes">
81 <span·id="django-4-2-6-release-notes"></span><h1>Django·4.2.6·release·notes<a·class="headerlink"·href="#django-4-2-6-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-6-release-notes"></span><h1>Django·4.2.6·release·notes<a·class="headerlink"·href="#django-4-2-6-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>October·4,·2023</em></p>83 <p><em>October·4,·2023</em></p>
83 <p>Django·4.2.6·fixes·a·security·issue·with·severity·moderate·and·several·bugs84 <p>Django·4.2.6·fixes·a·security·issue·with·severity·«moderate»·and·several·bugs
84 in·4.2.5.</p>85 in·4.2.5.</p>
85 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">86 <section·id="s-cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator">
86 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"></span><h2>CVE-2023-43665:·Denial-of-service·possibility·in·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code><a·class="headerlink"·href="#cve-2023-43665-denial-of-service-possibility-in-django-utils-text-truncator"·title="Link·to·this·heading">¶</a></h2>
87 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the88 <p>Following·the·fix·for·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-14232">CVE-2019-14232</a>,·the·regular·expressions·used·in·the
88 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>89 implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">django.utils.text.Truncator</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">chars()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">words()</span></code>
89 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular90 methods·(with·<code·class="docutils·literal·notranslate"><span·class="pre">html=True</span></code>)·were·revised·and·improved.·However,·these·regular
90 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a91 expressions·still·exhibited·linear·backtracking·complexity,·so·when·given·a
Offset 140, 37 lines modifiedOffset 141, 37 lines modified
140 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>141 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
141 </ul>142 </ul>
142 </li>143 </li>
143 </ul>144 </ul>
  
144 ··</div>145 ··</div>
145 ··<div>146 ··<div>
146 ····<h4>Previous·topic</h4>147 ····<h4>Argomento·precedente</h4>
147 ····<p·class="topless"><a·href="4.2.7.html"148 ····<p·class="topless"><a·href="4.2.7.html"
148 ··························title="previous·chapter">Django·4.2.7·release·notes</a></p>149 ··························title="capitolo·precedente">Django·4.2.7·release·notes</a></p>
149 ··</div>150 ··</div>
150 ··<div>151 ··<div>
151 ····<h4>Next·topic</h4>152 ····<h4>Argomento·successivo</h4>
152 ····<p·class="topless"><a·href="4.2.5.html"153 ····<p·class="topless"><a·href="4.2.5.html"
153 ··························title="next·chapter">Django·4.2.5·release·notes</a></p>154 ··························title="capitolo·successivo">Django·4.2.5·release·notes</a></p>
154 ··</div>155 ··</div>
155 <search·id="searchbox"·style="display:·none"·role="search">156 <search·id="searchbox"·style="display:·none"·role="search">
156 ··<h3·id="searchlabel">Quick·search</h3>157 ··<h3·id="searchlabel">Ricerca·veloce</h3>
157 ····<div·class="searchformwrapper">158 ····<div·class="searchformwrapper">
158 ····<form·class="search"·action="../search.html"·method="get">159 ····<form·class="search"·action="../search.html"·method="get">
159 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>160 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
160 ······<input·type="submit"·value="Go"·/>161 ······<input·type="submit"·value="Vai"·/>
161 ····</form>162 ····</form>
162 ····</div>163 ····</div>
163 </search>164 </search>
164 <script>document.getElementById('searchbox').style.display·=·"block"</script>165 <script>document.getElementById('searchbox').style.display·=·"block"</script>
165 ········</div>166 ········</div>
166 ······</div>167 ······</div>
167 ··············<h3>Last·update:</h3>168 ··············<h3>Last·update:</h3>
168 ··············<p·class="topless">Sep·03,·2024</p>169 ··············<p·class="topless">set·03,·2024</p>
169 ··········</div>170 ··········</div>
170 ········171 ········
171 ······172 ······
172 ····</div>173 ····</div>
  
173 ····<div·id="ft">174 ····<div·id="ft">
174 ······<div·class="nav">175 ······<div·class="nav">
2.75 KB
html2text {}
Max HTML report size reached
8.15 KB
./usr/share/doc/python-django-doc/html/releases/4.2.7.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.7·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.7·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.6·release·notes"·href="4.2.6.html"·/>15 ····<link·rel="next"·title="Django·4.2.6·release·notes"·href="4.2.6.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.8·release·notes"·href="4.2.8.html"·/>16 ····<link·rel="prev"·title="Django·4.2.8·release·notes"·href="4.2.8.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="releases-4.2.7">79 ··········<div·class="yui-g"·id="releases-4.2.7">
79 ············80 ············
80 ··<section·id="s-django-4-2-7-release-notes">81 ··<section·id="s-django-4-2-7-release-notes">
81 <span·id="django-4-2-7-release-notes"></span><h1>Django·4.2.7·release·notes<a·class="headerlink"·href="#django-4-2-7-release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="django-4-2-7-release-notes"></span><h1>Django·4.2.7·release·notes<a·class="headerlink"·href="#django-4-2-7-release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p><em>November·1,·2023</em></p>83 <p><em>November·1,·2023</em></p>
83 <p>Django·4.2.7·fixes·a·security·issue·with·severity·moderate·and·several·bugs84 <p>Django·4.2.7·fixes·a·security·issue·with·severity·«moderate»·and·several·bugs
84 in·4.2.6.</p>85 in·4.2.6.</p>
85 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">86 <section·id="s-cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows">
86 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>87 <span·id="cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"></span><h2>CVE-2023-46695:·Potential·denial·of·service·vulnerability·in·<code·class="docutils·literal·notranslate"><span·class="pre">UsernameField</span></code>·on·Windows<a·class="headerlink"·href="#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows"·title="Link·to·this·heading">¶</a></h2>
87 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on88 <p>The·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unicodedata.html#unicodedata.normalize"·title="(in·Python·v3.12)"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">NFKC</span>·<span·class="pre">normalization</span></code></a>·is·slow·on
88 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was89 Windows.·As·a·consequence,·<code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.forms.UsernameField</span></code>·was
89 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very90 subject·to·a·potential·denial·of·service·attack·via·certain·inputs·with·a·very
90 large·number·of·Unicode·characters.</p>91 large·number·of·Unicode·characters.</p>
Offset 123, 37 lines modifiedOffset 124, 37 lines modified
123 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>124 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
124 </ul>125 </ul>
125 </li>126 </li>
126 </ul>127 </ul>
  
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Previous·topic</h4>130 ····<h4>Argomento·precedente</h4>
130 ····<p·class="topless"><a·href="4.2.8.html"131 ····<p·class="topless"><a·href="4.2.8.html"
131 ··························title="previous·chapter">Django·4.2.8·release·notes</a></p>132 ··························title="capitolo·precedente">Django·4.2.8·release·notes</a></p>
132 ··</div>133 ··</div>
133 ··<div>134 ··<div>
134 ····<h4>Next·topic</h4>135 ····<h4>Argomento·successivo</h4>
135 ····<p·class="topless"><a·href="4.2.6.html"136 ····<p·class="topless"><a·href="4.2.6.html"
136 ··························title="next·chapter">Django·4.2.6·release·notes</a></p>137 ··························title="capitolo·successivo">Django·4.2.6·release·notes</a></p>
137 ··</div>138 ··</div>
138 <search·id="searchbox"·style="display:·none"·role="search">139 <search·id="searchbox"·style="display:·none"·role="search">
139 ··<h3·id="searchlabel">Quick·search</h3>140 ··<h3·id="searchlabel">Ricerca·veloce</h3>
140 ····<div·class="searchformwrapper">141 ····<div·class="searchformwrapper">
141 ····<form·class="search"·action="../search.html"·method="get">142 ····<form·class="search"·action="../search.html"·method="get">
142 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>143 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
143 ······<input·type="submit"·value="Go"·/>144 ······<input·type="submit"·value="Vai"·/>
144 ····</form>145 ····</form>
145 ····</div>146 ····</div>
146 </search>147 </search>
147 <script>document.getElementById('searchbox').style.display·=·"block"</script>148 <script>document.getElementById('searchbox').style.display·=·"block"</script>
148 ········</div>149 ········</div>
149 ······</div>150 ······</div>
150 ··············<h3>Last·update:</h3>151 ··············<h3>Last·update:</h3>
151 ··············<p·class="topless">Sep·03,·2024</p>152 ··············<p·class="topless">set·03,·2024</p>
152 ··········</div>153 ··········</div>
153 ········154 ········
154 ······155 ······
155 ····</div>156 ····</div>
  
156 ····<div·id="ft">157 ····<div·id="ft">
157 ······<div·class="nav">158 ······<div·class="nav">
2.78 KB
html2text {}
Max HTML report size reached
5.83 KB
./usr/share/doc/python-django-doc/html/releases/4.2.8.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.8·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.8·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.7·release·notes"·href="4.2.7.html"·/>15 ····<link·rel="next"·title="Django·4.2.7·release·notes"·href="4.2.7.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.9·release·notes"·href="4.2.9.html"·/>16 ····<link·rel="prev"·title="Django·4.2.9·release·notes"·href="4.2.9.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 127, 37 lines modifiedOffset 128, 37 lines modified
127 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>128 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
128 </ul>129 </ul>
129 </li>130 </li>
130 </ul>131 </ul>
  
131 ··</div>132 ··</div>
132 ··<div>133 ··<div>
133 ····<h4>Previous·topic</h4>134 ····<h4>Argomento·precedente</h4>
134 ····<p·class="topless"><a·href="4.2.9.html"135 ····<p·class="topless"><a·href="4.2.9.html"
135 ··························title="previous·chapter">Django·4.2.9·release·notes</a></p>136 ··························title="capitolo·precedente">Django·4.2.9·release·notes</a></p>
136 ··</div>137 ··</div>
137 ··<div>138 ··<div>
138 ····<h4>Next·topic</h4>139 ····<h4>Argomento·successivo</h4>
139 ····<p·class="topless"><a·href="4.2.7.html"140 ····<p·class="topless"><a·href="4.2.7.html"
140 ··························title="next·chapter">Django·4.2.7·release·notes</a></p>141 ··························title="capitolo·successivo">Django·4.2.7·release·notes</a></p>
141 ··</div>142 ··</div>
142 <search·id="searchbox"·style="display:·none"·role="search">143 <search·id="searchbox"·style="display:·none"·role="search">
143 ··<h3·id="searchlabel">Quick·search</h3>144 ··<h3·id="searchlabel">Ricerca·veloce</h3>
144 ····<div·class="searchformwrapper">145 ····<div·class="searchformwrapper">
145 ····<form·class="search"·action="../search.html"·method="get">146 ····<form·class="search"·action="../search.html"·method="get">
146 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>147 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
147 ······<input·type="submit"·value="Go"·/>148 ······<input·type="submit"·value="Vai"·/>
148 ····</form>149 ····</form>
149 ····</div>150 ····</div>
150 </search>151 </search>
151 <script>document.getElementById('searchbox').style.display·=·"block"</script>152 <script>document.getElementById('searchbox').style.display·=·"block"</script>
152 ········</div>153 ········</div>
153 ······</div>154 ······</div>
154 ··············<h3>Last·update:</h3>155 ··············<h3>Last·update:</h3>
155 ··············<p·class="topless">Sep·03,·2024</p>156 ··············<p·class="topless">set·03,·2024</p>
156 ··········</div>157 ··········</div>
157 ········158 ········
158 ······159 ······
159 ····</div>160 ····</div>
  
160 ····<div·id="ft">161 ····<div·id="ft">
161 ······<div·class="nav">162 ······<div·class="nav">
2.09 KB
html2text {}
Max HTML report size reached
5.67 KB
./usr/share/doc/python-django-doc/html/releases/4.2.9.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2.9·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2.9·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.8·release·notes"·href="4.2.8.html"·/>15 ····<link·rel="next"·title="Django·4.2.8·release·notes"·href="4.2.8.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.10·release·notes"·href="4.2.10.html"·/>16 ····<link·rel="prev"·title="Django·4.2.10·release·notes"·href="4.2.10.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 37 lines modifiedOffset 108, 37 lines modified
107 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>108 <li><a·class="reference·internal"·href="#bugfixes">Bugfixes</a></li>
108 </ul>109 </ul>
109 </li>110 </li>
110 </ul>111 </ul>
  
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Previous·topic</h4>114 ····<h4>Argomento·precedente</h4>
114 ····<p·class="topless"><a·href="4.2.10.html"115 ····<p·class="topless"><a·href="4.2.10.html"
115 ··························title="previous·chapter">Django·4.2.10·release·notes</a></p>116 ··························title="capitolo·precedente">Django·4.2.10·release·notes</a></p>
116 ··</div>117 ··</div>
117 ··<div>118 ··<div>
118 ····<h4>Next·topic</h4>119 ····<h4>Argomento·successivo</h4>
119 ····<p·class="topless"><a·href="4.2.8.html"120 ····<p·class="topless"><a·href="4.2.8.html"
120 ··························title="next·chapter">Django·4.2.8·release·notes</a></p>121 ··························title="capitolo·successivo">Django·4.2.8·release·notes</a></p>
121 ··</div>122 ··</div>
122 <search·id="searchbox"·style="display:·none"·role="search">123 <search·id="searchbox"·style="display:·none"·role="search">
123 ··<h3·id="searchlabel">Quick·search</h3>124 ··<h3·id="searchlabel">Ricerca·veloce</h3>
124 ····<div·class="searchformwrapper">125 ····<div·class="searchformwrapper">
125 ····<form·class="search"·action="../search.html"·method="get">126 ····<form·class="search"·action="../search.html"·method="get">
126 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>127 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
127 ······<input·type="submit"·value="Go"·/>128 ······<input·type="submit"·value="Vai"·/>
128 ····</form>129 ····</form>
129 ····</div>130 ····</div>
130 </search>131 </search>
131 <script>document.getElementById('searchbox').style.display·=·"block"</script>132 <script>document.getElementById('searchbox').style.display·=·"block"</script>
132 ········</div>133 ········</div>
133 ······</div>134 ······</div>
134 ··············<h3>Last·update:</h3>135 ··············<h3>Last·update:</h3>
135 ··············<p·class="topless">Sep·03,·2024</p>136 ··············<p·class="topless">set·03,·2024</p>
136 ··········</div>137 ··········</div>
137 ········138 ········
138 ······139 ······
139 ····</div>140 ····</div>
  
140 ····<div·id="ft">141 ····<div·id="ft">
141 ······<div·class="nav">142 ······<div·class="nav">
1.92 KB
html2text {}
Max HTML report size reached
6.14 KB
./usr/share/doc/python-django-doc/html/releases/4.2.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·4.2·release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·4.2·release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.1.13·release·notes"·href="4.1.13.html"·/>15 ····<link·rel="next"·title="Django·4.1.13·release·notes"·href="4.1.13.html"·/>
15 ····<link·rel="prev"·title="Django·4.2.1·release·notes"·href="4.2.1.html"·/>16 ····<link·rel="prev"·title="Django·4.2.1·release·notes"·href="4.2.1.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 672, 37 lines modifiedOffset 673, 37 lines modified
672 </li>673 </li>
673 </ul>674 </ul>
674 </li>675 </li>
675 </ul>676 </ul>
  
676 ··</div>677 ··</div>
677 ··<div>678 ··<div>
678 ····<h4>Previous·topic</h4>679 ····<h4>Argomento·precedente</h4>
679 ····<p·class="topless"><a·href="4.2.1.html"680 ····<p·class="topless"><a·href="4.2.1.html"
680 ··························title="previous·chapter">Django·4.2.1·release·notes</a></p>681 ··························title="capitolo·precedente">Django·4.2.1·release·notes</a></p>
681 ··</div>682 ··</div>
682 ··<div>683 ··<div>
683 ····<h4>Next·topic</h4>684 ····<h4>Argomento·successivo</h4>
684 ····<p·class="topless"><a·href="4.1.13.html"685 ····<p·class="topless"><a·href="4.1.13.html"
685 ··························title="next·chapter">Django·4.1.13·release·notes</a></p>686 ··························title="capitolo·successivo">Django·4.1.13·release·notes</a></p>
686 ··</div>687 ··</div>
687 <search·id="searchbox"·style="display:·none"·role="search">688 <search·id="searchbox"·style="display:·none"·role="search">
688 ··<h3·id="searchlabel">Quick·search</h3>689 ··<h3·id="searchlabel">Ricerca·veloce</h3>
689 ····<div·class="searchformwrapper">690 ····<div·class="searchformwrapper">
690 ····<form·class="search"·action="../search.html"·method="get">691 ····<form·class="search"·action="../search.html"·method="get">
691 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>692 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
692 ······<input·type="submit"·value="Go"·/>693 ······<input·type="submit"·value="Vai"·/>
693 ····</form>694 ····</form>
694 ····</div>695 ····</div>
695 </search>696 </search>
696 <script>document.getElementById('searchbox').style.display·=·"block"</script>697 <script>document.getElementById('searchbox').style.display·=·"block"</script>
697 ········</div>698 ········</div>
698 ······</div>699 ······</div>
699 ··············<h3>Last·update:</h3>700 ··············<h3>Last·update:</h3>
700 ··············<p·class="topless">Sep·03,·2024</p>701 ··············<p·class="topless">set·03,·2024</p>
701 ··········</div>702 ··········</div>
702 ········703 ········
703 ······704 ······
704 ····</div>705 ····</div>
  
705 ····<div·id="ft">706 ····<div·id="ft">
706 ······<div·class="nav">707 ······<div·class="nav">
2.46 KB
html2text {}
Max HTML report size reached
8.58 KB
./usr/share/doc/python-django-doc/html/releases/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Release·notes·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Release·notes·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·4.2.16·release·notes"·href="4.2.16.html"·/>15 ····<link·rel="next"·title="Django·4.2.16·release·notes"·href="4.2.16.html"·/>
15 ····<link·rel="prev"·title="Glossary"·href="../glossary.html"·/>16 ····<link·rel="prev"·title="Glossary"·href="../glossary.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../glossary.html"·title="Glossary">previous</a>67 ····&laquo;·<a·href="../glossary.html"·title="Glossary">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="4.2.16.html"·title="Django·4.2.16·release·notes">next</a>·&raquo;</div>71 ····<a·href="4.2.16.html"·title="Django·4.2.16·release·notes">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-release-notes">81 ··<section·id="s-release-notes">
81 <span·id="release-notes"></span><h1>Release·notes<a·class="headerlink"·href="#release-notes"·title="Link·to·this·heading">¶</a></h1>82 <span·id="release-notes"></span><h1>Release·notes<a·class="headerlink"·href="#release-notes"·title="Link·to·this·heading">¶</a></h1>
82 <p>Release·notes·for·the·official·Django·releases.·Each·release·note·will·tell·you83 <p>Release·notes·for·the·official·Django·releases.·Each·release·note·will·tell·you
83 what’s·new·in·each·version,·and·will·also·describe·any·backwards-incompatible84 what’s·new·in·each·version,·and·will·also·describe·any·backwards-incompatible
84 changes·made·in·that·version.</p>85 changes·made·in·that·version.</p>
85 <p>For·those·<a·class="reference·internal"·href="../howto/upgrade-version.html"><span·class="doc">upgrading·to·a·new·version·of·Django</span></a>,86 <p>For·those·<a·class="reference·internal"·href="../howto/upgrade-version.html"><span·class="doc">upgrading·to·a·new·version·of·Django</span></a>,
86 you·will·need·to·check·all·the·backwards-incompatible·changes·and87 you·will·need·to·check·all·the·backwards-incompatible·changes·and
87 <a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecated·features</span></a>·for·each·final·release88 <a·class="reference·internal"·href="../internals/deprecation.html"><span·class="doc">deprecated·features</span></a>·for·each·final·release
88 from·the·one·after·your·current·Django·version,·up·to·and·including·the·new89 from·the·one·after·your·current·Django·version,·up·to·and·including·the·new
89 version.</p>90 version.</p>
90 <section·id="s-final-releases">91 <section·id="s-final-releases">
91 <span·id="final-releases"></span><h2>Final·releases<a·class="headerlink"·href="#final-releases"·title="Link·to·this·heading">¶</a></h2>92 <span·id="final-releases"></span><h2>Final·releases<a·class="headerlink"·href="#final-releases"·title="Link·to·this·heading">¶</a></h2>
92 <p>Below·are·release·notes·through·Django·4.2·and·its·patch·releases.·Newer93 <p>Below·are·release·notes·through·Django·4.2·and·its·patch·releases.·Newer
93 versions·of·the·documentation·contain·the·release·notes·for·any·later·releases.</p>94 versions·of·the·documentation·contain·the·release·notes·for·any·later·releases.</p>
94 <section·id="s-release">95 <section·id="s-release">
Offset 614, 47 lines modifiedOffset 615, 47 lines modified
614 <li><a·class="reference·internal"·href="#security-releases">Security·releases</a></li>615 <li><a·class="reference·internal"·href="#security-releases">Security·releases</a></li>
615 </ul>616 </ul>
616 </li>617 </li>
617 </ul>618 </ul>
  
618 ··</div>619 ··</div>
619 ··<div>620 ··<div>
620 ····<h4>Previous·topic</h4>621 ····<h4>Argomento·precedente</h4>
621 ····<p·class="topless"><a·href="../glossary.html"622 ····<p·class="topless"><a·href="../glossary.html"
622 ··························title="previous·chapter">Glossary</a></p>623 ··························title="capitolo·precedente">Glossary</a></p>
623 ··</div>624 ··</div>
624 ··<div>625 ··<div>
625 ····<h4>Next·topic</h4>626 ····<h4>Argomento·successivo</h4>
626 ····<p·class="topless"><a·href="4.2.16.html"627 ····<p·class="topless"><a·href="4.2.16.html"
627 ··························title="next·chapter">Django·4.2.16·release·notes</a></p>628 ··························title="capitolo·successivo">Django·4.2.16·release·notes</a></p>
628 ··</div>629 ··</div>
629 <search·id="searchbox"·style="display:·none"·role="search">630 <search·id="searchbox"·style="display:·none"·role="search">
630 ··<h3·id="searchlabel">Quick·search</h3>631 ··<h3·id="searchlabel">Ricerca·veloce</h3>
631 ····<div·class="searchformwrapper">632 ····<div·class="searchformwrapper">
632 ····<form·class="search"·action="../search.html"·method="get">633 ····<form·class="search"·action="../search.html"·method="get">
633 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>634 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
634 ······<input·type="submit"·value="Go"·/>635 ······<input·type="submit"·value="Vai"·/>
635 ····</form>636 ····</form>
636 ····</div>637 ····</div>
637 </search>638 </search>
638 <script>document.getElementById('searchbox').style.display·=·"block"</script>639 <script>document.getElementById('searchbox').style.display·=·"block"</script>
639 ········</div>640 ········</div>
640 ······</div>641 ······</div>
641 ··············<h3>Last·update:</h3>642 ··············<h3>Last·update:</h3>
642 ··············<p·class="topless">Sep·03,·2024</p>643 ··············<p·class="topless">set·03,·2024</p>
643 ··········</div>644 ··········</div>
644 ········645 ········
645 ······646 ······
646 ····</div>647 ····</div>
  
647 ····<div·id="ft">648 ····<div·id="ft">
648 ······<div·class="nav">649 ······<div·class="nav">
649 ····&laquo;·<a·href="../glossary.html"·title="Glossary">previous</a>650 ····&laquo;·<a·href="../glossary.html"·title="Glossary">previous</a>
650 ·····|651 ·····|
651 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>652 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
652 ···|653 ···|
653 ····<a·href="4.2.16.html"·title="Django·4.2.16·release·notes">next</a>·&raquo;</div>654 ····<a·href="4.2.16.html"·title="Django·4.2.16·release·notes">next</a>·&raquo;</div>
654 ····</div>655 ····</div>
655 ··</div>656 ··</div>
  
656 ······<div·class="clearer"></div>657 ······<div·class="clearer"></div>
657 ····</div>658 ····</div>
2.76 KB
html2text {}
Max HTML report size reached
17.5 KB
./usr/share/doc/python-django-doc/html/releases/security.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Archive·of·security·issues·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Archive·of·security·issues·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·internals"·href="../internals/index.html"·/>15 ····<link·rel="next"·title="Django·internals"·href="../internals/index.html"·/>
15 ····<link·rel="prev"·title="Django·version·0.95·release·notes"·href="0.95.html"·/>16 ····<link·rel="prev"·title="Django·version·0.95·release·notes"·href="0.95.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 651, 15 lines modifiedOffset 652, 15 lines modified
651 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/1e40f427bb8d0fb37cc9f830096a97c36c97af6f">(patch)</a></p></li>652 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/1e40f427bb8d0fb37cc9f830096a97c36c97af6f">(patch)</a></p></li>
652 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/32124fc41e75074141b05f10fc55a4f01ff7f050">(patch)</a></p></li>653 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/32124fc41e75074141b05f10fc55a4f01ff7f050">(patch)</a></p></li>
653 </ul>654 </ul>
654 </section>655 </section>
655 </section>656 </section>
656 <section·id="s-june-3-2019-cve-2019-12308">657 <section·id="s-june-3-2019-cve-2019-12308">
657 <span·id="june-3-2019-cve-2019-12308"></span><h3>June·3,·2019·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-12308">CVE-2019-12308</a><a·class="headerlink"·href="#june-3-2019-cve-2019-12308"·title="Link·to·this·heading">¶</a></h3>658 <span·id="june-3-2019-cve-2019-12308"></span><h3>June·3,·2019·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2019-12308">CVE-2019-12308</a><a·class="headerlink"·href="#june-3-2019-cve-2019-12308"·title="Link·to·this·heading">¶</a></h3>
658 <p>XSS·via·Current·URL·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2019/jun/03/security-releases/">Full659 <p>XSS·via·«Current·URL»·link·generated·by·<code·class="docutils·literal·notranslate"><span·class="pre">AdminURLFieldWidget</span></code>.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2019/jun/03/security-releases/">Full
659 description</a></p>660 description</a></p>
660 <section·id="s-id27">661 <section·id="s-id27">
661 <span·id="id27"></span><h4>Versions·affected<a·class="headerlink"·href="#id27"·title="Link·to·this·heading">¶</a></h4>662 <span·id="id27"></span><h4>Versions·affected<a·class="headerlink"·href="#id27"·title="Link·to·this·heading">¶</a></h4>
662 <ul·class="simple">663 <ul·class="simple">
663 <li><p>Django·2.2·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673">(patch)</a></p></li>664 <li><p>Django·2.2·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673">(patch)</a></p></li>
664 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62">(patch)</a></p></li>665 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62">(patch)</a></p></li>
665 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b">(patch)</a></p></li>666 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b">(patch)</a></p></li>
Offset 700, 15 lines modifiedOffset 701, 15 lines modified
700 <li><p>Django·2.0·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/9f4ed7c94c62e21644ef5115e393ac426b886f2e">(patch)</a></p></li>701 <li><p>Django·2.0·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/9f4ed7c94c62e21644ef5115e393ac426b886f2e">(patch)</a></p></li>
701 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/1cd00fcf52d089ef0fe03beabd05d59df8ea052a">(patch)</a></p></li>702 <li><p>Django·1.11·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/1cd00fcf52d089ef0fe03beabd05d59df8ea052a">(patch)</a></p></li>
702 </ul>703 </ul>
703 </section>704 </section>
704 </section>705 </section>
705 <section·id="s-october-1-2018-cve-2018-16984">706 <section·id="s-october-1-2018-cve-2018-16984">
706 <span·id="october-1-2018-cve-2018-16984"></span><h3>October·1,·2018·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2018-16984">CVE-2018-16984</a><a·class="headerlink"·href="#october-1-2018-cve-2018-16984"·title="Link·to·this·heading">¶</a></h3>707 <span·id="october-1-2018-cve-2018-16984"></span><h3>October·1,·2018·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2018-16984">CVE-2018-16984</a><a·class="headerlink"·href="#october-1-2018-cve-2018-16984"·title="Link·to·this·heading">¶</a></h3>
707 <p>Password·hash·disclosure·to·view·only·admin·users.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2018/oct/01/security-release/">Full·description</a></p>708 <p>Password·hash·disclosure·to·«view·only»·admin·users.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2018/oct/01/security-release/">Full·description</a></p>
708 <section·id="s-id31">709 <section·id="s-id31">
709 <span·id="id31"></span><h4>Versions·affected<a·class="headerlink"·href="#id31"·title="Link·to·this·heading">¶</a></h4>710 <span·id="id31"></span><h4>Versions·affected<a·class="headerlink"·href="#id31"·title="Link·to·this·heading">¶</a></h4>
710 <ul·class="simple">711 <ul·class="simple">
711 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/c4bd5b597e0aa2432e4c867b86650f18af117851">(patch)</a></p></li>712 <li><p>Django·2.1·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/c4bd5b597e0aa2432e4c867b86650f18af117851">(patch)</a></p></li>
712 </ul>713 </ul>
713 </section>714 </section>
714 </section>715 </section>
Offset 868, 15 lines modifiedOffset 869, 15 lines modified
868 <li><p>Django·1.9·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380">(patch)</a></p></li>869 <li><p>Django·1.9·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/fc6d147a63f89795dbcdecb0559256470fff4380">(patch)</a></p></li>
869 <li><p>Django·1.8·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350">(patch)</a></p></li>870 <li><p>Django·1.8·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/382ab137312961ad62feb8109d70a5a581fe8350">(patch)</a></p></li>
870 </ul>871 </ul>
871 </section>872 </section>
872 </section>873 </section>
873 <section·id="s-february-1-2016-cve-2016-2048">874 <section·id="s-february-1-2016-cve-2016-2048">
874 <span·id="february-1-2016-cve-2016-2048"></span><h3>February·1,·2016·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2016-2048">CVE-2016-2048</a><a·class="headerlink"·href="#february-1-2016-cve-2016-2048"·title="Link·to·this·heading">¶</a></h3>875 <span·id="february-1-2016-cve-2016-2048"></span><h3>February·1,·2016·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2016-2048">CVE-2016-2048</a><a·class="headerlink"·href="#february-1-2016-cve-2016-2048"·title="Link·to·this·heading">¶</a></h3>
875 <p>User·with·change·but·not·add·permission·can·create·objects·for876 <p>User·with·«change»·but·not·«add»·permission·can·create·objects·for
876 <code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code>.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2016/feb/01/releases-192-and-189/">Full·description</a></p>877 <code·class="docutils·literal·notranslate"><span·class="pre">ModelAdmin</span></code>’s·with·<code·class="docutils·literal·notranslate"><span·class="pre">save_as=True</span></code>.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2016/feb/01/releases-192-and-189/">Full·description</a></p>
877 <section·id="s-id45">878 <section·id="s-id45">
878 <span·id="id45"></span><h4>Versions·affected<a·class="headerlink"·href="#id45"·title="Link·to·this·heading">¶</a></h4>879 <span·id="id45"></span><h4>Versions·affected<a·class="headerlink"·href="#id45"·title="Link·to·this·heading">¶</a></h4>
879 <ul·class="simple">880 <ul·class="simple">
880 <li><p>Django·1.9·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/adbca5e4db42542575734b8e5d26961c8ada7265">(patch)</a></p></li>881 <li><p>Django·1.9·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/adbca5e4db42542575734b8e5d26961c8ada7265">(patch)</a></p></li>
881 </ul>882 </ul>
882 </section>883 </section>
Offset 1495, 15 lines modifiedOffset 1496, 15 lines modified
1495 <section·id="s-issues-prior-to-django-s-security-process">1496 <section·id="s-issues-prior-to-django-s-security-process">
1496 <span·id="issues-prior-to-django-s-security-process"></span><h2>Issues·prior·to·Django’s·security·process<a·class="headerlink"·href="#issues-prior-to-django-s-security-process"·title="Link·to·this·heading">¶</a></h2>1497 <span·id="issues-prior-to-django-s-security-process"></span><h2>Issues·prior·to·Django’s·security·process<a·class="headerlink"·href="#issues-prior-to-django-s-security-process"·title="Link·to·this·heading">¶</a></h2>
1497 <p>Some·security·issues·were·handled·before·Django·had·a·formalized1498 <p>Some·security·issues·were·handled·before·Django·had·a·formalized
1498 security·process·in·use.·For·these,·new·releases·may·not·have·been1499 security·process·in·use.·For·these,·new·releases·may·not·have·been
1499 issued·at·the·time·and·CVEs·may·not·have·been·assigned.</p>1500 issued·at·the·time·and·CVEs·may·not·have·been·assigned.</p>
1500 <section·id="s-january-21-2007-cve-2007-0405">1501 <section·id="s-january-21-2007-cve-2007-0405">
1501 <span·id="january-21-2007-cve-2007-0405"></span><h3>January·21,·2007·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2007-0405">CVE-2007-0405</a><a·class="headerlink"·href="#january-21-2007-cve-2007-0405"·title="Link·to·this·heading">¶</a></h3>1502 <span·id="january-21-2007-cve-2007-0405"></span><h3>January·21,·2007·-·<a·class="extlink-cve·reference·external"·href="https://nvd.nist.gov/vuln/detail/CVE-2007-0405">CVE-2007-0405</a><a·class="headerlink"·href="#january-21-2007-cve-2007-0405"·title="Link·to·this·heading">¶</a></h3>
1502 <p>Apparent·caching·of·authenticated·user.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2007/jan/21/0951/">Full·description</a></p>1503 <p>Apparent·«caching»·of·authenticated·user.·<a·class="reference·external"·href="https://www.djangoproject.com/weblog/2007/jan/21/0951/">Full·description</a></p>
1503 <section·id="s-id98">1504 <section·id="s-id98">
1504 <span·id="id98"></span><h4>Versions·affected<a·class="headerlink"·href="#id98"·title="Link·to·this·heading">¶</a></h4>1505 <span·id="id98"></span><h4>Versions·affected<a·class="headerlink"·href="#id98"·title="Link·to·this·heading">¶</a></h4>
1505 <ul·class="simple">1506 <ul·class="simple">
1506 <li><p>Django·0.95·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/e89f0a65581f82a5740bfe989136cea75d09cd67">(patch)</a></p></li>1507 <li><p>Django·0.95·<a·class="extlink-commit·reference·external"·href="https://github.com/django/django/commit/e89f0a65581f82a5740bfe989136cea75d09cd67">(patch)</a></p></li>
1507 </ul>1508 </ul>
1508 </section>1509 </section>
1509 </section>1510 </section>
Offset 1967, 37 lines modifiedOffset 1968, 37 lines modified
1967 </li>1968 </li>
1968 </ul>1969 </ul>
1969 </li>1970 </li>
1970 </ul>1971 </ul>
  
1971 ··</div>1972 ··</div>
1972 ··<div>1973 ··<div>
1973 ····<h4>Previous·topic</h4>1974 ····<h4>Argomento·precedente</h4>
1974 ····<p·class="topless"><a·href="0.95.html"1975 ····<p·class="topless"><a·href="0.95.html"
1975 ··························title="previous·chapter">Django·version·0.95·release·notes</a></p>1976 ··························title="capitolo·precedente">Django·version·0.95·release·notes</a></p>
1976 ··</div>1977 ··</div>
1977 ··<div>1978 ··<div>
1978 ····<h4>Next·topic</h4>1979 ····<h4>Argomento·successivo</h4>
1979 ····<p·class="topless"><a·href="../internals/index.html"1980 ····<p·class="topless"><a·href="../internals/index.html"
1980 ··························title="next·chapter">Django·internals</a></p>1981 ··························title="capitolo·successivo">Django·internals</a></p>
1981 ··</div>1982 ··</div>
1982 <search·id="searchbox"·style="display:·none"·role="search">1983 <search·id="searchbox"·style="display:·none"·role="search">
1983 ··<h3·id="searchlabel">Quick·search</h3>1984 ··<h3·id="searchlabel">Ricerca·veloce</h3>
1984 ····<div·class="searchformwrapper">1985 ····<div·class="searchformwrapper">
1985 ····<form·class="search"·action="../search.html"·method="get">1986 ····<form·class="search"·action="../search.html"·method="get">
1986 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>1987 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
1987 ······<input·type="submit"·value="Go"·/>1988 ······<input·type="submit"·value="Vai"·/>
1988 ····</form>1989 ····</form>
Max diff block lines reached; 353/10145 bytes (3.48%) of diff not shown.
7.43 KB
html2text {}
Max HTML report size reached
4.42 KB
./usr/share/doc/python-django-doc/html/search.html
    
Offset 1, 24 lines modifiedOffset 1, 25 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="./">2 <html·lang="it"·data-content_root="./">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/>
6 ····<title>Search·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Cerca·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="_static/default.css?v=bf4d74af"·/>
9 ····9 ····
10 ····<script·src="_static/documentation_options.js?v=c0732c08"></script>10 ····<script·src="_static/documentation_options.js?v=22dbfe03"></script>
11 ····<script·src="_static/doctools.js?v=9a2dae69"></script>11 ····<script·src="_static/doctools.js?v=9a2dae69"></script>
12 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>12 ····<script·src="_static/sphinx_highlight.js?v=dc90522c"></script>
 13 ····<script·src="_static/translations.js?v=da26b4cc"></script>
13 ····<script·src="_static/searchtools.js"></script>14 ····<script·src="_static/searchtools.js"></script>
14 ····<script·src="_static/language_data.js"></script>15 ····<script·src="_static/language_data.js"></script>
15 ····<link·rel="index"·title="Index"·href="genindex.html"·/>16 ····<link·rel="index"·title="Indice"·href="genindex.html"·/>
16 ····<link·rel="search"·title="Search"·href="#"·/>17 ····<link·rel="search"·title="Cerca"·href="#"·/>
17 ····<script·src="searchindex.js"·defer="defer"></script>18 ····<script·src="searchindex.js"·defer="defer"></script>
18 ····<meta·name="robots"·content="noindex"·/>19 ····<meta·name="robots"·content="noindex"·/>
19 ····20 ····
  
  
  
20 ·21 ·
Offset 57, 51 lines modifiedOffset 58, 51 lines modified
  
  
57 ··</head><body>58 ··</head><body>
  
58 ····<div·class="document">59 ····<div·class="document">
59 ··<div·id="custom-doc"·class="">60 ··<div·id="custom-doc"·class="">
60 ····<div·id="hd">61 ····<div·id="hd">
61 ······<h1><a·href="index.html">Django·4.2.16·documentation</a></h1>62 ······<h1><a·href="index.html">Documentazione·Django·4.2.16·</a></h1>
62 ······<div·id="global-nav">63 ······<div·id="global-nav">
63 ········<a·title="Home·page"·href="index.html">Home</a>··|64 ········<a·title="Home·page"·href="index.html">Home</a>··|
64 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|65 ········<a·title="Table·of·contents"·href="contents.html">Table·of·contents</a>··|
65 ········<a·title="Global·index"·href="genindex.html">Index</a>··|66 ········<a·title="Global·index"·href="genindex.html">Index</a>··|
66 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>67 ········<a·title="Module·index"·href="py-modindex.html">Modules</a>
67 ······</div>68 ······</div>
68 ······<div·class="nav">69 ······<div·class="nav">
69 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a></div>70 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a></div>
70 ····</div>71 ····</div>
  
71 ····<div·id="bd">72 ····<div·id="bd">
72 ······<div·id="yui-main">73 ······<div·id="yui-main">
73 ········<div·class="yui-b">74 ········<div·class="yui-b">
74 ··········<div·class="yui-g"·id="search">75 ··········<div·class="yui-g"·id="search">
75 ············76 ············
76 ··<h1·id="search-documentation">Search</h1>77 ··<h1·id="search-documentation">Cerca</h1>
77 ··78 ··
78 ··<noscript>79 ··<noscript>
79 ··<div·class="admonition·warning">80 ··<div·class="admonition·warning">
80 ··<p>81 ··<p>
81 ····Please·activate·JavaScript·to·enable·the·search 
82 ····functionality.82 ····Attiva·JavaScript·per·abilitare·la·funzione⏎
 83 di·ricerca.
83 ··</p>84 ··</p>
84 ··</div>85 ··</div>
85 ··</noscript>86 ··</noscript>
86 ··87 ··
87 ··88 ··
88 ··<p>89 ··<p>
89 ····Searching·for·multiple·words·only·shows·matches·that·contain90 ····Searching·for·multiple·words·only·shows·matches·that·contain
90 ····all·words.91 ····all·words.
91 ··</p>92 ··</p>
92 ··93 ··
93 ··94 ··
94 ··<form·action=""·method="get">95 ··<form·action=""·method="get">
95 ····<input·type="text"·name="q"·aria-labelledby="search-documentation"·value=""·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>96 ····<input·type="text"·name="q"·aria-labelledby="search-documentation"·value=""·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
96 ····<input·type="submit"·value="search"·/>97 ····<input·type="submit"·value="cerca"·/>
97 ····<span·id="search-progress"·style="padding-left:·10px"></span>98 ····<span·id="search-progress"·style="padding-left:·10px"></span>
98 ··</form>99 ··</form>
99 ··100 ··
100 ··101 ··
101 ··<div·id="search-results"></div>102 ··<div·id="search-results"></div>
102 ··103 ··
  
Offset 109, 15 lines modifiedOffset 110, 15 lines modified
109 ········</div>110 ········</div>
110 ······</div>111 ······</div>
111 ······112 ······
112 ····</div>113 ····</div>
  
113 ····<div·id="ft">114 ····<div·id="ft">
114 ······<div·class="nav">115 ······<div·class="nav">
115 ····<a·title="Django·4.2.16·documentation"·href="index.html"·accesskey="U">up</a></div>116 ····<a·title="Documentazione·Django·4.2.16·"·href="index.html"·accesskey="U">up</a></div>
116 ····</div>117 ····</div>
117 ··</div>118 ··</div>
  
118 ······<div·class="clearer"></div>119 ······<div·class="clearer"></div>
119 ····</div>120 ····</div>
120 ··</body>121 ··</body>
121 </html>122 </html>
45.0 B
encoding
    
Offset 1, 1 lines modifiedOffset 1, 1 lines modified
1 us-ascii1 utf-8
884 B
html2text {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6_.·_.d.d_.o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.t.t_.i.i_.o.o_.n.n·*\x8**\x8**\x8**\x8**\x8**\x8*1 *\x8**\x8**\x8**\x8**\x8**\x8*·_\x8D\x8D_\x8o.o_.c.c_.u.u_.m.m_.e.e_.n.n_.t.t_.a.a_.z.z_.i.i_.o.o_.n.n_.e.e_.·_.D.D_.j.j_.a.a_.n.n_.g.g_.o.o_.·_.4.4_...._.2.2_...._.1.1_.6.6·*\x8**\x8**\x8**\x8**\x8**\x8*
2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s2 _\x8H_\x8o_\x8m_\x8e·|·_\x8T_\x8a_\x8b_\x8l_\x8e_\x8·_\x8o_\x8f_\x8·_\x8c_\x8o_\x8n_\x8t_\x8e_\x8n_\x8t_\x8s·|·_\x8I_\x8n_\x8d_\x8e_\x8x·|·_\x8M_\x8o_\x8d_\x8u_\x8l_\x8e_\x8s
3 _\x8u_\x8p3 _\x8u_\x8p
4 *\x8**\x8**\x8**\x8**\x8**\x8*·S.Se.ea.ar.rc.ch.h·*\x8**\x8**\x8**\x8**\x8**\x8*4 *\x8**\x8**\x8**\x8**\x8**\x8*·C.Ce.er.rc.ca.a·*\x8**\x8**\x8**\x8**\x8**\x8*
5 Please·activate·JavaScript·to·enable·the·search·functionality.5 Attiva·JavaScript·per·abilitare·la·funzione⏎·di·ricerca.
6 Searching·for·multiple·words·only·shows·matches·that·contain·all·words.6 Searching·for·multiple·words·only·shows·matches·that·contain·all·words.
7 [q···················][search]7 [q···················][cerca]
8 _\x8u_\x8p8 _\x8u_\x8p
2.45 MB
./usr/share/doc/python-django-doc/html/searchindex.js
2.45 MB
js-beautify {}
Max HTML report size reached
31.8 KB
./usr/share/doc/python-django-doc/html/topics/async.html
    
Offset 1, 23 lines modifiedOffset 1, 24 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Asynchronous·support·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Asynchronous·support·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How-to·guides"·href="../howto/index.html"·/>15 ····<link·rel="next"·title="«How-to»·guides"·href="../howto/index.html"·/>
15 ····<link·rel="prev"·title="External·packages"·href="external-packages.html"·/>16 ····<link·rel="prev"·title="External·packages"·href="external-packages.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
18 <script>19 <script>
Offset 53, 37 lines modifiedOffset 54, 37 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="external-packages.html"·title="External·packages">previous</a>67 ····&laquo;·<a·href="external-packages.html"·title="External·packages">previous</a>
67 ·····|68 ·····|
68 ····<a·href="index.html"·title="Using·Django"·accesskey="U">up</a>69 ····<a·href="index.html"·title="Using·Django"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="../howto/index.html"·title="How-to·guides">next</a>·&raquo;</div>71 ····<a·href="../howto/index.html"·title="«How-to»·guides">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
75 ··········<div·class="yui-g"·id="topics-async">76 ··········<div·class="yui-g"·id="topics-async">
76 ············77 ············
77 ··<section·id="s-asynchronous-support">78 ··<section·id="s-asynchronous-support">
78 <span·id="asynchronous-support"></span><h1>Asynchronous·support<a·class="headerlink"·href="#asynchronous-support"·title="Link·to·this·heading">¶</a></h1>79 <span·id="asynchronous-support"></span><h1>Asynchronous·support<a·class="headerlink"·href="#asynchronous-support"·title="Link·to·this·heading">¶</a></h1>
79 <p>Django·has·support·for·writing·asynchronous·(async)·views,·along·with·an80 <p>Django·has·support·for·writing·asynchronous·(«async»)·views,·along·with·an
80 entirely·async-enabled·request·stack·if·you·are·running·under81 entirely·async-enabled·request·stack·if·you·are·running·under
81 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">ASGI</span></a>.·Async·views·will·still·work·under82 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">ASGI</span></a>.·Async·views·will·still·work·under
82 WSGI,·but·with·performance·penalties,·and·without·the·ability·to·have·efficient83 WSGI,·but·with·performance·penalties,·and·without·the·ability·to·have·efficient
83 long-running·requests.</p>84 long-running·requests.</p>
84 <p>We’re·still·working·on·async·support·for·the·ORM·and·other·parts·of·Django.85 <p>We’re·still·working·on·async·support·for·the·ORM·and·other·parts·of·Django.
85 You·can·expect·to·see·this·in·future·releases.·For·now,·you·can·use·the86 You·can·expect·to·see·this·in·future·releases.·For·now,·you·can·use·the
86 <a·class="reference·internal"·href="#asgiref.sync.sync_to_async"·title="asgiref.sync.sync_to_async"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sync_to_async()</span></code></a>·adapter·to·interact·with·the·sync·parts·of·Django.87 <a·class="reference·internal"·href="#asgiref.sync.sync_to_async"·title="asgiref.sync.sync_to_async"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sync_to_async()</span></code></a>·adapter·to·interact·with·the·sync·parts·of·Django.
Offset 94, 38 lines modifiedOffset 95, 38 lines modified
94 <p>Any·view·can·be·declared·async·by·making·the·callable·part·of·it·return·a95 <p>Any·view·can·be·declared·async·by·making·the·callable·part·of·it·return·a
95 coroutine·-·commonly,·this·is·done·using·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>.·For·a·function-based96 coroutine·-·commonly,·this·is·done·using·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>.·For·a·function-based
96 view,·this·means·declaring·the·whole·view·using·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>.·For·a97 view,·this·means·declaring·the·whole·view·using·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>.·For·a
97 class-based·view,·this·means·declaring·the·HTTP·method·handlers,·such·as98 class-based·view,·this·means·declaring·the·HTTP·method·handlers,·such·as
98 <code·class="docutils·literal·notranslate"><span·class="pre">get()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">post()</span></code>·as·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>·(not·its·<code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>,·or99 <code·class="docutils·literal·notranslate"><span·class="pre">get()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">post()</span></code>·as·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>·(not·its·<code·class="docutils·literal·notranslate"><span·class="pre">__init__()</span></code>,·or
99 <code·class="docutils·literal·notranslate"><span·class="pre">as_view()</span></code>).</p>100 <code·class="docutils·literal·notranslate"><span·class="pre">as_view()</span></code>).</p>
100 <div·class="admonition·note">101 <div·class="admonition·note">
101 <p·class="admonition-title">Note</p>102 <p·class="admonition-title">Nota</p>
102 <p>Django·uses·<code·class="docutils·literal·notranslate"><span·class="pre">asgiref.sync.iscoroutinefunction</span></code>·to·test·if·your·view·is103 <p>Django·uses·<code·class="docutils·literal·notranslate"><span·class="pre">asgiref.sync.iscoroutinefunction</span></code>·to·test·if·your·view·is
103 asynchronous·or·not.·If·you·implement·your·own·method·of·returning·a104 asynchronous·or·not.·If·you·implement·your·own·method·of·returning·a
104 coroutine,·ensure·you·use·<code·class="docutils·literal·notranslate"><span·class="pre">asgiref.sync.markcoroutinefunction</span></code>·so·this105 coroutine,·ensure·you·use·<code·class="docutils·literal·notranslate"><span·class="pre">asgiref.sync.markcoroutinefunction</span></code>·so·this
105 function·returns·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>106 function·returns·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.</p>
106 </div>107 </div>
107 <p>Under·a·WSGI·server,·async·views·will·run·in·their·own,·one-off·event·loop.108 <p>Under·a·WSGI·server,·async·views·will·run·in·their·own,·one-off·event·loop.
108 This·means·you·can·use·async·features,·like·concurrent·async·HTTP·requests,109 This·means·you·can·use·async·features,·like·concurrent·async·HTTP·requests,
109 without·any·issues,·but·you·will·not·get·the·benefits·of·an·async·stack.</p>110 without·any·issues,·but·you·will·not·get·the·benefits·of·an·async·stack.</p>
110 <p>The·main·benefits·are·the·ability·to·service·hundreds·of·connections·without111 <p>The·main·benefits·are·the·ability·to·service·hundreds·of·connections·without
111 using·Python·threads.·This·allows·you·to·use·slow·streaming,·long-polling,·and112 using·Python·threads.·This·allows·you·to·use·slow·streaming,·long-polling,·and
112 other·exciting·response·types.</p>113 other·exciting·response·types.</p>
113 <p>If·you·want·to·use·these,·you·will·need·to·deploy·Django·using114 <p>If·you·want·to·use·these,·you·will·need·to·deploy·Django·using
114 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">ASGI</span></a>·instead.</p>115 <a·class="reference·internal"·href="../howto/deployment/asgi/index.html"><span·class="doc">ASGI</span></a>·instead.</p>
115 <div·class="admonition·warning">116 <div·class="admonition·warning">
116 <p·class="admonition-title">Warning</p>117 <p·class="admonition-title">Avvertimento</p>
117 <p>You·will·only·get·the·benefits·of·a·fully-asynchronous·request·stack·if·you118 <p>You·will·only·get·the·benefits·of·a·fully-asynchronous·request·stack·if·you
118 have·<em>no·synchronous·middleware</em>·loaded·into·your·site.·If·there·is·a·piece119 have·<em>no·synchronous·middleware</em>·loaded·into·your·site.·If·there·is·a·piece
119 of·synchronous·middleware,·then·Django·must·use·a·thread·per·request·to120 of·synchronous·middleware,·then·Django·must·use·a·thread·per·request·to
120 safely·emulate·a·synchronous·environment·for·it.</p>121 safely·emulate·a·synchronous·environment·for·it.</p>
121 <p>Middleware·can·be·built·to·support·<a·class="reference·internal"·href="http/middleware.html#async-middleware"><span·class="std·std-ref">both·sync·and·async</span></a>·contexts.·Some·of·Django’s·middleware·is·built·like122 <p>Middleware·can·be·built·to·support·<a·class="reference·internal"·href="http/middleware.html#async-middleware"><span·class="std·std-ref">both·sync·and·async</span></a>·contexts.·Some·of·Django’s·middleware·is·built·like
122 this,·but·not·all.·To·see·what·middleware·Django·has·to·adapt·for,·you·can123 this,·but·not·all.·To·see·what·middleware·Django·has·to·adapt·for,·you·can
123 turn·on·debug·logging·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.request</span></code>·logger·and·look·for·log124 turn·on·debug·logging·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">django.request</span></code>·logger·and·look·for·log
124 messages·about·<em>Asynchronous·handler·adapted·for·middleware·</em>.</p>125 messages·about·<em>«Asynchronous·handler·adapted·for·middleware·»</em>.</p>
125 </div>126 </div>
126 <p>In·both·ASGI·and·WSGI·mode,·you·can·still·safely·use·asynchronous·support·to127 <p>In·both·ASGI·and·WSGI·mode,·you·can·still·safely·use·asynchronous·support·to
127 run·code·concurrently·rather·than·serially.·This·is·especially·handy·when128 run·code·concurrently·rather·than·serially.·This·is·especially·handy·when
128 dealing·with·external·APIs·or·data·stores.</p>129 dealing·with·external·APIs·or·data·stores.</p>
129 <p>If·you·want·to·call·a·part·of·Django·that·is·still·synchronous,·you·will·need130 <p>If·you·want·to·call·a·part·of·Django·that·is·still·synchronous,·you·will·need
130 to·wrap·it·in·a·<a·class="reference·internal"·href="#asgiref.sync.sync_to_async"·title="asgiref.sync.sync_to_async"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sync_to_async()</span></code></a>·call.·For·example:</p>131 to·wrap·it·in·a·<a·class="reference·internal"·href="#asgiref.sync.sync_to_async"·title="asgiref.sync.sync_to_async"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">sync_to_async()</span></code></a>·call.·For·example:</p>
131 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">asgiref.sync</span>·<span·class="kn">import</span>·<span·class="n">sync_to_async</span>132 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">asgiref.sync</span>·<span·class="kn">import</span>·<span·class="n">sync_to_async</span>
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 <dl·class="std·envvar">200 <dl·class="std·envvar">
200 <dt·class="sig·sig-object·std"·id="envvar-DJANGO_ALLOW_ASYNC_UNSAFE">201 <dt·class="sig·sig-object·std"·id="envvar-DJANGO_ALLOW_ASYNC_UNSAFE">
201 <span·class="sig-name·descname"><span·class="pre">DJANGO_ALLOW_ASYNC_UNSAFE</span></span><a·class="headerlink"·href="#envvar-DJANGO_ALLOW_ASYNC_UNSAFE"·title="Link·to·this·definition">¶</a></dt>202 <span·class="sig-name·descname"><span·class="pre">DJANGO_ALLOW_ASYNC_UNSAFE</span></span><a·class="headerlink"·href="#envvar-DJANGO_ALLOW_ASYNC_UNSAFE"·title="Link·to·this·definition">¶</a></dt>
202 <dd></dd></dl>203 <dd></dd></dl>
  
203 <p>Certain·key·parts·of·Django·are·not·able·to·operate·safely·in·an·async204 <p>Certain·key·parts·of·Django·are·not·able·to·operate·safely·in·an·async
204 environment,·as·they·have·global·state·that·is·not·coroutine-aware.·These·parts205 environment,·as·they·have·global·state·that·is·not·coroutine-aware.·These·parts
205 of·Django·are·classified·as·async-unsafe,·and·are·protected·from·execution·in206 of·Django·are·classified·as·«async-unsafe»,·and·are·protected·from·execution·in
206 an·async·environment.·The·ORM·is·the·main·example,·but·there·are·other·parts207 an·async·environment.·The·ORM·is·the·main·example,·but·there·are·other·parts
207 that·are·also·protected·in·this·way.</p>208 that·are·also·protected·in·this·way.</p>
208 <p>If·you·try·to·run·any·of·these·parts·from·a·thread·where·there·is·a·<em>running209 <p>If·you·try·to·run·any·of·these·parts·from·a·thread·where·there·is·a·<em>running
209 event·loop</em>,·you·will·get·a210 event·loop</em>,·you·will·get·a
210 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SynchronousOnlyOperation"·title="django.core.exceptions.SynchronousOnlyOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">SynchronousOnlyOperation</span></code></a>·error.·Note·that·you211 <a·class="reference·internal"·href="../ref/exceptions.html#django.core.exceptions.SynchronousOnlyOperation"·title="django.core.exceptions.SynchronousOnlyOperation"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">SynchronousOnlyOperation</span></code></a>·error.·Note·that·you
211 don’t·have·to·be·inside·an·async·function·directly·to·have·this·error·occur.·If212 don’t·have·to·be·inside·an·async·function·directly·to·have·this·error·occur.·If
212 you·have·called·a·sync·function·directly·from·an·async·function,213 you·have·called·a·sync·function·directly·from·an·async·function,
Offset 236, 15 lines modifiedOffset 237, 15 lines modified
236 </div>237 </div>
237 <p>If·you’re·in·an·environment·other·than·IPython·(or·you·can’t·turn·off238 <p>If·you’re·in·an·environment·other·than·IPython·(or·you·can’t·turn·off
238 <code·class="docutils·literal·notranslate"><span·class="pre">autoawait</span></code>·in·IPython·for·some·reason),·you·are·<em>certain</em>·there·is·no·chance239 <code·class="docutils·literal·notranslate"><span·class="pre">autoawait</span></code>·in·IPython·for·some·reason),·you·are·<em>certain</em>·there·is·no·chance
239 of·your·code·being·run·concurrently,·and·you·<em>absolutely</em>·need·to·run·your·sync240 of·your·code·being·run·concurrently,·and·you·<em>absolutely</em>·need·to·run·your·sync
240 code·from·an·async·context,·then·you·can·disable·the·warning·by·setting·the241 code·from·an·async·context,·then·you·can·disable·the·warning·by·setting·the
241 <span·class="target"·id="index-0"></span><a·class="reference·internal"·href="#envvar-DJANGO_ALLOW_ASYNC_UNSAFE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_ALLOW_ASYNC_UNSAFE</span></code></a>·environment·variable·to·any·value.</p>242 <span·class="target"·id="index-0"></span><a·class="reference·internal"·href="#envvar-DJANGO_ALLOW_ASYNC_UNSAFE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_ALLOW_ASYNC_UNSAFE</span></code></a>·environment·variable·to·any·value.</p>
242 <div·class="admonition·warning">243 <div·class="admonition·warning">
243 <p·class="admonition-title">Warning</p>244 <p·class="admonition-title">Avvertimento</p>
244 <p>If·you·enable·this·option·and·there·is·concurrent·access·to·the245 <p>If·you·enable·this·option·and·there·is·concurrent·access·to·the
Max diff block lines reached; 10501/20546 bytes (51.11%) of diff not shown.
11.7 KB
html2text {}
Max HTML report size reached
25.4 KB
./usr/share/doc/python-django-doc/html/topics/auth/customizing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Customizing·authentication·in·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Customizing·authentication·in·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Django’s·cache·framework"·href="../cache.html"·/>15 ····<link·rel="next"·title="Django’s·cache·framework"·href="../cache.html"·/>
15 ····<link·rel="prev"·title="Password·management·in·Django"·href="passwords.html"·/>16 ····<link·rel="prev"·title="Password·management·in·Django"·href="passwords.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 104, 15 lines modifiedOffset 105, 15 lines modified
104 plug·in·other·authentication·sources.·You·can·override·Django’s·default105 plug·in·other·authentication·sources.·You·can·override·Django’s·default
105 database-based·scheme,·or·you·can·use·the·default·system·in·tandem·with·other106 database-based·scheme,·or·you·can·use·the·default·system·in·tandem·with·other
106 systems.</p>107 systems.</p>
107 <p>See·the·<a·class="reference·internal"·href="../../ref/contrib/auth.html#authentication-backends-reference"><span·class="std·std-ref">authentication·backend·reference</span></a>·for·information·on·the·authentication108 <p>See·the·<a·class="reference·internal"·href="../../ref/contrib/auth.html#authentication-backends-reference"><span·class="std·std-ref">authentication·backend·reference</span></a>·for·information·on·the·authentication
108 backends·included·with·Django.</p>109 backends·included·with·Django.</p>
109 <section·id="s-specifying-authentication-backends">110 <section·id="s-specifying-authentication-backends">
110 <span·id="specifying-authentication-backends"></span><h3>Specifying·authentication·backends<a·class="headerlink"·href="#specifying-authentication-backends"·title="Link·to·this·heading">¶</a></h3>111 <span·id="specifying-authentication-backends"></span><h3>Specifying·authentication·backends<a·class="headerlink"·href="#specifying-authentication-backends"·title="Link·to·this·heading">¶</a></h3>
111 <p>Behind·the·scenes,·Django·maintains·a·list·of·authentication·backends·that·it112 <p>Behind·the·scenes,·Django·maintains·a·list·of·«authentication·backends»·that·it
112 checks·for·authentication.·When·somebody·calls113 checks·for·authentication.·When·somebody·calls
113 <a·class="reference·internal"·href="default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.contrib.auth.authenticate()</span></code></a>··as·described·in·<a·class="reference·internal"·href="default.html#how-to-log-a-user-in"><span·class="std·std-ref">How·to·log114 <a·class="reference·internal"·href="default.html#django.contrib.auth.authenticate"·title="django.contrib.auth.authenticate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.contrib.auth.authenticate()</span></code></a>··as·described·in·<a·class="reference·internal"·href="default.html#how-to-log-a-user-in"><span·class="std·std-ref">How·to·log
114 a·user·in</span></a>··Django·tries·authenticating·across115 a·user·in</span></a>··Django·tries·authenticating·across
115 all·of·its·authentication·backends.·If·the·first·authentication·method·fails,116 all·of·its·authentication·backends.·If·the·first·authentication·method·fails,
116 Django·tries·the·second·one,·and·so·on,·until·all·backends·have·been·attempted.</p>117 Django·tries·the·second·one,·and·so·on,·until·all·backends·have·been·attempted.</p>
117 <p>The·list·of·authentication·backends·to·use·is·specified·in·the118 <p>The·list·of·authentication·backends·to·use·is·specified·in·the
118 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>·setting.·This·should·be·a·list·of·Python119 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>·setting.·This·should·be·a·list·of·Python
Offset 130, 15 lines modifiedOffset 131, 15 lines modified
130 <p>The·order·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>·matters,·so·if·the·same131 <p>The·order·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>·matters,·so·if·the·same
131 username·and·password·is·valid·in·multiple·backends,·Django·will·stop132 username·and·password·is·valid·in·multiple·backends,·Django·will·stop
132 processing·at·the·first·positive·match.</p>133 processing·at·the·first·positive·match.</p>
133 <p>If·a·backend·raises·a·<a·class="reference·internal"·href="../../ref/exceptions.html#django.core.exceptions.PermissionDenied"·title="django.core.exceptions.PermissionDenied"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PermissionDenied</span></code></a>134 <p>If·a·backend·raises·a·<a·class="reference·internal"·href="../../ref/exceptions.html#django.core.exceptions.PermissionDenied"·title="django.core.exceptions.PermissionDenied"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">PermissionDenied</span></code></a>
134 exception,·authentication·will·immediately·fail.·Django·won’t·check·the135 exception,·authentication·will·immediately·fail.·Django·won’t·check·the
135 backends·that·follow.</p>136 backends·that·follow.</p>
136 <div·class="admonition·note">137 <div·class="admonition·note">
137 <p·class="admonition-title">Note</p>138 <p·class="admonition-title">Nota</p>
138 <p>Once·a·user·has·authenticated,·Django·stores·which·backend·was·used·to139 <p>Once·a·user·has·authenticated,·Django·stores·which·backend·was·used·to
139 authenticate·the·user·in·the·user’s·session,·and·reuses·the·same·backend140 authenticate·the·user·in·the·user’s·session,·and·reuses·the·same·backend
140 for·the·duration·of·that·session·whenever·access·to·the·currently141 for·the·duration·of·that·session·whenever·access·to·the·currently
141 authenticated·user·is·needed.·This·effectively·means·that·authentication142 authenticated·user·is·needed.·This·effectively·means·that·authentication
142 sources·are·cached·on·a·per-session·basis,·so·if·you·change143 sources·are·cached·on·a·per-session·basis,·so·if·you·change
143 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>,·you’ll·need·to·clear·out·session·data·if144 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTHENTICATION_BACKENDS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTHENTICATION_BACKENDS</span></code></a>,·you’ll·need·to·clear·out·session·data·if
144 you·need·to·force·users·to·re-authenticate·using·different·methods.·A145 you·need·to·force·users·to·re-authenticate·using·different·methods.·A
Offset 473, 15 lines modifiedOffset 474, 15 lines modified
473 <span·id="referencing-the-user-model"></span><h3>Referencing·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model<a·class="headerlink"·href="#referencing-the-user-model"·title="Link·to·this·heading">¶</a></h3>474 <span·id="referencing-the-user-model"></span><h3>Referencing·the·<code·class="docutils·literal·notranslate"><span·class="pre">User</span></code>·model<a·class="headerlink"·href="#referencing-the-user-model"·title="Link·to·this·heading">¶</a></h3>
474 <p>If·you·reference·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·directly·(for475 <p>If·you·reference·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·directly·(for
475 example,·by·referring·to·it·in·a·foreign·key),·your·code·will·not·work·in476 example,·by·referring·to·it·in·a·foreign·key),·your·code·will·not·work·in
476 projects·where·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>·setting·has·been·changed·to·a477 projects·where·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>·setting·has·been·changed·to·a
477 different·user·model.</p>478 different·user·model.</p>
478 <dl·class="py·function">479 <dl·class="py·function">
479 <dt·class="sig·sig-object·py"·id="django.contrib.auth.get_user_model">480 <dt·class="sig·sig-object·py"·id="django.contrib.auth.get_user_model">
480 <span·class="sig-name·descname"><span·class="pre">get_user_model</span></span>()<a·class="reference·internal"·href="../../_modules/django/contrib/auth.html#get_user_model"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.contrib.auth.get_user_model"·title="Link·to·this·definition">¶</a></dt>481 <span·class="sig-name·descname"><span·class="pre">get_user_model</span></span>()<a·class="reference·internal"·href="../../_modules/django/contrib/auth.html#get_user_model"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.contrib.auth.get_user_model"·title="Link·to·this·definition">¶</a></dt>
481 <dd><p>Instead·of·referring·to·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·directly,482 <dd><p>Instead·of·referring·to·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·directly,
482 you·should·reference·the·user·model·using483 you·should·reference·the·user·model·using
483 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.get_user_model()</span></code>.·This·method·will·return·the484 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.auth.get_user_model()</span></code>.·This·method·will·return·the
484 currently·active·user·model··the·custom·user·model·if·one·is·specified,·or485 currently·active·user·model··the·custom·user·model·if·one·is·specified,·or
485 <a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·otherwise.</p>486 <a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User"·title="django.contrib.auth.models.User"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">User</span></code></a>·otherwise.</p>
486 <p>When·you·define·a·foreign·key·or·many-to-many·relations·to·the·user·model,487 <p>When·you·define·a·foreign·key·or·many-to-many·relations·to·the·user·model,
487 you·should·specify·the·custom·model·using·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>488 you·should·specify·the·custom·model·using·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-AUTH_USER_MODEL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">AUTH_USER_MODEL</span></code></a>
Offset 608, 26 lines modifiedOffset 609, 26 lines modified
608 ····<span·class="n">date_of_birth</span>·<span·class="o">=</span>·<span·class="n">models</span><span·class="o">.</span><span·class="n">DateField</span><span·class="p">()</span>609 ····<span·class="n">date_of_birth</span>·<span·class="o">=</span>·<span·class="n">models</span><span·class="o">.</span><span·class="n">DateField</span><span·class="p">()</span>
609 ····<span·class="n">height</span>·<span·class="o">=</span>·<span·class="n">models</span><span·class="o">.</span><span·class="n">FloatField</span><span·class="p">()</span>610 ····<span·class="n">height</span>·<span·class="o">=</span>·<span·class="n">models</span><span·class="o">.</span><span·class="n">FloatField</span><span·class="p">()</span>
610 ····<span·class="o">...</span>611 ····<span·class="o">...</span>
611 ····<span·class="n">REQUIRED_FIELDS</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;date_of_birth&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;height&quot;</span><span·class="p">]</span>612 ····<span·class="n">REQUIRED_FIELDS</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;date_of_birth&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;height&quot;</span><span·class="p">]</span>
612 </pre></div>613 </pre></div>
613 </div>614 </div>
614 <div·class="admonition·note">615 <div·class="admonition·note">
615 <p·class="admonition-title">Note</p>616 <p·class="admonition-title">Nota</p>
616 <p><code·class="docutils·literal·notranslate"><span·class="pre">REQUIRED_FIELDS</span></code>·must·contain·all·required·fields·on·your·user617 <p><code·class="docutils·literal·notranslate"><span·class="pre">REQUIRED_FIELDS</span></code>·must·contain·all·required·fields·on·your·user
617 model,·but·should·<em>not</em>·contain·the·<code·class="docutils·literal·notranslate"><span·class="pre">USERNAME_FIELD</span></code>·or618 model,·but·should·<em>not</em>·contain·the·<code·class="docutils·literal·notranslate"><span·class="pre">USERNAME_FIELD</span></code>·or
618 <code·class="docutils·literal·notranslate"><span·class="pre">password</span></code>·as·these·fields·will·always·be·prompted·for.</p>619 <code·class="docutils·literal·notranslate"><span·class="pre">password</span></code>·as·these·fields·will·always·be·prompted·for.</p>
619 </div>620 </div>
620 </dd></dl>621 </dd></dl>
  
621 <dl·class="py·attribute">622 <dl·class="py·attribute">
622 <dt·class="sig·sig-object·py"·id="django.contrib.auth.models.CustomUser.is_active">623 <dt·class="sig·sig-object·py"·id="django.contrib.auth.models.CustomUser.is_active">
623 <span·class="sig-name·descname"><span·class="pre">is_active</span></span><a·class="headerlink"·href="#django.contrib.auth.models.CustomUser.is_active"·title="Link·to·this·definition">¶</a></dt>624 <span·class="sig-name·descname"><span·class="pre">is_active</span></span><a·class="headerlink"·href="#django.contrib.auth.models.CustomUser.is_active"·title="Link·to·this·definition">¶</a></dt>
624 <dd><p>A·boolean·attribute·that·indicates·whether·the·user·is·considered625 <dd><p>A·boolean·attribute·that·indicates·whether·the·user·is·considered
625 active.··This·attribute·is·provided·as·an·attribute·on626 «active».··This·attribute·is·provided·as·an·attribute·on
626 <code·class="docutils·literal·notranslate"><span·class="pre">AbstractBaseUser</span></code>·defaulting·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·How·you·choose·to627 <code·class="docutils·literal·notranslate"><span·class="pre">AbstractBaseUser</span></code>·defaulting·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·How·you·choose·to
627 implement·it·will·depend·on·the·details·of·your·chosen·auth·backends.628 implement·it·will·depend·on·the·details·of·your·chosen·auth·backends.
628 See·the·documentation·of·the·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active</span>·<span·class="pre">attribute</span>·<span·class="pre">on</span>·<span·class="pre">the</span>·<span·class="pre">built-in</span>629 See·the·documentation·of·the·<a·class="reference·internal"·href="../../ref/contrib/auth.html#django.contrib.auth.models.User.is_active"·title="django.contrib.auth.models.User.is_active"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_active</span>·<span·class="pre">attribute</span>·<span·class="pre">on</span>·<span·class="pre">the</span>·<span·class="pre">built-in</span>
629 <span·class="pre">user</span>·<span·class="pre">model</span></code></a>·for·details.</p>630 <span·class="pre">user</span>·<span·class="pre">model</span></code></a>·for·details.</p>
630 </dd></dl>631 </dd></dl>
  
631 <dl·class="py·method">632 <dl·class="py·method">
Offset 850, 15 lines modifiedOffset 851, 15 lines modified
850 nominated·by·<code·class="docutils·literal·notranslate"><span·class="pre">USERNAME_FIELD</span></code>.</p>851 nominated·by·<code·class="docutils·literal·notranslate"><span·class="pre">USERNAME_FIELD</span></code>.</p>
851 </dd></dl>852 </dd></dl>
  
852 <dl·class="py·method">853 <dl·class="py·method">
853 <dt·class="sig·sig-object·py"·id="django.contrib.auth.models.BaseUserManager.make_random_password">854 <dt·class="sig·sig-object·py"·id="django.contrib.auth.models.BaseUserManager.make_random_password">
854 <span·class="sig-name·descname"><span·class="pre">make_random_password</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">length</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">10</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">allowed_chars</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'</span></span></em>)<a·class="headerlink"·href="#django.contrib.auth.models.BaseUserManager.make_random_password"·title="Link·to·this·definition">¶</a></dt>855 <span·class="sig-name·descname"><span·class="pre">make_random_password</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">length</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">10</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">allowed_chars</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'</span></span></em>)<a·class="headerlink"·href="#django.contrib.auth.models.BaseUserManager.make_random_password"·title="Link·to·this·definition">¶</a></dt>
855 <dd><div·class="deprecated">856 <dd><div·class="deprecated">
856 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.2.</span></p>857 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.2.</span></p>
857 </div>858 </div>
858 <p>Returns·a·random·password·with·the·given·length·and·given·string·of859 <p>Returns·a·random·password·with·the·given·length·and·given·string·of
859 allowed·characters.·Note·that·the·default·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">allowed_chars</span></code>860 allowed·characters.·Note·that·the·default·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">allowed_chars</span></code>
860 doesn’t·contain·letters·that·can·cause·user·confusion,·including:</p>861 doesn’t·contain·letters·that·can·cause·user·confusion,·including:</p>
Max diff block lines reached; 3660/16108 bytes (22.72%) of diff not shown.
9.55 KB
html2text {}
Max HTML report size reached
90.7 KB
./usr/share/doc/python-django-doc/html/topics/auth/default.html
Max HTML report size reached
6.16 KB
./usr/share/doc/python-django-doc/html/topics/auth/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>User·authentication·in·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>User·authentication·in·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Using·the·Django·authentication·system"·href="default.html"·/>15 ····<link·rel="next"·title="Using·the·Django·authentication·system"·href="default.html"·/>
15 ····<link·rel="prev"·title="Advanced·testing·topics"·href="../testing/advanced.html"·/>16 ····<link·rel="prev"·title="Advanced·testing·topics"·href="../testing/advanced.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 171, 37 lines modifiedOffset 172, 37 lines modified
171 <li><a·class="reference·internal"·href="#usage">Usage</a></li>172 <li><a·class="reference·internal"·href="#usage">Usage</a></li>
172 </ul>173 </ul>
173 </li>174 </li>
174 </ul>175 </ul>
  
175 ··</div>176 ··</div>
176 ··<div>177 ··<div>
177 ····<h4>Previous·topic</h4>178 ····<h4>Argomento·precedente</h4>
178 ····<p·class="topless"><a·href="../testing/advanced.html"179 ····<p·class="topless"><a·href="../testing/advanced.html"
179 ··························title="previous·chapter">Advanced·testing·topics</a></p>180 ··························title="capitolo·precedente">Advanced·testing·topics</a></p>
180 ··</div>181 ··</div>
181 ··<div>182 ··<div>
182 ····<h4>Next·topic</h4>183 ····<h4>Argomento·successivo</h4>
183 ····<p·class="topless"><a·href="default.html"184 ····<p·class="topless"><a·href="default.html"
184 ··························title="next·chapter">Using·the·Django·authentication·system</a></p>185 ··························title="capitolo·successivo">Using·the·Django·authentication·system</a></p>
185 ··</div>186 ··</div>
186 <search·id="searchbox"·style="display:·none"·role="search">187 <search·id="searchbox"·style="display:·none"·role="search">
187 ··<h3·id="searchlabel">Quick·search</h3>188 ··<h3·id="searchlabel">Ricerca·veloce</h3>
188 ····<div·class="searchformwrapper">189 ····<div·class="searchformwrapper">
189 ····<form·class="search"·action="../../search.html"·method="get">190 ····<form·class="search"·action="../../search.html"·method="get">
190 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>191 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
191 ······<input·type="submit"·value="Go"·/>192 ······<input·type="submit"·value="Vai"·/>
192 ····</form>193 ····</form>
193 ····</div>194 ····</div>
194 </search>195 </search>
195 <script>document.getElementById('searchbox').style.display·=·"block"</script>196 <script>document.getElementById('searchbox').style.display·=·"block"</script>
196 ········</div>197 ········</div>
197 ······</div>198 ······</div>
198 ··············<h3>Last·update:</h3>199 ··············<h3>Last·update:</h3>
199 ··············<p·class="topless">Sep·03,·2024</p>200 ··············<p·class="topless">set·03,·2024</p>
200 ··········</div>201 ··········</div>
201 ········202 ········
202 ······203 ······
203 ····</div>204 ····</div>
  
204 ····<div·id="ft">205 ····<div·id="ft">
205 ······<div·class="nav">206 ······<div·class="nav">
2.29 KB
html2text {}
Max HTML report size reached
54.6 KB
./usr/share/doc/python-django-doc/html/topics/auth/passwords.html
Max HTML report size reached
40.5 KB
./usr/share/doc/python-django-doc/html/topics/cache.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django’s·cache·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django’s·cache·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Conditional·View·Processing"·href="conditional-view-processing.html"·/>15 ····<link·rel="next"·title="Conditional·View·Processing"·href="conditional-view-processing.html"·/>
15 ····<link·rel="prev"·title="Customizing·authentication·in·Django"·href="auth/customizing.html"·/>16 ····<link·rel="prev"·title="Customizing·authentication·in·Django"·href="auth/customizing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 19 lines modifiedOffset 104, 19 lines modified
103 </pre></div>104 </pre></div>
104 </div>105 </div>
105 <p>Django·comes·with·a·robust·cache·system·that·lets·you·save·dynamic·pages·so106 <p>Django·comes·with·a·robust·cache·system·that·lets·you·save·dynamic·pages·so
106 they·don’t·have·to·be·calculated·for·each·request.·For·convenience,·Django107 they·don’t·have·to·be·calculated·for·each·request.·For·convenience,·Django
107 offers·different·levels·of·cache·granularity:·You·can·cache·the·output·of108 offers·different·levels·of·cache·granularity:·You·can·cache·the·output·of
108 specific·views,·you·can·cache·only·the·pieces·that·are·difficult·to·produce,109 specific·views,·you·can·cache·only·the·pieces·that·are·difficult·to·produce,
109 or·you·can·cache·your·entire·site.</p>110 or·you·can·cache·your·entire·site.</p>
110 <p>Django·also·works·well·with·downstream·caches,·such·as·<a·class="reference·external"·href="http://www.squid-cache.org/">Squid</a>·and·browser-based·caches.·These·are·the·types111 <p>Django·also·works·well·with·«downstream»·caches,·such·as·<a·class="reference·external"·href="http://www.squid-cache.org/">Squid</a>·and·browser-based·caches.·These·are·the·types
111 of·caches·that·you·don’t·directly·control·but·to·which·you·can·provide·hints112 of·caches·that·you·don’t·directly·control·but·to·which·you·can·provide·hints
112 (via·HTTP·headers)·about·which·parts·of·your·site·should·be·cached,·and·how.</p>113 (via·HTTP·headers)·about·which·parts·of·your·site·should·be·cached,·and·how.</p>
113 <div·class="admonition·seealso">114 <div·class="admonition·seealso">
114 <p·class="admonition-title">See·also</p>115 <p·class="admonition-title">Vedi·anche</p>
115 <p>The·<a·class="reference·internal"·href="../misc/design-philosophies.html#cache-design-philosophy"><span·class="std·std-ref">Cache·Framework·design·philosophy</span></a>116 <p>The·<a·class="reference·internal"·href="../misc/design-philosophies.html#cache-design-philosophy"><span·class="std·std-ref">Cache·Framework·design·philosophy</span></a>
116 explains·a·few·of·the·design·decisions·of·the·framework.</p>117 explains·a·few·of·the·design·decisions·of·the·framework.</p>
117 </div>118 </div>
118 <section·id="s-setting-up-the-cache">119 <section·id="s-setting-up-the-cache">
119 <span·id="s-id1"></span><span·id="setting-up-the-cache"></span><span·id="id1"></span><h2>Setting·up·the·cache<a·class="headerlink"·href="#setting-up-the-cache"·title="Link·to·this·heading">¶</a></h2>120 <span·id="s-id1"></span><span·id="setting-up-the-cache"></span><span·id="id1"></span><h2>Setting·up·the·cache<a·class="headerlink"·href="#setting-up-the-cache"·title="Link·to·this·heading">¶</a></h2>
120 <p>The·cache·system·requires·a·small·amount·of·setup.·Namely,·you·have·to·tell·it121 <p>The·cache·system·requires·a·small·amount·of·setup.·Namely,·you·have·to·tell·it
121 where·your·cached·data·should·live··whether·in·a·database,·on·the·filesystem122 where·your·cached·data·should·live··whether·in·a·database,·on·the·filesystem
Offset 387, 24 lines modifiedOffset 388, 24 lines modified
387 <p>Make·sure·the·directory·pointed-to·by·this·setting·either·exists·and·is388 <p>Make·sure·the·directory·pointed-to·by·this·setting·either·exists·and·is
388 readable·and·writable,·or·that·it·can·be·created·by·the·system·user·under·which389 readable·and·writable,·or·that·it·can·be·created·by·the·system·user·under·which
389 your·web·server·runs.·Continuing·the·above·example,·if·your·server·runs·as·the390 your·web·server·runs.·Continuing·the·above·example,·if·your·server·runs·as·the
390 user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>,·make·sure·the·directory·<code·class="docutils·literal·notranslate"><span·class="pre">/var/tmp/django_cache</span></code>·exists·and391 user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>,·make·sure·the·directory·<code·class="docutils·literal·notranslate"><span·class="pre">/var/tmp/django_cache</span></code>·exists·and
391 is·readable·and·writable·by·the·user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>,·or·that·it·can·be·created·by392 is·readable·and·writable·by·the·user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>,·or·that·it·can·be·created·by
392 the·user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>.</p>393 the·user·<code·class="docutils·literal·notranslate"><span·class="pre">apache</span></code>.</p>
393 <div·class="admonition·warning">394 <div·class="admonition·warning">
394 <p·class="admonition-title">Warning</p>395 <p·class="admonition-title">Avvertimento</p>
395 <p>When·the·cache·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-LOCATION"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LOCATION</span></code></a>·is·contained·within396 <p>When·the·cache·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-LOCATION"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">LOCATION</span></code></a>·is·contained·within
396 <a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATIC_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_ROOT</span></code></a>,·or397 <a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>,·<a·class="reference·internal"·href="../ref/settings.html#std-setting-STATIC_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATIC_ROOT</span></code></a>,·or
397 <a·class="reference·internal"·href="../ref/settings.html#std-setting-STATICFILES_FINDERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_FINDERS</span></code></a>,·sensitive·data·may·be·exposed.</p>398 <a·class="reference·internal"·href="../ref/settings.html#std-setting-STATICFILES_FINDERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">STATICFILES_FINDERS</span></code></a>,·sensitive·data·may·be·exposed.</p>
398 <p>An·attacker·who·gains·access·to·the·cache·file·can·not·only·falsify·HTML399 <p>An·attacker·who·gains·access·to·the·cache·file·can·not·only·falsify·HTML
399 content,·which·your·site·will·trust,·but·also·remotely·execute·arbitrary400 content,·which·your·site·will·trust,·but·also·remotely·execute·arbitrary
400 code,·as·the·data·is·serialized·using·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/pickle.html#module-pickle"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">pickle</span></code></a>.</p>401 code,·as·the·data·is·serialized·using·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/pickle.html#module-pickle"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">pickle</span></code></a>.</p>
401 </div>402 </div>
402 <div·class="admonition·warning">403 <div·class="admonition·warning">
403 <p·class="admonition-title">Warning</p>404 <p·class="admonition-title">Avvertimento</p>
404 <p>Filesystem·caching·may·become·slow·when·storing·a·large·number·of·files.·If405 <p>Filesystem·caching·may·become·slow·when·storing·a·large·number·of·files.·If
405 you·run·into·this·problem,·consider·using·a·different·caching·mechanism.406 you·run·into·this·problem,·consider·using·a·different·caching·mechanism.
406 You·can·also·subclass407 You·can·also·subclass
407 <a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/core/cache/backends/filebased.py">FileBasedCache</a>·and408 <a·class="extlink-source·reference·external"·href="https://github.com/django/django/blob/main/django/core/cache/backends/filebased.py">FileBasedCache</a>·and
408 improve·the·culling·strategy.</p>409 improve·the·culling·strategy.</p>
409 </div>410 </div>
410 </section>411 </section>
Offset 432, 15 lines modifiedOffset 433, 15 lines modified
432 <p>Note·that·each·process·will·have·its·own·private·cache·instance,·which·means·no433 <p>Note·that·each·process·will·have·its·own·private·cache·instance,·which·means·no
433 cross-process·caching·is·possible.·This·also·means·the·local·memory·cache·isn’t434 cross-process·caching·is·possible.·This·also·means·the·local·memory·cache·isn’t
434 particularly·memory-efficient,·so·it’s·probably·not·a·good·choice·for435 particularly·memory-efficient,·so·it’s·probably·not·a·good·choice·for
435 production·environments.·It’s·nice·for·development.</p>436 production·environments.·It’s·nice·for·development.</p>
436 </section>437 </section>
437 <section·id="s-dummy-caching-for-development">438 <section·id="s-dummy-caching-for-development">
438 <span·id="dummy-caching-for-development"></span><h3>Dummy·caching·(for·development)<a·class="headerlink"·href="#dummy-caching-for-development"·title="Link·to·this·heading">¶</a></h3>439 <span·id="dummy-caching-for-development"></span><h3>Dummy·caching·(for·development)<a·class="headerlink"·href="#dummy-caching-for-development"·title="Link·to·this·heading">¶</a></h3>
439 <p>Finally,·Django·comes·with·a·dummy·cache·that·doesn’t·actually·cache··it440 <p>Finally,·Django·comes·with·a·«dummy»·cache·that·doesn’t·actually·cache··it
440 just·implements·the·cache·interface·without·doing·anything.</p>441 just·implements·the·cache·interface·without·doing·anything.</p>
441 <p>This·is·useful·if·you·have·a·production·site·that·uses·heavy-duty·caching·in442 <p>This·is·useful·if·you·have·a·production·site·that·uses·heavy-duty·caching·in
442 various·places·but·a·development/test·environment·where·you·don’t·want·to·cache443 various·places·but·a·development/test·environment·where·you·don’t·want·to·cache
443 and·don’t·want·to·have·to·change·your·code·to·special-case·the·latter.·To444 and·don’t·want·to·have·to·change·your·code·to·special-case·the·latter.·To
444 activate·dummy·caching,·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-BACKEND"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">BACKEND</span></code></a>·like·so:</p>445 activate·dummy·caching,·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-BACKEND"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">BACKEND</span></code></a>·like·so:</p>
445 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">CACHES</span>·<span·class="o">=</span>·<span·class="p">{</span>446 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">CACHES</span>·<span·class="o">=</span>·<span·class="p">{</span>
446 ····<span·class="s2">&quot;default&quot;</span><span·class="p">:</span>·<span·class="p">{</span>447 ····<span·class="s2">&quot;default&quot;</span><span·class="p">:</span>·<span·class="p">{</span>
Offset 476, 15 lines modifiedOffset 477, 15 lines modified
476 behavior.·These·arguments·are·provided·as·additional·keys·in·the477 behavior.·These·arguments·are·provided·as·additional·keys·in·the
477 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CACHES</span></code></a>·setting.·Valid·arguments·are·as·follows:</p>478 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CACHES</span></code></a>·setting.·Valid·arguments·are·as·follows:</p>
478 <ul>479 <ul>
479 <li><p><a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-TIMEOUT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code></a>:·The·default·timeout,·in480 <li><p><a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-TIMEOUT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code></a>:·The·default·timeout,·in
480 seconds,·to·use·for·the·cache.·This·argument·defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">300</span></code>·seconds·(5·minutes).481 seconds,·to·use·for·the·cache.·This·argument·defaults·to·<code·class="docutils·literal·notranslate"><span·class="pre">300</span></code>·seconds·(5·minutes).
481 You·can·set·<code·class="docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·so·that,·by·default,·cache·keys·never482 You·can·set·<code·class="docutils·literal·notranslate"><span·class="pre">TIMEOUT</span></code>·to·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·so·that,·by·default,·cache·keys·never
482 expire.·A·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">0</span></code>·causes·keys·to·immediately·expire·(effectively483 expire.·A·value·of·<code·class="docutils·literal·notranslate"><span·class="pre">0</span></code>·causes·keys·to·immediately·expire·(effectively
483 don’t·cache).</p></li>484 «don’t·cache»).</p></li>
484 <li><p><a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-OPTIONS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">OPTIONS</span></code></a>:·Any·options·that·should·be485 <li><p><a·class="reference·internal"·href="../ref/settings.html#std-setting-CACHES-OPTIONS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">OPTIONS</span></code></a>:·Any·options·that·should·be
485 passed·to·the·cache·backend.·The·list·of·valid·options·will·vary486 passed·to·the·cache·backend.·The·list·of·valid·options·will·vary
486 with·each·backend,·and·cache·backends·backed·by·a·third-party·library487 with·each·backend,·and·cache·backends·backed·by·a·third-party·library
487 will·pass·their·options·directly·to·the·underlying·cache·library.</p>488 will·pass·their·options·directly·to·the·underlying·cache·library.</p>
488 <p>Cache·backends·that·implement·their·own·culling·strategy·(i.e.,489 <p>Cache·backends·that·implement·their·own·culling·strategy·(i.e.,
489 the·<code·class="docutils·literal·notranslate"><span·class="pre">locmem</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">filesystem</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">database</span></code>·backends)·will490 the·<code·class="docutils·literal·notranslate"><span·class="pre">locmem</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">filesystem</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">database</span></code>·backends)·will
490 honor·the·following·options:</p>491 honor·the·following·options:</p>
Offset 603, 17 lines modifiedOffset 604, 17 lines modified
603 ····<span·class="s2">&quot;django.middleware.cache.UpdateCacheMiddleware&quot;</span><span·class="p">,</span>604 ····<span·class="s2">&quot;django.middleware.cache.UpdateCacheMiddleware&quot;</span><span·class="p">,</span>
604 ····<span·class="s2">&quot;django.middleware.common.CommonMiddleware&quot;</span><span·class="p">,</span>605 ····<span·class="s2">&quot;django.middleware.common.CommonMiddleware&quot;</span><span·class="p">,</span>
605 ····<span·class="s2">&quot;django.middleware.cache.FetchFromCacheMiddleware&quot;</span><span·class="p">,</span>606 ····<span·class="s2">&quot;django.middleware.cache.FetchFromCacheMiddleware&quot;</span><span·class="p">,</span>
606 <span·class="p">]</span>607 <span·class="p">]</span>
607 </pre></div>608 </pre></div>
608 </div>609 </div>
609 <div·class="admonition·note">610 <div·class="admonition·note">
610 <p·class="admonition-title">Note</p>611 <p·class="admonition-title">Nota</p>
611 <p>No,·that’s·not·a·typo:·the·update·middleware·must·be·first·in·the·list,612 <p>No,·that’s·not·a·typo:·the·«update»·middleware·must·be·first·in·the·list,
612 and·the·fetch·middleware·must·be·last.·The·details·are·a·bit·obscure,·but613 and·the·«fetch»·middleware·must·be·last.·The·details·are·a·bit·obscure,·but
Max diff block lines reached; 14028/24952 bytes (56.22%) of diff not shown.
16.1 KB
html2text {}
Max HTML report size reached
8.23 KB
./usr/share/doc/python-django-doc/html/topics/checks.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>System·check·framework·&#8212;·Django·4.2.16·documentation</title>6 ····<title>System·check·framework·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="External·packages"·href="external-packages.html"·/>15 ····<link·rel="next"·title="External·packages"·href="external-packages.html"·/>
15 ····<link·rel="prev"·title="Signals"·href="signals.html"·/>16 ····<link·rel="prev"·title="Signals"·href="signals.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 166, 15 lines modifiedOffset 167, 15 lines modified
  
166 <span·class="nd">@register</span><span·class="p">(</span><span·class="n">Tags</span><span·class="o">.</span><span·class="n">compatibility</span><span·class="p">)</span>167 <span·class="nd">@register</span><span·class="p">(</span><span·class="n">Tags</span><span·class="o">.</span><span·class="n">compatibility</span><span·class="p">)</span>
167 <span·class="k">def</span>·<span·class="nf">my_check</span><span·class="p">(</span><span·class="n">app_configs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>168 <span·class="k">def</span>·<span·class="nf">my_check</span><span·class="p">(</span><span·class="n">app_configs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
168 ····<span·class="c1">#·...·perform·compatibility·checks·and·collect·errors</span>169 ····<span·class="c1">#·...·perform·compatibility·checks·and·collect·errors</span>
169 ····<span·class="k">return</span>·<span·class="n">errors</span>170 ····<span·class="k">return</span>·<span·class="n">errors</span>
170 </pre></div>171 </pre></div>
171 </div>172 </div>
172 <p>You·can·register·deployment·checks·that·are·only·relevant·to·a·production173 <p>You·can·register·«deployment·checks»·that·are·only·relevant·to·a·production
173 settings·file·like·this:</p>174 settings·file·like·this:</p>
174 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nd">@register</span><span·class="p">(</span><span·class="n">Tags</span><span·class="o">.</span><span·class="n">security</span><span·class="p">,</span>·<span·class="n">deploy</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>175 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="nd">@register</span><span·class="p">(</span><span·class="n">Tags</span><span·class="o">.</span><span·class="n">security</span><span·class="p">,</span>·<span·class="n">deploy</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>
175 <span·class="k">def</span>·<span·class="nf">my_check</span><span·class="p">(</span><span·class="n">app_configs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>176 <span·class="k">def</span>·<span·class="nf">my_check</span><span·class="p">(</span><span·class="n">app_configs</span><span·class="p">,</span>·<span·class="o">**</span><span·class="n">kwargs</span><span·class="p">):</span>
176 ····<span·class="o">...</span>177 ····<span·class="o">...</span>
177 </pre></div>178 </pre></div>
178 </div>179 </div>
179 <p>These·checks·will·only·be·run·if·the·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-check-deploy"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">check</span>·<span·class="pre">--deploy</span></code></a>·option·is·used.</p>180 <p>These·checks·will·only·be·run·if·the·<a·class="reference·internal"·href="../ref/django-admin.html#cmdoption-check-deploy"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">check</span>·<span·class="pre">--deploy</span></code></a>·option·is·used.</p>
Offset 296, 37 lines modifiedOffset 297, 37 lines modified
296 </li>297 </li>
297 </ul>298 </ul>
298 </li>299 </li>
299 </ul>300 </ul>
  
300 ··</div>301 ··</div>
301 ··<div>302 ··<div>
302 ····<h4>Previous·topic</h4>303 ····<h4>Argomento·precedente</h4>
303 ····<p·class="topless"><a·href="signals.html"304 ····<p·class="topless"><a·href="signals.html"
304 ··························title="previous·chapter">Signals</a></p>305 ··························title="capitolo·precedente">Signals</a></p>
305 ··</div>306 ··</div>
306 ··<div>307 ··<div>
307 ····<h4>Next·topic</h4>308 ····<h4>Argomento·successivo</h4>
308 ····<p·class="topless"><a·href="external-packages.html"309 ····<p·class="topless"><a·href="external-packages.html"
309 ··························title="next·chapter">External·packages</a></p>310 ··························title="capitolo·successivo">External·packages</a></p>
310 ··</div>311 ··</div>
311 <search·id="searchbox"·style="display:·none"·role="search">312 <search·id="searchbox"·style="display:·none"·role="search">
312 ··<h3·id="searchlabel">Quick·search</h3>313 ··<h3·id="searchlabel">Ricerca·veloce</h3>
313 ····<div·class="searchformwrapper">314 ····<div·class="searchformwrapper">
314 ····<form·class="search"·action="../search.html"·method="get">315 ····<form·class="search"·action="../search.html"·method="get">
315 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>316 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
316 ······<input·type="submit"·value="Go"·/>317 ······<input·type="submit"·value="Vai"·/>
317 ····</form>318 ····</form>
318 ····</div>319 ····</div>
319 </search>320 </search>
320 <script>document.getElementById('searchbox').style.display·=·"block"</script>321 <script>document.getElementById('searchbox').style.display·=·"block"</script>
321 ········</div>322 ········</div>
322 ······</div>323 ······</div>
323 ··············<h3>Last·update:</h3>324 ··············<h3>Last·update:</h3>
324 ··············<p·class="topless">Sep·03,·2024</p>325 ··············<p·class="topless">set·03,·2024</p>
325 ··········</div>326 ··········</div>
326 ········327 ········
327 ······328 ······
328 ····</div>329 ····</div>
  
329 ····<div·id="ft">330 ····<div·id="ft">
330 ······<div·class="nav">331 ······<div·class="nav">
2.96 KB
html2text {}
Max HTML report size reached
24.9 KB
./usr/share/doc/python-django-doc/html/topics/class-based-views/generic-display.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Built-in·class-based·generic·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Built-in·class-based·generic·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Form·handling·with·class-based·views"·href="generic-editing.html"·/>15 ····<link·rel="next"·title="Form·handling·with·class-based·views"·href="generic-editing.html"·/>
15 ····<link·rel="prev"·title="Introduction·to·class-based·views"·href="intro.html"·/>16 ····<link·rel="prev"·title="Introduction·to·class-based·views"·href="intro.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 91, 17 lines modifiedOffset 92, 17 lines modified
91 write·code·that·displays·a·list·of·<em>any</em>·object.·Then·the·model·in·question·can92 write·code·that·displays·a·list·of·<em>any</em>·object.·Then·the·model·in·question·can
92 be·passed·as·an·extra·argument·to·the·URLconf.</p>93 be·passed·as·an·extra·argument·to·the·URLconf.</p>
93 <p>Django·ships·with·generic·views·to·do·the·following:</p>94 <p>Django·ships·with·generic·views·to·do·the·following:</p>
94 <ul·class="simple">95 <ul·class="simple">
95 <li><p>Display·list·and·detail·pages·for·a·single·object.·If·we·were·creating·an96 <li><p>Display·list·and·detail·pages·for·a·single·object.·If·we·were·creating·an
96 application·to·manage·conferences·then·a·<code·class="docutils·literal·notranslate"><span·class="pre">TalkListView</span></code>·and·a97 application·to·manage·conferences·then·a·<code·class="docutils·literal·notranslate"><span·class="pre">TalkListView</span></code>·and·a
97 <code·class="docutils·literal·notranslate"><span·class="pre">RegisteredUserListView</span></code>·would·be·examples·of·list·views.·A·single98 <code·class="docutils·literal·notranslate"><span·class="pre">RegisteredUserListView</span></code>·would·be·examples·of·list·views.·A·single
98 talk·page·is·an·example·of·what·we·call·a·detail·view.</p></li>99 talk·page·is·an·example·of·what·we·call·a·«detail»·view.</p></li>
99 <li><p>Present·date-based·objects·in·year/month/day·archive·pages,100 <li><p>Present·date-based·objects·in·year/month/day·archive·pages,
100 associated·detail,·and·latest·pages.</p></li>101 associated·detail,·and·«latest»·pages.</p></li>
101 <li><p>Allow·users·to·create,·update,·and·delete·objects··with·or102 <li><p>Allow·users·to·create,·update,·and·delete·objects··with·or
102 without·authorization.</p></li>103 without·authorization.</p></li>
103 </ul>104 </ul>
104 <p>Taken·together,·these·views·provide·interfaces·to·perform·the·most·common·tasks105 <p>Taken·together,·these·views·provide·interfaces·to·perform·the·most·common·tasks
105 developers·encounter.</p>106 developers·encounter.</p>
106 <section·id="s-extending-generic-views">107 <section·id="s-extending-generic-views">
107 <span·id="extending-generic-views"></span><h2>Extending·generic·views<a·class="headerlink"·href="#extending-generic-views"·title="Link·to·this·heading">¶</a></h2>108 <span·id="extending-generic-views"></span><h2>Extending·generic·views<a·class="headerlink"·href="#extending-generic-views"·title="Link·to·this·heading">¶</a></h2>
Offset 187, 19 lines modifiedOffset 188, 19 lines modified
187 <span·class="p">]</span>188 <span·class="p">]</span>
188 </pre></div>189 </pre></div>
189 </div>190 </div>
190 <p>That’s·all·the·Python·code·we·need·to·write.·We·still·need·to·write·a·template,191 <p>That’s·all·the·Python·code·we·need·to·write.·We·still·need·to·write·a·template,
191 however.·We·could·explicitly·tell·the·view·which·template·to·use·by·adding·a192 however.·We·could·explicitly·tell·the·view·which·template·to·use·by·adding·a
192 <code·class="docutils·literal·notranslate"><span·class="pre">template_name</span></code>·attribute·to·the·view,·but·in·the·absence·of·an·explicit193 <code·class="docutils·literal·notranslate"><span·class="pre">template_name</span></code>·attribute·to·the·view,·but·in·the·absence·of·an·explicit
193 template·Django·will·infer·one·from·the·object’s·name.·In·this·case,·the194 template·Django·will·infer·one·from·the·object’s·name.·In·this·case,·the
194 inferred·template·will·be·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;books/publisher_list.html&quot;</span></code>··the·books·part195 inferred·template·will·be·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;books/publisher_list.html&quot;</span></code>··the·«books»·part
195 comes·from·the·name·of·the·app·that·defines·the·model,·while·the·publisher196 comes·from·the·name·of·the·app·that·defines·the·model,·while·the·«publisher»
196 bit·is·the·lowercased·version·of·the·model’s·name.</p>197 bit·is·the·lowercased·version·of·the·model’s·name.</p>
197 <div·class="admonition·note">198 <div·class="admonition·note">
198 <p·class="admonition-title">Note</p>199 <p·class="admonition-title">Nota</p>
199 <p>Thus,·when·(for·example)·the·<code·class="docutils·literal·notranslate"><span·class="pre">APP_DIRS</span></code>·option·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code>200 <p>Thus,·when·(for·example)·the·<code·class="docutils·literal·notranslate"><span·class="pre">APP_DIRS</span></code>·option·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">DjangoTemplates</span></code>
200 backend·is·set·to·True·in·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>,·a·template·location·could201 backend·is·set·to·True·in·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TEMPLATES"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TEMPLATES</span></code></a>,·a·template·location·could
201 be:·/path/to/project/books/templates/books/publisher_list.html</p>202 be:·/path/to/project/books/templates/books/publisher_list.html</p>
202 </div>203 </div>
203 <p>This·template·will·be·rendered·against·a·context·containing·a·variable·called204 <p>This·template·will·be·rendered·against·a·context·containing·a·variable·called
204 <code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>·that·contains·all·the·publisher·objects.·A·template·might·look205 <code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>·that·contains·all·the·publisher·objects.·A·template·might·look
205 like·this:</p>206 like·this:</p>
Offset 217, 22 lines modifiedOffset 218, 22 lines modified
217 </div>218 </div>
218 <p>That’s·really·all·there·is·to·it.·All·the·cool·features·of·generic·views·come219 <p>That’s·really·all·there·is·to·it.·All·the·cool·features·of·generic·views·come
219 from·changing·the·attributes·set·on·the·generic·view.·The220 from·changing·the·attributes·set·on·the·generic·view.·The
220 <a·class="reference·internal"·href="../../ref/class-based-views/index.html"><span·class="doc">generic·views·reference</span></a>·documents·all·the221 <a·class="reference·internal"·href="../../ref/class-based-views/index.html"><span·class="doc">generic·views·reference</span></a>·documents·all·the
221 generic·views·and·their·options·in·detail;·the·rest·of·this·document·will222 generic·views·and·their·options·in·detail;·the·rest·of·this·document·will
222 consider·some·of·the·common·ways·you·might·customize·and·extend·generic·views.</p>223 consider·some·of·the·common·ways·you·might·customize·and·extend·generic·views.</p>
223 <section·id="s-making-friendly-template-contexts">224 <section·id="s-making-friendly-template-contexts">
224 <span·id="making-friendly-template-contexts"></span><h3>Making·friendly·template·contexts<a·class="headerlink"·href="#making-friendly-template-contexts"·title="Link·to·this·heading">¶</a></h3>225 <span·id="making-friendly-template-contexts"></span><h3>Making·«friendly»·template·contexts<a·class="headerlink"·href="#making-friendly-template-contexts"·title="Link·to·this·heading">¶</a></h3>
225 <p>You·might·have·noticed·that·our·sample·publisher·list·template·stores·all·the226 <p>You·might·have·noticed·that·our·sample·publisher·list·template·stores·all·the
226 publishers·in·a·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>.·While·this·works·just·fine,·it227 publishers·in·a·variable·named·<code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>.·While·this·works·just·fine,·it
227 isn’t·all·that·friendly·to·template·authors:·they·have·to·just·know·that228 isn’t·all·that·«friendly»·to·template·authors:·they·have·to·«just·know»·that
228 they’re·dealing·with·publishers·here.</p>229 they’re·dealing·with·publishers·here.</p>
229 <p>Well,·if·you’re·dealing·with·a·model·object,·this·is·already·done·for·you.·When230 <p>Well,·if·you’re·dealing·with·a·model·object,·this·is·already·done·for·you.·When
230 you·are·dealing·with·an·object·or·queryset,·Django·is·able·to·populate·the231 you·are·dealing·with·an·object·or·queryset,·Django·is·able·to·populate·the
231 context·using·the·lowercased·version·of·the·model·class·name.·This·is·provided232 context·using·the·lowercased·version·of·the·model·class·name.·This·is·provided
232 in·addition·to·the·default·<code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>·entry,·but·contains·exactly·the·same233 in·addition·to·the·default·<code·class="docutils·literal·notranslate"><span·class="pre">object_list</span></code>·entry,·but·contains·exactly·the·same
233 data,·i.e.·<code·class="docutils·literal·notranslate"><span·class="pre">publisher_list</span></code>.</p>234 data,·i.e.·<code·class="docutils·literal·notranslate"><span·class="pre">publisher_list</span></code>.</p>
234 <p>If·this·still·isn’t·a·good·match,·you·can·manually·set·the·name·of·the235 <p>If·this·still·isn’t·a·good·match,·you·can·manually·set·the·name·of·the
235 context·variable.·The·<code·class="docutils·literal·notranslate"><span·class="pre">context_object_name</span></code>·attribute·on·a·generic·view236 context·variable.·The·<code·class="docutils·literal·notranslate"><span·class="pre">context_object_name</span></code>·attribute·on·a·generic·view
236 specifies·the·context·variable·to·use:</p>237 specifies·the·context·variable·to·use:</p>
237 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·views.py</span>238 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·views.py</span>
238 <span·class="kn">from</span>·<span·class="nn">django.views.generic</span>·<span·class="kn">import</span>·<span·class="n">ListView</span>239 <span·class="kn">from</span>·<span·class="nn">django.views.generic</span>·<span·class="kn">import</span>·<span·class="n">ListView</span>
Offset 270, 15 lines modifiedOffset 271, 15 lines modified
270 ········<span·class="n">context</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_context_data</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>271 ········<span·class="n">context</span>·<span·class="o">=</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_context_data</span><span·class="p">(</span><span·class="o">**</span><span·class="n">kwargs</span><span·class="p">)</span>
271 ········<span·class="c1">#·Add·in·a·QuerySet·of·all·the·books</span>272 ········<span·class="c1">#·Add·in·a·QuerySet·of·all·the·books</span>
272 ········<span·class="n">context</span><span·class="p">[</span><span·class="s2">&quot;book_list&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>273 ········<span·class="n">context</span><span·class="p">[</span><span·class="s2">&quot;book_list&quot;</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
273 ········<span·class="k">return</span>·<span·class="n">context</span>274 ········<span·class="k">return</span>·<span·class="n">context</span>
274 </pre></div>275 </pre></div>
275 </div>276 </div>
276 <div·class="admonition·note">277 <div·class="admonition·note">
277 <p·class="admonition-title">Note</p>278 <p·class="admonition-title">Nota</p>
278 <p>Generally,·<code·class="docutils·literal·notranslate"><span·class="pre">get_context_data</span></code>·will·merge·the·context·data·of·all·parent279 <p>Generally,·<code·class="docutils·literal·notranslate"><span·class="pre">get_context_data</span></code>·will·merge·the·context·data·of·all·parent
279 classes·with·those·of·the·current·class.·To·preserve·this·behavior·in·your280 classes·with·those·of·the·current·class.·To·preserve·this·behavior·in·your
280 own·classes·where·you·want·to·alter·the·context,·you·should·be·sure·to·call281 own·classes·where·you·want·to·alter·the·context,·you·should·be·sure·to·call
281 <code·class="docutils·literal·notranslate"><span·class="pre">get_context_data</span></code>·on·the·super·class.·When·no·two·classes·try·to·define·the282 <code·class="docutils·literal·notranslate"><span·class="pre">get_context_data</span></code>·on·the·super·class.·When·no·two·classes·try·to·define·the
282 same·key,·this·will·give·the·expected·results.·However·if·any·class283 same·key,·this·will·give·the·expected·results.·However·if·any·class
283 attempts·to·override·a·key·after·parent·classes·have·set·it·(after·the·call284 attempts·to·override·a·key·after·parent·classes·have·set·it·(after·the·call
284 to·super),·any·children·of·that·class·will·also·need·to·explicitly·set·it285 to·super),·any·children·of·that·class·will·also·need·to·explicitly·set·it
Offset 337, 23 lines modifiedOffset 338, 23 lines modified
337 ····<span·class="n">context_object_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;book_list&quot;</span>338 ····<span·class="n">context_object_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;book_list&quot;</span>
338 ····<span·class="n">queryset</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">publisher__name</span><span·class="o">=</span><span·class="s2">&quot;ACME·Publishing&quot;</span><span·class="p">)</span>339 ····<span·class="n">queryset</span>·<span·class="o">=</span>·<span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">publisher__name</span><span·class="o">=</span><span·class="s2">&quot;ACME·Publishing&quot;</span><span·class="p">)</span>
339 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;books/acme_list.html&quot;</span>340 ····<span·class="n">template_name</span>·<span·class="o">=</span>·<span·class="s2">&quot;books/acme_list.html&quot;</span>
340 </pre></div>341 </pre></div>
341 </div>342 </div>
342 <p>Notice·that·along·with·a·filtered·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>,·we’re·also·using·a·custom343 <p>Notice·that·along·with·a·filtered·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>,·we’re·also·using·a·custom
343 template·name.·If·we·didn’t,·the·generic·view·would·use·the·same·template·as·the344 template·name.·If·we·didn’t,·the·generic·view·would·use·the·same·template·as·the
344 vanilla·object·list,·which·might·not·be·what·we·want.</p>345 «vanilla»·object·list,·which·might·not·be·what·we·want.</p>
345 <p>Also·notice·that·this·isn’t·a·very·elegant·way·of·doing·publisher-specific346 <p>Also·notice·that·this·isn’t·a·very·elegant·way·of·doing·publisher-specific
346 books.·If·we·want·to·add·another·publisher·page,·we’d·need·another·handful·of347 books.·If·we·want·to·add·another·publisher·page,·we’d·need·another·handful·of
Max diff block lines reached; 4915/15617 bytes (31.47%) of diff not shown.
9.45 KB
html2text {}
Max HTML report size reached
18.1 KB
./usr/share/doc/python-django-doc/html/topics/class-based-views/generic-editing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Form·handling·with·class-based·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Form·handling·with·class-based·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Using·mixins·with·class-based·views"·href="mixins.html"·/>15 ····<link·rel="next"·title="Using·mixins·with·class-based·views"·href="mixins.html"·/>
15 ····<link·rel="prev"·title="Built-in·class-based·generic·views"·href="generic-display.html"·/>16 ····<link·rel="prev"·title="Built-in·class-based·generic·views"·href="generic-display.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 159, 15 lines modifiedOffset 160, 15 lines modified
159 <a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.CreateView"·title="django.views.generic.edit.CreateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CreateView</span></code></a>·or160 <a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.CreateView"·title="django.views.generic.edit.CreateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CreateView</span></code></a>·or
160 <a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.UpdateView"·title="django.views.generic.edit.UpdateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UpdateView</span></code></a>·-·they·will·use161 <a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.UpdateView"·title="django.views.generic.edit.UpdateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">UpdateView</span></code></a>·-·they·will·use
161 <a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>·on·the·model·object·if·available.</p>162 <a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>·on·the·model·object·if·available.</p>
162 <p>If·you·want·to·use·a·custom·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>·(for·instance·to163 <p>If·you·want·to·use·a·custom·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>·(for·instance·to
163 add·extra·validation),·set164 add·extra·validation),·set
164 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.form_class"·title="django.views.generic.edit.FormMixin.form_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_class</span></code></a>·on·your·view.</p>165 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.form_class"·title="django.views.generic.edit.FormMixin.form_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_class</span></code></a>·on·your·view.</p>
165 <div·class="admonition·note">166 <div·class="admonition·note">
166 <p·class="admonition-title">Note</p>167 <p·class="admonition-title">Nota</p>
167 <p>When·specifying·a·custom·form·class,·you·must·still·specify·the·model,168 <p>When·specifying·a·custom·form·class,·you·must·still·specify·the·model,
168 even·though·the·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.form_class"·title="django.views.generic.edit.FormMixin.form_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_class</span></code></a>·may169 even·though·the·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin.form_class"·title="django.views.generic.edit.FormMixin.form_class"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">form_class</span></code></a>·may
169 be·a·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>.</p>170 be·a·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>.</p>
170 </div>171 </div>
171 <p>First·we·need·to·add·<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>·to·our172 <p>First·we·need·to·add·<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>·to·our
172 <code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·class:</p>173 <code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·class:</p>
173 <div·class="literal-block-wrapper·docutils·container"·id="id4">174 <div·class="literal-block-wrapper·docutils·container"·id="id4">
Offset 207, 15 lines modifiedOffset 208, 15 lines modified
207 <span·class="k">class</span>·<span·class="nc">AuthorDeleteView</span><span·class="p">(</span><span·class="n">DeleteView</span><span·class="p">):</span>208 <span·class="k">class</span>·<span·class="nc">AuthorDeleteView</span><span·class="p">(</span><span·class="n">DeleteView</span><span·class="p">):</span>
208 ····<span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">Author</span>209 ····<span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">Author</span>
209 ····<span·class="n">success_url</span>·<span·class="o">=</span>·<span·class="n">reverse_lazy</span><span·class="p">(</span><span·class="s2">&quot;author-list&quot;</span><span·class="p">)</span>210 ····<span·class="n">success_url</span>·<span·class="o">=</span>·<span·class="n">reverse_lazy</span><span·class="p">(</span><span·class="s2">&quot;author-list&quot;</span><span·class="p">)</span>
210 </pre></div>211 </pre></div>
211 </div>212 </div>
212 </div>213 </div>
213 <div·class="admonition·note">214 <div·class="admonition·note">
214 <p·class="admonition-title">Note</p>215 <p·class="admonition-title">Nota</p>
215 <p>We·have·to·use·<a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse_lazy"·title="django.urls.reverse_lazy"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse_lazy()</span></code></a>·instead·of216 <p>We·have·to·use·<a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse_lazy"·title="django.urls.reverse_lazy"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse_lazy()</span></code></a>·instead·of
216 <code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>,·as·the·urls·are·not·loaded·when·the·file·is·imported.</p>217 <code·class="docutils·literal·notranslate"><span·class="pre">reverse()</span></code>,·as·the·urls·are·not·loaded·when·the·file·is·imported.</p>
217 </div>218 </div>
218 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·attribute·works·the·same·way·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·attribute·on·the219 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·attribute·works·the·same·way·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·attribute·on·the
219 inner·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·class·on·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>.·Unless·you·define·the220 inner·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·class·on·<a·class="reference·internal"·href="../forms/modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>.·Unless·you·define·the
220 form·class·in·another·way,·the·attribute·is·required·and·the·view·will·raise221 form·class·in·another·way,·the·attribute·is·required·and·the·view·will·raise
221 an·<a·class="reference·internal"·href="../../ref/exceptions.html#django.core.exceptions.ImproperlyConfigured"·title="django.core.exceptions.ImproperlyConfigured"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ImproperlyConfigured</span></code></a>·exception·if·it’s·not.</p>222 an·<a·class="reference·internal"·href="../../ref/exceptions.html#django.core.exceptions.ImproperlyConfigured"·title="django.core.exceptions.ImproperlyConfigured"><code·class="xref·py·py-exc·docutils·literal·notranslate"><span·class="pre">ImproperlyConfigured</span></code></a>·exception·if·it’s·not.</p>
Offset 234, 15 lines modifiedOffset 235, 15 lines modified
234 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;author/&lt;int:pk&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">AuthorUpdateView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(),</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;author-update&quot;</span><span·class="p">),</span>235 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;author/&lt;int:pk&gt;/&quot;</span><span·class="p">,</span>·<span·class="n">AuthorUpdateView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(),</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;author-update&quot;</span><span·class="p">),</span>
235 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;author/&lt;int:pk&gt;/delete/&quot;</span><span·class="p">,</span>·<span·class="n">AuthorDeleteView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(),</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;author-delete&quot;</span><span·class="p">),</span>236 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;author/&lt;int:pk&gt;/delete/&quot;</span><span·class="p">,</span>·<span·class="n">AuthorDeleteView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(),</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;author-delete&quot;</span><span·class="p">),</span>
236 <span·class="p">]</span>237 <span·class="p">]</span>
237 </pre></div>238 </pre></div>
238 </div>239 </div>
239 </div>240 </div>
240 <div·class="admonition·note">241 <div·class="admonition·note">
241 <p·class="admonition-title">Note</p>242 <p·class="admonition-title">Nota</p>
242 <p>These·views·inherit243 <p>These·views·inherit
243 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin"·title="django.views.generic.detail.SingleObjectTemplateResponseMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectTemplateResponseMixin</span></code></a>244 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin"·title="django.views.generic.detail.SingleObjectTemplateResponseMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectTemplateResponseMixin</span></code></a>
244 which·uses245 which·uses
245 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"·title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">template_name_suffix</span></code></a>246 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"·title="django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">template_name_suffix</span></code></a>
246 to·construct·the247 to·construct·the
247 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name"·title="django.views.generic.base.TemplateResponseMixin.template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">template_name</span></code></a>248 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-simple.html#django.views.generic.base.TemplateResponseMixin.template_name"·title="django.views.generic.base.TemplateResponseMixin.template_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">template_name</span></code></a>
248 based·on·the·model.</p>249 based·on·the·model.</p>
Offset 300, 15 lines modifiedOffset 301, 15 lines modified
300 <p><a·class="reference·internal"·href="../auth/default.html#django.contrib.auth.mixins.LoginRequiredMixin"·title="django.contrib.auth.mixins.LoginRequiredMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LoginRequiredMixin</span></code></a>·prevents·users·who301 <p><a·class="reference·internal"·href="../auth/default.html#django.contrib.auth.mixins.LoginRequiredMixin"·title="django.contrib.auth.mixins.LoginRequiredMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LoginRequiredMixin</span></code></a>·prevents·users·who
301 aren’t·logged·in·from·accessing·the·form.·If·you·omit·that,·you’ll·need·to302 aren’t·logged·in·from·accessing·the·form.·If·you·omit·that,·you’ll·need·to
302 handle·unauthorized·users·in·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.ModelFormMixin.form_valid"·title="django.views.generic.edit.ModelFormMixin.form_valid"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">form_valid()</span></code></a>.</p>303 handle·unauthorized·users·in·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.ModelFormMixin.form_valid"·title="django.views.generic.edit.ModelFormMixin.form_valid"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">form_valid()</span></code></a>.</p>
303 </section>304 </section>
304 <section·id="s-content-negotiation-example">305 <section·id="s-content-negotiation-example">
305 <span·id="s-id1"></span><span·id="content-negotiation-example"></span><span·id="id1"></span><h2>Content·negotiation·example<a·class="headerlink"·href="#content-negotiation-example"·title="Link·to·this·heading">¶</a></h2>306 <span·id="s-id1"></span><span·id="content-negotiation-example"></span><span·id="id1"></span><h2>Content·negotiation·example<a·class="headerlink"·href="#content-negotiation-example"·title="Link·to·this·heading">¶</a></h2>
306 <p>Here·is·an·example·showing·how·you·might·go·about·implementing·a·form·that307 <p>Here·is·an·example·showing·how·you·might·go·about·implementing·a·form·that
307 works·with·an·API-based·workflow·as·well·as·normal·form·POSTs:</p>308 works·with·an·API-based·workflow·as·well·as·normal·form·POSTs:</p>
308 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">JsonResponse</span>309 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">JsonResponse</span>
309 <span·class="kn">from</span>·<span·class="nn">django.views.generic.edit</span>·<span·class="kn">import</span>·<span·class="n">CreateView</span>310 <span·class="kn">from</span>·<span·class="nn">django.views.generic.edit</span>·<span·class="kn">import</span>·<span·class="n">CreateView</span>
310 <span·class="kn">from</span>·<span·class="nn">myapp.models</span>·<span·class="kn">import</span>·<span·class="n">Author</span>311 <span·class="kn">from</span>·<span·class="nn">myapp.models</span>·<span·class="kn">import</span>·<span·class="n">Author</span>
  
  
311 <span·class="k">class</span>·<span·class="nc">JsonableResponseMixin</span><span·class="p">:</span>312 <span·class="k">class</span>·<span·class="nc">JsonableResponseMixin</span><span·class="p">:</span>
312 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>313 <span·class="w">····</span><span·class="sd">&quot;&quot;&quot;</span>
Offset 365, 37 lines modifiedOffset 366, 37 lines modified
365 <li><a·class="reference·internal"·href="#content-negotiation-example">Content·negotiation·example</a></li>366 <li><a·class="reference·internal"·href="#content-negotiation-example">Content·negotiation·example</a></li>
366 </ul>367 </ul>
367 </li>368 </li>
368 </ul>369 </ul>
  
369 ··</div>370 ··</div>
370 ··<div>371 ··<div>
371 ····<h4>Previous·topic</h4>372 ····<h4>Argomento·precedente</h4>
372 ····<p·class="topless"><a·href="generic-display.html"373 ····<p·class="topless"><a·href="generic-display.html"
373 ··························title="previous·chapter">Built-in·class-based·generic·views</a></p>374 ··························title="capitolo·precedente">Built-in·class-based·generic·views</a></p>
374 ··</div>375 ··</div>
375 ··<div>376 ··<div>
376 ····<h4>Next·topic</h4>377 ····<h4>Argomento·successivo</h4>
377 ····<p·class="topless"><a·href="mixins.html"378 ····<p·class="topless"><a·href="mixins.html"
378 ··························title="next·chapter">Using·mixins·with·class-based·views</a></p>379 ··························title="capitolo·successivo">Using·mixins·with·class-based·views</a></p>
379 ··</div>380 ··</div>
380 <search·id="searchbox"·style="display:·none"·role="search">381 <search·id="searchbox"·style="display:·none"·role="search">
381 ··<h3·id="searchlabel">Quick·search</h3>382 ··<h3·id="searchlabel">Ricerca·veloce</h3>
382 ····<div·class="searchformwrapper">383 ····<div·class="searchformwrapper">
383 ····<form·class="search"·action="../../search.html"·method="get">384 ····<form·class="search"·action="../../search.html"·method="get">
384 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>385 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
385 ······<input·type="submit"·value="Go"·/>386 ······<input·type="submit"·value="Vai"·/>
386 ····</form>387 ····</form>
Max diff block lines reached; 353/12586 bytes (2.80%) of diff not shown.
5.69 KB
html2text {}
Max HTML report size reached
6.11 KB
./usr/share/doc/python-django-doc/html/topics/class-based-views/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Class-based·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Class-based·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Introduction·to·class-based·views"·href="intro.html"·/>15 ····<link·rel="next"·title="Introduction·to·class-based·views"·href="intro.html"·/>
15 ····<link·rel="prev"·title="Templates"·href="../templates.html"·/>16 ····<link·rel="prev"·title="Templates"·href="../templates.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 253, 37 lines modifiedOffset 254, 37 lines modified
253 <li><a·class="reference·internal"·href="#asynchronous-class-based-views">Asynchronous·class-based·views</a></li>254 <li><a·class="reference·internal"·href="#asynchronous-class-based-views">Asynchronous·class-based·views</a></li>
254 </ul>255 </ul>
255 </li>256 </li>
256 </ul>257 </ul>
  
257 ··</div>258 ··</div>
258 ··<div>259 ··<div>
259 ····<h4>Previous·topic</h4>260 ····<h4>Argomento·precedente</h4>
260 ····<p·class="topless"><a·href="../templates.html"261 ····<p·class="topless"><a·href="../templates.html"
261 ··························title="previous·chapter">Templates</a></p>262 ··························title="capitolo·precedente">Templates</a></p>
262 ··</div>263 ··</div>
263 ··<div>264 ··<div>
264 ····<h4>Next·topic</h4>265 ····<h4>Argomento·successivo</h4>
265 ····<p·class="topless"><a·href="intro.html"266 ····<p·class="topless"><a·href="intro.html"
266 ··························title="next·chapter">Introduction·to·class-based·views</a></p>267 ··························title="capitolo·successivo">Introduction·to·class-based·views</a></p>
267 ··</div>268 ··</div>
268 <search·id="searchbox"·style="display:·none"·role="search">269 <search·id="searchbox"·style="display:·none"·role="search">
269 ··<h3·id="searchlabel">Quick·search</h3>270 ··<h3·id="searchlabel">Ricerca·veloce</h3>
270 ····<div·class="searchformwrapper">271 ····<div·class="searchformwrapper">
271 ····<form·class="search"·action="../../search.html"·method="get">272 ····<form·class="search"·action="../../search.html"·method="get">
272 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>273 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
273 ······<input·type="submit"·value="Go"·/>274 ······<input·type="submit"·value="Vai"·/>
274 ····</form>275 ····</form>
275 ····</div>276 ····</div>
276 </search>277 </search>
277 <script>document.getElementById('searchbox').style.display·=·"block"</script>278 <script>document.getElementById('searchbox').style.display·=·"block"</script>
278 ········</div>279 ········</div>
279 ······</div>280 ······</div>
280 ··············<h3>Last·update:</h3>281 ··············<h3>Last·update:</h3>
281 ··············<p·class="topless">Sep·03,·2024</p>282 ··············<p·class="topless">set·03,·2024</p>
282 ··········</div>283 ··········</div>
283 ········284 ········
284 ······285 ······
285 ····</div>286 ····</div>
  
286 ····<div·id="ft">287 ····<div·id="ft">
287 ······<div·class="nav">288 ······<div·class="nav">
2.27 KB
html2text {}
Max HTML report size reached
10.9 KB
./usr/share/doc/python-django-doc/html/topics/class-based-views/intro.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Introduction·to·class-based·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Introduction·to·class-based·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Built-in·class-based·generic·views"·href="generic-display.html"·/>15 ····<link·rel="next"·title="Built-in·class-based·generic·views"·href="generic-display.html"·/>
15 ····<link·rel="prev"·title="Class-based·views"·href="index.html"·/>16 ····<link·rel="prev"·title="Class-based·views"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 199, 15 lines modifiedOffset 200, 15 lines modified
199 <a·class="reference·internal"·href="../../ref/class-based-views/base.html#django.views.generic.base.View.as_view"·title="django.views.generic.base.View.as_view"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">as_view()</span></code></a>·call·in·the·URLconf:</p>200 <a·class="reference·internal"·href="../../ref/class-based-views/base.html#django.views.generic.base.View.as_view"·title="django.views.generic.base.View.as_view"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">as_view()</span></code></a>·call·in·the·URLconf:</p>
200 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>201 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
201 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;about/&quot;</span><span·class="p">,</span>·<span·class="n">GreetingView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(</span><span·class="n">greeting</span><span·class="o">=</span><span·class="s2">&quot;G&#39;day&quot;</span><span·class="p">)),</span>202 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;about/&quot;</span><span·class="p">,</span>·<span·class="n">GreetingView</span><span·class="o">.</span><span·class="n">as_view</span><span·class="p">(</span><span·class="n">greeting</span><span·class="o">=</span><span·class="s2">&quot;G&#39;day&quot;</span><span·class="p">)),</span>
202 <span·class="p">]</span>203 <span·class="p">]</span>
203 </pre></div>204 </pre></div>
204 </div>205 </div>
205 <div·class="admonition·note">206 <div·class="admonition·note">
206 <p·class="admonition-title">Note</p>207 <p·class="admonition-title">Nota</p>
207 <p>While·your·class·is·instantiated·for·each·request·dispatched·to·it,·class208 <p>While·your·class·is·instantiated·for·each·request·dispatched·to·it,·class
208 attributes·set·through·the209 attributes·set·through·the
209 <a·class="reference·internal"·href="../../ref/class-based-views/base.html#django.views.generic.base.View.as_view"·title="django.views.generic.base.View.as_view"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">as_view()</span></code></a>·entry·point·are210 <a·class="reference·internal"·href="../../ref/class-based-views/base.html#django.views.generic.base.View.as_view"·title="django.views.generic.base.View.as_view"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">as_view()</span></code></a>·entry·point·are
210 configured·only·once·at·the·time·your·URLs·are·imported.</p>211 configured·only·once·at·the·time·your·URLs·are·imported.</p>
211 </div>212 </div>
212 </section>213 </section>
213 <section·id="s-using-mixins">214 <section·id="s-using-mixins">
Offset 367, 15 lines modifiedOffset 368, 15 lines modified
367 decorator.·In·the·example,·<code·class="docutils·literal·notranslate"><span·class="pre">never_cache()</span></code>·will·process·the·request·before368 decorator.·In·the·example,·<code·class="docutils·literal·notranslate"><span·class="pre">never_cache()</span></code>·will·process·the·request·before
368 <code·class="docutils·literal·notranslate"><span·class="pre">login_required()</span></code>.</p>369 <code·class="docutils·literal·notranslate"><span·class="pre">login_required()</span></code>.</p>
369 <p>In·this·example,·every·instance·of·<code·class="docutils·literal·notranslate"><span·class="pre">ProtectedView</span></code>·will·have·login370 <p>In·this·example,·every·instance·of·<code·class="docutils·literal·notranslate"><span·class="pre">ProtectedView</span></code>·will·have·login
370 protection.·These·examples·use·<code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>,·however,·the·same·behavior371 protection.·These·examples·use·<code·class="docutils·literal·notranslate"><span·class="pre">login_required</span></code>,·however,·the·same·behavior
371 can·be·obtained·by·using372 can·be·obtained·by·using
372 <a·class="reference·internal"·href="../auth/default.html#django.contrib.auth.mixins.LoginRequiredMixin"·title="django.contrib.auth.mixins.LoginRequiredMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LoginRequiredMixin</span></code></a>.</p>373 <a·class="reference·internal"·href="../auth/default.html#django.contrib.auth.mixins.LoginRequiredMixin"·title="django.contrib.auth.mixins.LoginRequiredMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">LoginRequiredMixin</span></code></a>.</p>
373 <div·class="admonition·note">374 <div·class="admonition·note">
374 <p·class="admonition-title">Note</p>375 <p·class="admonition-title">Nota</p>
375 <p><code·class="docutils·literal·notranslate"><span·class="pre">method_decorator</span></code>·passes·<code·class="docutils·literal·notranslate"><span·class="pre">*args</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>376 <p><code·class="docutils·literal·notranslate"><span·class="pre">method_decorator</span></code>·passes·<code·class="docutils·literal·notranslate"><span·class="pre">*args</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">**kwargs</span></code>
376 as·parameters·to·the·decorated·method·on·the·class.·If·your·method377 as·parameters·to·the·decorated·method·on·the·class.·If·your·method
377 does·not·accept·a·compatible·set·of·parameters·it·will·raise·a378 does·not·accept·a·compatible·set·of·parameters·it·will·raise·a
378 <code·class="docutils·literal·notranslate"><span·class="pre">TypeError</span></code>·exception.</p>379 <code·class="docutils·literal·notranslate"><span·class="pre">TypeError</span></code>·exception.</p>
379 </div>380 </div>
380 </section>381 </section>
381 </section>382 </section>
Offset 406, 37 lines modifiedOffset 407, 37 lines modified
406 </li>407 </li>
407 </ul>408 </ul>
408 </li>409 </li>
409 </ul>410 </ul>
  
410 ··</div>411 ··</div>
411 ··<div>412 ··<div>
412 ····<h4>Previous·topic</h4>413 ····<h4>Argomento·precedente</h4>
413 ····<p·class="topless"><a·href="index.html"414 ····<p·class="topless"><a·href="index.html"
414 ··························title="previous·chapter">Class-based·views</a></p>415 ··························title="capitolo·precedente">Class-based·views</a></p>
415 ··</div>416 ··</div>
416 ··<div>417 ··<div>
417 ····<h4>Next·topic</h4>418 ····<h4>Argomento·successivo</h4>
418 ····<p·class="topless"><a·href="generic-display.html"419 ····<p·class="topless"><a·href="generic-display.html"
419 ··························title="next·chapter">Built-in·class-based·generic·views</a></p>420 ··························title="capitolo·successivo">Built-in·class-based·generic·views</a></p>
420 ··</div>421 ··</div>
421 <search·id="searchbox"·style="display:·none"·role="search">422 <search·id="searchbox"·style="display:·none"·role="search">
422 ··<h3·id="searchlabel">Quick·search</h3>423 ··<h3·id="searchlabel">Ricerca·veloce</h3>
423 ····<div·class="searchformwrapper">424 ····<div·class="searchformwrapper">
424 ····<form·class="search"·action="../../search.html"·method="get">425 ····<form·class="search"·action="../../search.html"·method="get">
425 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>426 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
426 ······<input·type="submit"·value="Go"·/>427 ······<input·type="submit"·value="Vai"·/>
427 ····</form>428 ····</form>
428 ····</div>429 ····</div>
429 </search>430 </search>
430 <script>document.getElementById('searchbox').style.display·=·"block"</script>431 <script>document.getElementById('searchbox').style.display·=·"block"</script>
431 ········</div>432 ········</div>
432 ······</div>433 ······</div>
433 ··············<h3>Last·update:</h3>434 ··············<h3>Last·update:</h3>
434 ··············<p·class="topless">Sep·03,·2024</p>435 ··············<p·class="topless">set·03,·2024</p>
435 ··········</div>436 ··········</div>
436 ········437 ········
437 ······438 ······
438 ····</div>439 ····</div>
  
439 ····<div·id="ft">440 ····<div·id="ft">
440 ······<div·class="nav">441 ······<div·class="nav">
4.15 KB
html2text {}
Max HTML report size reached
25.7 KB
./usr/share/doc/python-django-doc/html/topics/class-based-views/mixins.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Using·mixins·with·class-based·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Using·mixins·with·class-based·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Migrations"·href="../migrations.html"·/>15 ····<link·rel="next"·title="Migrations"·href="../migrations.html"·/>
15 ····<link·rel="prev"·title="Form·handling·with·class-based·views"·href="generic-editing.html"·/>16 ····<link·rel="prev"·title="Form·handling·with·class-based·views"·href="generic-editing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-class-based-views-mixins">79 ··········<div·class="yui-g"·id="topics-class-based-views-mixins">
79 ············80 ············
80 ··<section·id="s-using-mixins-with-class-based-views">81 ··<section·id="s-using-mixins-with-class-based-views">
81 <span·id="using-mixins-with-class-based-views"></span><h1>Using·mixins·with·class-based·views<a·class="headerlink"·href="#using-mixins-with-class-based-views"·title="Link·to·this·heading">¶</a></h1>82 <span·id="using-mixins-with-class-based-views"></span><h1>Using·mixins·with·class-based·views<a·class="headerlink"·href="#using-mixins-with-class-based-views"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·caution">83 <div·class="admonition·caution">
83 <p·class="admonition-title">Caution</p>84 <p·class="admonition-title">Attenzione</p>
84 <p>This·is·an·advanced·topic.·A·working·knowledge·of·<a·class="reference·internal"·href="index.html"><span·class="doc">Django’s85 <p>This·is·an·advanced·topic.·A·working·knowledge·of·<a·class="reference·internal"·href="index.html"><span·class="doc">Django’s
85 class-based·views</span></a>·is·advised·before·exploring·these86 class-based·views</span></a>·is·advised·before·exploring·these
86 techniques.</p>87 techniques.</p>
87 </div>88 </div>
88 <p>Django’s·built-in·class-based·views·provide·a·lot·of·functionality,89 <p>Django’s·built-in·class-based·views·provide·a·lot·of·functionality,
89 but·some·of·it·you·may·want·to·use·separately.·For·instance,·you·may90 but·some·of·it·you·may·want·to·use·separately.·For·instance,·you·may
90 want·to·write·a·view·that·renders·a·template·to·make·the·HTTP91 want·to·write·a·view·that·renders·a·template·to·make·the·HTTP
Offset 138, 15 lines modifiedOffset 139, 15 lines modified
138 </dl>139 </dl>
139 </section>140 </section>
140 <section·id="s-building-up-django-s-generic-class-based-views">141 <section·id="s-building-up-django-s-generic-class-based-views">
141 <span·id="building-up-django-s-generic-class-based-views"></span><h2>Building·up·Django’s·generic·class-based·views<a·class="headerlink"·href="#building-up-django-s-generic-class-based-views"·title="Link·to·this·heading">¶</a></h2>142 <span·id="building-up-django-s-generic-class-based-views"></span><h2>Building·up·Django’s·generic·class-based·views<a·class="headerlink"·href="#building-up-django-s-generic-class-based-views"·title="Link·to·this·heading">¶</a></h2>
142 <p>Let’s·look·at·how·two·of·Django’s·generic·class-based·views·are·built143 <p>Let’s·look·at·how·two·of·Django’s·generic·class-based·views·are·built
143 out·of·mixins·providing·discrete·functionality.·We’ll·consider144 out·of·mixins·providing·discrete·functionality.·We’ll·consider
144 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.detail.DetailView"·title="django.views.generic.detail.DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>,·which·renders·a145 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.detail.DetailView"·title="django.views.generic.detail.DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>,·which·renders·a
145 detail·view·of·an·object,·and146 «detail»·view·of·an·object,·and
146 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>,·which·will·render·a·list147 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>,·which·will·render·a·list
147 of·objects,·typically·from·a·queryset,·and·optionally·paginate148 of·objects,·typically·from·a·queryset,·and·optionally·paginate
148 them.·This·will·introduce·us·to·four·mixins·which·between·them·provide149 them.·This·will·introduce·us·to·four·mixins·which·between·them·provide
149 useful·functionality·when·working·with·either·a·single·Django·object,150 useful·functionality·when·working·with·either·a·single·Django·object,
150 or·multiple·objects.</p>151 or·multiple·objects.</p>
151 <p>There·are·also·mixins·involved·in·the·generic·edit·views152 <p>There·are·also·mixins·involved·in·the·generic·edit·views
152 (<a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.FormView"·title="django.views.generic.edit.FormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FormView</span></code></a>,·and·the·model-specific153 (<a·class="reference·internal"·href="../../ref/class-based-views/generic-editing.html#django.views.generic.edit.FormView"·title="django.views.generic.edit.FormView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FormView</span></code></a>,·and·the·model-specific
Offset 238, 15 lines modifiedOffset 239, 15 lines modified
238 <span·id="using-django-s-class-based-view-mixins"></span><h2>Using·Django’s·class-based·view·mixins<a·class="headerlink"·href="#using-django-s-class-based-view-mixins"·title="Link·to·this·heading">¶</a></h2>239 <span·id="using-django-s-class-based-view-mixins"></span><h2>Using·Django’s·class-based·view·mixins<a·class="headerlink"·href="#using-django-s-class-based-view-mixins"·title="Link·to·this·heading">¶</a></h2>
239 <p>Now·we’ve·seen·how·Django’s·generic·class-based·views·use·the·provided·mixins,240 <p>Now·we’ve·seen·how·Django’s·generic·class-based·views·use·the·provided·mixins,
240 let’s·look·at·other·ways·we·can·combine·them.·We’re·still·going·to·be·combining241 let’s·look·at·other·ways·we·can·combine·them.·We’re·still·going·to·be·combining
241 them·with·either·built-in·class-based·views,·or·other·generic·class-based242 them·with·either·built-in·class-based·views,·or·other·generic·class-based
242 views,·but·there·are·a·range·of·rarer·problems·you·can·solve·than·are·provided243 views,·but·there·are·a·range·of·rarer·problems·you·can·solve·than·are·provided
243 for·by·Django·out·of·the·box.</p>244 for·by·Django·out·of·the·box.</p>
244 <div·class="admonition·warning">245 <div·class="admonition·warning">
245 <p·class="admonition-title">Warning</p>246 <p·class="admonition-title">Avvertimento</p>
246 <p>Not·all·mixins·can·be·used·together,·and·not·all·generic·class247 <p>Not·all·mixins·can·be·used·together,·and·not·all·generic·class
247 based·views·can·be·used·with·all·other·mixins.·Here·we·present·a248 based·views·can·be·used·with·all·other·mixins.·Here·we·present·a
248 few·examples·that·do·work;·if·you·want·to·bring·together·other249 few·examples·that·do·work;·if·you·want·to·bring·together·other
249 functionality·then·you’ll·have·to·consider·interactions·between250 functionality·then·you’ll·have·to·consider·interactions·between
250 attributes·and·methods·that·overlap·between·the·different·classes251 attributes·and·methods·that·overlap·between·the·different·classes
251 you’re·using,·and·how·<a·class="reference·external"·href="https://www.python.org/download/releases/2.3/mro/">method·resolution·order</a>·will·affect·which252 you’re·using,·and·how·<a·class="reference·external"·href="https://www.python.org/download/releases/2.3/mro/">method·resolution·order</a>·will·affect·which
252 versions·of·the·methods·will·be·called·in·what·order.</p>253 versions·of·the·methods·will·be·called·in·what·order.</p>
Offset 352, 15 lines modifiedOffset 353, 15 lines modified
352 However,·we·need·to·explicitly·pass·a·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·argument·because353 However,·we·need·to·explicitly·pass·a·<code·class="docutils·literal·notranslate"><span·class="pre">queryset</span></code>·argument·because
353 otherwise·the·default·implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">get_object()</span></code>·would·call354 otherwise·the·default·implementation·of·<code·class="docutils·literal·notranslate"><span·class="pre">get_object()</span></code>·would·call
354 <code·class="docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code>·which·we·have·overridden·to·return·<code·class="docutils·literal·notranslate"><span·class="pre">Book</span></code>·objects355 <code·class="docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code>·which·we·have·overridden·to·return·<code·class="docutils·literal·notranslate"><span·class="pre">Book</span></code>·objects
355 instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·ones.</p>356 instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·ones.</p>
356 </dd>357 </dd>
357 </dl>358 </dl>
358 <div·class="admonition·note">359 <div·class="admonition·note">
359 <p·class="admonition-title">Note</p>360 <p·class="admonition-title">Nota</p>
360 <p>We·have·to·think·carefully·about·<code·class="docutils·literal·notranslate"><span·class="pre">get_context_data()</span></code>.361 <p>We·have·to·think·carefully·about·<code·class="docutils·literal·notranslate"><span·class="pre">get_context_data()</span></code>.
361 Since·both·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectMixin"·title="django.views.generic.detail.SingleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code></a>·and362 Since·both·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectMixin"·title="django.views.generic.detail.SingleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code></a>·and
362 <a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#ListView"·title="ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>·will363 <a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#ListView"·title="ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>·will
363 put·things·in·the·context·data·under·the·value·of364 put·things·in·the·context·data·under·the·value·of
364 <code·class="docutils·literal·notranslate"><span·class="pre">context_object_name</span></code>·if·it’s·set,·we’ll·instead·explicitly365 <code·class="docutils·literal·notranslate"><span·class="pre">context_object_name</span></code>·if·it’s·set,·we’ll·instead·explicitly
365 ensure·the·<code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·is·in·the·context·data.·<a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#ListView"·title="ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>366 ensure·the·<code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·is·in·the·context·data.·<a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#ListView"·title="ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>
366 will·add·in·the·suitable·<code·class="docutils·literal·notranslate"><span·class="pre">page_obj</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">paginator</span></code>·for·us367 will·add·in·the·suitable·<code·class="docutils·literal·notranslate"><span·class="pre">page_obj</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">paginator</span></code>·for·us
Offset 437, 15 lines modifiedOffset 438, 15 lines modified
437 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-simple.html#django.views.generic.base.TemplateResponseMixin"·title="django.views.generic.base.TemplateResponseMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponseMixin</span></code></a>·and438 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-simple.html#django.views.generic.base.TemplateResponseMixin"·title="django.views.generic.base.TemplateResponseMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponseMixin</span></code></a>·and
438 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectMixin"·title="django.views.generic.detail.SingleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code></a>·when·you·need439 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-single-object.html#django.views.generic.detail.SingleObjectMixin"·title="django.views.generic.detail.SingleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code></a>·when·you·need
439 their·functionality.·As·shown·above,·with·a·bit·of·care·you·can·even440 their·functionality.·As·shown·above,·with·a·bit·of·care·you·can·even
440 combine·<code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code>·with441 combine·<code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code>·with
441 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>.·However·things·get442 <a·class="reference·internal"·href="../../ref/class-based-views/generic-display.html#django.views.generic.list.ListView"·title="django.views.generic.list.ListView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ListView</span></code></a>.·However·things·get
442 increasingly·complex·as·you·try·to·do·so,·and·a·good·rule·of·thumb·is:</p>443 increasingly·complex·as·you·try·to·do·so,·and·a·good·rule·of·thumb·is:</p>
443 <div·class="admonition·hint">444 <div·class="admonition·hint">
444 <p·class="admonition-title">Hint</p>445 <p·class="admonition-title">Suggerimento</p>
445 <p>Each·of·your·views·should·use·only·mixins·or·views·from·one·of·the446 <p>Each·of·your·views·should·use·only·mixins·or·views·from·one·of·the
446 groups·of·generic·class-based·views:·<a·class="reference·internal"·href="generic-display.html"><span·class="doc">detail,447 groups·of·generic·class-based·views:·<a·class="reference·internal"·href="generic-display.html"><span·class="doc">detail,
447 list</span></a>,·<a·class="reference·internal"·href="generic-editing.html"><span·class="doc">editing</span></a>·and448 list</span></a>,·<a·class="reference·internal"·href="generic-editing.html"><span·class="doc">editing</span></a>·and
448 date.·For·example·it’s·fine·to·combine449 date.·For·example·it’s·fine·to·combine
449 <a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#TemplateView"·title="TemplateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateView</span></code></a>·(built·in·view)·with450 <a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#TemplateView"·title="TemplateView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateView</span></code></a>·(built·in·view)·with
450 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin"·title="django.views.generic.list.MultipleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultipleObjectMixin</span></code></a>·(generic·list),·but451 <a·class="reference·internal"·href="../../ref/class-based-views/mixins-multiple-object.html#django.views.generic.list.MultipleObjectMixin"·title="django.views.generic.list.MultipleObjectMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">MultipleObjectMixin</span></code></a>·(generic·list),·but
451 you’re·likely·to·have·problems·combining·<code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code>·(generic452 you’re·likely·to·have·problems·combining·<code·class="docutils·literal·notranslate"><span·class="pre">SingleObjectMixin</span></code>·(generic
Offset 473, 15 lines modifiedOffset 474, 15 lines modified
473 user.·Let’s·rewrite·our·<code·class="docutils·literal·notranslate"><span·class="pre">AuthorDetailView</span></code>·to·do·that.</p>474 user.·Let’s·rewrite·our·<code·class="docutils·literal·notranslate"><span·class="pre">AuthorDetailView</span></code>·to·do·that.</p>
474 <p>We’ll·keep·the·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·handling·from·<a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#DetailView"·title="DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>,·although475 <p>We’ll·keep·the·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·handling·from·<a·class="reference·internal"·href="../../ref/class-based-views/flattened-index.html#DetailView"·title="DetailView"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DetailView</span></code></a>,·although
475 we’ll·have·to·add·a·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·into·the·context·data·so·we·can476 we’ll·have·to·add·a·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·into·the·context·data·so·we·can
476 render·it·in·the·template.·We’ll·also·want·to·pull·in·form·processing477 render·it·in·the·template.·We’ll·also·want·to·pull·in·form·processing
477 from·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin"·title="django.views.generic.edit.FormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FormMixin</span></code></a>,·and·write·a·bit·of478 from·<a·class="reference·internal"·href="../../ref/class-based-views/mixins-editing.html#django.views.generic.edit.FormMixin"·title="django.views.generic.edit.FormMixin"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FormMixin</span></code></a>,·and·write·a·bit·of
478 code·so·that·on·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·the·form·gets·called·appropriately.</p>479 code·so·that·on·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·the·form·gets·called·appropriately.</p>
479 <div·class="admonition·note">480 <div·class="admonition·note">
Max diff block lines reached; 3968/16326 bytes (24.30%) of diff not shown.
9.63 KB
html2text {}
Max HTML report size reached
14.0 KB
./usr/share/doc/python-django-doc/html/topics/conditional-view-processing.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Conditional·View·Processing·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Conditional·View·Processing·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Cryptographic·signing"·href="signing.html"·/>15 ····<link·rel="next"·title="Cryptographic·signing"·href="signing.html"·/>
15 ····<link·rel="prev"·title="Django’s·cache·framework"·href="cache.html"·/>16 ····<link·rel="prev"·title="Django’s·cache·framework"·href="cache.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 103, 15 lines modifiedOffset 104, 15 lines modified
103 processing·functions.</p>104 processing·functions.</p>
104 <section·id="s-the-condition-decorator">105 <section·id="s-the-condition-decorator">
105 <span·id="s-conditional-decorators"></span><span·id="the-condition-decorator"></span><span·id="conditional-decorators"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·decorator<a·class="headerlink"·href="#the-condition-decorator"·title="Link·to·this·heading">¶</a></h2>106 <span·id="s-conditional-decorators"></span><span·id="the-condition-decorator"></span><span·id="conditional-decorators"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·decorator<a·class="headerlink"·href="#the-condition-decorator"·title="Link·to·this·heading">¶</a></h2>
106 <p>Sometimes·(in·fact,·quite·often)·you·can·create·functions·to·rapidly·compute107 <p>Sometimes·(in·fact,·quite·often)·you·can·create·functions·to·rapidly·compute
107 the·<span·class="target"·id="index-4"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-8.8.3"><strong>ETag</strong></a>·value·or·the·last-modified·time·for·a108 the·<span·class="target"·id="index-4"></span><a·class="rfc·reference·external"·href="https://datatracker.ietf.org/doc/html/rfc9110.html#section-8.8.3"><strong>ETag</strong></a>·value·or·the·last-modified·time·for·a
108 resource,·<strong>without</strong>·needing·to·do·all·the·computations·needed·to·construct109 resource,·<strong>without</strong>·needing·to·do·all·the·computations·needed·to·construct
109 the·full·view.·Django·can·then·use·these·functions·to·provide·an110 the·full·view.·Django·can·then·use·these·functions·to·provide·an
110 early·bailout·option·for·the·view·processing.·Telling·the·client·that·the111 «early·bailout»·option·for·the·view·processing.·Telling·the·client·that·the
111 content·has·not·been·modified·since·the·last·request,·perhaps.</p>112 content·has·not·been·modified·since·the·last·request,·perhaps.</p>
112 <p>These·two·functions·are·passed·as·parameters·to·the113 <p>These·two·functions·are·passed·as·parameters·to·the
113 <code·class="docutils·literal·notranslate"><span·class="pre">django.views.decorators.http.condition</span></code>·decorator.·This·decorator·uses114 <code·class="docutils·literal·notranslate"><span·class="pre">django.views.decorators.http.condition</span></code>·decorator.·This·decorator·uses
114 the·two·functions·(you·only·need·to·supply·one,·if·you·can’t·compute·both115 the·two·functions·(you·only·need·to·supply·one,·if·you·can’t·compute·both
115 quantities·easily·and·quickly)·to·work·out·if·the·headers·in·the·HTTP·request116 quantities·easily·and·quickly)·to·work·out·if·the·headers·in·the·HTTP·request
116 match·those·on·the·resource.·If·they·don’t·match,·a·new·copy·of·the·resource117 match·those·on·the·resource.·If·they·don’t·match,·a·new·copy·of·the·resource
117 must·be·computed·and·your·normal·view·is·called.</p>118 must·be·computed·and·your·normal·view·is·called.</p>
Offset 229, 27 lines modifiedOffset 230, 27 lines modified
229 </section>230 </section>
230 <section·id="s-using-the-decorators-with-other-http-methods">231 <section·id="s-using-the-decorators-with-other-http-methods">
231 <span·id="using-the-decorators-with-other-http-methods"></span><h2>Using·the·decorators·with·other·HTTP·methods<a·class="headerlink"·href="#using-the-decorators-with-other-http-methods"·title="Link·to·this·heading">¶</a></h2>232 <span·id="using-the-decorators-with-other-http-methods"></span><h2>Using·the·decorators·with·other·HTTP·methods<a·class="headerlink"·href="#using-the-decorators-with-other-http-methods"·title="Link·to·this·heading">¶</a></h2>
232 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·decorator·is·useful·for·more·than·only·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·and233 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">condition</span></code>·decorator·is·useful·for·more·than·only·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·and
233 <code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>·requests·(<code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>·requests·are·the·same·as·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·in·this234 <code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>·requests·(<code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>·requests·are·the·same·as·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·in·this
234 situation).·It·can·also·be·used·to·provide·checking·for·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>,235 situation).·It·can·also·be·used·to·provide·checking·for·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>,
235 <code·class="docutils·literal·notranslate"><span·class="pre">PUT</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">DELETE</span></code>·requests.·In·these·situations,·the·idea·isn’t·to·return236 <code·class="docutils·literal·notranslate"><span·class="pre">PUT</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">DELETE</span></code>·requests.·In·these·situations,·the·idea·isn’t·to·return
236 a·not·modified·response,·but·to·tell·the·client·that·the·resource·they·are237 a·«not·modified»·response,·but·to·tell·the·client·that·the·resource·they·are
237 trying·to·change·has·been·altered·in·the·meantime.</p>238 trying·to·change·has·been·altered·in·the·meantime.</p>
238 <p>For·example,·consider·the·following·exchange·between·the·client·and·server:</p>239 <p>For·example,·consider·the·following·exchange·between·the·client·and·server:</p>
239 <ol·class="arabic·simple">240 <ol·class="arabic·simple">
240 <li><p>Client·requests·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>.</p></li>241 <li><p>Client·requests·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>.</p></li>
241 <li><p>Server·responds·with·some·content·with·an·ETag·of·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;abcd1234&quot;</span></code>.</p></li>242 <li><p>Server·responds·with·some·content·with·an·ETag·of·<code·class="docutils·literal·notranslate"><span·class="pre">&quot;abcd1234&quot;</span></code>.</p></li>
242 <li><p>Client·sends·an·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">PUT</span></code>·request·to·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>·to·update·the243 <li><p>Client·sends·an·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">PUT</span></code>·request·to·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>·to·update·the
243 resource.·It·also·sends·an·<code·class="docutils·literal·notranslate"><span·class="pre">If-Match:</span>·<span·class="pre">&quot;abcd1234&quot;</span></code>·header·to·specify244 resource.·It·also·sends·an·<code·class="docutils·literal·notranslate"><span·class="pre">If-Match:</span>·<span·class="pre">&quot;abcd1234&quot;</span></code>·header·to·specify
244 the·version·it·is·trying·to·update.</p></li>245 the·version·it·is·trying·to·update.</p></li>
245 <li><p>Server·checks·to·see·if·the·resource·has·changed,·by·computing·the·ETag246 <li><p>Server·checks·to·see·if·the·resource·has·changed,·by·computing·the·ETag
246 the·same·way·it·does·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request·(using·the·same·function).247 the·same·way·it·does·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request·(using·the·same·function).
247 If·the·resource·<em>has</em>·changed,·it·will·return·a·412·status·code,248 If·the·resource·<em>has</em>·changed,·it·will·return·a·412·status·code,
248 meaning·precondition·failed.</p></li>249 meaning·«precondition·failed».</p></li>
249 <li><p>Client·sends·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request·to·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>,·after·receiving·a·412250 <li><p>Client·sends·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request·to·<code·class="docutils·literal·notranslate"><span·class="pre">/foo/</span></code>,·after·receiving·a·412
250 response,·to·retrieve·an·updated·version·of·the·content·before·updating251 response,·to·retrieve·an·updated·version·of·the·content·before·updating
251 it.</p></li>252 it.</p></li>
252 </ol>253 </ol>
253 <p>The·important·thing·this·example·shows·is·that·the·same·functions·can·be·used254 <p>The·important·thing·this·example·shows·is·that·the·same·functions·can·be·used
254 to·compute·the·ETag·and·last·modification·values·in·all·situations.·In·fact,255 to·compute·the·ETag·and·last·modification·values·in·all·situations.·In·fact,
255 you·<strong>should</strong>·use·the·same·functions,·so·that·the·same·values·are·returned256 you·<strong>should</strong>·use·the·same·functions,·so·that·the·same·values·are·returned
Offset 306, 37 lines modifiedOffset 307, 37 lines modified
306 <li><a·class="reference·internal"·href="#comparison-with-middleware-conditional-processing">Comparison·with·middleware·conditional·processing</a></li>307 <li><a·class="reference·internal"·href="#comparison-with-middleware-conditional-processing">Comparison·with·middleware·conditional·processing</a></li>
307 </ul>308 </ul>
308 </li>309 </li>
309 </ul>310 </ul>
  
310 ··</div>311 ··</div>
311 ··<div>312 ··<div>
312 ····<h4>Previous·topic</h4>313 ····<h4>Argomento·precedente</h4>
313 ····<p·class="topless"><a·href="cache.html"314 ····<p·class="topless"><a·href="cache.html"
314 ··························title="previous·chapter">Django’s·cache·framework</a></p>315 ··························title="capitolo·precedente">Django’s·cache·framework</a></p>
315 ··</div>316 ··</div>
316 ··<div>317 ··<div>
317 ····<h4>Next·topic</h4>318 ····<h4>Argomento·successivo</h4>
318 ····<p·class="topless"><a·href="signing.html"319 ····<p·class="topless"><a·href="signing.html"
319 ··························title="next·chapter">Cryptographic·signing</a></p>320 ··························title="capitolo·successivo">Cryptographic·signing</a></p>
320 ··</div>321 ··</div>
321 <search·id="searchbox"·style="display:·none"·role="search">322 <search·id="searchbox"·style="display:·none"·role="search">
322 ··<h3·id="searchlabel">Quick·search</h3>323 ··<h3·id="searchlabel">Ricerca·veloce</h3>
323 ····<div·class="searchformwrapper">324 ····<div·class="searchformwrapper">
324 ····<form·class="search"·action="../search.html"·method="get">325 ····<form·class="search"·action="../search.html"·method="get">
325 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>326 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
326 ······<input·type="submit"·value="Go"·/>327 ······<input·type="submit"·value="Vai"·/>
327 ····</form>328 ····</form>
328 ····</div>329 ····</div>
329 </search>330 </search>
330 <script>document.getElementById('searchbox').style.display·=·"block"</script>331 <script>document.getElementById('searchbox').style.display·=·"block"</script>
331 ········</div>332 ········</div>
332 ······</div>333 ······</div>
333 ··············<h3>Last·update:</h3>334 ··············<h3>Last·update:</h3>
334 ··············<p·class="topless">Sep·03,·2024</p>335 ··············<p·class="topless">set·03,·2024</p>
335 ··········</div>336 ··········</div>
336 ········337 ········
337 ······338 ······
338 ····</div>339 ····</div>
  
339 ····<div·id="ft">340 ····<div·id="ft">
340 ······<div·class="nav">341 ······<div·class="nav">
5.57 KB
html2text {}
Max HTML report size reached
20.2 KB
./usr/share/doc/python-django-doc/html/topics/db/aggregation.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Aggregation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Aggregation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Search"·href="search.html"·/>15 ····<link·rel="next"·title="Search"·href="search.html"·/>
15 ····<link·rel="prev"·title="Making·queries"·href="queries.html"·/>16 ····<link·rel="prev"·title="Making·queries"·href="queries.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 326, 15 lines modifiedOffset 327, 15 lines modified
326 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Store</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">youngest_age</span><span·class="o">=</span><span·class="n">Min</span><span·class="p">(</span><span·class="s2">&quot;books__authors__age&quot;</span><span·class="p">))</span>327 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Store</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">youngest_age</span><span·class="o">=</span><span·class="n">Min</span><span·class="p">(</span><span·class="s2">&quot;books__authors__age&quot;</span><span·class="p">))</span>
327 </pre></div>328 </pre></div>
328 </div>329 </div>
329 <section·id="s-following-relationships-backwards">330 <section·id="s-following-relationships-backwards">
330 <span·id="following-relationships-backwards"></span><h3>Following·relationships·backwards<a·class="headerlink"·href="#following-relationships-backwards"·title="Link·to·this·heading">¶</a></h3>331 <span·id="following-relationships-backwards"></span><h3>Following·relationships·backwards<a·class="headerlink"·href="#following-relationships-backwards"·title="Link·to·this·heading">¶</a></h3>
331 <p>In·a·way·similar·to·<a·class="reference·internal"·href="queries.html#lookups-that-span-relationships"><span·class="std·std-ref">Lookups·that·span·relationships</span></a>,·aggregations·and332 <p>In·a·way·similar·to·<a·class="reference·internal"·href="queries.html#lookups-that-span-relationships"><span·class="std·std-ref">Lookups·that·span·relationships</span></a>,·aggregations·and
332 annotations·on·fields·of·models·or·models·that·are·related·to·the·one·you·are333 annotations·on·fields·of·models·or·models·that·are·related·to·the·one·you·are
333 querying·can·include·traversing·reverse·relationships.·The·lowercase·name334 querying·can·include·traversing·«reverse»·relationships.·The·lowercase·name
334 of·related·models·and·double-underscores·are·used·here·too.</p>335 of·related·models·and·double-underscores·are·used·here·too.</p>
335 <p>For·example,·we·can·ask·for·all·publishers,·annotated·with·their·respective336 <p>For·example,·we·can·ask·for·all·publishers,·annotated·with·their·respective
336 total·book·stock·counters·(note·how·we·use·<code·class="docutils·literal·notranslate"><span·class="pre">'book'</span></code>·to·specify·the337 total·book·stock·counters·(note·how·we·use·<code·class="docutils·literal·notranslate"><span·class="pre">'book'</span></code>·to·specify·the
337 <code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·-&gt;·<code·class="docutils·literal·notranslate"><span·class="pre">Book</span></code>·reverse·foreign·key·hop):</p>338 <code·class="docutils·literal·notranslate"><span·class="pre">Publisher</span></code>·-&gt;·<code·class="docutils·literal·notranslate"><span·class="pre">Book</span></code>·reverse·foreign·key·hop):</p>
338 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Avg</span><span·class="p">,</span>·<span·class="n">Count</span><span·class="p">,</span>·<span·class="n">Min</span><span·class="p">,</span>·<span·class="n">Sum</span>339 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Avg</span><span·class="p">,</span>·<span·class="n">Count</span><span·class="p">,</span>·<span·class="n">Min</span><span·class="p">,</span>·<span·class="n">Sum</span>
339 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Publisher</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span><span·class="n">Count</span><span·class="p">(</span><span·class="s2">&quot;book&quot;</span><span·class="p">))</span>340 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Publisher</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span><span·class="n">Count</span><span·class="p">(</span><span·class="s2">&quot;book&quot;</span><span·class="p">))</span>
340 </pre></div>341 </pre></div>
Offset 372, 23 lines modifiedOffset 373, 23 lines modified
372 <span·id="filter-and-exclude"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code><a·class="headerlink"·href="#filter-and-exclude"·title="Link·to·this·heading">¶</a></h3>373 <span·id="filter-and-exclude"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code><a·class="headerlink"·href="#filter-and-exclude"·title="Link·to·this·heading">¶</a></h3>
373 <p>Aggregates·can·also·participate·in·filters.·Any·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·(or374 <p>Aggregates·can·also·participate·in·filters.·Any·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·(or
374 <code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>)·applied·to·normal·model·fields·will·have·the·effect·of375 <code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>)·applied·to·normal·model·fields·will·have·the·effect·of
375 constraining·the·objects·that·are·considered·for·aggregation.</p>376 constraining·the·objects·that·are·considered·for·aggregation.</p>
376 <p>When·used·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·clause,·a·filter·has·the·effect·of377 <p>When·used·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·clause,·a·filter·has·the·effect·of
377 constraining·the·objects·for·which·an·annotation·is·calculated.·For·example,378 constraining·the·objects·for·which·an·annotation·is·calculated.·For·example,
378 you·can·generate·an·annotated·list·of·all·books·that·have·a·title·starting379 you·can·generate·an·annotated·list·of·all·books·that·have·a·title·starting
379 with·Django·using·the·query:</p>380 with·«Django»·using·the·query:</p>
380 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Avg</span><span·class="p">,</span>·<span·class="n">Count</span>381 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.db.models</span>·<span·class="kn">import</span>·<span·class="n">Avg</span><span·class="p">,</span>·<span·class="n">Count</span>
381 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__startswith</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span><span·class="n">num_authors</span><span·class="o">=</span><span·class="n">Count</span><span·class="p">(</span><span·class="s2">&quot;authors&quot;</span><span·class="p">))</span>382 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__startswith</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span><span·class="n">num_authors</span><span·class="o">=</span><span·class="n">Count</span><span·class="p">(</span><span·class="s2">&quot;authors&quot;</span><span·class="p">))</span>
382 </pre></div>383 </pre></div>
383 </div>384 </div>
384 <p>When·used·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>·clause,·a·filter·has·the·effect·of385 <p>When·used·with·an·<code·class="docutils·literal·notranslate"><span·class="pre">aggregate()</span></code>·clause,·a·filter·has·the·effect·of
385 constraining·the·objects·over·which·the·aggregate·is·calculated.386 constraining·the·objects·over·which·the·aggregate·is·calculated.
386 For·example,·you·can·generate·the·average·price·of·all·books·with·a387 For·example,·you·can·generate·the·average·price·of·all·books·with·a
387 title·that·starts·with·Django·using·the·query:</p>388 title·that·starts·with·«Django»·using·the·query:</p>
388 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__startswith</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">Avg</span><span·class="p">(</span><span·class="s2">&quot;price&quot;</span><span·class="p">))</span>389 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Book</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__startswith</span><span·class="o">=</span><span·class="s2">&quot;Django&quot;</span><span·class="p">)</span><span·class="o">.</span><span·class="n">aggregate</span><span·class="p">(</span><span·class="n">Avg</span><span·class="p">(</span><span·class="s2">&quot;price&quot;</span><span·class="p">))</span>
389 </pre></div>390 </pre></div>
390 </div>391 </div>
391 <section·id="s-filtering-on-annotations">392 <section·id="s-filtering-on-annotations">
392 <span·id="s-id2"></span><span·id="filtering-on-annotations"></span><span·id="id2"></span><h4>Filtering·on·annotations<a·class="headerlink"·href="#filtering-on-annotations"·title="Link·to·this·heading">¶</a></h4>393 <span·id="s-id2"></span><span·id="filtering-on-annotations"></span><span·id="id2"></span><h4>Filtering·on·annotations<a·class="headerlink"·href="#filtering-on-annotations"·title="Link·to·this·heading">¶</a></h4>
393 <p>Annotated·values·can·also·be·filtered.·The·alias·for·the·annotation·can·be394 <p>Annotated·values·can·also·be·filtered.·The·alias·for·the·annotation·can·be
394 used·in·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>·clauses·in·the·same·way·as·any·other395 used·in·<code·class="docutils·literal·notranslate"><span·class="pre">filter()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">exclude()</span></code>·clauses·in·the·same·way·as·any·other
Offset 549, 15 lines modifiedOffset 550, 15 lines modified
549 clause·is·applied·after·the·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·clause,·you·need·to·explicitly550 clause·is·applied·after·the·<code·class="docutils·literal·notranslate"><span·class="pre">annotate()</span></code>·clause,·you·need·to·explicitly
550 include·the·aggregate·column.</p>551 include·the·aggregate·column.</p>
551 </section>552 </section>
552 <section·id="s-interaction-with-order-by">553 <section·id="s-interaction-with-order-by">
553 <span·id="s-aggregation-ordering-interaction"></span><span·id="interaction-with-order-by"></span><span·id="aggregation-ordering-interaction"></span><h4>Interaction·with·<code·class="docutils·literal·notranslate"><span·class="pre">order_by()</span></code><a·class="headerlink"·href="#interaction-with-order-by"·title="Link·to·this·heading">¶</a></h4>554 <span·id="s-aggregation-ordering-interaction"></span><span·id="interaction-with-order-by"></span><span·id="aggregation-ordering-interaction"></span><h4>Interaction·with·<code·class="docutils·literal·notranslate"><span·class="pre">order_by()</span></code><a·class="headerlink"·href="#interaction-with-order-by"·title="Link·to·this·heading">¶</a></h4>
554 <p>Fields·that·are·mentioned·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">order_by()</span></code>·part·of·a·queryset·are·used555 <p>Fields·that·are·mentioned·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">order_by()</span></code>·part·of·a·queryset·are·used
555 when·selecting·the·output·data,·even·if·they·are·not·otherwise·specified·in·the556 when·selecting·the·output·data,·even·if·they·are·not·otherwise·specified·in·the
556 <code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·call.·These·extra·fields·are·used·to·group·like·results·together557 <code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·call.·These·extra·fields·are·used·to·group·«like»·results·together
557 and·they·can·make·otherwise·identical·result·rows·appear·to·be·separate.·This558 and·they·can·make·otherwise·identical·result·rows·appear·to·be·separate.·This
558 shows·up,·particularly,·when·counting·things.</p>559 shows·up,·particularly,·when·counting·things.</p>
559 <p>By·way·of·example,·suppose·you·have·a·model·like·this:</p>560 <p>By·way·of·example,·suppose·you·have·a·model·like·this:</p>
560 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>561 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
  
  
561 <span·class="k">class</span>·<span·class="nc">Item</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>562 <span·class="k">class</span>·<span·class="nc">Item</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Model</span><span·class="p">):</span>
Offset 585, 19 lines modifiedOffset 586, 19 lines modified
585 query.</p>586 query.</p>
586 <p>This·behavior·is·the·same·as·that·noted·in·the·queryset·documentation·for587 <p>This·behavior·is·the·same·as·that·noted·in·the·queryset·documentation·for
587 <a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.distinct"·title="django.db.models.query.QuerySet.distinct"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">distinct()</span></code></a>·and·the·general·rule·is·the588 <a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.distinct"·title="django.db.models.query.QuerySet.distinct"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">distinct()</span></code></a>·and·the·general·rule·is·the
588 same:·normally·you·won’t·want·extra·columns·playing·a·part·in·the·result,·so589 same:·normally·you·won’t·want·extra·columns·playing·a·part·in·the·result,·so
589 clear·out·the·ordering,·or·at·least·make·sure·it’s·restricted·only·to·those590 clear·out·the·ordering,·or·at·least·make·sure·it’s·restricted·only·to·those
590 fields·you·also·select·in·a·<code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·call.</p>591 fields·you·also·select·in·a·<code·class="docutils·literal·notranslate"><span·class="pre">values()</span></code>·call.</p>
591 <div·class="admonition·note">592 <div·class="admonition·note">
592 <p·class="admonition-title">Note</p>593 <p·class="admonition-title">Nota</p>
593 <p>You·might·reasonably·ask·why·Django·doesn’t·remove·the·extraneous·columns594 <p>You·might·reasonably·ask·why·Django·doesn’t·remove·the·extraneous·columns
594 for·you.·The·main·reason·is·consistency·with·<code·class="docutils·literal·notranslate"><span·class="pre">distinct()</span></code>·and·other595 for·you.·The·main·reason·is·consistency·with·<code·class="docutils·literal·notranslate"><span·class="pre">distinct()</span></code>·and·other
595 places:·Django·<strong>never</strong>·removes·ordering·constraints·that·you·have596 places:·Django·<strong>never</strong>·removes·ordering·constraints·that·you·have
596 specified·(and·we·can’t·change·those·other·methods·behavior,·as·that597 specified·(and·we·can’t·change·those·other·methods·behavior,·as·that
597 would·violate·our·<a·class="reference·internal"·href="../../misc/api-stability.html"><span·class="doc">API·stability</span></a>·policy).</p>598 would·violate·our·<a·class="reference·internal"·href="../../misc/api-stability.html"><span·class="doc">API·stability</span></a>·policy).</p>
598 </div>599 </div>
599 </section>600 </section>
600 </section>601 </section>
601 <section·id="s-aggregating-annotations">602 <section·id="s-aggregating-annotations">
602 <span·id="aggregating-annotations"></span><h3>Aggregating·annotations<a·class="headerlink"·href="#aggregating-annotations"·title="Link·to·this·heading">¶</a></h3>603 <span·id="aggregating-annotations"></span><h3>Aggregating·annotations<a·class="headerlink"·href="#aggregating-annotations"·title="Link·to·this·heading">¶</a></h3>
603 <p>You·can·also·generate·an·aggregate·on·the·result·of·an·annotation.·When·you604 <p>You·can·also·generate·an·aggregate·on·the·result·of·an·annotation.·When·you
Offset 685, 37 lines modifiedOffset 686, 37 lines modified
685 </li>686 </li>
686 </ul>687 </ul>
687 </li>688 </li>
688 </ul>689 </ul>
  
689 ··</div>690 ··</div>
690 ··<div>691 ··<div>
691 ····<h4>Previous·topic</h4>692 ····<h4>Argomento·precedente</h4>
692 ····<p·class="topless"><a·href="queries.html"693 ····<p·class="topless"><a·href="queries.html"
693 ··························title="previous·chapter">Making·queries</a></p>694 ··························title="capitolo·precedente">Making·queries</a></p>
694 ··</div>695 ··</div>
Max diff block lines reached; 1107/12962 bytes (8.54%) of diff not shown.
7.38 KB
html2text {}
Max HTML report size reached
5.6 KB
./usr/share/doc/python-django-doc/html/topics/db/examples/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Examples·of·model·relationship·API·usage·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Examples·of·model·relationship·API·usage·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Many-to-many·relationships"·href="many_to_many.html"·/>15 ····<link·rel="next"·title="Many-to-many·relationships"·href="many_to_many.html"·/>
15 ····<link·rel="prev"·title="Fixtures"·href="../fixtures.html"·/>16 ····<link·rel="prev"·title="Fixtures"·href="../fixtures.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 95, 37 lines modifiedOffset 96, 37 lines modified
95 ······96 ······
96 ········97 ········
97 ··········<div·class="yui-b"·id="sidebar">98 ··········<div·class="yui-b"·id="sidebar">
98 ············99 ············
99 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">100 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
100 ········<div·class="sphinxsidebarwrapper">101 ········<div·class="sphinxsidebarwrapper">
101 ··<div>102 ··<div>
102 ····<h4>Previous·topic</h4>103 ····<h4>Argomento·precedente</h4>
103 ····<p·class="topless"><a·href="../fixtures.html"104 ····<p·class="topless"><a·href="../fixtures.html"
104 ··························title="previous·chapter">Fixtures</a></p>105 ··························title="capitolo·precedente">Fixtures</a></p>
105 ··</div>106 ··</div>
106 ··<div>107 ··<div>
107 ····<h4>Next·topic</h4>108 ····<h4>Argomento·successivo</h4>
108 ····<p·class="topless"><a·href="many_to_many.html"109 ····<p·class="topless"><a·href="many_to_many.html"
109 ··························title="next·chapter">Many-to-many·relationships</a></p>110 ··························title="capitolo·successivo">Many-to-many·relationships</a></p>
110 ··</div>111 ··</div>
111 <search·id="searchbox"·style="display:·none"·role="search">112 <search·id="searchbox"·style="display:·none"·role="search">
112 ··<h3·id="searchlabel">Quick·search</h3>113 ··<h3·id="searchlabel">Ricerca·veloce</h3>
113 ····<div·class="searchformwrapper">114 ····<div·class="searchformwrapper">
114 ····<form·class="search"·action="../../../search.html"·method="get">115 ····<form·class="search"·action="../../../search.html"·method="get">
115 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>116 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
116 ······<input·type="submit"·value="Go"·/>117 ······<input·type="submit"·value="Vai"·/>
117 ····</form>118 ····</form>
118 ····</div>119 ····</div>
119 </search>120 </search>
120 <script>document.getElementById('searchbox').style.display·=·"block"</script>121 <script>document.getElementById('searchbox').style.display·=·"block"</script>
121 ········</div>122 ········</div>
122 ······</div>123 ······</div>
123 ··············<h3>Last·update:</h3>124 ··············<h3>Last·update:</h3>
124 ··············<p·class="topless">Sep·03,·2024</p>125 ··············<p·class="topless">set·03,·2024</p>
125 ··········</div>126 ··········</div>
126 ········127 ········
127 ······128 ······
128 ····</div>129 ····</div>
  
129 ····<div·id="ft">130 ····<div·id="ft">
130 ······<div·class="nav">131 ······<div·class="nav">
1.63 KB
html2text {}
Max HTML report size reached
8.75 KB
./usr/share/doc/python-django-doc/html/topics/db/examples/many_to_many.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Many-to-many·relationships·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Many-to-many·relationships·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Many-to-one·relationships"·href="many_to_one.html"·/>15 ····<link·rel="next"·title="Many-to-one·relationships"·href="many_to_one.html"·/>
15 ····<link·rel="prev"·title="Examples·of·model·relationship·API·usage"·href="index.html"·/>16 ····<link·rel="prev"·title="Examples·of·model·relationship·API·usage"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 252, 15 lines modifiedOffset 253, 15 lines modified
252 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a2</span><span·class="o">.</span><span·class="n">delete</span><span·class="p">()</span>253 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a2</span><span·class="o">.</span><span·class="n">delete</span><span·class="p">()</span>
253 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Article</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>254 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Article</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
254 <span·class="go">&lt;QuerySet·[&lt;Article:·Django·lets·you·build·web·apps·easily&gt;]&gt;</span>255 <span·class="go">&lt;QuerySet·[&lt;Article:·Django·lets·you·build·web·apps·easily&gt;]&gt;</span>
255 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>256 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
256 <span·class="go">&lt;QuerySet·[]&gt;</span>257 <span·class="go">&lt;QuerySet·[]&gt;</span>
257 </pre></div>258 </pre></div>
258 </div>259 </div>
259 <p>Adding·via·the·other·end·of·an·m2m:</p>260 <p>Adding·via·the·other·end·of·an·m2m:</p>
260 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span>·<span·class="o">=</span>·<span·class="n">Article</span><span·class="p">(</span><span·class="n">headline</span><span·class="o">=</span><span·class="s2">&quot;NASA·finds·intelligent·life·on·Earth&quot;</span><span·class="p">)</span>261 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span>·<span·class="o">=</span>·<span·class="n">Article</span><span·class="p">(</span><span·class="n">headline</span><span·class="o">=</span><span·class="s2">&quot;NASA·finds·intelligent·life·on·Earth&quot;</span><span·class="p">)</span>
261 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>262 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
262 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">add</span><span·class="p">(</span><span·class="n">a4</span><span·class="p">)</span>263 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">add</span><span·class="p">(</span><span·class="n">a4</span><span·class="p">)</span>
263 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>264 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">article_set</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
264 <span·class="go">&lt;QuerySet·[&lt;Article:·NASA·finds·intelligent·life·on·Earth&gt;]&gt;</span>265 <span·class="go">&lt;QuerySet·[&lt;Article:·NASA·finds·intelligent·life·on·Earth&gt;]&gt;</span>
265 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span><span·class="o">.</span><span·class="n">publications</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>266 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">a4</span><span·class="o">.</span><span·class="n">publications</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
266 <span·class="go">&lt;QuerySet·[&lt;Publication:·Science·News&gt;]&gt;</span>267 <span·class="go">&lt;QuerySet·[&lt;Publication:·Science·News&gt;]&gt;</span>
Offset 362, 37 lines modifiedOffset 363, 37 lines modified
362 ······363 ······
363 ········364 ········
364 ··········<div·class="yui-b"·id="sidebar">365 ··········<div·class="yui-b"·id="sidebar">
365 ············366 ············
366 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">367 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
367 ········<div·class="sphinxsidebarwrapper">368 ········<div·class="sphinxsidebarwrapper">
368 ··<div>369 ··<div>
369 ····<h4>Previous·topic</h4>370 ····<h4>Argomento·precedente</h4>
370 ····<p·class="topless"><a·href="index.html"371 ····<p·class="topless"><a·href="index.html"
371 ··························title="previous·chapter">Examples·of·model·relationship·API·usage</a></p>372 ··························title="capitolo·precedente">Examples·of·model·relationship·API·usage</a></p>
372 ··</div>373 ··</div>
373 ··<div>374 ··<div>
374 ····<h4>Next·topic</h4>375 ····<h4>Argomento·successivo</h4>
375 ····<p·class="topless"><a·href="many_to_one.html"376 ····<p·class="topless"><a·href="many_to_one.html"
376 ··························title="next·chapter">Many-to-one·relationships</a></p>377 ··························title="capitolo·successivo">Many-to-one·relationships</a></p>
377 ··</div>378 ··</div>
378 <search·id="searchbox"·style="display:·none"·role="search">379 <search·id="searchbox"·style="display:·none"·role="search">
379 ··<h3·id="searchlabel">Quick·search</h3>380 ··<h3·id="searchlabel">Ricerca·veloce</h3>
380 ····<div·class="searchformwrapper">381 ····<div·class="searchformwrapper">
381 ····<form·class="search"·action="../../../search.html"·method="get">382 ····<form·class="search"·action="../../../search.html"·method="get">
382 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>383 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
383 ······<input·type="submit"·value="Go"·/>384 ······<input·type="submit"·value="Vai"·/>
384 ····</form>385 ····</form>
385 ····</div>386 ····</div>
386 </search>387 </search>
387 <script>document.getElementById('searchbox').style.display·=·"block"</script>388 <script>document.getElementById('searchbox').style.display·=·"block"</script>
388 ········</div>389 ········</div>
389 ······</div>390 ······</div>
390 ··············<h3>Last·update:</h3>391 ··············<h3>Last·update:</h3>
391 ··············<p·class="topless">Sep·03,·2024</p>392 ··············<p·class="topless">set·03,·2024</p>
392 ··········</div>393 ··········</div>
393 ········394 ········
394 ······395 ······
395 ····</div>396 ····</div>
  
396 ····<div·id="ft">397 ····<div·id="ft">
397 ······<div·class="nav">398 ······<div·class="nav">
2.54 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/topics/db/examples/many_to_one.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Many-to-one·relationships·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Many-to-one·relationships·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="One-to-one·relationships"·href="one_to_one.html"·/>15 ····<link·rel="next"·title="One-to-one·relationships"·href="one_to_one.html"·/>
15 ····<link·rel="prev"·title="Many-to-many·relationships"·href="many_to_many.html"·/>16 ····<link·rel="prev"·title="Many-to-many·relationships"·href="many_to_many.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 301, 37 lines modifiedOffset 302, 37 lines modified
301 ······302 ······
302 ········303 ········
303 ··········<div·class="yui-b"·id="sidebar">304 ··········<div·class="yui-b"·id="sidebar">
304 ············305 ············
305 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">306 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
306 ········<div·class="sphinxsidebarwrapper">307 ········<div·class="sphinxsidebarwrapper">
307 ··<div>308 ··<div>
308 ····<h4>Previous·topic</h4>309 ····<h4>Argomento·precedente</h4>
309 ····<p·class="topless"><a·href="many_to_many.html"310 ····<p·class="topless"><a·href="many_to_many.html"
310 ··························title="previous·chapter">Many-to-many·relationships</a></p>311 ··························title="capitolo·precedente">Many-to-many·relationships</a></p>
311 ··</div>312 ··</div>
312 ··<div>313 ··<div>
313 ····<h4>Next·topic</h4>314 ····<h4>Argomento·successivo</h4>
314 ····<p·class="topless"><a·href="one_to_one.html"315 ····<p·class="topless"><a·href="one_to_one.html"
315 ··························title="next·chapter">One-to-one·relationships</a></p>316 ··························title="capitolo·successivo">One-to-one·relationships</a></p>
316 ··</div>317 ··</div>
317 <search·id="searchbox"·style="display:·none"·role="search">318 <search·id="searchbox"·style="display:·none"·role="search">
318 ··<h3·id="searchlabel">Quick·search</h3>319 ··<h3·id="searchlabel">Ricerca·veloce</h3>
319 ····<div·class="searchformwrapper">320 ····<div·class="searchformwrapper">
320 ····<form·class="search"·action="../../../search.html"·method="get">321 ····<form·class="search"·action="../../../search.html"·method="get">
321 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>322 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
322 ······<input·type="submit"·value="Go"·/>323 ······<input·type="submit"·value="Vai"·/>
323 ····</form>324 ····</form>
324 ····</div>325 ····</div>
325 </search>326 </search>
326 <script>document.getElementById('searchbox').style.display·=·"block"</script>327 <script>document.getElementById('searchbox').style.display·=·"block"</script>
327 ········</div>328 ········</div>
328 ······</div>329 ······</div>
329 ··············<h3>Last·update:</h3>330 ··············<h3>Last·update:</h3>
330 ··············<p·class="topless">Sep·03,·2024</p>331 ··············<p·class="topless">set·03,·2024</p>
331 ··········</div>332 ··········</div>
332 ········333 ········
333 ······334 ······
334 ····</div>335 ····</div>
  
335 ····<div·id="ft">336 ····<div·id="ft">
336 ······<div·class="nav">337 ······<div·class="nav">
1.87 KB
html2text {}
Max HTML report size reached
8.93 KB
./usr/share/doc/python-django-doc/html/topics/db/examples/one_to_one.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../../">2 <html·lang="it"·data-content_root="../../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>One-to-one·relationships·&#8212;·Django·4.2.16·documentation</title>6 ····<title>One-to-one·relationships·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../../search.html"·/>
14 ····<link·rel="next"·title="Handling·HTTP·requests"·href="../../http/index.html"·/>15 ····<link·rel="next"·title="Handling·HTTP·requests"·href="../../http/index.html"·/>
15 ····<link·rel="prev"·title="Many-to-one·relationships"·href="many_to_one.html"·/>16 ····<link·rel="prev"·title="Many-to-one·relationships"·href="many_to_one.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../../templatebuiltins.js"></script>18 <script·src="../../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 119, 15 lines modifiedOffset 120, 15 lines modified
119 <p>Create·a·couple·of·Places:</p>120 <p>Create·a·couple·of·Places:</p>
120 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p1</span>·<span·class="o">=</span>·<span·class="n">Place</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Demon·Dogs&quot;</span><span·class="p">,</span>·<span·class="n">address</span><span·class="o">=</span><span·class="s2">&quot;944·W.·Fullerton&quot;</span><span·class="p">)</span>121 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p1</span>·<span·class="o">=</span>·<span·class="n">Place</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Demon·Dogs&quot;</span><span·class="p">,</span>·<span·class="n">address</span><span·class="o">=</span><span·class="s2">&quot;944·W.·Fullerton&quot;</span><span·class="p">)</span>
121 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p1</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>122 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p1</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
122 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span>·<span·class="o">=</span>·<span·class="n">Place</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Ace·Hardware&quot;</span><span·class="p">,</span>·<span·class="n">address</span><span·class="o">=</span><span·class="s2">&quot;1013·N.·Ashland&quot;</span><span·class="p">)</span>123 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span>·<span·class="o">=</span>·<span·class="n">Place</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;Ace·Hardware&quot;</span><span·class="p">,</span>·<span·class="n">address</span><span·class="o">=</span><span·class="s2">&quot;1013·N.·Ashland&quot;</span><span·class="p">)</span>
123 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>124 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p2</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
124 </pre></div>125 </pre></div>
125 </div>126 </div>
126 <p>Create·a·Restaurant.·Pass·the·parent·object·as·this·object’s·primary·key:</p>127 <p>Create·a·Restaurant.·Pass·the·«parent»·object·as·this·object’s·primary·key:</p>
127 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span>·<span·class="o">=</span>·<span·class="n">Restaurant</span><span·class="p">(</span><span·class="n">place</span><span·class="o">=</span><span·class="n">p1</span><span·class="p">,</span>·<span·class="n">serves_hot_dogs</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">serves_pizza</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span>128 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span>·<span·class="o">=</span>·<span·class="n">Restaurant</span><span·class="p">(</span><span·class="n">place</span><span·class="o">=</span><span·class="n">p1</span><span·class="p">,</span>·<span·class="n">serves_hot_dogs</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>·<span·class="n">serves_pizza</span><span·class="o">=</span><span·class="kc">False</span><span·class="p">)</span>
128 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>129 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
129 </pre></div>130 </pre></div>
130 </div>131 </div>
131 <p>A·Restaurant·can·access·its·place:</p>132 <p>A·Restaurant·can·access·its·place:</p>
132 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span><span·class="o">.</span><span·class="n">place</span>133 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">r</span><span·class="o">.</span><span·class="n">place</span>
133 <span·class="go">&lt;Place:·Demon·Dogs·the·place&gt;</span>134 <span·class="go">&lt;Place:·Demon·Dogs·the·place&gt;</span>
Offset 246, 37 lines modifiedOffset 247, 37 lines modified
246 ······247 ······
247 ········248 ········
248 ··········<div·class="yui-b"·id="sidebar">249 ··········<div·class="yui-b"·id="sidebar">
249 ············250 ············
250 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">251 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
251 ········<div·class="sphinxsidebarwrapper">252 ········<div·class="sphinxsidebarwrapper">
252 ··<div>253 ··<div>
253 ····<h4>Previous·topic</h4>254 ····<h4>Argomento·precedente</h4>
254 ····<p·class="topless"><a·href="many_to_one.html"255 ····<p·class="topless"><a·href="many_to_one.html"
255 ··························title="previous·chapter">Many-to-one·relationships</a></p>256 ··························title="capitolo·precedente">Many-to-one·relationships</a></p>
256 ··</div>257 ··</div>
257 ··<div>258 ··<div>
258 ····<h4>Next·topic</h4>259 ····<h4>Argomento·successivo</h4>
259 ····<p·class="topless"><a·href="../../http/index.html"260 ····<p·class="topless"><a·href="../../http/index.html"
260 ··························title="next·chapter">Handling·HTTP·requests</a></p>261 ··························title="capitolo·successivo">Handling·HTTP·requests</a></p>
261 ··</div>262 ··</div>
262 <search·id="searchbox"·style="display:·none"·role="search">263 <search·id="searchbox"·style="display:·none"·role="search">
263 ··<h3·id="searchlabel">Quick·search</h3>264 ··<h3·id="searchlabel">Ricerca·veloce</h3>
264 ····<div·class="searchformwrapper">265 ····<div·class="searchformwrapper">
265 ····<form·class="search"·action="../../../search.html"·method="get">266 ····<form·class="search"·action="../../../search.html"·method="get">
266 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>267 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
267 ······<input·type="submit"·value="Go"·/>268 ······<input·type="submit"·value="Vai"·/>
268 ····</form>269 ····</form>
269 ····</div>270 ····</div>
270 </search>271 </search>
271 <script>document.getElementById('searchbox').style.display·=·"block"</script>272 <script>document.getElementById('searchbox').style.display·=·"block"</script>
272 ········</div>273 ········</div>
273 ······</div>274 ······</div>
274 ··············<h3>Last·update:</h3>275 ··············<h3>Last·update:</h3>
275 ··············<p·class="topless">Sep·03,·2024</p>276 ··············<p·class="topless">set·03,·2024</p>
276 ··········</div>277 ··········</div>
277 ········278 ········
278 ······279 ······
279 ····</div>280 ····</div>
  
280 ····<div·id="ft">281 ····<div·id="ft">
281 ······<div·class="nav">282 ······<div·class="nav">
2.58 KB
html2text {}
Max HTML report size reached
7.55 KB
./usr/share/doc/python-django-doc/html/topics/db/fixtures.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Fixtures·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Fixtures·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Examples·of·model·relationship·API·usage"·href="examples/index.html"·/>15 ····<link·rel="next"·title="Examples·of·model·relationship·API·usage"·href="examples/index.html"·/>
15 ····<link·rel="prev"·title="Database·instrumentation"·href="instrumentation.html"·/>16 ····<link·rel="prev"·title="Database·instrumentation"·href="instrumentation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-db-fixtures">79 ··········<div·class="yui-g"·id="topics-db-fixtures">
79 ············80 ············
80 ··<section·id="s-fixtures">81 ··<section·id="s-fixtures">
81 <span·id="s-fixtures-explanation"></span><span·id="fixtures"></span><span·id="fixtures-explanation"></span><h1>Fixtures<a·class="headerlink"·href="#fixtures"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-fixtures-explanation"></span><span·id="fixtures"></span><span·id="fixtures-explanation"></span><h1>Fixtures<a·class="headerlink"·href="#fixtures"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·seealso">83 <div·class="admonition·seealso">
83 <p·class="admonition-title">See·also</p>84 <p·class="admonition-title">Vedi·anche</p>
84 <ul·class="simple">85 <ul·class="simple">
85 <li><p><a·class="reference·internal"·href="../../howto/initial-data.html"><span·class="doc">How·to·provide·initial·data·for·models</span></a></p></li>86 <li><p><a·class="reference·internal"·href="../../howto/initial-data.html"><span·class="doc">How·to·provide·initial·data·for·models</span></a></p></li>
86 </ul>87 </ul>
87 </div>88 </div>
88 <section·id="s-what-is-a-fixture">89 <section·id="s-what-is-a-fixture">
89 <span·id="what-is-a-fixture"></span><h2>What·is·a·fixture?<a·class="headerlink"·href="#what-is-a-fixture"·title="Link·to·this·heading">¶</a></h2>90 <span·id="what-is-a-fixture"></span><h2>What·is·a·fixture?<a·class="headerlink"·href="#what-is-a-fixture"·title="Link·to·this·heading">¶</a></h2>
90 <p>A·<em>fixture</em>·is·a·collection·of·files·that·contain·the·serialized·contents·of91 <p>A·<em>fixture</em>·is·a·collection·of·files·that·contain·the·serialized·contents·of
Offset 278, 37 lines modifiedOffset 279, 37 lines modified
278 <li><a·class="reference·internal"·href="#database-specific-fixtures">Database-specific·fixtures</a></li>279 <li><a·class="reference·internal"·href="#database-specific-fixtures">Database-specific·fixtures</a></li>
279 </ul>280 </ul>
280 </li>281 </li>
281 </ul>282 </ul>
  
282 ··</div>283 ··</div>
283 ··<div>284 ··<div>
284 ····<h4>Previous·topic</h4>285 ····<h4>Argomento·precedente</h4>
285 ····<p·class="topless"><a·href="instrumentation.html"286 ····<p·class="topless"><a·href="instrumentation.html"
286 ··························title="previous·chapter">Database·instrumentation</a></p>287 ··························title="capitolo·precedente">Database·instrumentation</a></p>
287 ··</div>288 ··</div>
288 ··<div>289 ··<div>
289 ····<h4>Next·topic</h4>290 ····<h4>Argomento·successivo</h4>
290 ····<p·class="topless"><a·href="examples/index.html"291 ····<p·class="topless"><a·href="examples/index.html"
291 ··························title="next·chapter">Examples·of·model·relationship·API·usage</a></p>292 ··························title="capitolo·successivo">Examples·of·model·relationship·API·usage</a></p>
292 ··</div>293 ··</div>
293 <search·id="searchbox"·style="display:·none"·role="search">294 <search·id="searchbox"·style="display:·none"·role="search">
294 ··<h3·id="searchlabel">Quick·search</h3>295 ··<h3·id="searchlabel">Ricerca·veloce</h3>
295 ····<div·class="searchformwrapper">296 ····<div·class="searchformwrapper">
296 ····<form·class="search"·action="../../search.html"·method="get">297 ····<form·class="search"·action="../../search.html"·method="get">
297 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>298 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
298 ······<input·type="submit"·value="Go"·/>299 ······<input·type="submit"·value="Vai"·/>
299 ····</form>300 ····</form>
300 ····</div>301 ····</div>
301 </search>302 </search>
302 <script>document.getElementById('searchbox').style.display·=·"block"</script>303 <script>document.getElementById('searchbox').style.display·=·"block"</script>
303 ········</div>304 ········</div>
304 ······</div>305 ······</div>
305 ··············<h3>Last·update:</h3>306 ··············<h3>Last·update:</h3>
306 ··············<p·class="topless">Sep·03,·2024</p>307 ··············<p·class="topless">set·03,·2024</p>
307 ··········</div>308 ··········</div>
308 ········309 ········
309 ······310 ······
310 ····</div>311 ····</div>
  
311 ····<div·id="ft">312 ····<div·id="ft">
312 ······<div·class="nav">313 ······<div·class="nav">
2.74 KB
html2text {}
Max HTML report size reached
5.87 KB
./usr/share/doc/python-django-doc/html/topics/db/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Models·and·databases·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Models·and·databases·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Models"·href="models.html"·/>15 ····<link·rel="next"·title="Models"·href="models.html"·/>
15 ····<link·rel="prev"·title="How·to·install·Django"·href="../install.html"·/>16 ····<link·rel="prev"·title="How·to·install·Django"·href="../install.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 108, 37 lines modifiedOffset 109, 37 lines modified
108 ······109 ······
109 ········110 ········
110 ··········<div·class="yui-b"·id="sidebar">111 ··········<div·class="yui-b"·id="sidebar">
111 ············112 ············
112 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">113 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
113 ········<div·class="sphinxsidebarwrapper">114 ········<div·class="sphinxsidebarwrapper">
114 ··<div>115 ··<div>
115 ····<h4>Previous·topic</h4>116 ····<h4>Argomento·precedente</h4>
116 ····<p·class="topless"><a·href="../install.html"117 ····<p·class="topless"><a·href="../install.html"
117 ··························title="previous·chapter">How·to·install·Django</a></p>118 ··························title="capitolo·precedente">How·to·install·Django</a></p>
118 ··</div>119 ··</div>
119 ··<div>120 ··<div>
120 ····<h4>Next·topic</h4>121 ····<h4>Argomento·successivo</h4>
121 ····<p·class="topless"><a·href="models.html"122 ····<p·class="topless"><a·href="models.html"
122 ··························title="next·chapter">Models</a></p>123 ··························title="capitolo·successivo">Models</a></p>
123 ··</div>124 ··</div>
124 <search·id="searchbox"·style="display:·none"·role="search">125 <search·id="searchbox"·style="display:·none"·role="search">
125 ··<h3·id="searchlabel">Quick·search</h3>126 ··<h3·id="searchlabel">Ricerca·veloce</h3>
126 ····<div·class="searchformwrapper">127 ····<div·class="searchformwrapper">
127 ····<form·class="search"·action="../../search.html"·method="get">128 ····<form·class="search"·action="../../search.html"·method="get">
128 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>129 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
129 ······<input·type="submit"·value="Go"·/>130 ······<input·type="submit"·value="Vai"·/>
130 ····</form>131 ····</form>
131 ····</div>132 ····</div>
132 </search>133 </search>
133 <script>document.getElementById('searchbox').style.display·=·"block"</script>134 <script>document.getElementById('searchbox').style.display·=·"block"</script>
134 ········</div>135 ········</div>
135 ······</div>136 ······</div>
136 ··············<h3>Last·update:</h3>137 ··············<h3>Last·update:</h3>
137 ··············<p·class="topless">Sep·03,·2024</p>138 ··············<p·class="topless">set·03,·2024</p>
138 ··········</div>139 ··········</div>
139 ········140 ········
140 ······141 ······
141 ····</div>142 ····</div>
  
142 ····<div·id="ft">143 ····<div·id="ft">
143 ······<div·class="nav">144 ······<div·class="nav">
2.05 KB
html2text {}
Max HTML report size reached
6.14 KB
./usr/share/doc/python-django-doc/html/topics/db/instrumentation.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Database·instrumentation·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Database·instrumentation·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Fixtures"·href="fixtures.html"·/>15 ····<link·rel="next"·title="Fixtures"·href="fixtures.html"·/>
15 ····<link·rel="prev"·title="Database·access·optimization"·href="optimization.html"·/>16 ····<link·rel="prev"·title="Database·access·optimization"·href="optimization.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 200, 37 lines modifiedOffset 201, 37 lines modified
200 <li><a·class="reference·internal"·href="#connection-execute-wrapper"><code·class="docutils·literal·notranslate"><span·class="pre">connection.execute_wrapper()</span></code></a></li>201 <li><a·class="reference·internal"·href="#connection-execute-wrapper"><code·class="docutils·literal·notranslate"><span·class="pre">connection.execute_wrapper()</span></code></a></li>
201 </ul>202 </ul>
202 </li>203 </li>
203 </ul>204 </ul>
  
204 ··</div>205 ··</div>
205 ··<div>206 ··<div>
206 ····<h4>Previous·topic</h4>207 ····<h4>Argomento·precedente</h4>
207 ····<p·class="topless"><a·href="optimization.html"208 ····<p·class="topless"><a·href="optimization.html"
208 ··························title="previous·chapter">Database·access·optimization</a></p>209 ··························title="capitolo·precedente">Database·access·optimization</a></p>
209 ··</div>210 ··</div>
210 ··<div>211 ··<div>
211 ····<h4>Next·topic</h4>212 ····<h4>Argomento·successivo</h4>
212 ····<p·class="topless"><a·href="fixtures.html"213 ····<p·class="topless"><a·href="fixtures.html"
213 ··························title="next·chapter">Fixtures</a></p>214 ··························title="capitolo·successivo">Fixtures</a></p>
214 ··</div>215 ··</div>
215 <search·id="searchbox"·style="display:·none"·role="search">216 <search·id="searchbox"·style="display:·none"·role="search">
216 ··<h3·id="searchlabel">Quick·search</h3>217 ··<h3·id="searchlabel">Ricerca·veloce</h3>
217 ····<div·class="searchformwrapper">218 ····<div·class="searchformwrapper">
218 ····<form·class="search"·action="../../search.html"·method="get">219 ····<form·class="search"·action="../../search.html"·method="get">
219 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>220 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
220 ······<input·type="submit"·value="Go"·/>221 ······<input·type="submit"·value="Vai"·/>
221 ····</form>222 ····</form>
222 ····</div>223 ····</div>
223 </search>224 </search>
224 <script>document.getElementById('searchbox').style.display·=·"block"</script>225 <script>document.getElementById('searchbox').style.display·=·"block"</script>
225 ········</div>226 ········</div>
226 ······</div>227 ······</div>
227 ··············<h3>Last·update:</h3>228 ··············<h3>Last·update:</h3>
228 ··············<p·class="topless">Sep·03,·2024</p>229 ··············<p·class="topless">set·03,·2024</p>
229 ··········</div>230 ··········</div>
230 ········231 ········
231 ······232 ······
232 ····</div>233 ····</div>
  
233 ····<div·id="ft">234 ····<div·id="ft">
234 ······<div·class="nav">235 ······<div·class="nav">
2.24 KB
html2text {}
Max HTML report size reached
17.9 KB
./usr/share/doc/python-django-doc/html/topics/db/managers.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Managers·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Managers·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Performing·raw·SQL·queries"·href="sql.html"·/>15 ····<link·rel="next"·title="Performing·raw·SQL·queries"·href="sql.html"·/>
15 ····<link·rel="prev"·title="Search"·href="search.html"·/>16 ····<link·rel="prev"·title="Search"·href="search.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-db-managers">79 ··········<div·class="yui-g"·id="topics-db-managers">
79 ············80 ············
80 ··<section·id="s-managers">81 ··<section·id="s-managers">
81 <span·id="managers"></span><h1>Managers<a·class="headerlink"·href="#managers"·title="Link·to·this·heading">¶</a></h1>82 <span·id="managers"></span><h1>Managers<a·class="headerlink"·href="#managers"·title="Link·to·this·heading">¶</a></h1>
82 <dl·class="py·class">83 <dl·class="py·class">
83 <dt·class="sig·sig-object·py"·id="django.db.models.Manager">84 <dt·class="sig·sig-object·py"·id="django.db.models.Manager">
84 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Manager</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/manager.html#Manager"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.db.models.Manager"·title="Link·to·this·definition">¶</a></dt>85 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">Manager</span></span><a·class="reference·internal"·href="../../_modules/django/db/models/manager.html#Manager"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.db.models.Manager"·title="Link·to·this·definition">¶</a></dt>
85 <dd></dd></dl>86 <dd></dd></dl>
  
86 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·is·the·interface·through·which·database·query·operations·are87 <p>A·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·is·the·interface·through·which·database·query·operations·are
87 provided·to·Django·models.·At·least·one·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·exists·for·every·model·in88 provided·to·Django·models.·At·least·one·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·exists·for·every·model·in
88 a·Django·application.</p>89 a·Django·application.</p>
89 <p>The·way·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·classes·work·is·documented·in·<a·class="reference·internal"·href="queries.html"><span·class="doc">Making·queries</span></a>;90 <p>The·way·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·classes·work·is·documented·in·<a·class="reference·internal"·href="queries.html"><span·class="doc">Making·queries</span></a>;
90 this·document·specifically·touches·on·model·options·that·customize·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>91 this·document·specifically·touches·on·model·options·that·customize·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>
Offset 114, 16 lines modifiedOffset 115, 16 lines modified
114 <p>You·can·use·a·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·in·a·particular·model·by·extending·the·base115 <p>You·can·use·a·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·in·a·particular·model·by·extending·the·base
115 <code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·class·and·instantiating·your·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·in·your·model.</p>116 <code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·class·and·instantiating·your·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·in·your·model.</p>
116 <p>There·are·two·reasons·you·might·want·to·customize·a·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>:·to·add·extra117 <p>There·are·two·reasons·you·might·want·to·customize·a·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>:·to·add·extra
117 <code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods,·and/or·to·modify·the·initial·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·the·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>118 <code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods,·and/or·to·modify·the·initial·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·the·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>
118 returns.</p>119 returns.</p>
119 <section·id="s-adding-extra-manager-methods">120 <section·id="s-adding-extra-manager-methods">
120 <span·id="adding-extra-manager-methods"></span><h3>Adding·extra·manager·methods<a·class="headerlink"·href="#adding-extra-manager-methods"·title="Link·to·this·heading">¶</a></h3>121 <span·id="adding-extra-manager-methods"></span><h3>Adding·extra·manager·methods<a·class="headerlink"·href="#adding-extra-manager-methods"·title="Link·to·this·heading">¶</a></h3>
121 <p>Adding·extra·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods·is·the·preferred·way·to·add·table-level122 <p>Adding·extra·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods·is·the·preferred·way·to·add·«table-level»
122 functionality·to·your·models.·(For·row-level·functionality··i.e.,·functions123 functionality·to·your·models.·(For·«row-level»·functionality··i.e.,·functions
123 that·act·on·a·single·instance·of·a·model·object··use·<a·class="reference·internal"·href="models.html#model-methods"><span·class="std·std-ref">Model·methods</span></a>,·not·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods.)</p>124 that·act·on·a·single·instance·of·a·model·object··use·<a·class="reference·internal"·href="models.html#model-methods"><span·class="std·std-ref">Model·methods</span></a>,·not·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·methods.)</p>
124 <p>For·example,·this·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·adds·a·method·<code·class="docutils·literal·notranslate"><span·class="pre">with_counts()</span></code>:</p>125 <p>For·example,·this·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·adds·a·method·<code·class="docutils·literal·notranslate"><span·class="pre">with_counts()</span></code>:</p>
125 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>126 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.db</span>·<span·class="kn">import</span>·<span·class="n">models</span>
126 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions</span>·<span·class="kn">import</span>·<span·class="n">Coalesce</span>127 <span·class="kn">from</span>·<span·class="nn">django.db.models.functions</span>·<span·class="kn">import</span>·<span·class="n">Coalesce</span>
  
  
127 <span·class="k">class</span>·<span·class="nc">PollManager</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Manager</span><span·class="p">):</span>128 <span·class="k">class</span>·<span·class="nc">PollManager</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Manager</span><span·class="p">):</span>
Offset 191, 15 lines modifiedOffset 192, 15 lines modified
191 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>192 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
192 <span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">title</span><span·class="o">=</span><span·class="s2">&quot;Matilda&quot;</span><span·class="p">)</span>193 <span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">title</span><span·class="o">=</span><span·class="s2">&quot;Matilda&quot;</span><span·class="p">)</span>
193 <span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">count</span><span·class="p">()</span>194 <span·class="n">Book</span><span·class="o">.</span><span·class="n">dahl_objects</span><span·class="o">.</span><span·class="n">count</span><span·class="p">()</span>
194 </pre></div>195 </pre></div>
195 </div>196 </div>
196 <p>This·example·also·pointed·out·another·interesting·technique:·using·multiple197 <p>This·example·also·pointed·out·another·interesting·technique:·using·multiple
197 managers·on·the·same·model.·You·can·attach·as·many·<code·class="docutils·literal·notranslate"><span·class="pre">Manager()</span></code>·instances·to198 managers·on·the·same·model.·You·can·attach·as·many·<code·class="docutils·literal·notranslate"><span·class="pre">Manager()</span></code>·instances·to
198 a·model·as·you’d·like.·This·is·a·non-repetitive·way·to·define·common·filters199 a·model·as·you’d·like.·This·is·a·non-repetitive·way·to·define·common·«filters»
199 for·your·models.</p>200 for·your·models.</p>
200 <p>For·example:</p>201 <p>For·example:</p>
201 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">AuthorManager</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Manager</span><span·class="p">):</span>202 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">AuthorManager</span><span·class="p">(</span><span·class="n">models</span><span·class="o">.</span><span·class="n">Manager</span><span·class="p">):</span>
202 ····<span·class="k">def</span>·<span·class="nf">get_queryset</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>203 ····<span·class="k">def</span>·<span·class="nf">get_queryset</span><span·class="p">(</span><span·class="bp">self</span><span·class="p">):</span>
203 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_queryset</span><span·class="p">()</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">role</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">)</span>204 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">get_queryset</span><span·class="p">()</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">role</span><span·class="o">=</span><span·class="s2">&quot;A&quot;</span><span·class="p">)</span>
  
  
Offset 228, 15 lines modifiedOffset 229, 15 lines modified
228 <dt·class="sig·sig-object·py"·id="django.db.models.Model._default_manager">229 <dt·class="sig·sig-object·py"·id="django.db.models.Model._default_manager">
229 <span·class="sig-prename·descclassname"><span·class="pre">Model.</span></span><span·class="sig-name·descname"><span·class="pre">_default_manager</span></span><a·class="headerlink"·href="#django.db.models.Model._default_manager"·title="Link·to·this·definition">¶</a></dt>230 <span·class="sig-prename·descclassname"><span·class="pre">Model.</span></span><span·class="sig-name·descname"><span·class="pre">_default_manager</span></span><a·class="headerlink"·href="#django.db.models.Model._default_manager"·title="Link·to·this·definition">¶</a></dt>
230 <dd></dd></dl>231 <dd></dd></dl>
  
231 <p>If·you·use·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·objects,·take·note·that·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>232 <p>If·you·use·custom·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·objects,·take·note·that·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>
232 Django·encounters·(in·the·order·in·which·they’re·defined·in·the·model)·has·a233 Django·encounters·(in·the·order·in·which·they’re·defined·in·the·model)·has·a
233 special·status.·Django·interprets·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·defined·in·a·class·as234 special·status.·Django·interprets·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·defined·in·a·class·as
234 the·default·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>,·and·several·parts·of·Django·(including235 the·«default»·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>,·and·several·parts·of·Django·(including
235 <a·class="reference·internal"·href="../../ref/django-admin.html#django-admin-dumpdata"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">dumpdata</span></code></a>)·will·use·that·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·exclusively·for·that·model.·As·a236 <a·class="reference·internal"·href="../../ref/django-admin.html#django-admin-dumpdata"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">dumpdata</span></code></a>)·will·use·that·<code·class="docutils·literal·notranslate"><span·class="pre">Manager</span></code>·exclusively·for·that·model.·As·a
236 result,·it’s·a·good·idea·to·be·careful·in·your·choice·of·default·manager·in237 result,·it’s·a·good·idea·to·be·careful·in·your·choice·of·default·manager·in
237 order·to·avoid·a·situation·where·overriding·<code·class="docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code>·results·in·an238 order·to·avoid·a·situation·where·overriding·<code·class="docutils·literal·notranslate"><span·class="pre">get_queryset()</span></code>·results·in·an
238 inability·to·retrieve·objects·you’d·like·to·work·with.</p>239 inability·to·retrieve·objects·you’d·like·to·work·with.</p>
239 <p>You·can·specify·a·custom·default·manager·using·<a·class="reference·internal"·href="../../ref/models/options.html#django.db.models.Options.default_manager_name"·title="django.db.models.Options.default_manager_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.default_manager_name</span></code></a>.</p>240 <p>You·can·specify·a·custom·default·manager·using·<a·class="reference·internal"·href="../../ref/models/options.html#django.db.models.Options.default_manager_name"·title="django.db.models.Options.default_manager_name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">Meta.default_manager_name</span></code></a>.</p>
240 <p>If·you’re·writing·some·code·that·must·handle·an·unknown·model,·for·example,·in241 <p>If·you’re·writing·some·code·that·must·handle·an·unknown·model,·for·example,·in
241 a·third-party·app·that·implements·a·generic·view,·use·this·manager·(or242 a·third-party·app·that·implements·a·generic·view,·use·this·manager·(or
Offset 530, 37 lines modifiedOffset 531, 37 lines modified
530 </li>531 </li>
531 </ul>532 </ul>
532 </li>533 </li>
533 </ul>534 </ul>
  
534 ··</div>535 ··</div>
535 ··<div>536 ··<div>
536 ····<h4>Previous·topic</h4>537 ····<h4>Argomento·precedente</h4>
537 ····<p·class="topless"><a·href="search.html"538 ····<p·class="topless"><a·href="search.html"
538 ··························title="previous·chapter">Search</a></p>539 ··························title="capitolo·precedente">Search</a></p>
539 ··</div>540 ··</div>
540 ··<div>541 ··<div>
541 ····<h4>Next·topic</h4>542 ····<h4>Argomento·successivo</h4>
542 ····<p·class="topless"><a·href="sql.html"543 ····<p·class="topless"><a·href="sql.html"
543 ··························title="next·chapter">Performing·raw·SQL·queries</a></p>544 ··························title="capitolo·successivo">Performing·raw·SQL·queries</a></p>
544 ··</div>545 ··</div>
545 <search·id="searchbox"·style="display:·none"·role="search">546 <search·id="searchbox"·style="display:·none"·role="search">
546 ··<h3·id="searchlabel">Quick·search</h3>547 ··<h3·id="searchlabel">Ricerca·veloce</h3>
547 ····<div·class="searchformwrapper">548 ····<div·class="searchformwrapper">
548 ····<form·class="search"·action="../../search.html"·method="get">549 ····<form·class="search"·action="../../search.html"·method="get">
549 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>550 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
550 ······<input·type="submit"·value="Go"·/>551 ······<input·type="submit"·value="Vai"·/>
Max diff block lines reached; 365/12308 bytes (2.97%) of diff not shown.
5.72 KB
html2text {}
Max HTML report size reached
43.9 KB
./usr/share/doc/python-django-doc/html/topics/db/models.html
Max HTML report size reached
21.5 KB
./usr/share/doc/python-django-doc/html/topics/db/multi-db.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Multiple·databases·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Multiple·databases·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Tablespaces"·href="tablespaces.html"·/>15 ····<link·rel="next"·title="Tablespaces"·href="tablespaces.html"·/>
15 ····<link·rel="prev"·title="Database·transactions"·href="transactions.html"·/>16 ····<link·rel="prev"·title="Database·transactions"·href="transactions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-multiple-databases">81 ··<section·id="s-multiple-databases">
81 <span·id="multiple-databases"></span><h1>Multiple·databases<a·class="headerlink"·href="#multiple-databases"·title="Link·to·this·heading">¶</a></h1>82 <span·id="multiple-databases"></span><h1>Multiple·databases<a·class="headerlink"·href="#multiple-databases"·title="Link·to·this·heading">¶</a></h1>
82 <p>This·topic·guide·describes·Django’s·support·for·interacting·with83 <p>This·topic·guide·describes·Django’s·support·for·interacting·with
83 multiple·databases.·Most·of·the·rest·of·Django’s·documentation·assumes84 multiple·databases.·Most·of·the·rest·of·Django’s·documentation·assumes
84 you·are·interacting·with·a·single·database.·If·you·want·to·interact85 you·are·interacting·with·a·single·database.·If·you·want·to·interact
85 with·multiple·databases,·you’ll·need·to·take·some·additional·steps.</p>86 with·multiple·databases,·you’ll·need·to·take·some·additional·steps.</p>
86 <div·class="admonition·seealso">87 <div·class="admonition·seealso">
87 <p·class="admonition-title">See·also</p>88 <p·class="admonition-title">Vedi·anche</p>
88 <p>See·<a·class="reference·internal"·href="../testing/tools.html#testing-multi-db"><span·class="std·std-ref">Multi-database·support</span></a>·for·information·about·testing·with·multiple89 <p>See·<a·class="reference·internal"·href="../testing/tools.html#testing-multi-db"><span·class="std·std-ref">Multi-database·support</span></a>·for·information·about·testing·with·multiple
89 databases.</p>90 databases.</p>
90 </div>91 </div>
91 <section·id="s-defining-your-databases">92 <section·id="s-defining-your-databases">
92 <span·id="defining-your-databases"></span><h2>Defining·your·databases<a·class="headerlink"·href="#defining-your-databases"·title="Link·to·this·heading">¶</a></h2>93 <span·id="defining-your-databases"></span><h2>Defining·your·databases<a·class="headerlink"·href="#defining-your-databases"·title="Link·to·this·heading">¶</a></h2>
93 <p>The·first·step·to·using·more·than·one·database·with·Django·is·to·tell94 <p>The·first·step·to·using·more·than·one·database·with·Django·is·to·tell
94 Django·about·the·database·servers·you’ll·be·using.·This·is·done·using95 Django·about·the·database·servers·you’ll·be·using.·This·is·done·using
Offset 120, 15 lines modifiedOffset 121, 15 lines modified
120 </pre></div>121 </pre></div>
121 </div>122 </div>
122 <p>If·the·concept·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database·doesn’t·make·sense·in·the·context123 <p>If·the·concept·of·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database·doesn’t·make·sense·in·the·context
123 of·your·project,·you·need·to·be·careful·to·always·specify·the·database124 of·your·project,·you·need·to·be·careful·to·always·specify·the·database
124 that·you·want·to·use.·Django·requires·that·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database·entry125 that·you·want·to·use.·Django·requires·that·a·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database·entry
125 be·defined,·but·the·parameters·dictionary·can·be·left·blank·if·it·will·not·be126 be·defined,·but·the·parameters·dictionary·can·be·left·blank·if·it·will·not·be
126 used.·To·do·this,·you·must·set·up·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-DATABASE_ROUTERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATABASE_ROUTERS</span></code></a>·for·all·of·your127 used.·To·do·this,·you·must·set·up·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-DATABASE_ROUTERS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DATABASE_ROUTERS</span></code></a>·for·all·of·your
127 apps·models,·including·those·in·any·contrib·and·third-party·apps·you’re·using,128 apps·models,·including·those·in·any·contrib·and·third-party·apps·you’re·using,
128 so·that·no·queries·are·routed·to·the·default·database.·The·following·is·an129 so·that·no·queries·are·routed·to·the·default·database.·The·following·is·an
129 example·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·snippet·defining·two·non-default·databases,·with·the130 example·<code·class="docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·snippet·defining·two·non-default·databases,·with·the
130 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·entry·intentionally·left·empty:</p>131 <code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·entry·intentionally·left·empty:</p>
131 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASES</span>·<span·class="o">=</span>·<span·class="p">{</span>132 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">DATABASES</span>·<span·class="o">=</span>·<span·class="p">{</span>
132 ····<span·class="s2">&quot;default&quot;</span><span·class="p">:</span>·<span·class="p">{},</span>133 ····<span·class="s2">&quot;default&quot;</span><span·class="p">:</span>·<span·class="p">{},</span>
133 ····<span·class="s2">&quot;users&quot;</span><span·class="p">:</span>·<span·class="p">{</span>134 ····<span·class="s2">&quot;users&quot;</span><span·class="p">:</span>·<span·class="p">{</span>
134 ········<span·class="s2">&quot;NAME&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;user_data&quot;</span><span·class="p">,</span>135 ········<span·class="s2">&quot;NAME&quot;</span><span·class="p">:</span>·<span·class="s2">&quot;user_data&quot;</span><span·class="p">,</span>
Offset 183, 20 lines modifiedOffset 184, 20 lines modified
183 but·it·consults·the·<a·class="reference·internal"·href="#allow_migrate"·title="allow_migrate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">allow_migrate()</span></code></a>·method·of·<a·class="reference·internal"·href="#topics-db-multi-db-routing"><span·class="std·std-ref">routers</span></a>·if·any·are·installed.</p>184 but·it·consults·the·<a·class="reference·internal"·href="#allow_migrate"·title="allow_migrate"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">allow_migrate()</span></code></a>·method·of·<a·class="reference·internal"·href="#topics-db-multi-db-routing"><span·class="std·std-ref">routers</span></a>·if·any·are·installed.</p>
184 </section>185 </section>
185 </section>186 </section>
186 <section·id="s-automatic-database-routing">187 <section·id="s-automatic-database-routing">
187 <span·id="s-topics-db-multi-db-routing"></span><span·id="automatic-database-routing"></span><span·id="topics-db-multi-db-routing"></span><h2>Automatic·database·routing<a·class="headerlink"·href="#automatic-database-routing"·title="Link·to·this·heading">¶</a></h2>188 <span·id="s-topics-db-multi-db-routing"></span><span·id="automatic-database-routing"></span><span·id="topics-db-multi-db-routing"></span><h2>Automatic·database·routing<a·class="headerlink"·href="#automatic-database-routing"·title="Link·to·this·heading">¶</a></h2>
188 <p>The·easiest·way·to·use·multiple·databases·is·to·set·up·a·database189 <p>The·easiest·way·to·use·multiple·databases·is·to·set·up·a·database
189 routing·scheme.·The·default·routing·scheme·ensures·that·objects·remain190 routing·scheme.·The·default·routing·scheme·ensures·that·objects·remain
190 sticky·to·their·original·database·(i.e.,·an·object·retrieved·from191 sticky·to·their·original·database·(i.e.,·an·object·retrieved·from
191 the·<code·class="docutils·literal·notranslate"><span·class="pre">foo</span></code>·database·will·be·saved·on·the·same·database).·The·default192 the·<code·class="docutils·literal·notranslate"><span·class="pre">foo</span></code>·database·will·be·saved·on·the·same·database).·The·default
192 routing·scheme·ensures·that·if·a·database·isn’t·specified,·all·queries193 routing·scheme·ensures·that·if·a·database·isn’t·specified,·all·queries
193 fall·back·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database.</p>194 fall·back·to·the·<code·class="docutils·literal·notranslate"><span·class="pre">default</span></code>·database.</p>
194 <p>You·don’t·have·to·do·anything·to·activate·the·default·routing·scheme195 <p>You·don’t·have·to·do·anything·to·activate·the·default·routing·scheme
195 ·it·is·provided·out·of·the·box·on·every·Django·project.·However,196 ·it·is·provided·out·of·the·box·on·every·Django·project.·However,
196 if·you·want·to·implement·more·interesting·database·allocation197 if·you·want·to·implement·more·interesting·database·allocation
197 behaviors,·you·can·define·and·install·your·own·database·routers.</p>198 behaviors,·you·can·define·and·install·your·own·database·routers.</p>
198 <section·id="s-database-routers">199 <section·id="s-database-routers">
199 <span·id="database-routers"></span><h3>Database·routers<a·class="headerlink"·href="#database-routers"·title="Link·to·this·heading">¶</a></h3>200 <span·id="database-routers"></span><h3>Database·routers<a·class="headerlink"·href="#database-routers"·title="Link·to·this·heading">¶</a></h3>
200 <p>A·database·Router·is·a·class·that·provides·up·to·four·methods:</p>201 <p>A·database·Router·is·a·class·that·provides·up·to·four·methods:</p>
201 <dl·class="py·method">202 <dl·class="py·method">
202 <dt·class="sig·sig-object·py"·id="db_for_read">203 <dt·class="sig·sig-object·py"·id="db_for_read">
Offset 490, 15 lines modifiedOffset 491, 15 lines modified
490 <span·id="manually-selecting-a-database"></span><h2>Manually·selecting·a·database<a·class="headerlink"·href="#manually-selecting-a-database"·title="Link·to·this·heading">¶</a></h2>491 <span·id="manually-selecting-a-database"></span><h2>Manually·selecting·a·database<a·class="headerlink"·href="#manually-selecting-a-database"·title="Link·to·this·heading">¶</a></h2>
491 <p>Django·also·provides·an·API·that·allows·you·to·maintain·complete·control492 <p>Django·also·provides·an·API·that·allows·you·to·maintain·complete·control
492 over·database·usage·in·your·code.·A·manually·specified·database·allocation493 over·database·usage·in·your·code.·A·manually·specified·database·allocation
493 will·take·priority·over·a·database·allocated·by·a·router.</p>494 will·take·priority·over·a·database·allocated·by·a·router.</p>
494 <section·id="s-manually-selecting-a-database-for-a-queryset">495 <section·id="s-manually-selecting-a-database-for-a-queryset">
495 <span·id="manually-selecting-a-database-for-a-queryset"></span><h3>Manually·selecting·a·database·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code><a·class="headerlink"·href="#manually-selecting-a-database-for-a-queryset"·title="Link·to·this·heading">¶</a></h3>496 <span·id="manually-selecting-a-database-for-a-queryset"></span><h3>Manually·selecting·a·database·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code><a·class="headerlink"·href="#manually-selecting-a-database-for-a-queryset"·title="Link·to·this·heading">¶</a></h3>
496 <p>You·can·select·the·database·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·at·any·point·in·the497 <p>You·can·select·the·database·for·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·at·any·point·in·the
497 <code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·chain.·Call·<code·class="docutils·literal·notranslate"><span·class="pre">using()</span></code>·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·to·get·another498 <code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·«chain.»·Call·<code·class="docutils·literal·notranslate"><span·class="pre">using()</span></code>·on·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·to·get·another
498 <code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·uses·the·specified·database.</p>499 <code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·that·uses·the·specified·database.</p>
499 <p><code·class="docutils·literal·notranslate"><span·class="pre">using()</span></code>·takes·a·single·argument:·the·alias·of·the·database·on500 <p><code·class="docutils·literal·notranslate"><span·class="pre">using()</span></code>·takes·a·single·argument:·the·alias·of·the·database·on
500 which·you·want·to·run·the·query.·For·example:</p>501 which·you·want·to·run·the·query.·For·example:</p>
501 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·This·will·run·on·the·&#39;default&#39;·database.</span>502 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·This·will·run·on·the·&#39;default&#39;·database.</span>
502 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Author</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>503 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Author</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">()</span>
  
503 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·So·will·this.</span>504 <span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·So·will·this.</span>
Offset 745, 15 lines modifiedOffset 746, 15 lines modified
745 stored·on·a·separate·database,·it’s·not·possible·to·easily·evaluate746 stored·on·a·separate·database,·it’s·not·possible·to·easily·evaluate
746 the·validity·of·a·primary·key.</p>747 the·validity·of·a·primary·key.</p>
747 <p>If·you’re·using·Postgres,·Oracle,·or·MySQL·with·InnoDB,·this·is748 <p>If·you’re·using·Postgres,·Oracle,·or·MySQL·with·InnoDB,·this·is
748 enforced·at·the·database·integrity·level··database·level·key749 enforced·at·the·database·integrity·level··database·level·key
749 constraints·prevent·the·creation·of·relations·that·can’t·be·validated.</p>750 constraints·prevent·the·creation·of·relations·that·can’t·be·validated.</p>
750 <p>However,·if·you’re·using·SQLite·or·MySQL·with·MyISAM·tables,·there·is751 <p>However,·if·you’re·using·SQLite·or·MySQL·with·MyISAM·tables,·there·is
751 no·enforced·referential·integrity;·as·a·result,·you·may·be·able·to752 no·enforced·referential·integrity;·as·a·result,·you·may·be·able·to
752 fake·cross·database·foreign·keys.·However,·this·configuration·is·not753 fake·cross·database·foreign·keys.·However,·this·configuration·is·not
753 officially·supported·by·Django.</p>754 officially·supported·by·Django.</p>
754 </section>755 </section>
755 <section·id="s-behavior-of-contrib-apps">756 <section·id="s-behavior-of-contrib-apps">
756 <span·id="s-contrib-app-multiple-databases"></span><span·id="behavior-of-contrib-apps"></span><span·id="contrib-app-multiple-databases"></span><h3>Behavior·of·contrib·apps<a·class="headerlink"·href="#behavior-of-contrib-apps"·title="Link·to·this·heading">¶</a></h3>757 <span·id="s-contrib-app-multiple-databases"></span><span·id="behavior-of-contrib-apps"></span><span·id="contrib-app-multiple-databases"></span><h3>Behavior·of·contrib·apps<a·class="headerlink"·href="#behavior-of-contrib-apps"·title="Link·to·this·heading">¶</a></h3>
757 <p>Several·contrib·apps·include·models,·and·some·apps·depend·on·others.·Since758 <p>Several·contrib·apps·include·models,·and·some·apps·depend·on·others.·Since
758 cross-database·relationships·are·impossible,·this·creates·some·restrictions·on759 cross-database·relationships·are·impossible,·this·creates·some·restrictions·on
759 how·you·can·split·these·models·across·databases:</p>760 how·you·can·split·these·models·across·databases:</p>
Offset 780, 15 lines modifiedOffset 781, 15 lines modified
780 <p>For·common·setups·with·multiple·databases,·it·isn’t·useful·to·have·these781 <p>For·common·setups·with·multiple·databases,·it·isn’t·useful·to·have·these
781 objects·in·more·than·one·database.·Common·setups·include·primary/replica·and782 objects·in·more·than·one·database.·Common·setups·include·primary/replica·and
Max diff block lines reached; 2148/12971 bytes (16.56%) of diff not shown.
8.76 KB
html2text {}
Max HTML report size reached
9.21 KB
./usr/share/doc/python-django-doc/html/topics/db/optimization.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Database·access·optimization·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Database·access·optimization·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Database·instrumentation"·href="instrumentation.html"·/>15 ····<link·rel="next"·title="Database·instrumentation"·href="instrumentation.html"·/>
15 ····<link·rel="prev"·title="Tablespaces"·href="tablespaces.html"·/>16 ····<link·rel="prev"·title="Tablespaces"·href="tablespaces.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 234, 15 lines modifiedOffset 235, 15 lines modified
234 them·from·the·database.·This·penalty·could·be·substantial·if·hundreds·or235 them·from·the·database.·This·penalty·could·be·substantial·if·hundreds·or
235 thousands·of·records·are·returned.·The·penalty·will·be·compounded·if·the236 thousands·of·records·are·returned.·The·penalty·will·be·compounded·if·the
236 database·lives·on·a·separate·server,·where·network·overhead·and·latency·also237 database·lives·on·a·separate·server,·where·network·overhead·and·latency·also
237 play·a·factor.</p>238 play·a·factor.</p>
238 </section>239 </section>
239 <section·id="s-retrieve-everything-at-once-if-you-know-you-will-need-it">240 <section·id="s-retrieve-everything-at-once-if-you-know-you-will-need-it">
240 <span·id="retrieve-everything-at-once-if-you-know-you-will-need-it"></span><h2>Retrieve·everything·at·once·if·you·know·you·will·need·it<a·class="headerlink"·href="#retrieve-everything-at-once-if-you-know-you-will-need-it"·title="Link·to·this·heading">¶</a></h2>241 <span·id="retrieve-everything-at-once-if-you-know-you-will-need-it"></span><h2>Retrieve·everything·at·once·if·you·know·you·will·need·it<a·class="headerlink"·href="#retrieve-everything-at-once-if-you-know-you-will-need-it"·title="Link·to·this·heading">¶</a></h2>
241 <p>Hitting·the·database·multiple·times·for·different·parts·of·a·single·set·of242 <p>Hitting·the·database·multiple·times·for·different·parts·of·a·single·set·of
242 data·that·you·will·need·all·parts·of·is,·in·general,·less·efficient·than243 data·that·you·will·need·all·parts·of·is,·in·general,·less·efficient·than
243 retrieving·it·all·in·one·query.·This·is·particularly·important·if·you·have·a244 retrieving·it·all·in·one·query.·This·is·particularly·important·if·you·have·a
244 query·that·is·executed·in·a·loop,·and·could·therefore·end·up·doing·many·database245 query·that·is·executed·in·a·loop,·and·could·therefore·end·up·doing·many·database
245 queries,·when·only·one·was·needed.·So:</p>246 queries,·when·only·one·was·needed.·So:</p>
246 <section·id="s-use-queryset-select-related-and-prefetch-related">247 <section·id="s-use-queryset-select-related-and-prefetch-related">
247 <span·id="use-queryset-select-related-and-prefetch-related"></span><h3>Use·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.select_related()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code><a·class="headerlink"·href="#use-queryset-select-related-and-prefetch-related"·title="Link·to·this·heading">¶</a></h3>248 <span·id="use-queryset-select-related-and-prefetch-related"></span><h3>Use·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet.select_related()</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">prefetch_related()</span></code><a·class="headerlink"·href="#use-queryset-select-related-and-prefetch-related"·title="Link·to·this·heading">¶</a></h3>
248 <p>Understand·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.select_related"·title="django.db.models.query.QuerySet.select_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">select_related()</span></code></a>·and249 <p>Understand·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.select_related"·title="django.db.models.query.QuerySet.select_related"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">select_related()</span></code></a>·and
Offset 554, 37 lines modifiedOffset 555, 37 lines modified
554 </li>555 </li>
555 </ul>556 </ul>
556 </li>557 </li>
557 </ul>558 </ul>
  
558 ··</div>559 ··</div>
559 ··<div>560 ··<div>
560 ····<h4>Previous·topic</h4>561 ····<h4>Argomento·precedente</h4>
561 ····<p·class="topless"><a·href="tablespaces.html"562 ····<p·class="topless"><a·href="tablespaces.html"
562 ··························title="previous·chapter">Tablespaces</a></p>563 ··························title="capitolo·precedente">Tablespaces</a></p>
563 ··</div>564 ··</div>
564 ··<div>565 ··<div>
565 ····<h4>Next·topic</h4>566 ····<h4>Argomento·successivo</h4>
566 ····<p·class="topless"><a·href="instrumentation.html"567 ····<p·class="topless"><a·href="instrumentation.html"
567 ··························title="next·chapter">Database·instrumentation</a></p>568 ··························title="capitolo·successivo">Database·instrumentation</a></p>
568 ··</div>569 ··</div>
569 <search·id="searchbox"·style="display:·none"·role="search">570 <search·id="searchbox"·style="display:·none"·role="search">
570 ··<h3·id="searchlabel">Quick·search</h3>571 ··<h3·id="searchlabel">Ricerca·veloce</h3>
571 ····<div·class="searchformwrapper">572 ····<div·class="searchformwrapper">
572 ····<form·class="search"·action="../../search.html"·method="get">573 ····<form·class="search"·action="../../search.html"·method="get">
573 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>574 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
574 ······<input·type="submit"·value="Go"·/>575 ······<input·type="submit"·value="Vai"·/>
575 ····</form>576 ····</form>
576 ····</div>577 ····</div>
577 </search>578 </search>
578 <script>document.getElementById('searchbox').style.display·=·"block"</script>579 <script>document.getElementById('searchbox').style.display·=·"block"</script>
579 ········</div>580 ········</div>
580 ······</div>581 ······</div>
581 ··············<h3>Last·update:</h3>582 ··············<h3>Last·update:</h3>
582 ··············<p·class="topless">Sep·03,·2024</p>583 ··············<p·class="topless">set·03,·2024</p>
583 ··········</div>584 ··········</div>
584 ········585 ········
585 ······586 ······
586 ····</div>587 ····</div>
  
587 ····<div·id="ft">588 ····<div·id="ft">
588 ······<div·class="nav">589 ······<div·class="nav">
3.69 KB
html2text {}
Max HTML report size reached
109 KB
./usr/share/doc/python-django-doc/html/topics/db/queries.html
Max HTML report size reached
14.1 KB
./usr/share/doc/python-django-doc/html/topics/db/search.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Search·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Search·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Managers"·href="managers.html"·/>15 ····<link·rel="next"·title="Managers"·href="managers.html"·/>
15 ····<link·rel="prev"·title="Aggregation"·href="aggregation.html"·/>16 ····<link·rel="prev"·title="Aggregation"·href="aggregation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 127, 15 lines modifiedOffset 128, 15 lines modified
127 would·be·to·use·a·<a·class="reference·internal"·href="../../ref/contrib/postgres/lookups.html#std-fieldlookup-trigram_similar"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">trigram_similar</span></code></a>·comparison,·which·compares128 would·be·to·use·a·<a·class="reference·internal"·href="../../ref/contrib/postgres/lookups.html#std-fieldlookup-trigram_similar"><code·class="xref·std·std-lookup·docutils·literal·notranslate"><span·class="pre">trigram_similar</span></code></a>·comparison,·which·compares
128 sequences·of·letters.</p>129 sequences·of·letters.</p>
129 <p>For·example:</p>130 <p>For·example:</p>
130 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Author</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__unaccent__lower__trigram_similar</span><span·class="o">=</span><span·class="s2">&quot;Hélène&quot;</span><span·class="p">)</span>131 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Author</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">name__unaccent__lower__trigram_similar</span><span·class="o">=</span><span·class="s2">&quot;Hélène&quot;</span><span·class="p">)</span>
131 <span·class="go">[&lt;Author:·Helen·Mirren&gt;,·&lt;Author:·Hélène·Joy&gt;]</span>132 <span·class="go">[&lt;Author:·Helen·Mirren&gt;,·&lt;Author:·Hélène·Joy&gt;]</span>
132 </pre></div>133 </pre></div>
133 </div>134 </div>
134 <p>Now·we·have·a·different·problem·-·the·longer·name·of·Helena·Bonham·Carter135 <p>Now·we·have·a·different·problem·-·the·longer·name·of·«Helena·Bonham·Carter»
135 doesn’t·show·up·as·it·is·much·longer.·Trigram·searches·consider·all136 doesn’t·show·up·as·it·is·much·longer.·Trigram·searches·consider·all
136 combinations·of·three·letters,·and·compares·how·many·appear·in·both·search·and137 combinations·of·three·letters,·and·compares·how·many·appear·in·both·search·and
137 source·strings.·For·the·longer·name,·there·are·more·combinations·that·don’t138 source·strings.·For·the·longer·name,·there·are·more·combinations·that·don’t
138 appear·in·the·source·string,·so·it·is·no·longer·considered·a·close·match.</p>139 appear·in·the·source·string,·so·it·is·no·longer·considered·a·close·match.</p>
139 <p>The·correct·choice·of·comparison·functions·here·depends·on·your·particular·data140 <p>The·correct·choice·of·comparison·functions·here·depends·on·your·particular·data
140 set,·for·example·the·language(s)·used·and·the·type·of·text·being·searched.·All141 set,·for·example·the·language(s)·used·and·the·type·of·text·being·searched.·All
141 of·the·examples·we’ve·seen·are·on·short·strings·where·the·user·is·likely·to142 of·the·examples·we’ve·seen·are·on·short·strings·where·the·user·is·likely·to
Offset 145, 16 lines modifiedOffset 146, 16 lines modified
145 <span·id="document-based-search"></span><h3>Document-based·search<a·class="headerlink"·href="#document-based-search"·title="Link·to·this·heading">¶</a></h3>146 <span·id="document-based-search"></span><h3>Document-based·search<a·class="headerlink"·href="#document-based-search"·title="Link·to·this·heading">¶</a></h3>
146 <p>Standard·database·operations·stop·being·a·useful·approach·when·you·start147 <p>Standard·database·operations·stop·being·a·useful·approach·when·you·start
147 considering·large·blocks·of·text.·Whereas·the·examples·above·can·be·thought·of148 considering·large·blocks·of·text.·Whereas·the·examples·above·can·be·thought·of
148 as·operations·on·a·string·of·characters,·full·text·search·looks·at·the·actual149 as·operations·on·a·string·of·characters,·full·text·search·looks·at·the·actual
149 words.·Depending·on·the·system·used,·it’s·likely·to·use·some·of·the·following150 words.·Depending·on·the·system·used,·it’s·likely·to·use·some·of·the·following
150 ideas:</p>151 ideas:</p>
151 <ul·class="simple">152 <ul·class="simple">
152 <li><p>Ignoring·stop·words·such·as·a,·the,·and.</p></li>153 <li><p>Ignoring·«stop·words»·such·as·«a»,·«the»,·«and».</p></li>
153 <li><p>Stemming·words,·so·that·pony·and·ponies·are·considered·similar.</p></li>154 <li><p>Stemming·words,·so·that·«pony»·and·«ponies»·are·considered·similar.</p></li>
154 <li><p>Weighting·words·based·on·different·criteria·such·as·how·frequently·they155 <li><p>Weighting·words·based·on·different·criteria·such·as·how·frequently·they
155 appear·in·the·text,·or·the·importance·of·the·fields,·such·as·the·title·or156 appear·in·the·text,·or·the·importance·of·the·fields,·such·as·the·title·or
156 keywords,·that·they·appear·in.</p></li>157 keywords,·that·they·appear·in.</p></li>
157 </ul>158 </ul>
158 <p>There·are·many·alternatives·for·using·searching·software,·some·of·the·most159 <p>There·are·many·alternatives·for·using·searching·software,·some·of·the·most
159 prominent·are·<a·class="reference·external"·href="https://www.elastic.co/">Elastic</a>·and·<a·class="reference·external"·href="https://solr.apache.org/">Solr</a>.·These·are·full·document-based·search160 prominent·are·<a·class="reference·external"·href="https://www.elastic.co/">Elastic</a>·and·<a·class="reference·external"·href="https://solr.apache.org/">Solr</a>.·These·are·full·document-based·search
160 solutions.·To·use·them·with·data·from·Django·models,·you’ll·need·a·layer·which161 solutions.·To·use·them·with·data·from·Django·models,·you’ll·need·a·layer·which
Offset 166, 15 lines modifiedOffset 167, 15 lines modified
166 <span·id="postgresql-support"></span><h4>PostgreSQL·support<a·class="headerlink"·href="#postgresql-support"·title="Link·to·this·heading">¶</a></h4>167 <span·id="postgresql-support"></span><h4>PostgreSQL·support<a·class="headerlink"·href="#postgresql-support"·title="Link·to·this·heading">¶</a></h4>
167 <p>PostgreSQL·has·its·own·full·text·search·implementation·built-in.·While·not·as168 <p>PostgreSQL·has·its·own·full·text·search·implementation·built-in.·While·not·as
168 powerful·as·some·other·search·engines,·it·has·the·advantage·of·being·inside169 powerful·as·some·other·search·engines,·it·has·the·advantage·of·being·inside
169 your·database·and·so·can·easily·be·combined·with·other·relational·queries·such170 your·database·and·so·can·easily·be·combined·with·other·relational·queries·such
170 as·categorization.</p>171 as·categorization.</p>
171 <p>The·<a·class="reference·internal"·href="../../ref/contrib/postgres/index.html#module-django.contrib.postgres"·title="django.contrib.postgres:·PostgreSQL-specific·fields·and·features"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a>·module·provides·some·helpers·to·make·these172 <p>The·<a·class="reference·internal"·href="../../ref/contrib/postgres/index.html#module-django.contrib.postgres"·title="django.contrib.postgres:·PostgreSQL-specific·fields·and·features"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.postgres</span></code></a>·module·provides·some·helpers·to·make·these
172 queries.·For·example,·a·query·might·select·all·the·blog·entries·which·mention173 queries.·For·example,·a·query·might·select·all·the·blog·entries·which·mention
173 cheese:</p>174 «cheese»:</p>
174 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Entry</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">body_text__search</span><span·class="o">=</span><span·class="s2">&quot;cheese&quot;</span><span·class="p">)</span>175 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Entry</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">filter</span><span·class="p">(</span><span·class="n">body_text__search</span><span·class="o">=</span><span·class="s2">&quot;cheese&quot;</span><span·class="p">)</span>
175 <span·class="go">[&lt;Entry:·Cheese·on·Toast·recipes&gt;,·&lt;Entry:·Pizza·recipes&gt;]</span>176 <span·class="go">[&lt;Entry:·Cheese·on·Toast·recipes&gt;,·&lt;Entry:·Pizza·recipes&gt;]</span>
176 </pre></div>177 </pre></div>
177 </div>178 </div>
178 <p>You·can·also·filter·on·a·combination·of·fields·and·on·related·models:</p>179 <p>You·can·also·filter·on·a·combination·of·fields·and·on·related·models:</p>
179 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Entry</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span>180 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Entry</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">annotate</span><span·class="p">(</span>
180 <span·class="gp">...·</span>····<span·class="n">search</span><span·class="o">=</span><span·class="n">SearchVector</span><span·class="p">(</span><span·class="s2">&quot;blog__tagline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;body_text&quot;</span><span·class="p">),</span>181 <span·class="gp">...·</span>····<span·class="n">search</span><span·class="o">=</span><span·class="n">SearchVector</span><span·class="p">(</span><span·class="s2">&quot;blog__tagline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;body_text&quot;</span><span·class="p">),</span>
Offset 218, 37 lines modifiedOffset 219, 37 lines modified
218 </li>219 </li>
219 </ul>220 </ul>
220 </li>221 </li>
221 </ul>222 </ul>
  
222 ··</div>223 ··</div>
223 ··<div>224 ··<div>
224 ····<h4>Previous·topic</h4>225 ····<h4>Argomento·precedente</h4>
225 ····<p·class="topless"><a·href="aggregation.html"226 ····<p·class="topless"><a·href="aggregation.html"
226 ··························title="previous·chapter">Aggregation</a></p>227 ··························title="capitolo·precedente">Aggregation</a></p>
227 ··</div>228 ··</div>
228 ··<div>229 ··<div>
229 ····<h4>Next·topic</h4>230 ····<h4>Argomento·successivo</h4>
230 ····<p·class="topless"><a·href="managers.html"231 ····<p·class="topless"><a·href="managers.html"
231 ··························title="next·chapter">Managers</a></p>232 ··························title="capitolo·successivo">Managers</a></p>
232 ··</div>233 ··</div>
233 <search·id="searchbox"·style="display:·none"·role="search">234 <search·id="searchbox"·style="display:·none"·role="search">
234 ··<h3·id="searchlabel">Quick·search</h3>235 ··<h3·id="searchlabel">Ricerca·veloce</h3>
235 ····<div·class="searchformwrapper">236 ····<div·class="searchformwrapper">
236 ····<form·class="search"·action="../../search.html"·method="get">237 ····<form·class="search"·action="../../search.html"·method="get">
237 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>238 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
238 ······<input·type="submit"·value="Go"·/>239 ······<input·type="submit"·value="Vai"·/>
239 ····</form>240 ····</form>
240 ····</div>241 ····</div>
241 </search>242 </search>
242 <script>document.getElementById('searchbox').style.display·=·"block"</script>243 <script>document.getElementById('searchbox').style.display·=·"block"</script>
243 ········</div>244 ········</div>
244 ······</div>245 ······</div>
245 ··············<h3>Last·update:</h3>246 ··············<h3>Last·update:</h3>
246 ··············<p·class="topless">Sep·03,·2024</p>247 ··············<p·class="topless">set·03,·2024</p>
247 ··········</div>248 ··········</div>
248 ········249 ········
249 ······250 ······
250 ····</div>251 ····</div>
  
251 ····<div·id="ft">252 ····<div·id="ft">
252 ······<div·class="nav">253 ······<div·class="nav">
5.52 KB
html2text {}
Max HTML report size reached
16.0 KB
./usr/share/doc/python-django-doc/html/topics/db/sql.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Performing·raw·SQL·queries·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Performing·raw·SQL·queries·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Database·transactions"·href="transactions.html"·/>15 ····<link·rel="next"·title="Database·transactions"·href="transactions.html"·/>
15 ····<link·rel="prev"·title="Managers"·href="managers.html"·/>16 ····<link·rel="prev"·title="Managers"·href="managers.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 92, 15 lines modifiedOffset 93, 15 lines modified
92 <a·class="reference·internal"·href="../../ref/models/expressions.html"><span·class="doc">custom·query·expressions</span></a>.</p></li>93 <a·class="reference·internal"·href="../../ref/models/expressions.html"><span·class="doc">custom·query·expressions</span></a>.</p></li>
93 </ul>94 </ul>
94 <p>Before·using·raw·SQL,·explore·<a·class="reference·internal"·href="index.html"><span·class="doc">the·ORM</span></a>.·Ask·on95 <p>Before·using·raw·SQL,·explore·<a·class="reference·internal"·href="index.html"><span·class="doc">the·ORM</span></a>.·Ask·on
95 one·of·<a·class="reference·internal"·href="../../faq/help.html"><span·class="doc">the·support·channels</span></a>·to·see·if·the·ORM·supports96 one·of·<a·class="reference·internal"·href="../../faq/help.html"><span·class="doc">the·support·channels</span></a>·to·see·if·the·ORM·supports
96 your·use·case.</p>97 your·use·case.</p>
97 </div>98 </div>
98 <div·class="admonition·warning">99 <div·class="admonition·warning">
99 <p·class="admonition-title">Warning</p>100 <p·class="admonition-title">Avvertimento</p>
100 <p>You·should·be·very·careful·whenever·you·write·raw·SQL.·Every·time·you·use101 <p>You·should·be·very·careful·whenever·you·write·raw·SQL.·Every·time·you·use
101 it,·you·should·properly·escape·any·parameters·that·the·user·can·control102 it,·you·should·properly·escape·any·parameters·that·the·user·can·control
102 by·using·<code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·in·order·to·protect·against·SQL·injection·attacks.103 by·using·<code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·in·order·to·protect·against·SQL·injection·attacks.
103 Please·read·more·about·<a·class="reference·internal"·href="../security.html#sql-injection-protection"><span·class="std·std-ref">SQL·injection·protection</span></a>.</p>104 Please·read·more·about·<a·class="reference·internal"·href="../security.html#sql-injection-protection"><span·class="std·std-ref">SQL·injection·protection</span></a>.</p>
104 </div>105 </div>
105 <section·id="s-performing-raw-queries">106 <section·id="s-performing-raw-queries">
106 <span·id="s-executing-raw-queries"></span><span·id="performing-raw-queries"></span><span·id="executing-raw-queries"></span><h2>Performing·raw·queries<a·class="headerlink"·href="#performing-raw-queries"·title="Link·to·this·heading">¶</a></h2>107 <span·id="s-executing-raw-queries"></span><span·id="performing-raw-queries"></span><span·id="executing-raw-queries"></span><h2>Performing·raw·queries<a·class="headerlink"·href="#performing-raw-queries"·title="Link·to·this·heading">¶</a></h2>
Offset 133, 31 lines modifiedOffset 134, 31 lines modified
133 <p>This·example·isn’t·very·exciting··it’s·exactly·the·same·as·running134 <p>This·example·isn’t·very·exciting··it’s·exactly·the·same·as·running
134 <code·class="docutils·literal·notranslate"><span·class="pre">Person.objects.all()</span></code>.·However,·<code·class="docutils·literal·notranslate"><span·class="pre">raw()</span></code>·has·a·bunch·of·other·options·that135 <code·class="docutils·literal·notranslate"><span·class="pre">Person.objects.all()</span></code>.·However,·<code·class="docutils·literal·notranslate"><span·class="pre">raw()</span></code>·has·a·bunch·of·other·options·that
135 make·it·very·powerful.</p>136 make·it·very·powerful.</p>
136 <div·class="admonition-model-table-names·admonition">137 <div·class="admonition-model-table-names·admonition">
137 <p·class="admonition-title">Model·table·names</p>138 <p·class="admonition-title">Model·table·names</p>
138 <p>Where·did·the·name·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">Person</span></code>·table·come·from·in·that·example?</p>139 <p>Where·did·the·name·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">Person</span></code>·table·come·from·in·that·example?</p>
139 <p>By·default,·Django·figures·out·a·database·table·name·by·joining·the140 <p>By·default,·Django·figures·out·a·database·table·name·by·joining·the
140 model’s·app·label··the·name·you·used·in·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span></code>··to141 model’s·«app·label»··the·name·you·used·in·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span>·<span·class="pre">startapp</span></code>··to
141 the·model’s·class·name,·with·an·underscore·between·them.·In·the·example142 the·model’s·class·name,·with·an·underscore·between·them.·In·the·example
142 we’ve·assumed·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">Person</span></code>·model·lives·in·an·app·named·<code·class="docutils·literal·notranslate"><span·class="pre">myapp</span></code>,143 we’ve·assumed·that·the·<code·class="docutils·literal·notranslate"><span·class="pre">Person</span></code>·model·lives·in·an·app·named·<code·class="docutils·literal·notranslate"><span·class="pre">myapp</span></code>,
143 so·its·table·would·be·<code·class="docutils·literal·notranslate"><span·class="pre">myapp_person</span></code>.</p>144 so·its·table·would·be·<code·class="docutils·literal·notranslate"><span·class="pre">myapp_person</span></code>.</p>
144 <p>For·more·details·check·out·the·documentation·for·the145 <p>For·more·details·check·out·the·documentation·for·the
145 <a·class="reference·internal"·href="../../ref/models/options.html#django.db.models.Options.db_table"·title="django.db.models.Options.db_table"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">db_table</span></code></a>·option,·which·also·lets·you·manually·set·the146 <a·class="reference·internal"·href="../../ref/models/options.html#django.db.models.Options.db_table"·title="django.db.models.Options.db_table"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">db_table</span></code></a>·option,·which·also·lets·you·manually·set·the
146 database·table·name.</p>147 database·table·name.</p>
147 </div>148 </div>
148 <div·class="admonition·warning">149 <div·class="admonition·warning">
149 <p·class="admonition-title">Warning</p>150 <p·class="admonition-title">Avvertimento</p>
150 <p>No·checking·is·done·on·the·SQL·statement·that·is·passed·in·to·<code·class="docutils·literal·notranslate"><span·class="pre">.raw()</span></code>.151 <p>No·checking·is·done·on·the·SQL·statement·that·is·passed·in·to·<code·class="docutils·literal·notranslate"><span·class="pre">.raw()</span></code>.
151 Django·expects·that·the·statement·will·return·a·set·of·rows·from·the152 Django·expects·that·the·statement·will·return·a·set·of·rows·from·the
152 database,·but·does·nothing·to·enforce·that.·If·the·query·does·not153 database,·but·does·nothing·to·enforce·that.·If·the·query·does·not
153 return·rows,·a·(possibly·cryptic)·error·will·result.</p>154 return·rows,·a·(possibly·cryptic)·error·will·result.</p>
154 </div>155 </div>
155 <div·class="admonition·warning">156 <div·class="admonition·warning">
156 <p·class="admonition-title">Warning</p>157 <p·class="admonition-title">Avvertimento</p>
157 <p>If·you·are·performing·queries·on·MySQL,·note·that·MySQL’s·silent·type·coercion158 <p>If·you·are·performing·queries·on·MySQL,·note·that·MySQL’s·silent·type·coercion
158 may·cause·unexpected·results·when·mixing·types.·If·you·query·on·a·string159 may·cause·unexpected·results·when·mixing·types.·If·you·query·on·a·string
159 type·column,·but·with·an·integer·value,·MySQL·will·coerce·the·types·of·all·values160 type·column,·but·with·an·integer·value,·MySQL·will·coerce·the·types·of·all·values
160 in·the·table·to·an·integer·before·performing·the·comparison.·For·example,·if·your161 in·the·table·to·an·integer·before·performing·the·comparison.·For·example,·if·your
161 table·contains·the·values·<code·class="docutils·literal·notranslate"><span·class="pre">'abc'</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">'def'</span></code>·and·you·query·for·<code·class="docutils·literal·notranslate"><span·class="pre">WHERE</span>·<span·class="pre">mycolumn=0</span></code>,162 table·contains·the·values·<code·class="docutils·literal·notranslate"><span·class="pre">'abc'</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">'def'</span></code>·and·you·query·for·<code·class="docutils·literal·notranslate"><span·class="pre">WHERE</span>·<span·class="pre">mycolumn=0</span></code>,
162 both·rows·will·match.·To·prevent·this,·perform·the·correct·typecasting163 both·rows·will·match.·To·prevent·this,·perform·the·correct·typecasting
163 before·using·the·value·in·a·query.</p>164 before·using·the·value·in·a·query.</p>
Offset 265, 20 lines modifiedOffset 266, 20 lines modified
265 </div>266 </div>
266 <p><code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·is·a·list·or·dictionary·of·parameters.·You’ll·use·<code·class="docutils·literal·notranslate"><span·class="pre">%s</span></code>267 <p><code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·is·a·list·or·dictionary·of·parameters.·You’ll·use·<code·class="docutils·literal·notranslate"><span·class="pre">%s</span></code>
267 placeholders·in·the·query·string·for·a·list,·or·<code·class="docutils·literal·notranslate"><span·class="pre">%(key)s</span></code>268 placeholders·in·the·query·string·for·a·list,·or·<code·class="docutils·literal·notranslate"><span·class="pre">%(key)s</span></code>
268 placeholders·for·a·dictionary·(where·<code·class="docutils·literal·notranslate"><span·class="pre">key</span></code>·is·replaced·by·a269 placeholders·for·a·dictionary·(where·<code·class="docutils·literal·notranslate"><span·class="pre">key</span></code>·is·replaced·by·a
269 dictionary·key),·regardless·of·your·database·engine.·Such·placeholders·will·be270 dictionary·key),·regardless·of·your·database·engine.·Such·placeholders·will·be
270 replaced·with·parameters·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·argument.</p>271 replaced·with·parameters·from·the·<code·class="docutils·literal·notranslate"><span·class="pre">params</span></code>·argument.</p>
271 <div·class="admonition·note">272 <div·class="admonition·note">
272 <p·class="admonition-title">Note</p>273 <p·class="admonition-title">Nota</p>
273 <p>Dictionary·params·are·not·supported·with·the·SQLite·backend;·with274 <p>Dictionary·params·are·not·supported·with·the·SQLite·backend;·with
274 this·backend,·you·must·pass·parameters·as·a·list.</p>275 this·backend,·you·must·pass·parameters·as·a·list.</p>
275 </div>276 </div>
276 <div·class="admonition·warning">277 <div·class="admonition·warning">
277 <p·class="admonition-title">Warning</p>278 <p·class="admonition-title">Avvertimento</p>
278 <p><strong>Do·not·use·string·formatting·on·raw·queries·or·quote·placeholders·in·your279 <p><strong>Do·not·use·string·formatting·on·raw·queries·or·quote·placeholders·in·your
279 SQL·strings!</strong></p>280 SQL·strings!</strong></p>
280 <p>It’s·tempting·to·write·the·above·query·as:</p>281 <p>It’s·tempting·to·write·the·above·query·as:</p>
281 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">query</span>·<span·class="o">=</span>·<span·class="s2">&quot;SELECT·*·FROM·myapp_person·WHERE·last_name·=·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">lname</span>282 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="n">query</span>·<span·class="o">=</span>·<span·class="s2">&quot;SELECT·*·FROM·myapp_person·WHERE·last_name·=·</span><span·class="si">%s</span><span·class="s2">&quot;</span>·<span·class="o">%</span>·<span·class="n">lname</span>
282 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Person</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">raw</span><span·class="p">(</span><span·class="n">query</span><span·class="p">)</span>283 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">Person</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">raw</span><span·class="p">(</span><span·class="n">query</span><span·class="p">)</span>
283 </pre></div>284 </pre></div>
284 </div>285 </div>
Offset 479, 37 lines modifiedOffset 480, 37 lines modified
479 </li>480 </li>
480 </ul>481 </ul>
481 </li>482 </li>
482 </ul>483 </ul>
  
483 ··</div>484 ··</div>
484 ··<div>485 ··<div>
485 ····<h4>Previous·topic</h4>486 ····<h4>Argomento·precedente</h4>
486 ····<p·class="topless"><a·href="managers.html"487 ····<p·class="topless"><a·href="managers.html"
487 ··························title="previous·chapter">Managers</a></p>488 ··························title="capitolo·precedente">Managers</a></p>
488 ··</div>489 ··</div>
489 ··<div>490 ··<div>
490 ····<h4>Next·topic</h4>491 ····<h4>Argomento·successivo</h4>
491 ····<p·class="topless"><a·href="transactions.html"492 ····<p·class="topless"><a·href="transactions.html"
492 ··························title="next·chapter">Database·transactions</a></p>493 ··························title="capitolo·successivo">Database·transactions</a></p>
493 ··</div>494 ··</div>
494 <search·id="searchbox"·style="display:·none"·role="search">495 <search·id="searchbox"·style="display:·none"·role="search">
495 ··<h3·id="searchlabel">Quick·search</h3>496 ··<h3·id="searchlabel">Ricerca·veloce</h3>
Max diff block lines reached; 674/10031 bytes (6.72%) of diff not shown.
6.08 KB
html2text {}
Max HTML report size reached
7.53 KB
./usr/share/doc/python-django-doc/html/topics/db/tablespaces.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Tablespaces·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Tablespaces·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Database·access·optimization"·href="optimization.html"·/>15 ····<link·rel="next"·title="Database·access·optimization"·href="optimization.html"·/>
15 ····<link·rel="prev"·title="Multiple·databases"·href="multi-db.html"·/>16 ····<link·rel="prev"·title="Multiple·databases"·href="multi-db.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 78, 15 lines modifiedOffset 79, 15 lines modified
78 ··········<div·class="yui-g"·id="topics-db-tablespaces">79 ··········<div·class="yui-g"·id="topics-db-tablespaces">
79 ············80 ············
80 ··<section·id="s-tablespaces">81 ··<section·id="s-tablespaces">
81 <span·id="tablespaces"></span><h1>Tablespaces<a·class="headerlink"·href="#tablespaces"·title="Link·to·this·heading">¶</a></h1>82 <span·id="tablespaces"></span><h1>Tablespaces<a·class="headerlink"·href="#tablespaces"·title="Link·to·this·heading">¶</a></h1>
82 <p>A·common·paradigm·for·optimizing·performance·in·database·systems·is·the·use·of83 <p>A·common·paradigm·for·optimizing·performance·in·database·systems·is·the·use·of
83 <a·class="reference·external"·href="https://en.wikipedia.org/wiki/Tablespace">tablespaces</a>·to·organize·disk·layout.</p>84 <a·class="reference·external"·href="https://en.wikipedia.org/wiki/Tablespace">tablespaces</a>·to·organize·disk·layout.</p>
84 <div·class="admonition·warning">85 <div·class="admonition·warning">
85 <p·class="admonition-title">Warning</p>86 <p·class="admonition-title">Avvertimento</p>
86 <p>Django·does·not·create·the·tablespaces·for·you.·Please·refer·to·your87 <p>Django·does·not·create·the·tablespaces·for·you.·Please·refer·to·your
87 database·engine’s·documentation·for·details·on·creating·and·managing88 database·engine’s·documentation·for·details·on·creating·and·managing
88 tablespaces.</p>89 tablespaces.</p>
89 </div>90 </div>
90 <section·id="s-declaring-tablespaces-for-tables">91 <section·id="s-declaring-tablespaces-for-tables">
91 <span·id="declaring-tablespaces-for-tables"></span><h2>Declaring·tablespaces·for·tables<a·class="headerlink"·href="#declaring-tablespaces-for-tables"·title="Link·to·this·heading">¶</a></h2>92 <span·id="declaring-tablespaces-for-tables"></span><h2>Declaring·tablespaces·for·tables<a·class="headerlink"·href="#declaring-tablespaces-for-tables"·title="Link·to·this·heading">¶</a></h2>
92 <p>A·tablespace·can·be·specified·for·the·table·generated·by·a·model·by·supplying93 <p>A·tablespace·can·be·specified·for·the·table·generated·by·a·model·by·supplying
Offset 161, 37 lines modifiedOffset 162, 37 lines modified
161 <li><a·class="reference·internal"·href="#database-support">Database·support</a></li>162 <li><a·class="reference·internal"·href="#database-support">Database·support</a></li>
162 </ul>163 </ul>
163 </li>164 </li>
164 </ul>165 </ul>
  
165 ··</div>166 ··</div>
166 ··<div>167 ··<div>
167 ····<h4>Previous·topic</h4>168 ····<h4>Argomento·precedente</h4>
168 ····<p·class="topless"><a·href="multi-db.html"169 ····<p·class="topless"><a·href="multi-db.html"
169 ··························title="previous·chapter">Multiple·databases</a></p>170 ··························title="capitolo·precedente">Multiple·databases</a></p>
170 ··</div>171 ··</div>
171 ··<div>172 ··<div>
172 ····<h4>Next·topic</h4>173 ····<h4>Argomento·successivo</h4>
173 ····<p·class="topless"><a·href="optimization.html"174 ····<p·class="topless"><a·href="optimization.html"
174 ··························title="next·chapter">Database·access·optimization</a></p>175 ··························title="capitolo·successivo">Database·access·optimization</a></p>
175 ··</div>176 ··</div>
176 <search·id="searchbox"·style="display:·none"·role="search">177 <search·id="searchbox"·style="display:·none"·role="search">
177 ··<h3·id="searchlabel">Quick·search</h3>178 ··<h3·id="searchlabel">Ricerca·veloce</h3>
178 ····<div·class="searchformwrapper">179 ····<div·class="searchformwrapper">
179 ····<form·class="search"·action="../../search.html"·method="get">180 ····<form·class="search"·action="../../search.html"·method="get">
180 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
181 ······<input·type="submit"·value="Go"·/>182 ······<input·type="submit"·value="Vai"·/>
182 ····</form>183 ····</form>
183 ····</div>184 ····</div>
184 </search>185 </search>
185 <script>document.getElementById('searchbox').style.display·=·"block"</script>186 <script>document.getElementById('searchbox').style.display·=·"block"</script>
186 ········</div>187 ········</div>
187 ······</div>188 ······</div>
188 ··············<h3>Last·update:</h3>189 ··············<h3>Last·update:</h3>
189 ··············<p·class="topless">Sep·03,·2024</p>190 ··············<p·class="topless">set·03,·2024</p>
190 ··········</div>191 ··········</div>
191 ········192 ········
192 ······193 ······
193 ····</div>194 ····</div>
  
194 ····<div·id="ft">195 ····<div·id="ft">
195 ······<div·class="nav">196 ······<div·class="nav">
2.68 KB
html2text {}
Max HTML report size reached
50.9 KB
./usr/share/doc/python-django-doc/html/topics/db/transactions.html
Max HTML report size reached
59.8 KB
./usr/share/doc/python-django-doc/html/topics/email.html
Max HTML report size reached
5.73 KB
./usr/share/doc/python-django-doc/html/topics/external-packages.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>External·packages·&#8212;·Django·4.2.16·documentation</title>6 ····<title>External·packages·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Asynchronous·support"·href="async.html"·/>15 ····<link·rel="next"·title="Asynchronous·support"·href="async.html"·/>
15 ····<link·rel="prev"·title="System·check·framework"·href="checks.html"·/>16 ····<link·rel="prev"·title="System·check·framework"·href="checks.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 134, 37 lines modifiedOffset 135, 37 lines modified
134 <li><a·class="reference·internal"·href="#formtools">Formtools</a></li>135 <li><a·class="reference·internal"·href="#formtools">Formtools</a></li>
135 </ul>136 </ul>
136 </li>137 </li>
137 </ul>138 </ul>
  
138 ··</div>139 ··</div>
139 ··<div>140 ··<div>
140 ····<h4>Previous·topic</h4>141 ····<h4>Argomento·precedente</h4>
141 ····<p·class="topless"><a·href="checks.html"142 ····<p·class="topless"><a·href="checks.html"
142 ··························title="previous·chapter">System·check·framework</a></p>143 ··························title="capitolo·precedente">System·check·framework</a></p>
143 ··</div>144 ··</div>
144 ··<div>145 ··<div>
145 ····<h4>Next·topic</h4>146 ····<h4>Argomento·successivo</h4>
146 ····<p·class="topless"><a·href="async.html"147 ····<p·class="topless"><a·href="async.html"
147 ··························title="next·chapter">Asynchronous·support</a></p>148 ··························title="capitolo·successivo">Asynchronous·support</a></p>
148 ··</div>149 ··</div>
149 <search·id="searchbox"·style="display:·none"·role="search">150 <search·id="searchbox"·style="display:·none"·role="search">
150 ··<h3·id="searchlabel">Quick·search</h3>151 ··<h3·id="searchlabel">Ricerca·veloce</h3>
151 ····<div·class="searchformwrapper">152 ····<div·class="searchformwrapper">
152 ····<form·class="search"·action="../search.html"·method="get">153 ····<form·class="search"·action="../search.html"·method="get">
153 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>154 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
154 ······<input·type="submit"·value="Go"·/>155 ······<input·type="submit"·value="Vai"·/>
155 ····</form>156 ····</form>
156 ····</div>157 ····</div>
157 </search>158 </search>
158 <script>document.getElementById('searchbox').style.display·=·"block"</script>159 <script>document.getElementById('searchbox').style.display·=·"block"</script>
159 ········</div>160 ········</div>
160 ······</div>161 ······</div>
161 ··············<h3>Last·update:</h3>162 ··············<h3>Last·update:</h3>
162 ··············<p·class="topless">Sep·03,·2024</p>163 ··············<p·class="topless">set·03,·2024</p>
163 ··········</div>164 ··········</div>
164 ········165 ········
165 ······166 ······
166 ····</div>167 ····</div>
  
167 ····<div·id="ft">168 ····<div·id="ft">
168 ······<div·class="nav">169 ······<div·class="nav">
2.01 KB
html2text {}
Max HTML report size reached
13.0 KB
./usr/share/doc/python-django-doc/html/topics/files.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Managing·files·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Managing·files·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Testing·in·Django"·href="testing/index.html"·/>15 ····<link·rel="next"·title="Testing·in·Django"·href="testing/index.html"·/>
15 ····<link·rel="prev"·title="Migrations"·href="migrations.html"·/>16 ····<link·rel="prev"·title="Migrations"·href="migrations.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-files">79 ··········<div·class="yui-g"·id="topics-files">
79 ············80 ············
80 ··<section·id="s-managing-files">81 ··<section·id="s-managing-files">
81 <span·id="managing-files"></span><h1>Managing·files<a·class="headerlink"·href="#managing-files"·title="Link·to·this·heading">¶</a></h1>82 <span·id="managing-files"></span><h1>Managing·files<a·class="headerlink"·href="#managing-files"·title="Link·to·this·heading">¶</a></h1>
82 <p>This·document·describes·Django’s·file·access·APIs·for·files·such·as·those83 <p>This·document·describes·Django’s·file·access·APIs·for·files·such·as·those
83 uploaded·by·a·user.·The·lower·level·APIs·are·general·enough·that·you·could·use84 uploaded·by·a·user.·The·lower·level·APIs·are·general·enough·that·you·could·use
84 them·for·other·purposes.·If·you·want·to·handle·static·files·(JS,·CSS,·etc.),85 them·for·other·purposes.·If·you·want·to·handle·«static·files»·(JS,·CSS,·etc.),
85 see·<a·class="reference·internal"·href="../howto/static-files/index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.</p>86 see·<a·class="reference·internal"·href="../howto/static-files/index.html"><span·class="doc">How·to·manage·static·files·(e.g.·images,·JavaScript,·CSS)</span></a>.</p>
86 <p>By·default,·Django·stores·files·locally,·using·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>·and87 <p>By·default,·Django·stores·files·locally,·using·the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>·and
87 <a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_URL</span></code></a>·settings.·The·examples·below·assume·that·you’re·using·these88 <a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_URL"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_URL</span></code></a>·settings.·The·examples·below·assume·that·you’re·using·these
88 defaults.</p>89 defaults.</p>
89 <p>However,·Django·provides·ways·to·write·custom·<a·class="reference·internal"·href="#file-storage">file·storage·systems</a>·that90 <p>However,·Django·provides·ways·to·write·custom·<a·class="reference·internal"·href="#file-storage">file·storage·systems</a>·that
90 allow·you·to·completely·customize·where·and·how·Django·stores·files.·The91 allow·you·to·completely·customize·where·and·how·Django·stores·files.·The
91 second·half·of·this·document·describes·how·these·storage·systems·work.</p>92 second·half·of·this·document·describes·how·these·storage·systems·work.</p>
Offset 118, 15 lines modifiedOffset 119, 15 lines modified
118 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span><span·class="o">.</span><span·class="n">photo</span><span·class="o">.</span><span·class="n">url</span>119 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span><span·class="o">.</span><span·class="n">photo</span><span·class="o">.</span><span·class="n">url</span>
119 <span·class="go">&#39;http://media.example.com/cars/chevy.jpg&#39;</span>120 <span·class="go">&#39;http://media.example.com/cars/chevy.jpg&#39;</span>
120 </pre></div>121 </pre></div>
121 </div>122 </div>
122 <p>This·object··<code·class="docutils·literal·notranslate"><span·class="pre">car.photo</span></code>·in·the·example··is·a·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object,·which·means123 <p>This·object··<code·class="docutils·literal·notranslate"><span·class="pre">car.photo</span></code>·in·the·example··is·a·<code·class="docutils·literal·notranslate"><span·class="pre">File</span></code>·object,·which·means
123 it·has·all·the·methods·and·attributes·described·below.</p>124 it·has·all·the·methods·and·attributes·described·below.</p>
124 <div·class="admonition·note">125 <div·class="admonition·note">
125 <p·class="admonition-title">Note</p>126 <p·class="admonition-title">Nota</p>
126 <p>The·file·is·saved·as·part·of·saving·the·model·in·the·database,·so·the·actual127 <p>The·file·is·saved·as·part·of·saving·the·model·in·the·database,·so·the·actual
127 file·name·used·on·disk·cannot·be·relied·on·until·after·the·model·has·been128 file·name·used·on·disk·cannot·be·relied·on·until·after·the·model·has·been
128 saved.</p>129 saved.</p>
129 </div>130 </div>
130 <p>For·example,·you·can·change·the·file·name·by·setting·the·file’s131 <p>For·example,·you·can·change·the·file·name·by·setting·the·file’s
131 <a·class="reference·internal"·href="../ref/files/file.html#django.core.files.File.name"·title="django.core.files.File.name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">name</span></code></a>·to·a·path·relative·to·the·file·storage’s132 <a·class="reference·internal"·href="../ref/files/file.html#django.core.files.File.name"·title="django.core.files.File.name"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">name</span></code></a>·to·a·path·relative·to·the·file·storage’s
132 location·(<a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>·if·you·are·using·the·default133 location·(<a·class="reference·internal"·href="../ref/settings.html#std-setting-MEDIA_ROOT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MEDIA_ROOT</span></code></a>·if·you·are·using·the·default
Offset 153, 15 lines modifiedOffset 154, 15 lines modified
153 <span·class="gp">&gt;&gt;&gt;·</span><span·class="k">with</span>·<span·class="n">path</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">f</span><span·class="p">:</span>154 <span·class="gp">&gt;&gt;&gt;·</span><span·class="k">with</span>·<span·class="n">path</span><span·class="o">.</span><span·class="n">open</span><span·class="p">(</span><span·class="n">mode</span><span·class="o">=</span><span·class="s2">&quot;rb&quot;</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">f</span><span·class="p">:</span>
154 <span·class="gp">...·</span>····<span·class="n">car</span><span·class="o">.</span><span·class="n">specs</span>·<span·class="o">=</span>·<span·class="n">File</span><span·class="p">(</span><span·class="n">f</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="n">path</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>155 <span·class="gp">...·</span>····<span·class="n">car</span><span·class="o">.</span><span·class="n">specs</span>·<span·class="o">=</span>·<span·class="n">File</span><span·class="p">(</span><span·class="n">f</span><span·class="p">,</span>·<span·class="n">name</span><span·class="o">=</span><span·class="n">path</span><span·class="o">.</span><span·class="n">name</span><span·class="p">)</span>
155 <span·class="gp">...·</span>····<span·class="n">car</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>156 <span·class="gp">...·</span>····<span·class="n">car</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
156 <span·class="gp">...</span>157 <span·class="gp">...</span>
157 </pre></div>158 </pre></div>
158 </div>159 </div>
159 <div·class="admonition·note">160 <div·class="admonition·note">
160 <p·class="admonition-title">Note</p>161 <p·class="admonition-title">Nota</p>
161 <p>While·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ImageField"·title="django.db.models.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ImageField</span></code></a>·non-image·data·attributes,·such162 <p>While·<a·class="reference·internal"·href="../ref/models/fields.html#django.db.models.ImageField"·title="django.db.models.ImageField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ImageField</span></code></a>·non-image·data·attributes,·such
162 as·<code·class="docutils·literal·notranslate"><span·class="pre">height</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">width</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·are·available·on·the·instance,·the163 as·<code·class="docutils·literal·notranslate"><span·class="pre">height</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">width</span></code>,·and·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·are·available·on·the·instance,·the
163 underlying·image·data·cannot·be·used·without·reopening·the·image.·For164 underlying·image·data·cannot·be·used·without·reopening·the·image.·For
164 example:</p>165 example:</p>
165 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">PIL</span>·<span·class="kn">import</span>·<span·class="n">Image</span>166 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">PIL</span>·<span·class="kn">import</span>·<span·class="n">Image</span>
166 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span>·<span·class="o">=</span>·<span·class="n">Car</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;57·Chevy&quot;</span><span·class="p">)</span>167 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span>·<span·class="o">=</span>·<span·class="n">Car</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">get</span><span·class="p">(</span><span·class="n">name</span><span·class="o">=</span><span·class="s2">&quot;57·Chevy&quot;</span><span·class="p">)</span>
167 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span><span·class="o">.</span><span·class="n">photo</span><span·class="o">.</span><span·class="n">width</span>168 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">car</span><span·class="o">.</span><span·class="n">photo</span><span·class="o">.</span><span·class="n">width</span>
Offset 344, 37 lines modifiedOffset 345, 37 lines modified
344 </li>345 </li>
345 </ul>346 </ul>
346 </li>347 </li>
347 </ul>348 </ul>
  
348 ··</div>349 ··</div>
349 ··<div>350 ··<div>
350 ····<h4>Previous·topic</h4>351 ····<h4>Argomento·precedente</h4>
351 ····<p·class="topless"><a·href="migrations.html"352 ····<p·class="topless"><a·href="migrations.html"
352 ··························title="previous·chapter">Migrations</a></p>353 ··························title="capitolo·precedente">Migrations</a></p>
353 ··</div>354 ··</div>
354 ··<div>355 ··<div>
355 ····<h4>Next·topic</h4>356 ····<h4>Argomento·successivo</h4>
356 ····<p·class="topless"><a·href="testing/index.html"357 ····<p·class="topless"><a·href="testing/index.html"
357 ··························title="next·chapter">Testing·in·Django</a></p>358 ··························title="capitolo·successivo">Testing·in·Django</a></p>
358 ··</div>359 ··</div>
359 <search·id="searchbox"·style="display:·none"·role="search">360 <search·id="searchbox"·style="display:·none"·role="search">
360 ··<h3·id="searchlabel">Quick·search</h3>361 ··<h3·id="searchlabel">Ricerca·veloce</h3>
361 ····<div·class="searchformwrapper">362 ····<div·class="searchformwrapper">
362 ····<form·class="search"·action="../search.html"·method="get">363 ····<form·class="search"·action="../search.html"·method="get">
363 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>364 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
364 ······<input·type="submit"·value="Go"·/>365 ······<input·type="submit"·value="Vai"·/>
365 ····</form>366 ····</form>
366 ····</div>367 ····</div>
367 </search>368 </search>
368 <script>document.getElementById('searchbox').style.display·=·"block"</script>369 <script>document.getElementById('searchbox').style.display·=·"block"</script>
369 ········</div>370 ········</div>
370 ······</div>371 ······</div>
371 ··············<h3>Last·update:</h3>372 ··············<h3>Last·update:</h3>
372 ··············<p·class="topless">Sep·03,·2024</p>373 ··············<p·class="topless">set·03,·2024</p>
373 ··········</div>374 ··········</div>
374 ········375 ········
375 ······376 ······
376 ····</div>377 ····</div>
  
377 ····<div·id="ft">378 ····<div·id="ft">
378 ······<div·class="nav">379 ······<div·class="nav">
4.07 KB
html2text {}
Max HTML report size reached
30.1 KB
./usr/share/doc/python-django-doc/html/topics/forms/formsets.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Formsets·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Formsets·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Creating·forms·from·models"·href="modelforms.html"·/>15 ····<link·rel="next"·title="Creating·forms·from·models"·href="modelforms.html"·/>
15 ····<link·rel="prev"·title="Working·with·forms"·href="index.html"·/>16 ····<link·rel="prev"·title="Working·with·forms"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 77, 15 lines modifiedOffset 78, 15 lines modified
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-forms-formsets">79 ··········<div·class="yui-g"·id="topics-forms-formsets">
79 ············80 ············
80 ··<section·id="s-formsets">81 ··<section·id="s-formsets">
81 <span·id="formsets"></span><h1>Formsets<a·class="headerlink"·href="#formsets"·title="Link·to·this·heading">¶</a></h1>82 <span·id="formsets"></span><h1>Formsets<a·class="headerlink"·href="#formsets"·title="Link·to·this·heading">¶</a></h1>
82 <dl·class="py·class">83 <dl·class="py·class">
83 <dt·class="sig·sig-object·py"·id="django.forms.formsets.BaseFormSet">84 <dt·class="sig·sig-object·py"·id="django.forms.formsets.BaseFormSet">
84 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseFormSet</span></span><a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#BaseFormSet"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.BaseFormSet"·title="Link·to·this·definition">¶</a></dt>85 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">BaseFormSet</span></span><a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#BaseFormSet"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.BaseFormSet"·title="Link·to·this·definition">¶</a></dt>
85 <dd></dd></dl>86 <dd></dd></dl>
  
86 <p>A·formset·is·a·layer·of·abstraction·to·work·with·multiple·forms·on·the·same87 <p>A·formset·is·a·layer·of·abstraction·to·work·with·multiple·forms·on·the·same
87 page.·It·can·be·best·compared·to·a·data·grid.·Let’s·say·you·have·the·following88 page.·It·can·be·best·compared·to·a·data·grid.·Let’s·say·you·have·the·following
88 form:</p>89 form:</p>
89 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>90 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django</span>·<span·class="kn">import</span>·<span·class="n">forms</span>
90 <span·class="gp">&gt;&gt;&gt;·</span><span·class="k">class</span>·<span·class="nc">ArticleForm</span><span·class="p">(</span><span·class="n">forms</span><span·class="o">.</span><span·class="n">Form</span><span·class="p">):</span>91 <span·class="gp">&gt;&gt;&gt;·</span><span·class="k">class</span>·<span·class="nc">ArticleForm</span><span·class="p">(</span><span·class="n">forms</span><span·class="o">.</span><span·class="n">Form</span><span·class="p">):</span>
Offset 159, 15 lines modifiedOffset 160, 15 lines modified
159 that·was·passed·in·and·two·extra·forms.·Also·note·that·we·are·passing·in·a160 that·was·passed·in·and·two·extra·forms.·Also·note·that·we·are·passing·in·a
160 list·of·dictionaries·as·the·initial·data.</p>161 list·of·dictionaries·as·the·initial·data.</p>
161 <p>If·you·use·an·<code·class="docutils·literal·notranslate"><span·class="pre">initial</span></code>·for·displaying·a·formset,·you·should·pass·the·same162 <p>If·you·use·an·<code·class="docutils·literal·notranslate"><span·class="pre">initial</span></code>·for·displaying·a·formset,·you·should·pass·the·same
162 <code·class="docutils·literal·notranslate"><span·class="pre">initial</span></code>·when·processing·that·formset’s·submission·so·that·the·formset·can163 <code·class="docutils·literal·notranslate"><span·class="pre">initial</span></code>·when·processing·that·formset’s·submission·so·that·the·formset·can
163 detect·which·forms·were·changed·by·the·user.·For·example,·you·might·have164 detect·which·forms·were·changed·by·the·user.·For·example,·you·might·have
164 something·like:·<code·class="docutils·literal·notranslate"><span·class="pre">ArticleFormSet(request.POST,</span>·<span·class="pre">initial=[...])</span></code>.</p>165 something·like:·<code·class="docutils·literal·notranslate"><span·class="pre">ArticleFormSet(request.POST,</span>·<span·class="pre">initial=[...])</span></code>.</p>
165 <div·class="admonition·seealso">166 <div·class="admonition·seealso">
166 <p·class="admonition-title">See·also</p>167 <p·class="admonition-title">Vedi·anche</p>
167 <p><a·class="reference·internal"·href="modelforms.html#model-formsets"><span·class="std·std-ref">Creating·formsets·from·models·with·model·formsets</span></a>.</p>168 <p><a·class="reference·internal"·href="modelforms.html#model-formsets"><span·class="std·std-ref">Creating·formsets·from·models·with·model·formsets</span></a>.</p>
168 </div>169 </div>
169 </section>170 </section>
170 <section·id="s-limiting-the-maximum-number-of-forms">171 <section·id="s-limiting-the-maximum-number-of-forms">
171 <span·id="s-formsets-max-num"></span><span·id="limiting-the-maximum-number-of-forms"></span><span·id="formsets-max-num"></span><h2>Limiting·the·maximum·number·of·forms<a·class="headerlink"·href="#limiting-the-maximum-number-of-forms"·title="Link·to·this·heading">¶</a></h2>172 <span·id="s-formsets-max-num"></span><span·id="limiting-the-maximum-number-of-forms"></span><span·id="formsets-max-num"></span><h2>Limiting·the·maximum·number·of·forms<a·class="headerlink"·href="#limiting-the-maximum-number-of-forms"·title="Link·to·this·heading">¶</a></h2>
172 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·parameter·to·<a·class="reference·internal"·href="../../ref/forms/formsets.html#django.forms.formsets.formset_factory"·title="django.forms.formsets.formset_factory"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">formset_factory()</span></code></a>173 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·parameter·to·<a·class="reference·internal"·href="../../ref/forms/formsets.html#django.forms.formsets.formset_factory"·title="django.forms.formsets.formset_factory"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">formset_factory()</span></code></a>
173 gives·you·the·ability·to·limit·the·number·of·forms·the·formset·will·display:</p>174 gives·you·the·ability·to·limit·the·number·of·forms·the·formset·will·display:</p>
Offset 265, 15 lines modifiedOffset 266, 15 lines modified
265 the·expected·error·message·appears·for·the·second·item.</p>266 the·expected·error·message·appears·for·the·second·item.</p>
266 <p>Just·like·when·using·a·normal·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>,·each·field·in·a·formset’s·forms·may267 <p>Just·like·when·using·a·normal·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>,·each·field·in·a·formset’s·forms·may
267 include·HTML·attributes·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">maxlength</span></code>·for·browser·validation.·However,268 include·HTML·attributes·such·as·<code·class="docutils·literal·notranslate"><span·class="pre">maxlength</span></code>·for·browser·validation.·However,
268 form·fields·of·formsets·won’t·include·the·<code·class="docutils·literal·notranslate"><span·class="pre">required</span></code>·attribute·as·that269 form·fields·of·formsets·won’t·include·the·<code·class="docutils·literal·notranslate"><span·class="pre">required</span></code>·attribute·as·that
269 validation·may·be·incorrect·when·adding·and·deleting·forms.</p>270 validation·may·be·incorrect·when·adding·and·deleting·forms.</p>
270 <dl·class="py·method">271 <dl·class="py·method">
271 <dt·class="sig·sig-object·py"·id="django.forms.formsets.BaseFormSet.total_error_count">272 <dt·class="sig·sig-object·py"·id="django.forms.formsets.BaseFormSet.total_error_count">
272 <span·class="sig-prename·descclassname"><span·class="pre">BaseFormSet.</span></span><span·class="sig-name·descname"><span·class="pre">total_error_count</span></span>()<a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#BaseFormSet.total_error_count"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.BaseFormSet.total_error_count"·title="Link·to·this·definition">¶</a></dt>273 <span·class="sig-prename·descclassname"><span·class="pre">BaseFormSet.</span></span><span·class="sig-name·descname"><span·class="pre">total_error_count</span></span>()<a·class="reference·internal"·href="../../_modules/django/forms/formsets.html#BaseFormSet.total_error_count"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.formsets.BaseFormSet.total_error_count"·title="Link·to·this·definition">¶</a></dt>
273 <dd></dd></dl>274 <dd></dd></dl>
  
274 <p>To·check·how·many·errors·there·are·in·the·formset,·we·can·use·the275 <p>To·check·how·many·errors·there·are·in·the·formset,·we·can·use·the
275 <code·class="docutils·literal·notranslate"><span·class="pre">total_error_count</span></code>·method:</p>276 <code·class="docutils·literal·notranslate"><span·class="pre">total_error_count</span></code>·method:</p>
276 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·Using·the·previous·example</span>277 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="c1">#·Using·the·previous·example</span>
277 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">formset</span><span·class="o">.</span><span·class="n">errors</span>278 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">formset</span><span·class="o">.</span><span·class="n">errors</span>
278 <span·class="go">[{},·{&#39;pub_date&#39;:·[&#39;This·field·is·required.&#39;]}]</span>279 <span·class="go">[{},·{&#39;pub_date&#39;:·[&#39;This·field·is·required.&#39;]}]</span>
Offset 319, 15 lines modifiedOffset 320, 15 lines modified
319 are·properly·marked·for·deletion·by·including·<code·class="docutils·literal·notranslate"><span·class="pre">form-#-DELETE</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>320 are·properly·marked·for·deletion·by·including·<code·class="docutils·literal·notranslate"><span·class="pre">form-#-DELETE</span></code>·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>
320 data.·It·is·expected·that·all·forms·are·present·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·data·regardless.</p>321 data.·It·is·expected·that·all·forms·are·present·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·data·regardless.</p>
321 <p>The·management·form·is·available·as·an·attribute·of·the·formset322 <p>The·management·form·is·available·as·an·attribute·of·the·formset
322 itself.·When·rendering·a·formset·in·a·template,·you·can·include·all323 itself.·When·rendering·a·formset·in·a·template,·you·can·include·all
323 the·management·data·by·rendering·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">my_formset.management_form</span>·<span·class="pre">}}</span></code>324 the·management·data·by·rendering·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>·<span·class="pre">my_formset.management_form</span>·<span·class="pre">}}</span></code>
324 (substituting·the·name·of·your·formset·as·appropriate).</p>325 (substituting·the·name·of·your·formset·as·appropriate).</p>
325 <div·class="admonition·note">326 <div·class="admonition·note">
326 <p·class="admonition-title">Note</p>327 <p·class="admonition-title">Nota</p>
327 <p>As·well·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">form-TOTAL_FORMS</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">form-INITIAL_FORMS</span></code>·fields·shown328 <p>As·well·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">form-TOTAL_FORMS</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">form-INITIAL_FORMS</span></code>·fields·shown
328 in·the·examples·here,·the·management·form·also·includes329 in·the·examples·here,·the·management·form·also·includes
329 <code·class="docutils·literal·notranslate"><span·class="pre">form-MIN_NUM_FORMS</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">form-MAX_NUM_FORMS</span></code>·fields.·They·are·output330 <code·class="docutils·literal·notranslate"><span·class="pre">form-MIN_NUM_FORMS</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">form-MAX_NUM_FORMS</span></code>·fields.·They·are·output
330 with·the·rest·of·the·management·form,·but·only·for·the·convenience·of331 with·the·rest·of·the·management·form,·but·only·for·the·convenience·of
331 client-side·code.·These·fields·are·not·required·and·so·are·not·shown·in332 client-side·code.·These·fields·are·not·required·and·so·are·not·shown·in
332 the·example·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·data.</p>333 the·example·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·data.</p>
333 </div>334 </div>
Offset 469, 15 lines modifiedOffset 470, 15 lines modified
469 </div>470 </div>
470 <p><code·class="docutils·literal·notranslate"><span·class="pre">validate_max=True</span></code>·validates·against·<code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·strictly·even·if471 <p><code·class="docutils·literal·notranslate"><span·class="pre">validate_max=True</span></code>·validates·against·<code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·strictly·even·if
471 <code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·was·exceeded·because·the·amount·of·initial·data·supplied·was472 <code·class="docutils·literal·notranslate"><span·class="pre">max_num</span></code>·was·exceeded·because·the·amount·of·initial·data·supplied·was
472 excessive.</p>473 excessive.</p>
473 <p>The·error·message·can·be·customized·by·passing·the·<code·class="docutils·literal·notranslate"><span·class="pre">'too_many_forms'</span></code>·message474 <p>The·error·message·can·be·customized·by·passing·the·<code·class="docutils·literal·notranslate"><span·class="pre">'too_many_forms'</span></code>·message
474 to·the·<a·class="reference·internal"·href="#formsets-error-messages"><span·class="std·std-ref">error_messages</span></a>·argument.</p>475 to·the·<a·class="reference·internal"·href="#formsets-error-messages"><span·class="std·std-ref">error_messages</span></a>·argument.</p>
475 <div·class="admonition·note">476 <div·class="admonition·note">
476 <p·class="admonition-title">Note</p>477 <p·class="admonition-title">Nota</p>
477 <p>Regardless·of·<code·class="docutils·literal·notranslate"><span·class="pre">validate_max</span></code>,·if·the·number·of·forms·in·a·data·set478 <p>Regardless·of·<code·class="docutils·literal·notranslate"><span·class="pre">validate_max</span></code>,·if·the·number·of·forms·in·a·data·set
478 exceeds·<code·class="docutils·literal·notranslate"><span·class="pre">absolute_max</span></code>,·then·the·form·will·fail·to·validate·as·if479 exceeds·<code·class="docutils·literal·notranslate"><span·class="pre">absolute_max</span></code>,·then·the·form·will·fail·to·validate·as·if
479 <code·class="docutils·literal·notranslate"><span·class="pre">validate_max</span></code>·were·set,·and·additionally·only·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">absolute_max</span></code>480 <code·class="docutils·literal·notranslate"><span·class="pre">validate_max</span></code>·were·set,·and·additionally·only·the·first·<code·class="docutils·literal·notranslate"><span·class="pre">absolute_max</span></code>
480 forms·will·be·validated.·The·remainder·will·be·truncated·entirely.·This·is481 forms·will·be·validated.·The·remainder·will·be·truncated·entirely.·This·is
481 to·protect·against·memory·exhaustion·attacks·using·forged·POST·requests.482 to·protect·against·memory·exhaustion·attacks·using·forged·POST·requests.
482 See·<a·class="reference·internal"·href="#formsets-absolute-max"><span·class="std·std-ref">Limiting·the·maximum·number·of·instantiated·forms</span></a>.</p>483 See·<a·class="reference·internal"·href="#formsets-absolute-max"><span·class="std·std-ref">Limiting·the·maximum·number·of·instantiated·forms</span></a>.</p>
483 </div>484 </div>
Offset 507, 15 lines modifiedOffset 508, 15 lines modified
507 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">formset</span><span·class="o">.</span><span·class="n">non_form_errors</span><span·class="p">()</span>508 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">formset</span><span·class="o">.</span><span·class="n">non_form_errors</span><span·class="p">()</span>
508 <span·class="go">[&#39;Please·submit·at·least·3·forms.&#39;]</span>509 <span·class="go">[&#39;Please·submit·at·least·3·forms.&#39;]</span>
509 </pre></div>510 </pre></div>
510 </div>511 </div>
511 <p>The·error·message·can·be·customized·by·passing·the·<code·class="docutils·literal·notranslate"><span·class="pre">'too_few_forms'</span></code>·message512 <p>The·error·message·can·be·customized·by·passing·the·<code·class="docutils·literal·notranslate"><span·class="pre">'too_few_forms'</span></code>·message
512 to·the·<a·class="reference·internal"·href="#formsets-error-messages"><span·class="std·std-ref">error_messages</span></a>·argument.</p>513 to·the·<a·class="reference·internal"·href="#formsets-error-messages"><span·class="std·std-ref">error_messages</span></a>·argument.</p>
513 <div·class="admonition·note">514 <div·class="admonition·note">
Max diff block lines reached; 8501/20621 bytes (41.22%) of diff not shown.
9.87 KB
html2text {}
Max HTML report size reached
34.5 KB
./usr/share/doc/python-django-doc/html/topics/forms/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Working·with·forms·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Working·with·forms·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Formsets"·href="formsets.html"·/>15 ····<link·rel="next"·title="Formsets"·href="formsets.html"·/>
15 ····<link·rel="prev"·title="How·to·use·sessions"·href="../http/sessions.html"·/>16 ····<link·rel="prev"·title="How·to·use·sessions"·href="../http/sessions.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 107, 15 lines modifiedOffset 108, 15 lines modified
107 <li><p><em>where</em>:·the·URL·to·which·the·data·corresponding·to·the·user’s·input·should108 <li><p><em>where</em>:·the·URL·to·which·the·data·corresponding·to·the·user’s·input·should
108 be·returned</p></li>109 be·returned</p></li>
109 <li><p><em>how</em>:·the·HTTP·method·the·data·should·be·returned·by</p></li>110 <li><p><em>how</em>:·the·HTTP·method·the·data·should·be·returned·by</p></li>
110 </ul>111 </ul>
111 <p>As·an·example,·the·login·form·for·the·Django·admin·contains·several112 <p>As·an·example,·the·login·form·for·the·Django·admin·contains·several
112 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements:·one·of·<code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;text&quot;</span></code>·for·the·username,·one·of113 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements:·one·of·<code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;text&quot;</span></code>·for·the·username,·one·of
113 <code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;password&quot;</span></code>·for·the·password,·and·one·of·<code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;submit&quot;</span></code>·for·the114 <code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;password&quot;</span></code>·for·the·password,·and·one·of·<code·class="docutils·literal·notranslate"><span·class="pre">type=&quot;submit&quot;</span></code>·for·the
114 Log·in·button.·It·also·contains·some·hidden·text·fields·that·the·user115 «Log·in»·button.·It·also·contains·some·hidden·text·fields·that·the·user
115 doesn’t·see,·which·Django·uses·to·determine·what·to·do·next.</p>116 doesn’t·see,·which·Django·uses·to·determine·what·to·do·next.</p>
116 <p>It·also·tells·the·browser·that·the·form·data·should·be·sent·to·the·URL117 <p>It·also·tells·the·browser·that·the·form·data·should·be·sent·to·the·URL
117 specified·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">action</span></code>·attribute·-·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/</span></code>·-·and·that·it118 specified·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>’s·<code·class="docutils·literal·notranslate"><span·class="pre">action</span></code>·attribute·-·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/</span></code>·-·and·that·it
118 should·be·sent·using·the·HTTP·mechanism·specified·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">method</span></code>·attribute·-119 should·be·sent·using·the·HTTP·mechanism·specified·by·the·<code·class="docutils·literal·notranslate"><span·class="pre">method</span></code>·attribute·-
119 <code·class="docutils·literal·notranslate"><span·class="pre">post</span></code>.</p>120 <code·class="docutils·literal·notranslate"><span·class="pre">post</span></code>.</p>
120 <p>When·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input</span>·<span·class="pre">type=&quot;submit&quot;</span>·<span·class="pre">value=&quot;Log</span>·<span·class="pre">in&quot;&gt;</span></code>·element·is·triggered,·the121 <p>When·the·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input</span>·<span·class="pre">type=&quot;submit&quot;</span>·<span·class="pre">value=&quot;Log</span>·<span·class="pre">in&quot;&gt;</span></code>·element·is·triggered,·the
121 data·is·returned·to·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/</span></code>.</p>122 data·is·returned·to·<code·class="docutils·literal·notranslate"><span·class="pre">/admin/</span></code>.</p>
Offset 165, 15 lines modifiedOffset 166, 15 lines modified
165 <p>It·is·<em>possible</em>·to·write·code·that·does·all·of·this·manually,·but·Django·can166 <p>It·is·<em>possible</em>·to·write·code·that·does·all·of·this·manually,·but·Django·can
166 take·care·of·it·all·for·you.</p>167 take·care·of·it·all·for·you.</p>
167 </section>168 </section>
168 <section·id="s-forms-in-django">169 <section·id="s-forms-in-django">
169 <span·id="forms-in-django"></span><h2>Forms·in·Django<a·class="headerlink"·href="#forms-in-django"·title="Link·to·this·heading">¶</a></h2>170 <span·id="forms-in-django"></span><h2>Forms·in·Django<a·class="headerlink"·href="#forms-in-django"·title="Link·to·this·heading">¶</a></h2>
170 <p>We’ve·described·HTML·forms·briefly,·but·an·HTML·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>·is·just·one·part·of171 <p>We’ve·described·HTML·forms·briefly,·but·an·HTML·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>·is·just·one·part·of
171 the·machinery·required.</p>172 the·machinery·required.</p>
172 <p>In·the·context·of·a·web·application,·form·might·refer·to·that·HTML173 <p>In·the·context·of·a·web·application,·form·might·refer·to·that·HTML
173 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>,·or·to·the·Django·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·that·produces·it,·or·to·the174 <code·class="docutils·literal·notranslate"><span·class="pre">&lt;form&gt;</span></code>,·or·to·the·Django·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·that·produces·it,·or·to·the
174 structured·data·returned·when·it·is·submitted,·or·to·the·end-to-end·working175 structured·data·returned·when·it·is·submitted,·or·to·the·end-to-end·working
175 collection·of·these·parts.</p>176 collection·of·these·parts.</p>
176 <section·id="s-the-django-form-class">177 <section·id="s-the-django-form-class">
177 <span·id="the-django-form-class"></span><h3>The·Django·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·class<a·class="headerlink"·href="#the-django-form-class"·title="Link·to·this·heading">¶</a></h3>178 <span·id="the-django-form-class"></span><h3>The·Django·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·class<a·class="headerlink"·href="#the-django-form-class"·title="Link·to·this·heading">¶</a></h3>
178 <p>At·the·heart·of·this·system·of·components·is·Django’s·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·class.·In179 <p>At·the·heart·of·this·system·of·components·is·Django’s·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>·class.·In
179 much·the·same·way·that·a·Django·model·describes·the·logical·structure·of·an180 much·the·same·way·that·a·Django·model·describes·the·logical·structure·of·an
Offset 183, 15 lines modifiedOffset 184, 15 lines modified
183 class’s·fields·map·to·HTML·form·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements.·(A·<a·class="reference·internal"·href="modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>184 class’s·fields·map·to·HTML·form·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements.·(A·<a·class="reference·internal"·href="modelforms.html#django.forms.ModelForm"·title="django.forms.ModelForm"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ModelForm</span></code></a>
184 maps·a·model·class’s·fields·to·HTML·form·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements·via·a185 maps·a·model·class’s·fields·to·HTML·form·<code·class="docutils·literal·notranslate"><span·class="pre">&lt;input&gt;</span></code>·elements·via·a
185 <a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>;·this·is·what·the·Django·admin·is·based·upon.)</p>186 <a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form"·title="django.forms.Form"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Form</span></code></a>;·this·is·what·the·Django·admin·is·based·upon.)</p>
186 <p>A·form’s·fields·are·themselves·classes;·they·manage·form·data·and·perform187 <p>A·form’s·fields·are·themselves·classes;·they·manage·form·data·and·perform
187 validation·when·a·form·is·submitted.·A·<a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.DateField"·title="django.forms.DateField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DateField</span></code></a>·and·a188 validation·when·a·form·is·submitted.·A·<a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.DateField"·title="django.forms.DateField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DateField</span></code></a>·and·a
188 <a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileField</span></code></a>·handle·very·different·kinds·of·data·and·have·to·do189 <a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileField</span></code></a>·handle·very·different·kinds·of·data·and·have·to·do
189 different·things·with·it.</p>190 different·things·with·it.</p>
190 <p>A·form·field·is·represented·to·a·user·in·the·browser·as·an·HTML·widget·-·a191 <p>A·form·field·is·represented·to·a·user·in·the·browser·as·an·HTML·«widget»·-·a
191 piece·of·user·interface·machinery.·Each·field·type·has·an·appropriate·default192 piece·of·user·interface·machinery.·Each·field·type·has·an·appropriate·default
192 <a·class="reference·internal"·href="../../ref/forms/widgets.html"><span·class="doc">Widget·class</span></a>,·but·these·can·be·overridden·as193 <a·class="reference·internal"·href="../../ref/forms/widgets.html"><span·class="doc">Widget·class</span></a>,·but·these·can·be·overridden·as
193 required.</p>194 required.</p>
194 </section>195 </section>
195 <section·id="s-instantiating-processing-and-rendering-forms">196 <section·id="s-instantiating-processing-and-rendering-forms">
196 <span·id="instantiating-processing-and-rendering-forms"></span><h3>Instantiating,·processing,·and·rendering·forms<a·class="headerlink"·href="#instantiating-processing-and-rendering-forms"·title="Link·to·this·heading">¶</a></h3>197 <span·id="instantiating-processing-and-rendering-forms"></span><h3>Instantiating,·processing,·and·rendering·forms<a·class="headerlink"·href="#instantiating-processing-and-rendering-forms"·title="Link·to·this·heading">¶</a></h3>
197 <p>When·rendering·an·object·in·Django,·we·generally:</p>198 <p>When·rendering·an·object·in·Django,·we·generally:</p>
Offset 231, 16 lines modifiedOffset 232, 16 lines modified
231 ····<span·class="p">&lt;</span><span·class="nt">label</span>·<span·class="na">for</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span><span·class="p">&gt;</span>Your·name:·<span·class="p">&lt;/</span><span·class="nt">label</span><span·class="p">&gt;</span>232 ····<span·class="p">&lt;</span><span·class="nt">label</span>·<span·class="na">for</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span><span·class="p">&gt;</span>Your·name:·<span·class="p">&lt;/</span><span·class="nt">label</span><span·class="p">&gt;</span>
232 ····<span·class="p">&lt;</span><span·class="nt">input</span>·<span·class="na">id</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span>·<span·class="na">type</span><span·class="o">=</span><span·class="s">&quot;text&quot;</span>·<span·class="na">name</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span>·<span·class="na">value</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{{</span>·<span·class="nv">current_name</span>·<span·class="cp">}}</span><span·class="s">&quot;</span><span·class="p">&gt;</span>233 ····<span·class="p">&lt;</span><span·class="nt">input</span>·<span·class="na">id</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span>·<span·class="na">type</span><span·class="o">=</span><span·class="s">&quot;text&quot;</span>·<span·class="na">name</span><span·class="o">=</span><span·class="s">&quot;your_name&quot;</span>·<span·class="na">value</span><span·class="o">=</span><span·class="s">&quot;</span><span·class="cp">{{</span>·<span·class="nv">current_name</span>·<span·class="cp">}}</span><span·class="s">&quot;</span><span·class="p">&gt;</span>
233 ····<span·class="p">&lt;</span><span·class="nt">input</span>·<span·class="na">type</span><span·class="o">=</span><span·class="s">&quot;submit&quot;</span>·<span·class="na">value</span><span·class="o">=</span><span·class="s">&quot;OK&quot;</span><span·class="p">&gt;</span>234 ····<span·class="p">&lt;</span><span·class="nt">input</span>·<span·class="na">type</span><span·class="o">=</span><span·class="s">&quot;submit&quot;</span>·<span·class="na">value</span><span·class="o">=</span><span·class="s">&quot;OK&quot;</span><span·class="p">&gt;</span>
234 <span·class="p">&lt;/</span><span·class="nt">form</span><span·class="p">&gt;</span>235 <span·class="p">&lt;/</span><span·class="nt">form</span><span·class="p">&gt;</span>
235 </pre></div>236 </pre></div>
236 </div>237 </div>
237 <p>This·tells·the·browser·to·return·the·form·data·to·the·URL·<code·class="docutils·literal·notranslate"><span·class="pre">/your-name/</span></code>,·using238 <p>This·tells·the·browser·to·return·the·form·data·to·the·URL·<code·class="docutils·literal·notranslate"><span·class="pre">/your-name/</span></code>,·using
238 the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·method.·It·will·display·a·text·field,·labeled·Your·name:,·and·a239 the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·method.·It·will·display·a·text·field,·labeled·«Your·name:»,·and·a
239 button·marked·OK.·If·the·template·context·contains·a·<code·class="docutils·literal·notranslate"><span·class="pre">current_name</span></code>240 button·marked·«OK».·If·the·template·context·contains·a·<code·class="docutils·literal·notranslate"><span·class="pre">current_name</span></code>
240 variable,·that·will·be·used·to·pre-fill·the·<code·class="docutils·literal·notranslate"><span·class="pre">your_name</span></code>·field.</p>241 variable,·that·will·be·used·to·pre-fill·the·<code·class="docutils·literal·notranslate"><span·class="pre">your_name</span></code>·field.</p>
241 <p>You’ll·need·a·view·that·renders·the·template·containing·the·HTML·form,·and242 <p>You’ll·need·a·view·that·renders·the·template·containing·the·HTML·form,·and
242 that·can·supply·the·<code·class="docutils·literal·notranslate"><span·class="pre">current_name</span></code>·field·as·appropriate.</p>243 that·can·supply·the·<code·class="docutils·literal·notranslate"><span·class="pre">current_name</span></code>·field·as·appropriate.</p>
243 <p>When·the·form·is·submitted,·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·request·which·is·sent·to·the·server244 <p>When·the·form·is·submitted,·the·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·request·which·is·sent·to·the·server
244 will·contain·the·form·data.</p>245 will·contain·the·form·data.</p>
245 <p>Now·you’ll·also·need·a·view·corresponding·to·that·<code·class="docutils·literal·notranslate"><span·class="pre">/your-name/</span></code>·URL·which·will246 <p>Now·you’ll·also·need·a·view·corresponding·to·that·<code·class="docutils·literal·notranslate"><span·class="pre">/your-name/</span></code>·URL·which·will
246 find·the·appropriate·key/value·pairs·in·the·request,·and·then·process·them.</p>247 find·the·appropriate·key/value·pairs·in·the·request,·and·then·process·them.</p>
Offset 331, 15 lines modifiedOffset 332, 15 lines modified
331 </div>332 </div>
332 </div>333 </div>
333 <p>If·we·arrive·at·this·view·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request,·it·will·create·an·empty·form334 <p>If·we·arrive·at·this·view·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>·request,·it·will·create·an·empty·form
334 instance·and·place·it·in·the·template·context·to·be·rendered.·This·is·what·we335 instance·and·place·it·in·the·template·context·to·be·rendered.·This·is·what·we
335 can·expect·to·happen·the·first·time·we·visit·the·URL.</p>336 can·expect·to·happen·the·first·time·we·visit·the·URL.</p>
336 <p>If·the·form·is·submitted·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·request,·the·view·will·once·again337 <p>If·the·form·is·submitted·using·a·<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>·request,·the·view·will·once·again
337 create·a·form·instance·and·populate·it·with·data·from·the·request:·<code·class="docutils·literal·notranslate"><span·class="pre">form</span>·<span·class="pre">=</span>338 create·a·form·instance·and·populate·it·with·data·from·the·request:·<code·class="docutils·literal·notranslate"><span·class="pre">form</span>·<span·class="pre">=</span>
338 <span·class="pre">NameForm(request.POST)</span></code>·This·is·called·binding·data·to·the·form·(it·is·now339 <span·class="pre">NameForm(request.POST)</span></code>·This·is·called·«binding·data·to·the·form»·(it·is·now
339 a·<em>bound</em>·form).</p>340 a·<em>bound</em>·form).</p>
340 <p>We·call·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">is_valid()</span></code>·method;·if·it’s·not·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·we·go·back·to341 <p>We·call·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">is_valid()</span></code>·method;·if·it’s·not·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·we·go·back·to
341 the·template·with·the·form.·This·time·the·form·is·no·longer·empty·(<em>unbound</em>)342 the·template·with·the·form.·This·time·the·form·is·no·longer·empty·(<em>unbound</em>)
342 so·the·HTML·form·will·be·populated·with·the·data·previously·submitted,·where·it343 so·the·HTML·form·will·be·populated·with·the·data·previously·submitted,·where·it
343 can·be·edited·and·corrected·as·required.</p>344 can·be·edited·and·corrected·as·required.</p>
344 <p>If·<code·class="docutils·literal·notranslate"><span·class="pre">is_valid()</span></code>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·we’ll·now·be·able·to·find·all·the·validated·form345 <p>If·<code·class="docutils·literal·notranslate"><span·class="pre">is_valid()</span></code>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·we’ll·now·be·able·to·find·all·the·validated·form
345 data·in·its·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>·attribute.·We·can·use·this·data·to·update·the346 data·in·its·<code·class="docutils·literal·notranslate"><span·class="pre">cleaned_data</span></code>·attribute.·We·can·use·this·data·to·update·the
Offset 412, 15 lines modifiedOffset 413, 15 lines modified
412 </ul>413 </ul>
413 <p>The·form’s·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.is_bound"·title="django.forms.Form.is_bound"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_bound</span></code></a>·attribute·will·tell·you·whether·a·form·has414 <p>The·form’s·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.is_bound"·title="django.forms.Form.is_bound"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">is_bound</span></code></a>·attribute·will·tell·you·whether·a·form·has
414 data·bound·to·it·or·not.</p>415 data·bound·to·it·or·not.</p>
415 </section>416 </section>
416 <section·id="s-more-on-fields">417 <section·id="s-more-on-fields">
417 <span·id="more-on-fields"></span><h3>More·on·fields<a·class="headerlink"·href="#more-on-fields"·title="Link·to·this·heading">¶</a></h3>418 <span·id="more-on-fields"></span><h3>More·on·fields<a·class="headerlink"·href="#more-on-fields"·title="Link·to·this·heading">¶</a></h3>
Max diff block lines reached; 9054/22322 bytes (40.56%) of diff not shown.
12.5 KB
html2text {}
Max HTML report size reached
8.81 KB
./usr/share/doc/python-django-doc/html/topics/forms/media.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Form·Assets·(the·Media·class)·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Form·Assets·(the·Media·class)·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Templates"·href="../templates.html"·/>15 ····<link·rel="next"·title="Templates"·href="../templates.html"·/>
15 ····<link·rel="prev"·title="Creating·forms·from·models"·href="modelforms.html"·/>16 ····<link·rel="prev"·title="Creating·forms·from·models"·href="modelforms.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 150, 16 lines modifiedOffset 151, 16 lines modified
150 <span·id="css"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">css</span></code><a·class="headerlink"·href="#css"·title="Link·to·this·heading">¶</a></h3>151 <span·id="css"></span><h3><code·class="docutils·literal·notranslate"><span·class="pre">css</span></code><a·class="headerlink"·href="#css"·title="Link·to·this·heading">¶</a></h3>
151 <p>A·dictionary·describing·the·CSS·files·required·for·various·forms·of·output152 <p>A·dictionary·describing·the·CSS·files·required·for·various·forms·of·output
152 media.</p>153 media.</p>
153 <p>The·values·in·the·dictionary·should·be·a·tuple/list·of·file·names.·See154 <p>The·values·in·the·dictionary·should·be·a·tuple/list·of·file·names.·See
154 <a·class="reference·internal"·href="#form-asset-paths"><span·class="std·std-ref">the·section·on·paths</span></a>·for·details·of·how·to155 <a·class="reference·internal"·href="#form-asset-paths"><span·class="std·std-ref">the·section·on·paths</span></a>·for·details·of·how·to
155 specify·paths·to·these·files.</p>156 specify·paths·to·these·files.</p>
156 <p>The·keys·in·the·dictionary·are·the·output·media·types.·These·are·the·same157 <p>The·keys·in·the·dictionary·are·the·output·media·types.·These·are·the·same
157 types·accepted·by·CSS·files·in·media·declarations:·all,·aural,·braille,158 types·accepted·by·CSS·files·in·media·declarations:·all,·aural,·braille,
158 embossed,·handheld,·print,·projection,·screen,·tty·and·tv.·If159 embossed,·handheld,·print,·projection,·screen,·tty·and·tv.·If
159 you·need·to·have·different·stylesheets·for·different·media·types,·provide160 you·need·to·have·different·stylesheets·for·different·media·types,·provide
160 a·list·of·CSS·files·for·each·output·medium.·The·following·example·would161 a·list·of·CSS·files·for·each·output·medium.·The·following·example·would
161 provide·two·CSS·options··one·for·the·screen,·and·one·for·print:</p>162 provide·two·CSS·options··one·for·the·screen,·and·one·for·print:</p>
162 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">Media</span><span·class="p">:</span>163 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">class</span>·<span·class="nc">Media</span><span·class="p">:</span>
163 ····<span·class="n">css</span>·<span·class="o">=</span>·<span·class="p">{</span>164 ····<span·class="n">css</span>·<span·class="o">=</span>·<span·class="p">{</span>
164 ········<span·class="s2">&quot;screen&quot;</span><span·class="p">:</span>·<span·class="p">[</span><span·class="s2">&quot;pretty.css&quot;</span><span·class="p">],</span>165 ········<span·class="s2">&quot;screen&quot;</span><span·class="p">:</span>·<span·class="p">[</span><span·class="s2">&quot;pretty.css&quot;</span><span·class="p">],</span>
165 ········<span·class="s2">&quot;print&quot;</span><span·class="p">:</span>·<span·class="p">[</span><span·class="s2">&quot;newspaper.css&quot;</span><span·class="p">],</span>166 ········<span·class="s2">&quot;print&quot;</span><span·class="p">:</span>·<span·class="p">[</span><span·class="s2">&quot;newspaper.css&quot;</span><span·class="p">],</span>
Offset 507, 37 lines modifiedOffset 508, 37 lines modified
507 <li><a·class="reference·internal"·href="#media-on-forms"><code·class="docutils·literal·notranslate"><span·class="pre">Media</span></code>·on·Forms</a></li>508 <li><a·class="reference·internal"·href="#media-on-forms"><code·class="docutils·literal·notranslate"><span·class="pre">Media</span></code>·on·Forms</a></li>
508 </ul>509 </ul>
509 </li>510 </li>
510 </ul>511 </ul>
  
511 ··</div>512 ··</div>
512 ··<div>513 ··<div>
513 ····<h4>Previous·topic</h4>514 ····<h4>Argomento·precedente</h4>
514 ····<p·class="topless"><a·href="modelforms.html"515 ····<p·class="topless"><a·href="modelforms.html"
515 ··························title="previous·chapter">Creating·forms·from·models</a></p>516 ··························title="capitolo·precedente">Creating·forms·from·models</a></p>
516 ··</div>517 ··</div>
517 ··<div>518 ··<div>
518 ····<h4>Next·topic</h4>519 ····<h4>Argomento·successivo</h4>
519 ····<p·class="topless"><a·href="../templates.html"520 ····<p·class="topless"><a·href="../templates.html"
520 ··························title="next·chapter">Templates</a></p>521 ··························title="capitolo·successivo">Templates</a></p>
521 ··</div>522 ··</div>
522 <search·id="searchbox"·style="display:·none"·role="search">523 <search·id="searchbox"·style="display:·none"·role="search">
523 ··<h3·id="searchlabel">Quick·search</h3>524 ··<h3·id="searchlabel">Ricerca·veloce</h3>
524 ····<div·class="searchformwrapper">525 ····<div·class="searchformwrapper">
525 ····<form·class="search"·action="../../search.html"·method="get">526 ····<form·class="search"·action="../../search.html"·method="get">
526 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>527 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
527 ······<input·type="submit"·value="Go"·/>528 ······<input·type="submit"·value="Vai"·/>
528 ····</form>529 ····</form>
529 ····</div>530 ····</div>
530 </search>531 </search>
531 <script>document.getElementById('searchbox').style.display·=·"block"</script>532 <script>document.getElementById('searchbox').style.display·=·"block"</script>
532 ········</div>533 ········</div>
533 ······</div>534 ······</div>
534 ··············<h3>Last·update:</h3>535 ··············<h3>Last·update:</h3>
535 ··············<p·class="topless">Sep·03,·2024</p>536 ··············<p·class="topless">set·03,·2024</p>
536 ··········</div>537 ··········</div>
537 ········538 ········
538 ······539 ······
539 ····</div>540 ····</div>
  
540 ····<div·id="ft">541 ····<div·id="ft">
541 ······<div·class="nav">542 ······<div·class="nav">
3.23 KB
html2text {}
Max HTML report size reached
32.4 KB
./usr/share/doc/python-django-doc/html/topics/forms/modelforms.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Creating·forms·from·models·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Creating·forms·from·models·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Form·Assets·(the·Media·class)"·href="media.html"·/>15 ····<link·rel="next"·title="Form·Assets·(the·Media·class)"·href="media.html"·/>
15 ····<link·rel="prev"·title="Formsets"·href="formsets.html"·/>16 ····<link·rel="prev"·title="Formsets"·href="formsets.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 79, 15 lines modifiedOffset 80, 15 lines modified
79 ············80 ············
80 ··<section·id="s-creating-forms-from-models">81 ··<section·id="s-creating-forms-from-models">
81 <span·id="creating-forms-from-models"></span><h1>Creating·forms·from·models<a·class="headerlink"·href="#creating-forms-from-models"·title="Link·to·this·heading">¶</a></h1>82 <span·id="creating-forms-from-models"></span><h1>Creating·forms·from·models<a·class="headerlink"·href="#creating-forms-from-models"·title="Link·to·this·heading">¶</a></h1>
82 <section·id="s-modelform">83 <section·id="s-modelform">
83 <span·id="modelform"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code><a·class="headerlink"·href="#modelform"·title="Link·to·this·heading">¶</a></h2>84 <span·id="modelform"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code><a·class="headerlink"·href="#modelform"·title="Link·to·this·heading">¶</a></h2>
84 <dl·class="py·class">85 <dl·class="py·class">
85 <dt·class="sig·sig-object·py"·id="django.forms.ModelForm">86 <dt·class="sig·sig-object·py"·id="django.forms.ModelForm">
86 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ModelForm</span></span><a·class="reference·internal"·href="../../_modules/django/forms/models.html#ModelForm"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.forms.ModelForm"·title="Link·to·this·definition">¶</a></dt>87 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-name·descname"><span·class="pre">ModelForm</span></span><a·class="reference·internal"·href="../../_modules/django/forms/models.html#ModelForm"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.forms.ModelForm"·title="Link·to·this·definition">¶</a></dt>
87 <dd></dd></dl>88 <dd></dd></dl>
  
88 <p>If·you’re·building·a·database-driven·app,·chances·are·you’ll·have·forms·that89 <p>If·you’re·building·a·database-driven·app,·chances·are·you’ll·have·forms·that
89 map·closely·to·Django·models.·For·instance,·you·might·have·a·<code·class="docutils·literal·notranslate"><span·class="pre">BlogComment</span></code>90 map·closely·to·Django·models.·For·instance,·you·might·have·a·<code·class="docutils·literal·notranslate"><span·class="pre">BlogComment</span></code>
90 model,·and·you·want·to·create·a·form·that·lets·people·submit·comments.·In·this91 model,·and·you·want·to·create·a·form·that·lets·people·submit·comments.·In·this
91 case,·it·would·be·redundant·to·define·the·field·types·in·your·form,·because92 case,·it·would·be·redundant·to·define·the·field·types·in·your·form,·because
92 you’ve·already·defined·the·fields·in·your·model.</p>93 you’ve·already·defined·the·fields·in·your·model.</p>
Offset 335, 29 lines modifiedOffset 336, 29 lines modified
335 when·calling·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.is_valid"·title="django.forms.Form.is_valid"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">is_valid()</span></code></a>·or·accessing·the336 when·calling·<a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.is_valid"·title="django.forms.Form.is_valid"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">is_valid()</span></code></a>·or·accessing·the
336 <a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.errors"·title="django.forms.Form.errors"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">errors</span></code></a>·attribute·and·explicitly·when·calling337 <a·class="reference·internal"·href="../../ref/forms/api.html#django.forms.Form.errors"·title="django.forms.Form.errors"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">errors</span></code></a>·attribute·and·explicitly·when·calling
337 <code·class="docutils·literal·notranslate"><span·class="pre">full_clean()</span></code>,·although·you·will·typically·not·use·the·latter·method·in338 <code·class="docutils·literal·notranslate"><span·class="pre">full_clean()</span></code>,·although·you·will·typically·not·use·the·latter·method·in
338 practice.</p>339 practice.</p>
339 <p><code·class="docutils·literal·notranslate"><span·class="pre">Model</span></code>·validation·(<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.full_clean"·title="django.db.models.Model.full_clean"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Model.full_clean()</span></code></a>)·is·triggered·from·within·the·form340 <p><code·class="docutils·literal·notranslate"><span·class="pre">Model</span></code>·validation·(<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.full_clean"·title="django.db.models.Model.full_clean"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Model.full_clean()</span></code></a>)·is·triggered·from·within·the·form
340 validation·step,·right·after·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·is·called.</p>341 validation·step,·right·after·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·is·called.</p>
341 <div·class="admonition·warning">342 <div·class="admonition·warning">
342 <p·class="admonition-title">Warning</p>343 <p·class="admonition-title">Avvertimento</p>
343 <p>The·cleaning·process·modifies·the·model·instance·passed·to·the344 <p>The·cleaning·process·modifies·the·model·instance·passed·to·the
344 <code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·constructor·in·various·ways.·For·instance,·any·date·fields·on345 <code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·constructor·in·various·ways.·For·instance,·any·date·fields·on
345 the·model·are·converted·into·actual·date·objects.·Failed·validation·may346 the·model·are·converted·into·actual·date·objects.·Failed·validation·may
346 leave·the·underlying·model·instance·in·an·inconsistent·state·and·therefore347 leave·the·underlying·model·instance·in·an·inconsistent·state·and·therefore
347 it’s·not·recommended·to·reuse·it.</p>348 it’s·not·recommended·to·reuse·it.</p>
348 </div>349 </div>
349 <section·id="s-overriding-the-clean-method">350 <section·id="s-overriding-the-clean-method">
350 <span·id="s-overriding-modelform-clean-method"></span><span·id="overriding-the-clean-method"></span><span·id="overriding-modelform-clean-method"></span><h4>Overriding·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method<a·class="headerlink"·href="#overriding-the-clean-method"·title="Link·to·this·heading">¶</a></h4>351 <span·id="s-overriding-modelform-clean-method"></span><span·id="overriding-the-clean-method"></span><span·id="overriding-modelform-clean-method"></span><h4>Overriding·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method<a·class="headerlink"·href="#overriding-the-clean-method"·title="Link·to·this·heading">¶</a></h4>
351 <p>You·can·override·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·on·a·model·form·to·provide·additional352 <p>You·can·override·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·on·a·model·form·to·provide·additional
352 validation·in·the·same·way·you·can·on·a·normal·form.</p>353 validation·in·the·same·way·you·can·on·a·normal·form.</p>
353 <p>A·model·form·instance·attached·to·a·model·object·will·contain·an·<code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code>354 <p>A·model·form·instance·attached·to·a·model·object·will·contain·an·<code·class="docutils·literal·notranslate"><span·class="pre">instance</span></code>
354 attribute·that·gives·its·methods·access·to·that·specific·model·instance.</p>355 attribute·that·gives·its·methods·access·to·that·specific·model·instance.</p>
355 <div·class="admonition·warning">356 <div·class="admonition·warning">
356 <p·class="admonition-title">Warning</p>357 <p·class="admonition-title">Avvertimento</p>
357 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm.clean()</span></code>·method·sets·a·flag·that·makes·the·<a·class="reference·internal"·href="../../ref/models/instances.html#validating-objects"><span·class="std·std-ref">model358 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm.clean()</span></code>·method·sets·a·flag·that·makes·the·<a·class="reference·internal"·href="../../ref/models/instances.html#validating-objects"><span·class="std·std-ref">model
358 validation</span></a>·step·validate·the·uniqueness·of·model359 validation</span></a>·step·validate·the·uniqueness·of·model
359 fields·that·are·marked·as·<code·class="docutils·literal·notranslate"><span·class="pre">unique</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">unique_together</span></code>·or360 fields·that·are·marked·as·<code·class="docutils·literal·notranslate"><span·class="pre">unique</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">unique_together</span></code>·or
360 <code·class="docutils·literal·notranslate"><span·class="pre">unique_for_date|month|year</span></code>.</p>361 <code·class="docutils·literal·notranslate"><span·class="pre">unique_for_date|month|year</span></code>.</p>
361 <p>If·you·would·like·to·override·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·and·maintain·this362 <p>If·you·would·like·to·override·the·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method·and·maintain·this
362 validation,·you·must·call·the·parent·class’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method.</p>363 validation,·you·must·call·the·parent·class’s·<code·class="docutils·literal·notranslate"><span·class="pre">clean()</span></code>·method.</p>
363 </div>364 </div>
Offset 532, 15 lines modifiedOffset 533, 15 lines modified
532 <p>If·either·of·these·are·used,·the·order·the·fields·appear·in·the·form·will·be·the533 <p>If·either·of·these·are·used,·the·order·the·fields·appear·in·the·form·will·be·the
533 order·the·fields·are·defined·in·the·model,·with·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·instances534 order·the·fields·are·defined·in·the·model,·with·<code·class="docutils·literal·notranslate"><span·class="pre">ManyToManyField</span></code>·instances
534 appearing·last.</p>535 appearing·last.</p>
535 <p>In·addition,·Django·applies·the·following·rule:·if·you·set·<code·class="docutils·literal·notranslate"><span·class="pre">editable=False</span></code>·on536 <p>In·addition,·Django·applies·the·following·rule:·if·you·set·<code·class="docutils·literal·notranslate"><span·class="pre">editable=False</span></code>·on
536 the·model·field,·<em>any</em>·form·created·from·the·model·via·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·will·not537 the·model·field,·<em>any</em>·form·created·from·the·model·via·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·will·not
537 include·that·field.</p>538 include·that·field.</p>
538 <div·class="admonition·note">539 <div·class="admonition·note">
539 <p·class="admonition-title">Note</p>540 <p·class="admonition-title">Nota</p>
540 <p>Any·fields·not·included·in·a·form·by·the·above·logic541 <p>Any·fields·not·included·in·a·form·by·the·above·logic
541 will·not·be·set·by·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method.·Also,·if·you542 will·not·be·set·by·the·form’s·<code·class="docutils·literal·notranslate"><span·class="pre">save()</span></code>·method.·Also,·if·you
542 manually·add·the·excluded·fields·back·to·the·form,·they·will·not543 manually·add·the·excluded·fields·back·to·the·form,·they·will·not
543 be·initialized·from·the·model·instance.</p>544 be·initialized·from·the·model·instance.</p>
544 <p>Django·will·prevent·any·attempt·to·save·an·incomplete·model,·so·if545 <p>Django·will·prevent·any·attempt·to·save·an·incomplete·model,·so·if
545 the·model·does·not·allow·the·missing·fields·to·be·empty,·and·does546 the·model·does·not·allow·the·missing·fields·to·be·empty,·and·does
546 not·provide·a·default·value·for·the·missing·fields,·any·attempt·to547 not·provide·a·default·value·for·the·missing·fields,·any·attempt·to
Offset 666, 15 lines modifiedOffset 667, 15 lines modified
  
666 ····<span·class="k">class</span>·<span·class="nc">Meta</span><span·class="p">:</span>667 ····<span·class="k">class</span>·<span·class="nc">Meta</span><span·class="p">:</span>
667 ········<span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">Article</span>668 ········<span·class="n">model</span>·<span·class="o">=</span>·<span·class="n">Article</span>
668 ········<span·class="n">fields</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;headline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;content&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;reporter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;slug&quot;</span><span·class="p">]</span>669 ········<span·class="n">fields</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;pub_date&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;headline&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;content&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;reporter&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;slug&quot;</span><span·class="p">]</span>
669 </pre></div>670 </pre></div>
670 </div>671 </div>
671 <div·class="admonition·note">672 <div·class="admonition·note">
672 <p·class="admonition-title">Note</p>673 <p·class="admonition-title">Nota</p>
673 <p>When·you·explicitly·instantiate·a·form·field·like·this,·it·is·important·to674 <p>When·you·explicitly·instantiate·a·form·field·like·this,·it·is·important·to
674 understand·how·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·and·regular·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>·are·related.</p>675 understand·how·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·and·regular·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>·are·related.</p>
675 <p><code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·is·a·regular·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>·which·can·automatically·generate676 <p><code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·is·a·regular·<code·class="docutils·literal·notranslate"><span·class="pre">Form</span></code>·which·can·automatically·generate
676 certain·fields.·The·fields·that·are·automatically·generated·depend·on677 certain·fields.·The·fields·that·are·automatically·generated·depend·on
677 the·content·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·class·and·on·which·fields·have·already·been678 the·content·of·the·<code·class="docutils·literal·notranslate"><span·class="pre">Meta</span></code>·class·and·on·which·fields·have·already·been
678 defined·declaratively.·Basically,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·will·<strong>only</strong>·generate·fields679 defined·declaratively.·Basically,·<code·class="docutils·literal·notranslate"><span·class="pre">ModelForm</span></code>·will·<strong>only</strong>·generate·fields
679 that·are·<strong>missing</strong>·from·the·form,·or·in·other·words,·fields·that·weren’t680 that·are·<strong>missing</strong>·from·the·form,·or·in·other·words,·fields·that·weren’t
Offset 836, 15 lines modifiedOffset 837, 15 lines modified
836 convenient.·Let’s·reuse·the·<code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·model·from·above:</p>837 convenient.·Let’s·reuse·the·<code·class="docutils·literal·notranslate"><span·class="pre">Author</span></code>·model·from·above:</p>
837 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.forms</span>·<span·class="kn">import</span>·<span·class="n">modelformset_factory</span>838 <div·class="highlight-pycon·notranslate"><div·class="highlight"><pre><span></span><span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">django.forms</span>·<span·class="kn">import</span>·<span·class="n">modelformset_factory</span>
838 <span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">myapp.models</span>·<span·class="kn">import</span>·<span·class="n">Author</span>839 <span·class="gp">&gt;&gt;&gt;·</span><span·class="kn">from</span>·<span·class="nn">myapp.models</span>·<span·class="kn">import</span>·<span·class="n">Author</span>
839 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">AuthorFormSet</span>·<span·class="o">=</span>·<span·class="n">modelformset_factory</span><span·class="p">(</span><span·class="n">Author</span><span·class="p">,</span>·<span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;title&quot;</span><span·class="p">])</span>840 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">AuthorFormSet</span>·<span·class="o">=</span>·<span·class="n">modelformset_factory</span><span·class="p">(</span><span·class="n">Author</span><span·class="p">,</span>·<span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;title&quot;</span><span·class="p">])</span>
840 </pre></div>841 </pre></div>
841 </div>842 </div>
842 <p>Using·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·restricts·the·formset·to·use·only·the·given·fields.843 <p>Using·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·restricts·the·formset·to·use·only·the·given·fields.
843 Alternatively,·you·can·take·an·opt-out·approach,·specifying·which·fields·to844 Alternatively,·you·can·take·an·«opt-out»·approach,·specifying·which·fields·to
844 exclude:</p>845 exclude:</p>
Max diff block lines reached; 9617/22072 bytes (43.57%) of diff not shown.
10.7 KB
html2text {}
Max HTML report size reached
28.5 KB
./usr/share/doc/python-django-doc/html/topics/http/decorators.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>View·decorators·&#8212;·Django·4.2.16·documentation</title>6 ····<title>View·decorators·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="File·Uploads"·href="file-uploads.html"·/>15 ····<link·rel="next"·title="File·Uploads"·href="file-uploads.html"·/>
15 ····<link·rel="prev"·title="Writing·views"·href="views.html"·/>16 ····<link·rel="prev"·title="Writing·views"·href="views.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 86, 15 lines modifiedOffset 87, 15 lines modified
86 <section·id="s-allowed-http-methods">87 <section·id="s-allowed-http-methods">
87 <span·id="allowed-http-methods"></span><h2>Allowed·HTTP·methods<a·class="headerlink"·href="#allowed-http-methods"·title="Link·to·this·heading">¶</a></h2>88 <span·id="allowed-http-methods"></span><h2>Allowed·HTTP·methods<a·class="headerlink"·href="#allowed-http-methods"·title="Link·to·this·heading">¶</a></h2>
88 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.http"·title="django.views.decorators.http"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.http</span></code></a>·can·be·used·to·restrict89 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.http"·title="django.views.decorators.http"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.http</span></code></a>·can·be·used·to·restrict
89 access·to·views·based·on·the·request·method.·These·decorators·will·return90 access·to·views·based·on·the·request·method.·These·decorators·will·return
90 a·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponseNotAllowed"·title="django.http.HttpResponseNotAllowed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.http.HttpResponseNotAllowed</span></code></a>·if·the·conditions·are·not·met.</p>91 a·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponseNotAllowed"·title="django.http.HttpResponseNotAllowed"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.http.HttpResponseNotAllowed</span></code></a>·if·the·conditions·are·not·met.</p>
91 <dl·class="py·function">92 <dl·class="py·function">
92 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.require_http_methods">93 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.require_http_methods">
93 <span·class="sig-name·descname"><span·class="pre">require_http_methods</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request_method_list</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#require_http_methods"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.require_http_methods"·title="Link·to·this·definition">¶</a></dt>94 <span·class="sig-name·descname"><span·class="pre">require_http_methods</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request_method_list</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#require_http_methods"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.require_http_methods"·title="Link·to·this·definition">¶</a></dt>
94 <dd><p>Decorator·to·require·that·a·view·only·accepts·particular·request95 <dd><p>Decorator·to·require·that·a·view·only·accepts·particular·request
95 methods.·Usage:</p>96 methods.·Usage:</p>
96 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.views.decorators.http</span>·<span·class="kn">import</span>·<span·class="n">require_http_methods</span>97 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.views.decorators.http</span>·<span·class="kn">import</span>·<span·class="n">require_http_methods</span>
  
  
97 <span·class="nd">@require_http_methods</span><span·class="p">([</span><span·class="s2">&quot;GET&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;POST&quot;</span><span·class="p">])</span>98 <span·class="nd">@require_http_methods</span><span·class="p">([</span><span·class="s2">&quot;GET&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;POST&quot;</span><span·class="p">])</span>
98 <span·class="k">def</span>·<span·class="nf">my_view</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>99 <span·class="k">def</span>·<span·class="nf">my_view</span><span·class="p">(</span><span·class="n">request</span><span·class="p">):</span>
Offset 118, 19 lines modifiedOffset 119, 19 lines modified
118 <dd><p>Decorator·to·require·that·a·view·only·accepts·the·POST·method.</p>119 <dd><p>Decorator·to·require·that·a·view·only·accepts·the·POST·method.</p>
119 </dd></dl>120 </dd></dl>
  
120 <dl·class="py·function">121 <dl·class="py·function">
121 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.require_safe">122 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.require_safe">
122 <span·class="sig-name·descname"><span·class="pre">require_safe</span></span>()<a·class="headerlink"·href="#django.views.decorators.http.require_safe"·title="Link·to·this·definition">¶</a></dt>123 <span·class="sig-name·descname"><span·class="pre">require_safe</span></span>()<a·class="headerlink"·href="#django.views.decorators.http.require_safe"·title="Link·to·this·definition">¶</a></dt>
123 <dd><p>Decorator·to·require·that·a·view·only·accepts·the·GET·and·HEAD·methods.124 <dd><p>Decorator·to·require·that·a·view·only·accepts·the·GET·and·HEAD·methods.
124 These·methods·are·commonly·considered·safe·because·they·should·not·have125 These·methods·are·commonly·considered·«safe»·because·they·should·not·have
125 the·significance·of·taking·an·action·other·than·retrieving·the·requested126 the·significance·of·taking·an·action·other·than·retrieving·the·requested
126 resource.</p>127 resource.</p>
127 <div·class="admonition·note">128 <div·class="admonition·note">
128 <p·class="admonition-title">Note</p>129 <p·class="admonition-title">Nota</p>
129 <p>Web·servers·should·automatically·strip·the·content·of·responses·to·HEAD130 <p>Web·servers·should·automatically·strip·the·content·of·responses·to·HEAD
130 requests·while·leaving·the·headers·unchanged,·so·you·may·handle·HEAD131 requests·while·leaving·the·headers·unchanged,·so·you·may·handle·HEAD
131 requests·exactly·like·GET·requests·in·your·views.·Since·some·software,132 requests·exactly·like·GET·requests·in·your·views.·Since·some·software,
132 such·as·link·checkers,·rely·on·HEAD·requests,·you·might·prefer133 such·as·link·checkers,·rely·on·HEAD·requests,·you·might·prefer
133 using·<code·class="docutils·literal·notranslate"><span·class="pre">require_safe</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">require_GET</span></code>.</p>134 using·<code·class="docutils·literal·notranslate"><span·class="pre">require_safe</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">require_GET</span></code>.</p>
134 </div>135 </div>
135 </dd></dl>136 </dd></dl>
Offset 138, 25 lines modifiedOffset 139, 25 lines modified
138 </section>139 </section>
139 <section·id="s-conditional-view-processing">140 <section·id="s-conditional-view-processing">
140 <span·id="conditional-view-processing"></span><h2>Conditional·view·processing<a·class="headerlink"·href="#conditional-view-processing"·title="Link·to·this·heading">¶</a></h2>141 <span·id="conditional-view-processing"></span><h2>Conditional·view·processing<a·class="headerlink"·href="#conditional-view-processing"·title="Link·to·this·heading">¶</a></h2>
141 <p>The·following·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.http"·title="django.views.decorators.http"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.http</span></code></a>·can·be·used·to142 <p>The·following·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.http"·title="django.views.decorators.http"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.http</span></code></a>·can·be·used·to
142 control·caching·behavior·on·particular·views.</p>143 control·caching·behavior·on·particular·views.</p>
143 <dl·class="py·function">144 <dl·class="py·function">
144 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.condition">145 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.condition">
145 <span·class="sig-name·descname"><span·class="pre">condition</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">etag_func</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">last_modified_func</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#condition"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.condition"·title="Link·to·this·definition">¶</a></dt>146 <span·class="sig-name·descname"><span·class="pre">condition</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">etag_func</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">last_modified_func</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#condition"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.condition"·title="Link·to·this·definition">¶</a></dt>
146 <dd></dd></dl>147 <dd></dd></dl>
  
147 <dl·class="py·function">148 <dl·class="py·function">
148 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.etag">149 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.etag">
149 <span·class="sig-name·descname"><span·class="pre">etag</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">etag_func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#etag"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.etag"·title="Link·to·this·definition">¶</a></dt>150 <span·class="sig-name·descname"><span·class="pre">etag</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">etag_func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#etag"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.etag"·title="Link·to·this·definition">¶</a></dt>
150 <dd></dd></dl>151 <dd></dd></dl>
  
151 <dl·class="py·function">152 <dl·class="py·function">
152 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.last_modified">153 <dt·class="sig·sig-object·py"·id="django.views.decorators.http.last_modified">
153 <span·class="sig-name·descname"><span·class="pre">last_modified</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">last_modified_func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#last_modified"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.last_modified"·title="Link·to·this·definition">¶</a></dt>154 <span·class="sig-name·descname"><span·class="pre">last_modified</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">last_modified_func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/http.html#last_modified"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.http.last_modified"·title="Link·to·this·definition">¶</a></dt>
154 <dd><p>These·decorators·can·be·used·to·generate·<code·class="docutils·literal·notranslate"><span·class="pre">ETag</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Last-Modified</span></code>155 <dd><p>These·decorators·can·be·used·to·generate·<code·class="docutils·literal·notranslate"><span·class="pre">ETag</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">Last-Modified</span></code>
155 headers;·see156 headers;·see
156 <a·class="reference·internal"·href="../conditional-view-processing.html"><span·class="doc">conditional·view·processing</span></a>.</p>157 <a·class="reference·internal"·href="../conditional-view-processing.html"><span·class="doc">conditional·view·processing</span></a>.</p>
157 </dd></dl>158 </dd></dl>
  
158 </section>159 </section>
159 <section·id="s-gzip-compression">160 <section·id="s-gzip-compression">
Offset 174, 57 lines modifiedOffset 175, 57 lines modified
174 </section>175 </section>
175 <section·id="s-vary-headers">176 <section·id="s-vary-headers">
176 <span·id="s-module-django.views.decorators.vary"></span><span·id="vary-headers"></span><span·id="module-django.views.decorators.vary"></span><h2>Vary·headers<a·class="headerlink"·href="#vary-headers"·title="Link·to·this·heading">¶</a></h2>177 <span·id="s-module-django.views.decorators.vary"></span><span·id="vary-headers"></span><span·id="module-django.views.decorators.vary"></span><h2>Vary·headers<a·class="headerlink"·href="#vary-headers"·title="Link·to·this·heading">¶</a></h2>
177 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.vary"·title="django.views.decorators.vary"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.vary</span></code></a>·can·be·used·to·control178 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.vary"·title="django.views.decorators.vary"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.vary</span></code></a>·can·be·used·to·control
178 caching·based·on·specific·request·headers.</p>179 caching·based·on·specific·request·headers.</p>
179 <dl·class="py·function">180 <dl·class="py·function">
180 <dt·class="sig·sig-object·py"·id="django.views.decorators.vary.vary_on_cookie">181 <dt·class="sig·sig-object·py"·id="django.views.decorators.vary.vary_on_cookie">
181 <span·class="sig-name·descname"><span·class="pre">vary_on_cookie</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/vary.html#vary_on_cookie"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.vary.vary_on_cookie"·title="Link·to·this·definition">¶</a></dt>182 <span·class="sig-name·descname"><span·class="pre">vary_on_cookie</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">func</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/vary.html#vary_on_cookie"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.vary.vary_on_cookie"·title="Link·to·this·definition">¶</a></dt>
182 <dd></dd></dl>183 <dd></dd></dl>
  
183 <dl·class="py·function">184 <dl·class="py·function">
184 <dt·class="sig·sig-object·py"·id="django.views.decorators.vary.vary_on_headers">185 <dt·class="sig·sig-object·py"·id="django.views.decorators.vary.vary_on_headers">
185 <span·class="sig-name·descname"><span·class="pre">vary_on_headers</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">headers</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/vary.html#vary_on_headers"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.views.decorators.vary.vary_on_headers"·title="Link·to·this·definition">¶</a></dt>186 <span·class="sig-name·descname"><span·class="pre">vary_on_headers</span></span>(<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">headers</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/views/decorators/vary.html#vary_on_headers"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.views.decorators.vary.vary_on_headers"·title="Link·to·this·definition">¶</a></dt>
186 <dd><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Vary</span></code>·header·defines·which·request·headers·a·cache·mechanism·should·take187 <dd><p>The·<code·class="docutils·literal·notranslate"><span·class="pre">Vary</span></code>·header·defines·which·request·headers·a·cache·mechanism·should·take
187 into·account·when·building·its·cache·key.</p>188 into·account·when·building·its·cache·key.</p>
188 <p>See·<a·class="reference·internal"·href="../cache.html#using-vary-headers"><span·class="std·std-ref">using·vary·headers</span></a>.</p>189 <p>See·<a·class="reference·internal"·href="../cache.html#using-vary-headers"><span·class="std·std-ref">using·vary·headers</span></a>.</p>
189 </dd></dl>190 </dd></dl>
  
190 </section>191 </section>
191 <section·id="s-caching">192 <section·id="s-caching">
192 <span·id="s-module-django.views.decorators.cache"></span><span·id="caching"></span><span·id="module-django.views.decorators.cache"></span><h2>Caching<a·class="headerlink"·href="#caching"·title="Link·to·this·heading">¶</a></h2>193 <span·id="s-module-django.views.decorators.cache"></span><span·id="caching"></span><span·id="module-django.views.decorators.cache"></span><h2>Caching<a·class="headerlink"·href="#caching"·title="Link·to·this·heading">¶</a></h2>
193 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.cache"·title="django.views.decorators.cache"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.cache</span></code></a>·control·server·and194 <p>The·decorators·in·<a·class="reference·internal"·href="#module-django.views.decorators.cache"·title="django.views.decorators.cache"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.views.decorators.cache</span></code></a>·control·server·and
194 client-side·caching.</p>195 client-side·caching.</p>
195 <dl·class="py·function">196 <dl·class="py·function">
196 <dt·class="sig·sig-object·py"·id="django.views.decorators.cache.cache_control">197 <dt·class="sig·sig-object·py"·id="django.views.decorators.cache.cache_control">
Max diff block lines reached; 5533/21301 bytes (25.98%) of diff not shown.
7.61 KB
html2text {}
Max HTML report size reached
15.2 KB
./usr/share/doc/python-django-doc/html/topics/http/file-uploads.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>File·Uploads·&#8212;·Django·4.2.16·documentation</title>6 ····<title>File·Uploads·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Django·shortcut·functions"·href="shortcuts.html"·/>15 ····<link·rel="next"·title="Django·shortcut·functions"·href="shortcuts.html"·/>
15 ····<link·rel="prev"·title="View·decorators"·href="decorators.html"·/>16 ····<link·rel="prev"·title="View·decorators"·href="decorators.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-file-uploads">81 ··<section·id="s-file-uploads">
81 <span·id="file-uploads"></span><h1>File·Uploads<a·class="headerlink"·href="#file-uploads"·title="Link·to·this·heading">¶</a></h1>82 <span·id="file-uploads"></span><h1>File·Uploads<a·class="headerlink"·href="#file-uploads"·title="Link·to·this·heading">¶</a></h1>
82 <p>When·Django·handles·a·file·upload,·the·file·data·ends·up·placed·in83 <p>When·Django·handles·a·file·upload,·the·file·data·ends·up·placed·in
83 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpRequest.FILES"·title="django.http.HttpRequest.FILES"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">request.FILES</span></code></a>·(for·more·on·the84 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpRequest.FILES"·title="django.http.HttpRequest.FILES"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">request.FILES</span></code></a>·(for·more·on·the
84 <code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·object·see·the·documentation·for·<a·class="reference·internal"·href="../../ref/request-response.html"><span·class="doc">request·and·response·objects</span></a>).·This·document·explains·how·files·are·stored·on·disk85 <code·class="docutils·literal·notranslate"><span·class="pre">request</span></code>·object·see·the·documentation·for·<a·class="reference·internal"·href="../../ref/request-response.html"><span·class="doc">request·and·response·objects</span></a>).·This·document·explains·how·files·are·stored·on·disk
85 and·in·memory,·and·how·to·customize·the·default·behavior.</p>86 and·in·memory,·and·how·to·customize·the·default·behavior.</p>
86 <div·class="admonition·warning">87 <div·class="admonition·warning">
87 <p·class="admonition-title">Warning</p>88 <p·class="admonition-title">Avvertimento</p>
88 <p>There·are·security·risks·if·you·are·accepting·uploaded·content·from89 <p>There·are·security·risks·if·you·are·accepting·uploaded·content·from
89 untrusted·users!·See·the·security·guide’s·topic·on90 untrusted·users!·See·the·security·guide’s·topic·on
90 <a·class="reference·internal"·href="../security.html#user-uploaded-content-security"><span·class="std·std-ref">User-uploaded·content</span></a>·for·mitigation·details.</p>91 <a·class="reference·internal"·href="../security.html#user-uploaded-content-security"><span·class="std·std-ref">User-uploaded·content</span></a>·for·mitigation·details.</p>
91 </div>92 </div>
92 <section·id="s-basic-file-uploads">93 <section·id="s-basic-file-uploads">
93 <span·id="basic-file-uploads"></span><h2>Basic·file·uploads<a·class="headerlink"·href="#basic-file-uploads"·title="Link·to·this·heading">¶</a></h2>94 <span·id="basic-file-uploads"></span><h2>Basic·file·uploads<a·class="headerlink"·href="#basic-file-uploads"·title="Link·to·this·heading">¶</a></h2>
94 <p>Consider·a·form·containing·a·<a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileField</span></code></a>:</p>95 <p>Consider·a·form·containing·a·<a·class="reference·internal"·href="../../ref/forms/fields.html#django.forms.FileField"·title="django.forms.FileField"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">FileField</span></code></a>:</p>
Offset 279, 15 lines modifiedOffset 280, 15 lines modified
279 ········<span·class="k">for</span>·<span·class="n">f</span>·<span·class="ow">in</span>·<span·class="n">files</span><span·class="p">:</span>280 ········<span·class="k">for</span>·<span·class="n">f</span>·<span·class="ow">in</span>·<span·class="n">files</span><span·class="p">:</span>
280 ············<span·class="o">...</span>··<span·class="c1">#·Do·something·with·each·file.</span>281 ············<span·class="o">...</span>··<span·class="c1">#·Do·something·with·each·file.</span>
281 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">form_valid</span><span·class="p">()</span>282 ········<span·class="k">return</span>·<span·class="nb">super</span><span·class="p">()</span><span·class="o">.</span><span·class="n">form_valid</span><span·class="p">()</span>
282 </pre></div>283 </pre></div>
283 </div>284 </div>
284 </div>285 </div>
285 <div·class="admonition·warning">286 <div·class="admonition·warning">
286 <p·class="admonition-title">Warning</p>287 <p·class="admonition-title">Avvertimento</p>
287 <p>This·will·allow·you·to·handle·multiple·files·at·the·form·level·only.·Be288 <p>This·will·allow·you·to·handle·multiple·files·at·the·form·level·only.·Be
288 aware·that·you·cannot·use·it·to·put·multiple·files·on·a·single·model289 aware·that·you·cannot·use·it·to·put·multiple·files·on·a·single·model
289 instance·(in·a·single·field),·for·example,·even·if·the·custom·widget·is·used290 instance·(in·a·single·field),·for·example,·even·if·the·custom·widget·is·used
290 with·a·form·field·related·to·a·model·<code·class="docutils·literal·notranslate"><span·class="pre">FileField</span></code>.</p>291 with·a·form·field·related·to·a·model·<code·class="docutils·literal·notranslate"><span·class="pre">FileField</span></code>.</p>
291 </div>292 </div>
292 <div·class="versionchanged">293 <div·class="versionchanged">
293 <span·class="title">Changed·in·Django·3.2.19:</span>·<p>In·previous·versions,·there·was·no·support·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">allow_multiple_selected</span></code>294 <span·class="title">Changed·in·Django·3.2.19:</span>·<p>In·previous·versions,·there·was·no·support·for·the·<code·class="docutils·literal·notranslate"><span·class="pre">allow_multiple_selected</span></code>
Offset 325, 15 lines modifiedOffset 326, 15 lines modified
325 the·entire·contents·of·the·upload·in·memory.·This·means·that·saving·the·file326 the·entire·contents·of·the·upload·in·memory.·This·means·that·saving·the·file
326 involves·only·a·read·from·memory·and·a·write·to·disk·and·thus·is·very·fast.</p>327 involves·only·a·read·from·memory·and·a·write·to·disk·and·thus·is·very·fast.</p>
327 <p>However,·if·an·uploaded·file·is·too·large,·Django·will·write·the·uploaded·file328 <p>However,·if·an·uploaded·file·is·too·large,·Django·will·write·the·uploaded·file
328 to·a·temporary·file·stored·in·your·system’s·temporary·directory.·On·a·Unix-like329 to·a·temporary·file·stored·in·your·system’s·temporary·directory.·On·a·Unix-like
329 platform·this·means·you·can·expect·Django·to·generate·a·file·called·something330 platform·this·means·you·can·expect·Django·to·generate·a·file·called·something
330 like·<code·class="docutils·literal·notranslate"><span·class="pre">/tmp/tmpzfp6I6.upload</span></code>.·If·an·upload·is·large·enough,·you·can·watch·this331 like·<code·class="docutils·literal·notranslate"><span·class="pre">/tmp/tmpzfp6I6.upload</span></code>.·If·an·upload·is·large·enough,·you·can·watch·this
331 file·grow·in·size·as·Django·streams·the·data·onto·disk.</p>332 file·grow·in·size·as·Django·streams·the·data·onto·disk.</p>
332 <p>These·specifics··2.5·megabytes;·<code·class="docutils·literal·notranslate"><span·class="pre">/tmp</span></code>;·etc.··are·reasonable·defaults333 <p>These·specifics··2.5·megabytes;·<code·class="docutils·literal·notranslate"><span·class="pre">/tmp</span></code>;·etc.··are·«reasonable·defaults»
333 which·can·be·customized·as·described·in·the·next·section.</p>334 which·can·be·customized·as·described·in·the·next·section.</p>
334 </section>335 </section>
335 <section·id="s-changing-upload-handler-behavior">336 <section·id="s-changing-upload-handler-behavior">
336 <span·id="changing-upload-handler-behavior"></span><h3>Changing·upload·handler·behavior<a·class="headerlink"·href="#changing-upload-handler-behavior"·title="Link·to·this·heading">¶</a></h3>337 <span·id="changing-upload-handler-behavior"></span><h3>Changing·upload·handler·behavior<a·class="headerlink"·href="#changing-upload-handler-behavior"·title="Link·to·this·heading">¶</a></h3>
337 <p>There·are·a·few·settings·which·control·Django’s·file·upload·behavior.·See338 <p>There·are·a·few·settings·which·control·Django’s·file·upload·behavior.·See
338 <a·class="reference·internal"·href="../../ref/settings.html#file-upload-settings"><span·class="std·std-ref">File·Upload·Settings</span></a>·for·details.</p>339 <a·class="reference·internal"·href="../../ref/settings.html#file-upload-settings"><span·class="std·std-ref">File·Upload·Settings</span></a>·for·details.</p>
339 </section>340 </section>
Offset 355, 15 lines modifiedOffset 356, 15 lines modified
355 other·handlers.·Remember,·the·upload·handlers·are·processed·in·order.</p>356 other·handlers.·Remember,·the·upload·handlers·are·processed·in·order.</p>
356 <p>If·you·want·to·replace·the·upload·handlers·completely,·you·can·assign·a·new357 <p>If·you·want·to·replace·the·upload·handlers·completely,·you·can·assign·a·new
357 list:</p>358 list:</p>
358 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">request</span><span·class="o">.</span><span·class="n">upload_handlers</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">ProgressBarUploadHandler</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)]</span>359 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">request</span><span·class="o">.</span><span·class="n">upload_handlers</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="n">ProgressBarUploadHandler</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)]</span>
359 </pre></div>360 </pre></div>
360 </div>361 </div>
361 <div·class="admonition·note">362 <div·class="admonition·note">
362 <p·class="admonition-title">Note</p>363 <p·class="admonition-title">Nota</p>
363 <p>You·can·only·modify·upload·handlers·<em>before</em>·accessing364 <p>You·can·only·modify·upload·handlers·<em>before</em>·accessing
364 <code·class="docutils·literal·notranslate"><span·class="pre">request.POST</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">request.FILES</span></code>··it·doesn’t·make·sense·to365 <code·class="docutils·literal·notranslate"><span·class="pre">request.POST</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">request.FILES</span></code>··it·doesn’t·make·sense·to
365 change·upload·handlers·after·upload·handling·has·already366 change·upload·handlers·after·upload·handling·has·already
366 started.·If·you·try·to·modify·<code·class="docutils·literal·notranslate"><span·class="pre">request.upload_handlers</span></code>·after367 started.·If·you·try·to·modify·<code·class="docutils·literal·notranslate"><span·class="pre">request.upload_handlers</span></code>·after
367 reading·from·<code·class="docutils·literal·notranslate"><span·class="pre">request.POST</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">request.FILES</span></code>·Django·will368 reading·from·<code·class="docutils·literal·notranslate"><span·class="pre">request.POST</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">request.FILES</span></code>·Django·will
368 throw·an·error.</p>369 throw·an·error.</p>
369 <p>Thus,·you·should·always·modify·uploading·handlers·as·early·in·your·view·as370 <p>Thus,·you·should·always·modify·uploading·handlers·as·early·in·your·view·as
Offset 444, 37 lines modifiedOffset 445, 37 lines modified
444 </li>445 </li>
445 </ul>446 </ul>
446 </li>447 </li>
447 </ul>448 </ul>
  
448 ··</div>449 ··</div>
449 ··<div>450 ··<div>
450 ····<h4>Previous·topic</h4>451 ····<h4>Argomento·precedente</h4>
451 ····<p·class="topless"><a·href="decorators.html"452 ····<p·class="topless"><a·href="decorators.html"
452 ··························title="previous·chapter">View·decorators</a></p>453 ··························title="capitolo·precedente">View·decorators</a></p>
453 ··</div>454 ··</div>
454 ··<div>455 ··<div>
455 ····<h4>Next·topic</h4>456 ····<h4>Argomento·successivo</h4>
456 ····<p·class="topless"><a·href="shortcuts.html"457 ····<p·class="topless"><a·href="shortcuts.html"
457 ··························title="next·chapter">Django·shortcut·functions</a></p>458 ··························title="capitolo·successivo">Django·shortcut·functions</a></p>
458 ··</div>459 ··</div>
459 <search·id="searchbox"·style="display:·none"·role="search">460 <search·id="searchbox"·style="display:·none"·role="search">
460 ··<h3·id="searchlabel">Quick·search</h3>461 ··<h3·id="searchlabel">Ricerca·veloce</h3>
461 ····<div·class="searchformwrapper">462 ····<div·class="searchformwrapper">
462 ····<form·class="search"·action="../../search.html"·method="get">463 ····<form·class="search"·action="../../search.html"·method="get">
463 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>464 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
464 ······<input·type="submit"·value="Go"·/>465 ······<input·type="submit"·value="Vai"·/>
465 ····</form>466 ····</form>
Max diff block lines reached; 353/9558 bytes (3.69%) of diff not shown.
5.75 KB
html2text {}
Max HTML report size reached
5.26 KB
./usr/share/doc/python-django-doc/html/topics/http/generic-views.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Generic·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Generic·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Middleware"·href="middleware.html"·/>15 ····<link·rel="next"·title="Middleware"·href="middleware.html"·/>
15 ····<link·rel="prev"·title="Django·shortcut·functions"·href="shortcuts.html"·/>16 ····<link·rel="prev"·title="Django·shortcut·functions"·href="shortcuts.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 89, 37 lines modifiedOffset 90, 37 lines modified
89 ······90 ······
90 ········91 ········
91 ··········<div·class="yui-b"·id="sidebar">92 ··········<div·class="yui-b"·id="sidebar">
92 ············93 ············
93 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">94 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
94 ········<div·class="sphinxsidebarwrapper">95 ········<div·class="sphinxsidebarwrapper">
95 ··<div>96 ··<div>
96 ····<h4>Previous·topic</h4>97 ····<h4>Argomento·precedente</h4>
97 ····<p·class="topless"><a·href="shortcuts.html"98 ····<p·class="topless"><a·href="shortcuts.html"
98 ··························title="previous·chapter">Django·shortcut·functions</a></p>99 ··························title="capitolo·precedente">Django·shortcut·functions</a></p>
99 ··</div>100 ··</div>
100 ··<div>101 ··<div>
101 ····<h4>Next·topic</h4>102 ····<h4>Argomento·successivo</h4>
102 ····<p·class="topless"><a·href="middleware.html"103 ····<p·class="topless"><a·href="middleware.html"
103 ··························title="next·chapter">Middleware</a></p>104 ··························title="capitolo·successivo">Middleware</a></p>
104 ··</div>105 ··</div>
105 <search·id="searchbox"·style="display:·none"·role="search">106 <search·id="searchbox"·style="display:·none"·role="search">
106 ··<h3·id="searchlabel">Quick·search</h3>107 ··<h3·id="searchlabel">Ricerca·veloce</h3>
107 ····<div·class="searchformwrapper">108 ····<div·class="searchformwrapper">
108 ····<form·class="search"·action="../../search.html"·method="get">109 ····<form·class="search"·action="../../search.html"·method="get">
109 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>110 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
110 ······<input·type="submit"·value="Go"·/>111 ······<input·type="submit"·value="Vai"·/>
111 ····</form>112 ····</form>
112 ····</div>113 ····</div>
113 </search>114 </search>
114 <script>document.getElementById('searchbox').style.display·=·"block"</script>115 <script>document.getElementById('searchbox').style.display·=·"block"</script>
115 ········</div>116 ········</div>
116 ······</div>117 ······</div>
117 ··············<h3>Last·update:</h3>118 ··············<h3>Last·update:</h3>
118 ··············<p·class="topless">Sep·03,·2024</p>119 ··············<p·class="topless">set·03,·2024</p>
119 ··········</div>120 ··········</div>
120 ········121 ········
121 ······122 ······
122 ····</div>123 ····</div>
  
123 ····<div·id="ft">124 ····<div·id="ft">
124 ······<div·class="nav">125 ······<div·class="nav">
1.41 KB
html2text {}
Max HTML report size reached
5.7 KB
./usr/share/doc/python-django-doc/html/topics/http/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Handling·HTTP·requests·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Handling·HTTP·requests·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="URL·dispatcher"·href="urls.html"·/>15 ····<link·rel="next"·title="URL·dispatcher"·href="urls.html"·/>
15 ····<link·rel="prev"·title="One-to-one·relationships"·href="../db/examples/one_to_one.html"·/>16 ····<link·rel="prev"·title="One-to-one·relationships"·href="../db/examples/one_to_one.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 101, 37 lines modifiedOffset 102, 37 lines modified
101 ······102 ······
102 ········103 ········
103 ··········<div·class="yui-b"·id="sidebar">104 ··········<div·class="yui-b"·id="sidebar">
104 ············105 ············
105 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">106 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
106 ········<div·class="sphinxsidebarwrapper">107 ········<div·class="sphinxsidebarwrapper">
107 ··<div>108 ··<div>
108 ····<h4>Previous·topic</h4>109 ····<h4>Argomento·precedente</h4>
109 ····<p·class="topless"><a·href="../db/examples/one_to_one.html"110 ····<p·class="topless"><a·href="../db/examples/one_to_one.html"
110 ··························title="previous·chapter">One-to-one·relationships</a></p>111 ··························title="capitolo·precedente">One-to-one·relationships</a></p>
111 ··</div>112 ··</div>
112 ··<div>113 ··<div>
113 ····<h4>Next·topic</h4>114 ····<h4>Argomento·successivo</h4>
114 ····<p·class="topless"><a·href="urls.html"115 ····<p·class="topless"><a·href="urls.html"
115 ··························title="next·chapter">URL·dispatcher</a></p>116 ··························title="capitolo·successivo">URL·dispatcher</a></p>
116 ··</div>117 ··</div>
117 <search·id="searchbox"·style="display:·none"·role="search">118 <search·id="searchbox"·style="display:·none"·role="search">
118 ··<h3·id="searchlabel">Quick·search</h3>119 ··<h3·id="searchlabel">Ricerca·veloce</h3>
119 ····<div·class="searchformwrapper">120 ····<div·class="searchformwrapper">
120 ····<form·class="search"·action="../../search.html"·method="get">121 ····<form·class="search"·action="../../search.html"·method="get">
121 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>122 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
122 ······<input·type="submit"·value="Go"·/>123 ······<input·type="submit"·value="Vai"·/>
123 ····</form>124 ····</form>
124 ····</div>125 ····</div>
125 </search>126 </search>
126 <script>document.getElementById('searchbox').style.display·=·"block"</script>127 <script>document.getElementById('searchbox').style.display·=·"block"</script>
127 ········</div>128 ········</div>
128 ······</div>129 ······</div>
129 ··············<h3>Last·update:</h3>130 ··············<h3>Last·update:</h3>
130 ··············<p·class="topless">Sep·03,·2024</p>131 ··············<p·class="topless">set·03,·2024</p>
131 ··········</div>132 ··········</div>
132 ········133 ········
133 ······134 ······
134 ····</div>135 ····</div>
  
135 ····<div·id="ft">136 ····<div·id="ft">
136 ······<div·class="nav">137 ······<div·class="nav">
1.81 KB
html2text {}
Max HTML report size reached
18.1 KB
./usr/share/doc/python-django-doc/html/topics/http/middleware.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Middleware·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Middleware·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="How·to·use·sessions"·href="sessions.html"·/>15 ····<link·rel="next"·title="How·to·use·sessions"·href="sessions.html"·/>
15 ····<link·rel="prev"·title="Generic·views"·href="generic-views.html"·/>16 ····<link·rel="prev"·title="Generic·views"·href="generic-views.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-http-middleware">79 ··········<div·class="yui-g"·id="topics-http-middleware">
79 ············80 ············
80 ··<section·id="s-middleware">81 ··<section·id="s-middleware">
81 <span·id="middleware"></span><h1>Middleware<a·class="headerlink"·href="#middleware"·title="Link·to·this·heading">¶</a></h1>82 <span·id="middleware"></span><h1>Middleware<a·class="headerlink"·href="#middleware"·title="Link·to·this·heading">¶</a></h1>
82 <p>Middleware·is·a·framework·of·hooks·into·Django’s·request/response·processing.83 <p>Middleware·is·a·framework·of·hooks·into·Django’s·request/response·processing.
83 It’s·a·light,·low-level·plugin·system·for·globally·altering·Django’s·input84 It’s·a·light,·low-level·«plugin»·system·for·globally·altering·Django’s·input
84 or·output.</p>85 or·output.</p>
85 <p>Each·middleware·component·is·responsible·for·doing·some·specific·function.·For86 <p>Each·middleware·component·is·responsible·for·doing·some·specific·function.·For
86 example,·Django·includes·a·middleware·component,87 example,·Django·includes·a·middleware·component,
87 <a·class="reference·internal"·href="../../ref/middleware.html#django.contrib.auth.middleware.AuthenticationMiddleware"·title="django.contrib.auth.middleware.AuthenticationMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AuthenticationMiddleware</span></code></a>,·that88 <a·class="reference·internal"·href="../../ref/middleware.html#django.contrib.auth.middleware.AuthenticationMiddleware"·title="django.contrib.auth.middleware.AuthenticationMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">AuthenticationMiddleware</span></code></a>,·that
88 associates·users·with·requests·using·sessions.</p>89 associates·users·with·requests·using·sessions.</p>
89 <p>This·document·explains·how·middleware·works,·how·you·activate·middleware,·and90 <p>This·document·explains·how·middleware·works,·how·you·activate·middleware,·and
90 how·to·write·your·own·middleware.·Django·ships·with·some·built-in·middleware91 how·to·write·your·own·middleware.·Django·ships·with·some·built-in·middleware
Offset 195, 15 lines modifiedOffset 196, 15 lines modified
195 <a·class="reference·internal"·href="../../ref/middleware.html#middleware-ordering"><span·class="std·std-ref">Middleware·ordering</span></a>·for·some·common·hints·about·ordering·of·Django196 <a·class="reference·internal"·href="../../ref/middleware.html#middleware-ordering"><span·class="std·std-ref">Middleware·ordering</span></a>·for·some·common·hints·about·ordering·of·Django
196 middleware·classes.</p>197 middleware·classes.</p>
197 </section>198 </section>
198 <section·id="s-middleware-order-and-layering">199 <section·id="s-middleware-order-and-layering">
199 <span·id="middleware-order-and-layering"></span><h2>Middleware·order·and·layering<a·class="headerlink"·href="#middleware-order-and-layering"·title="Link·to·this·heading">¶</a></h2>200 <span·id="middleware-order-and-layering"></span><h2>Middleware·order·and·layering<a·class="headerlink"·href="#middleware-order-and-layering"·title="Link·to·this·heading">¶</a></h2>
200 <p>During·the·request·phase,·before·calling·the·view,·Django·applies·middleware·in201 <p>During·the·request·phase,·before·calling·the·view,·Django·applies·middleware·in
201 the·order·it’s·defined·in·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-MIDDLEWARE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIDDLEWARE</span></code></a>,·top-down.</p>202 the·order·it’s·defined·in·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-MIDDLEWARE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">MIDDLEWARE</span></code></a>,·top-down.</p>
202 <p>You·can·think·of·it·like·an·onion:·each·middleware·class·is·a·layer·that203 <p>You·can·think·of·it·like·an·onion:·each·middleware·class·is·a·«layer»·that
203 wraps·the·view,·which·is·in·the·core·of·the·onion.·If·the·request·passes204 wraps·the·view,·which·is·in·the·core·of·the·onion.·If·the·request·passes
204 through·all·the·layers·of·the·onion·(each·one·calls·<code·class="docutils·literal·notranslate"><span·class="pre">get_response</span></code>·to·pass205 through·all·the·layers·of·the·onion·(each·one·calls·<code·class="docutils·literal·notranslate"><span·class="pre">get_response</span></code>·to·pass
205 the·request·in·to·the·next·layer),·all·the·way·to·the·view·at·the·core,·the206 the·request·in·to·the·next·layer),·all·the·way·to·the·view·at·the·core,·the
206 response·will·then·pass·through·every·layer·(in·reverse·order)·on·the·way·back207 response·will·then·pass·through·every·layer·(in·reverse·order)·on·the·way·back
207 out.</p>208 out.</p>
208 <p>If·one·of·the·layers·decides·to·short-circuit·and·return·a·response·without209 <p>If·one·of·the·layers·decides·to·short-circuit·and·return·a·response·without
209 ever·calling·its·<code·class="docutils·literal·notranslate"><span·class="pre">get_response</span></code>,·none·of·the·layers·of·the·onion·inside·that210 ever·calling·its·<code·class="docutils·literal·notranslate"><span·class="pre">get_response</span></code>,·none·of·the·layers·of·the·onion·inside·that
Offset 232, 15 lines modifiedOffset 233, 15 lines modified
232 <p>It·should·return·either·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·or·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>233 <p>It·should·return·either·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>·or·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>
233 object.·If·it·returns·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>,·Django·will·continue·processing·this·request,234 object.·If·it·returns·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>,·Django·will·continue·processing·this·request,
234 executing·any·other·<code·class="docutils·literal·notranslate"><span·class="pre">process_view()</span></code>·middleware·and,·then,·the·appropriate235 executing·any·other·<code·class="docutils·literal·notranslate"><span·class="pre">process_view()</span></code>·middleware·and,·then,·the·appropriate
235 view.·If·it·returns·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object,·Django·won’t236 view.·If·it·returns·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object,·Django·won’t
236 bother·calling·the·appropriate·view;·it’ll·apply·response·middleware·to·that237 bother·calling·the·appropriate·view;·it’ll·apply·response·middleware·to·that
237 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·and·return·the·result.</p>238 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·and·return·the·result.</p>
238 <div·class="admonition·note">239 <div·class="admonition·note">
239 <p·class="admonition-title">Note</p>240 <p·class="admonition-title">Nota</p>
240 <p>Accessing·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpRequest.POST"·title="django.http.HttpRequest.POST"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">request.POST</span></code></a>·inside241 <p>Accessing·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpRequest.POST"·title="django.http.HttpRequest.POST"><code·class="xref·py·py-attr·docutils·literal·notranslate"><span·class="pre">request.POST</span></code></a>·inside
241 middleware·before·the·view·runs·or·in·<code·class="docutils·literal·notranslate"><span·class="pre">process_view()</span></code>·will·prevent·any242 middleware·before·the·view·runs·or·in·<code·class="docutils·literal·notranslate"><span·class="pre">process_view()</span></code>·will·prevent·any
242 view·running·after·the·middleware·from·being·able·to·<a·class="reference·internal"·href="file-uploads.html#modifying-upload-handlers-on-the-fly"><span·class="std·std-ref">modify·the243 view·running·after·the·middleware·from·being·able·to·<a·class="reference·internal"·href="file-uploads.html#modifying-upload-handlers-on-the-fly"><span·class="std·std-ref">modify·the
243 upload·handlers·for·the·request</span></a>,244 upload·handlers·for·the·request</span></a>,
244 and·should·normally·be·avoided.</p>245 and·should·normally·be·avoided.</p>
245 <p>The·<a·class="reference·internal"·href="../../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware"·title="django.middleware.csrf.CsrfViewMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code></a>·class·can·be246 <p>The·<a·class="reference·internal"·href="../../ref/middleware.html#django.middleware.csrf.CsrfViewMiddleware"·title="django.middleware.csrf.CsrfViewMiddleware"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code></a>·class·can·be
246 considered·an·exception,·as·it·provides·the247 considered·an·exception,·as·it·provides·the
Offset 303, 15 lines modifiedOffset 304, 15 lines modified
303 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">streaming</span><span·class="p">:</span>304 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">if</span>·<span·class="n">response</span><span·class="o">.</span><span·class="n">streaming</span><span·class="p">:</span>
304 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">streaming_content</span>·<span·class="o">=</span>·<span·class="n">wrap_streaming_content</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">streaming_content</span><span·class="p">)</span>305 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">streaming_content</span>·<span·class="o">=</span>·<span·class="n">wrap_streaming_content</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">streaming_content</span><span·class="p">)</span>
305 <span·class="k">else</span><span·class="p">:</span>306 <span·class="k">else</span><span·class="p">:</span>
306 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">content</span>·<span·class="o">=</span>·<span·class="n">alter_content</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="p">)</span>307 ····<span·class="n">response</span><span·class="o">.</span><span·class="n">content</span>·<span·class="o">=</span>·<span·class="n">alter_content</span><span·class="p">(</span><span·class="n">response</span><span·class="o">.</span><span·class="n">content</span><span·class="p">)</span>
307 </pre></div>308 </pre></div>
308 </div>309 </div>
309 <div·class="admonition·note">310 <div·class="admonition·note">
310 <p·class="admonition-title">Note</p>311 <p·class="admonition-title">Nota</p>
311 <p><code·class="docutils·literal·notranslate"><span·class="pre">streaming_content</span></code>·should·be·assumed·to·be·too·large·to·hold·in·memory.312 <p><code·class="docutils·literal·notranslate"><span·class="pre">streaming_content</span></code>·should·be·assumed·to·be·too·large·to·hold·in·memory.
312 Response·middleware·may·wrap·it·in·a·new·generator,·but·must·not·consume313 Response·middleware·may·wrap·it·in·a·new·generator,·but·must·not·consume
313 it.·Wrapping·is·typically·implemented·as·follows:</p>314 it.·Wrapping·is·typically·implemented·as·follows:</p>
314 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">def</span>·<span·class="nf">wrap_streaming_content</span><span·class="p">(</span><span·class="n">content</span><span·class="p">):</span>315 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">def</span>·<span·class="nf">wrap_streaming_content</span><span·class="p">(</span><span·class="n">content</span><span·class="p">):</span>
315 ····<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="n">content</span><span·class="p">:</span>316 ····<span·class="k">for</span>·<span·class="n">chunk</span>·<span·class="ow">in</span>·<span·class="n">content</span><span·class="p">:</span>
316 ········<span·class="k">yield</span>·<span·class="n">alter_content</span><span·class="p">(</span><span·class="n">chunk</span><span·class="p">)</span>317 ········<span·class="k">yield</span>·<span·class="n">alter_content</span><span·class="p">(</span><span·class="n">chunk</span><span·class="p">)</span>
317 </pre></div>318 </pre></div>
Offset 397, 15 lines modifiedOffset 398, 15 lines modified
397 ············<span·class="n">response</span>·<span·class="o">=</span>·<span·class="n">get_response</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>398 ············<span·class="n">response</span>·<span·class="o">=</span>·<span·class="n">get_response</span><span·class="p">(</span><span·class="n">request</span><span·class="p">)</span>
398 ············<span·class="k">return</span>·<span·class="n">response</span>399 ············<span·class="k">return</span>·<span·class="n">response</span>
  
399 ····<span·class="k">return</span>·<span·class="n">middleware</span>400 ····<span·class="k">return</span>·<span·class="n">middleware</span>
400 </pre></div>401 </pre></div>
401 </div>402 </div>
402 <div·class="admonition·note">403 <div·class="admonition·note">
403 <p·class="admonition-title">Note</p>404 <p·class="admonition-title">Nota</p>
404 <p>If·you·declare·a·hybrid·middleware·that·supports·both·synchronous·and405 <p>If·you·declare·a·hybrid·middleware·that·supports·both·synchronous·and
405 asynchronous·calls,·the·kind·of·call·you·get·may·not·match·the·underlying406 asynchronous·calls,·the·kind·of·call·you·get·may·not·match·the·underlying
406 view.·Django·will·optimize·the·middleware·call·stack·to·have·as·few407 view.·Django·will·optimize·the·middleware·call·stack·to·have·as·few
407 sync/async·transitions·as·possible.</p>408 sync/async·transitions·as·possible.</p>
408 <p>Thus,·even·if·you·are·wrapping·an·async·view,·you·may·be·called·in·sync409 <p>Thus,·even·if·you·are·wrapping·an·async·view,·you·may·be·called·in·sync
409 mode·if·there·is·other,·synchronous·middleware·between·you·and·the·view.</p>410 mode·if·there·is·other,·synchronous·middleware·between·you·and·the·view.</p>
410 </div>411 </div>
Offset 523, 37 lines modifiedOffset 524, 37 lines modified
523 <li><a·class="reference·internal"·href="#upgrading-pre-django-1-10-style-middleware">Upgrading·pre-Django·1.10-style·middleware</a></li>524 <li><a·class="reference·internal"·href="#upgrading-pre-django-1-10-style-middleware">Upgrading·pre-Django·1.10-style·middleware</a></li>
524 </ul>525 </ul>
525 </li>526 </li>
526 </ul>527 </ul>
  
527 ··</div>528 ··</div>
528 ··<div>529 ··<div>
Max diff block lines reached; 1305/11736 bytes (11.12%) of diff not shown.
6.52 KB
html2text {}
Max HTML report size reached
37.6 KB
./usr/share/doc/python-django-doc/html/topics/http/sessions.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·use·sessions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·use·sessions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Working·with·forms"·href="../forms/index.html"·/>15 ····<link·rel="next"·title="Working·with·forms"·href="../forms/index.html"·/>
15 ····<link·rel="prev"·title="Middleware"·href="middleware.html"·/>16 ····<link·rel="prev"·title="Middleware"·href="middleware.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 114, 15 lines modifiedOffset 115, 15 lines modified
114 </section>115 </section>
115 <section·id="s-using-cached-sessions">116 <section·id="s-using-cached-sessions">
116 <span·id="s-cached-sessions-backend"></span><span·id="using-cached-sessions"></span><span·id="cached-sessions-backend"></span><h3>Using·cached·sessions<a·class="headerlink"·href="#using-cached-sessions"·title="Link·to·this·heading">¶</a></h3>117 <span·id="s-cached-sessions-backend"></span><span·id="using-cached-sessions"></span><span·id="cached-sessions-backend"></span><h3>Using·cached·sessions<a·class="headerlink"·href="#using-cached-sessions"·title="Link·to·this·heading">¶</a></h3>
117 <p>For·better·performance,·you·may·want·to·use·a·cache-based·session·backend.</p>118 <p>For·better·performance,·you·may·want·to·use·a·cache-based·session·backend.</p>
118 <p>To·store·session·data·using·Django’s·cache·system,·you’ll·first·need·to·make119 <p>To·store·session·data·using·Django’s·cache·system,·you’ll·first·need·to·make
119 sure·you’ve·configured·your·cache;·see·the·<a·class="reference·internal"·href="../cache.html"><span·class="doc">cache·documentation</span></a>·for·details.</p>120 sure·you’ve·configured·your·cache;·see·the·<a·class="reference·internal"·href="../cache.html"><span·class="doc">cache·documentation</span></a>·for·details.</p>
120 <div·class="admonition·warning">121 <div·class="admonition·warning">
121 <p·class="admonition-title">Warning</p>122 <p·class="admonition-title">Avvertimento</p>
122 <p>You·should·only·use·cache-based·sessions·if·you’re·using·the·Memcached·or123 <p>You·should·only·use·cache-based·sessions·if·you’re·using·the·Memcached·or
123 Redis·cache·backend.·The·local-memory·cache·backend·doesn’t·retain·data124 Redis·cache·backend.·The·local-memory·cache·backend·doesn’t·retain·data
124 long·enough·to·be·a·good·choice,·and·it’ll·be·faster·to·use·file·or125 long·enough·to·be·a·good·choice,·and·it’ll·be·faster·to·use·file·or
125 database·sessions·directly·instead·of·sending·everything·through·the·file126 database·sessions·directly·instead·of·sending·everything·through·the·file
126 or·database·cache·backends.·Additionally,·the·local-memory·cache·backend·is127 or·database·cache·backends.·Additionally,·the·local-memory·cache·backend·is
127 NOT·multi-process·safe,·therefore·probably·not·a·good·choice·for·production128 NOT·multi-process·safe,·therefore·probably·not·a·good·choice·for·production
128 environments.</p>129 environments.</p>
Offset 161, 20 lines modifiedOffset 162, 20 lines modified
161 <section·id="s-using-cookie-based-sessions">162 <section·id="s-using-cookie-based-sessions">
162 <span·id="s-cookie-session-backend"></span><span·id="using-cookie-based-sessions"></span><span·id="cookie-session-backend"></span><h3>Using·cookie-based·sessions<a·class="headerlink"·href="#using-cookie-based-sessions"·title="Link·to·this·heading">¶</a></h3>163 <span·id="s-cookie-session-backend"></span><span·id="using-cookie-based-sessions"></span><span·id="cookie-session-backend"></span><h3>Using·cookie-based·sessions<a·class="headerlink"·href="#using-cookie-based-sessions"·title="Link·to·this·heading">¶</a></h3>
163 <p>To·use·cookies-based·sessions,·set·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_ENGINE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_ENGINE</span></code></a>·setting·to164 <p>To·use·cookies-based·sessions,·set·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_ENGINE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_ENGINE</span></code></a>·setting·to
164 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django.contrib.sessions.backends.signed_cookies&quot;</span></code>.·The·session·data·will·be165 <code·class="docutils·literal·notranslate"><span·class="pre">&quot;django.contrib.sessions.backends.signed_cookies&quot;</span></code>.·The·session·data·will·be
165 stored·using·Django’s·tools·for·<a·class="reference·internal"·href="../signing.html"><span·class="doc">cryptographic·signing</span></a>166 stored·using·Django’s·tools·for·<a·class="reference·internal"·href="../signing.html"><span·class="doc">cryptographic·signing</span></a>
166 and·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·setting.</p>167 and·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·setting.</p>
167 <div·class="admonition·note">168 <div·class="admonition·note">
168 <p·class="admonition-title">Note</p>169 <p·class="admonition-title">Nota</p>
169 <p>It’s·recommended·to·leave·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_COOKIE_HTTPONLY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_HTTPONLY</span></code></a>·setting170 <p>It’s·recommended·to·leave·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_COOKIE_HTTPONLY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_HTTPONLY</span></code></a>·setting
170 on·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·to·prevent·access·to·the·stored·data·from·JavaScript.</p>171 on·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>·to·prevent·access·to·the·stored·data·from·JavaScript.</p>
171 </div>172 </div>
172 <div·class="admonition·warning">173 <div·class="admonition·warning">
173 <p·class="admonition-title">Warning</p>174 <p·class="admonition-title">Avvertimento</p>
174 <p><strong>If·the</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code>·<strong>or</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code>·<strong>are·not·kept175 <p><strong>If·the</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code>·<strong>or</strong>·<code·class="docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code>·<strong>are·not·kept
175 secret·and·you·are·using·the</strong>176 secret·and·you·are·using·the</strong>
176 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.sessions.serializers.PickleSerializer</span></code>,·<strong>this·can·lead177 <code·class="docutils·literal·notranslate"><span·class="pre">django.contrib.sessions.serializers.PickleSerializer</span></code>,·<strong>this·can·lead
177 to·arbitrary·remote·code·execution.</strong></p>178 to·arbitrary·remote·code·execution.</strong></p>
178 <p>An·attacker·in·possession·of·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·or179 <p>An·attacker·in·possession·of·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·or
179 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY_FALLBACKS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code></a>·can·not·only·generate·falsified·session180 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY_FALLBACKS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code></a>·can·not·only·generate·falsified·session
180 data,·which·your·site·will·trust,·but·also·remotely·execute·arbitrary·code,181 data,·which·your·site·will·trust,·but·also·remotely·execute·arbitrary·code,
Offset 198, 15 lines modifiedOffset 199, 15 lines modified
198 guarantee·freshness·i.e.·that·you·are·being·sent·back·the·last·thing·you199 guarantee·freshness·i.e.·that·you·are·being·sent·back·the·last·thing·you
199 sent·to·the·client.·This·means·that·for·some·uses·of·session·data,·the200 sent·to·the·client.·This·means·that·for·some·uses·of·session·data,·the
200 cookie·backend·might·open·you·up·to·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Replay_attack">replay·attacks</a>.·Unlike·other·session201 cookie·backend·might·open·you·up·to·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Replay_attack">replay·attacks</a>.·Unlike·other·session
201 backends·which·keep·a·server-side·record·of·each·session·and·invalidate·it202 backends·which·keep·a·server-side·record·of·each·session·and·invalidate·it
202 when·a·user·logs·out,·cookie-based·sessions·are·not·invalidated·when·a·user203 when·a·user·logs·out,·cookie-based·sessions·are·not·invalidated·when·a·user
203 logs·out.·Thus·if·an·attacker·steals·a·user’s·cookie,·they·can·use·that204 logs·out.·Thus·if·an·attacker·steals·a·user’s·cookie,·they·can·use·that
204 cookie·to·login·as·that·user·even·if·the·user·logs·out.·Cookies·will·only205 cookie·to·login·as·that·user·even·if·the·user·logs·out.·Cookies·will·only
205 be·detected·as·stale·if·they·are·older·than·your206 be·detected·as·stale·if·they·are·older·than·your
206 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_COOKIE_AGE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_AGE</span></code></a>.</p>207 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SESSION_COOKIE_AGE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_AGE</span></code></a>.</p>
207 <p><strong>Performance</strong></p>208 <p><strong>Performance</strong></p>
208 <p>Finally,·the·size·of·a·cookie·can·have·an·impact·on·the·speed·of·your·site.</p>209 <p>Finally,·the·size·of·a·cookie·can·have·an·impact·on·the·speed·of·your·site.</p>
209 </div>210 </div>
210 </section>211 </section>
211 </section>212 </section>
212 <section·id="s-using-sessions-in-views">213 <section·id="s-using-sessions-in-views">
Offset 353, 15 lines modifiedOffset 354, 15 lines modified
353 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.datetime"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime</span></code></a>·object.·Defaults·to·the·current·time.</p></li>354 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.datetime"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime</span></code></a>·object.·Defaults·to·the·current·time.</p></li>
354 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">expiry</span></code>:·expiry·information·for·the·session,·as·a355 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">expiry</span></code>:·expiry·information·for·the·session,·as·a
355 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.datetime"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime</span></code></a>·object,·an·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#int"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">int</span></code></a>·(in·seconds),·or356 <a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.datetime"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime</span></code></a>·object,·an·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/functions.html#int"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">int</span></code></a>·(in·seconds),·or
356 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·Defaults·to·the·value·stored·in·the·session·by357 <code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.·Defaults·to·the·value·stored·in·the·session·by
357 <a·class="reference·internal"·href="#django.contrib.sessions.backends.base.SessionBase.set_expiry"·title="django.contrib.sessions.backends.base.SessionBase.set_expiry"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">set_expiry()</span></code></a>,·if·there·is·one,·or·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p></li>358 <a·class="reference·internal"·href="#django.contrib.sessions.backends.base.SessionBase.set_expiry"·title="django.contrib.sessions.backends.base.SessionBase.set_expiry"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">set_expiry()</span></code></a>,·if·there·is·one,·or·<code·class="docutils·literal·notranslate"><span·class="pre">None</span></code>.</p></li>
358 </ul>359 </ul>
359 <div·class="admonition·note">360 <div·class="admonition·note">
360 <p·class="admonition-title">Note</p>361 <p·class="admonition-title">Nota</p>
361 <p>This·method·is·used·by·session·backends·to·determine·the·session·expiry362 <p>This·method·is·used·by·session·backends·to·determine·the·session·expiry
362 age·in·seconds·when·saving·the·session.·It·is·not·really·intended·for363 age·in·seconds·when·saving·the·session.·It·is·not·really·intended·for
363 usage·outside·of·that·context.</p>364 usage·outside·of·that·context.</p>
364 <p>In·particular,·while·it·is·<strong>possible</strong>·to·determine·the·remaining365 <p>In·particular,·while·it·is·<strong>possible</strong>·to·determine·the·remaining
365 lifetime·of·a·session·<strong>just·when</strong>·you·have·the·correct366 lifetime·of·a·session·<strong>just·when</strong>·you·have·the·correct
366 <code·class="docutils·literal·notranslate"><span·class="pre">modification</span></code>·value·<strong>and</strong>·the·<code·class="docutils·literal·notranslate"><span·class="pre">expiry</span></code>·is·set·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">datetime</span></code>367 <code·class="docutils·literal·notranslate"><span·class="pre">modification</span></code>·value·<strong>and</strong>·the·<code·class="docutils·literal·notranslate"><span·class="pre">expiry</span></code>·is·set·as·a·<code·class="docutils·literal·notranslate"><span·class="pre">datetime</span></code>
367 object,·where·you·do·have·the·<code·class="docutils·literal·notranslate"><span·class="pre">modification</span></code>·value,·it·is·more368 object,·where·you·do·have·the·<code·class="docutils·literal·notranslate"><span·class="pre">modification</span></code>·value,·it·is·more
Offset 449, 15 lines modifiedOffset 450, 15 lines modified
449 <dl·class="py·class">450 <dl·class="py·class">
450 <dt·class="sig·sig-object·py"·id="django.contrib.sessions.serializers.PickleSerializer">451 <dt·class="sig·sig-object·py"·id="django.contrib.sessions.serializers.PickleSerializer">
451 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">serializers.</span></span><span·class="sig-name·descname"><span·class="pre">PickleSerializer</span></span><a·class="headerlink"·href="#django.contrib.sessions.serializers.PickleSerializer"·title="Link·to·this·definition">¶</a></dt>452 <em·class="property"><span·class="pre">class</span><span·class="w">·</span></em><span·class="sig-prename·descclassname"><span·class="pre">serializers.</span></span><span·class="sig-name·descname"><span·class="pre">PickleSerializer</span></span><a·class="headerlink"·href="#django.contrib.sessions.serializers.PickleSerializer"·title="Link·to·this·definition">¶</a></dt>
452 <dd><p>Supports·arbitrary·Python·objects,·but,·as·described·above,·can·lead·to·a453 <dd><p>Supports·arbitrary·Python·objects,·but,·as·described·above,·can·lead·to·a
453 remote·code·execution·vulnerability·if·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·or·any·key·of454 remote·code·execution·vulnerability·if·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY</span></code></a>·or·any·key·of
454 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY_FALLBACKS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code></a>·becomes·known·by·an·attacker.</p>455 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-SECRET_KEY_FALLBACKS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECRET_KEY_FALLBACKS</span></code></a>·becomes·known·by·an·attacker.</p>
455 <div·class="deprecated">456 <div·class="deprecated">
456 <p><span·class="versionmodified·deprecated">Deprecated·since·version·4.1:·</span>Due·to·the·risk·of·remote·code·execution,·this·serializer·is·deprecated457 <p><span·class="versionmodified·deprecated">Deprecato·dalla·versione·4.1:·</span>Due·to·the·risk·of·remote·code·execution,·this·serializer·is·deprecated
457 and·will·be·removed·in·Django·5.0.</p>458 and·will·be·removed·in·Django·5.0.</p>
458 </div>459 </div>
459 </dd></dl>460 </dd></dl>
  
460 </section>461 </section>
461 <section·id="s-write-your-own-serializer">462 <section·id="s-write-your-own-serializer">
462 <span·id="s-custom-serializers"></span><span·id="write-your-own-serializer"></span><span·id="custom-serializers"></span><h4>Write·your·own·serializer<a·class="headerlink"·href="#write-your-own-serializer"·title="Link·to·this·heading">¶</a></h4>463 <span·id="s-custom-serializers"></span><span·id="write-your-own-serializer"></span><span·id="custom-serializers"></span><h4>Write·your·own·serializer<a·class="headerlink"·href="#write-your-own-serializer"·title="Link·to·this·heading">¶</a></h4>
Offset 498, 15 lines modifiedOffset 499, 15 lines modified
498 ········<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="s2">&quot;You&#39;ve·already·commented.&quot;</span><span·class="p">)</span>499 ········<span·class="k">return</span>·<span·class="n">HttpResponse</span><span·class="p">(</span><span·class="s2">&quot;You&#39;ve·already·commented.&quot;</span><span·class="p">)</span>
499 ····<span·class="n">c</span>·<span·class="o">=</span>·<span·class="n">comments</span><span·class="o">.</span><span·class="n">Comment</span><span·class="p">(</span><span·class="n">comment</span><span·class="o">=</span><span·class="n">new_comment</span><span·class="p">)</span>500 ····<span·class="n">c</span>·<span·class="o">=</span>·<span·class="n">comments</span><span·class="o">.</span><span·class="n">Comment</span><span·class="p">(</span><span·class="n">comment</span><span·class="o">=</span><span·class="n">new_comment</span><span·class="p">)</span>
Max diff block lines reached; 11641/23704 bytes (49.11%) of diff not shown.
14.3 KB
html2text {}
Max HTML report size reached
22.6 KB
./usr/share/doc/python-django-doc/html/topics/http/shortcuts.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·shortcut·functions·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·shortcut·functions·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Generic·views"·href="generic-views.html"·/>15 ····<link·rel="next"·title="Generic·views"·href="generic-views.html"·/>
15 ····<link·rel="prev"·title="File·Uploads"·href="file-uploads.html"·/>16 ····<link·rel="prev"·title="File·Uploads"·href="file-uploads.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 21 lines modifiedOffset 77, 21 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-http-shortcuts">79 ··········<div·class="yui-g"·id="topics-http-shortcuts">
79 ············80 ············
80 ··<section·id="s-module-django.shortcuts">81 ··<section·id="s-module-django.shortcuts">
81 <span·id="s-django-shortcut-functions"></span><span·id="module-django.shortcuts"></span><span·id="django-shortcut-functions"></span><h1>Django·shortcut·functions<a·class="headerlink"·href="#module-django.shortcuts"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-django-shortcut-functions"></span><span·id="module-django.shortcuts"></span><span·id="django-shortcut-functions"></span><h1>Django·shortcut·functions<a·class="headerlink"·href="#module-django.shortcuts"·title="Link·to·this·heading">¶</a></h1>
82 <p·id="index-0">The·package·<code·class="docutils·literal·notranslate"><span·class="pre">django.shortcuts</span></code>·collects·helper·functions·and·classes·that83 <p·id="index-0">The·package·<code·class="docutils·literal·notranslate"><span·class="pre">django.shortcuts</span></code>·collects·helper·functions·and·classes·that
83 span·multiple·levels·of·MVC.·In·other·words,·these·functions/classes84 «span»·multiple·levels·of·MVC.·In·other·words,·these·functions/classes
84 introduce·controlled·coupling·for·convenience’s·sake.</p>85 introduce·controlled·coupling·for·convenience’s·sake.</p>
85 <section·id="s-render">86 <section·id="s-render">
86 <span·id="render"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">render()</span></code><a·class="headerlink"·href="#render"·title="Link·to·this·heading">¶</a></h2>87 <span·id="render"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">render()</span></code><a·class="headerlink"·href="#render"·title="Link·to·this·heading">¶</a></h2>
87 <dl·class="py·function">88 <dl·class="py·function">
88 <dt·class="sig·sig-object·py"·id="django.shortcuts.render">89 <dt·class="sig·sig-object·py"·id="django.shortcuts.render">
89 <span·class="sig-name·descname"><span·class="pre">render</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">context</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">content_type</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">status</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#render"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.shortcuts.render"·title="Link·to·this·definition">¶</a></dt>90 <span·class="sig-name·descname"><span·class="pre">render</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">request</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">template_name</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">context</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">content_type</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">status</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">using</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#render"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.shortcuts.render"·title="Link·to·this·definition">¶</a></dt>
90 <dd><p>Combines·a·given·template·with·a·given·context·dictionary·and·returns·an91 <dd><p>Combines·a·given·template·with·a·given·context·dictionary·and·returns·an
91 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object·with·that·rendered·text.</p>92 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·object·with·that·rendered·text.</p>
92 <p>Django·does·not·provide·a·shortcut·function·which·returns·a93 <p>Django·does·not·provide·a·shortcut·function·which·returns·a
93 <a·class="reference·internal"·href="../../ref/template-response.html#django.template.response.TemplateResponse"·title="django.template.response.TemplateResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponse</span></code></a>·because·the·constructor94 <a·class="reference·internal"·href="../../ref/template-response.html#django.template.response.TemplateResponse"·title="django.template.response.TemplateResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponse</span></code></a>·because·the·constructor
94 of·<a·class="reference·internal"·href="../../ref/template-response.html#django.template.response.TemplateResponse"·title="django.template.response.TemplateResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponse</span></code></a>·offers·the·same·level95 of·<a·class="reference·internal"·href="../../ref/template-response.html#django.template.response.TemplateResponse"·title="django.template.response.TemplateResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TemplateResponse</span></code></a>·offers·the·same·level
95 of·convenience·as·<a·class="reference·internal"·href="#django.shortcuts.render"·title="django.shortcuts.render"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">render()</span></code></a>.</p>96 of·convenience·as·<a·class="reference·internal"·href="#django.shortcuts.render"·title="django.shortcuts.render"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">render()</span></code></a>.</p>
96 </dd></dl>97 </dd></dl>
Offset 157, 15 lines modifiedOffset 158, 15 lines modified
157 </div>158 </div>
158 </section>159 </section>
159 </section>160 </section>
160 <section·id="s-redirect">161 <section·id="s-redirect">
161 <span·id="redirect"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">redirect()</span></code><a·class="headerlink"·href="#redirect"·title="Link·to·this·heading">¶</a></h2>162 <span·id="redirect"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">redirect()</span></code><a·class="headerlink"·href="#redirect"·title="Link·to·this·heading">¶</a></h2>
162 <dl·class="py·function">163 <dl·class="py·function">
163 <dt·class="sig·sig-object·py"·id="django.shortcuts.redirect">164 <dt·class="sig·sig-object·py"·id="django.shortcuts.redirect">
164 <span·class="sig-name·descname"><span·class="pre">redirect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">to</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">permanent</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#redirect"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.shortcuts.redirect"·title="Link·to·this·definition">¶</a></dt>165 <span·class="sig-name·descname"><span·class="pre">redirect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">to</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">permanent</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">False</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#redirect"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.shortcuts.redirect"·title="Link·to·this·definition">¶</a></dt>
165 <dd><p>Returns·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponseRedirect"·title="django.http.HttpResponseRedirect"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponseRedirect</span></code></a>·to·the·appropriate·URL166 <dd><p>Returns·an·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponseRedirect"·title="django.http.HttpResponseRedirect"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponseRedirect</span></code></a>·to·the·appropriate·URL
166 for·the·arguments·passed.</p>167 for·the·arguments·passed.</p>
167 <p>The·arguments·could·be:</p>168 <p>The·arguments·could·be:</p>
168 <ul·class="simple">169 <ul·class="simple">
169 <li><p>A·model:·the·model’s·<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>170 <li><p>A·model:·the·model’s·<a·class="reference·internal"·href="../../ref/models/instances.html#django.db.models.Model.get_absolute_url"·title="django.db.models.Model.get_absolute_url"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_absolute_url()</span></code></a>
170 function·will·be·called.</p></li>171 function·will·be·called.</p></li>
171 <li><p>A·view·name,·possibly·with·arguments:·<a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·will·be172 <li><p>A·view·name,·possibly·with·arguments:·<a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·will·be
Offset 228, 15 lines modifiedOffset 229, 15 lines modified
228 </div>229 </div>
229 </section>230 </section>
230 </section>231 </section>
231 <section·id="s-get-object-or-404">232 <section·id="s-get-object-or-404">
232 <span·id="get-object-or-404"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_object_or_404()</span></code><a·class="headerlink"·href="#get-object-or-404"·title="Link·to·this·heading">¶</a></h2>233 <span·id="get-object-or-404"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_object_or_404()</span></code><a·class="headerlink"·href="#get-object-or-404"·title="Link·to·this·heading">¶</a></h2>
233 <dl·class="py·function">234 <dl·class="py·function">
234 <dt·class="sig·sig-object·py"·id="django.shortcuts.get_object_or_404">235 <dt·class="sig·sig-object·py"·id="django.shortcuts.get_object_or_404">
235 <span·class="sig-name·descname"><span·class="pre">get_object_or_404</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">klass</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#get_object_or_404"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.shortcuts.get_object_or_404"·title="Link·to·this·definition">¶</a></dt>236 <span·class="sig-name·descname"><span·class="pre">get_object_or_404</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">klass</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#get_object_or_404"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.shortcuts.get_object_or_404"·title="Link·to·this·definition">¶</a></dt>
236 <dd><p>Calls·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.get"·title="django.db.models.query.QuerySet.get"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get()</span></code></a>·on·a·given·model·manager,237 <dd><p>Calls·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.get"·title="django.db.models.query.QuerySet.get"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get()</span></code></a>·on·a·given·model·manager,
237 but·it·raises·<a·class="reference·internal"·href="views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·instead·of·the·model’s238 but·it·raises·<a·class="reference·internal"·href="views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·instead·of·the·model’s
238 <a·class="reference·internal"·href="../../ref/models/class.html#django.db.models.Model.DoesNotExist"·title="django.db.models.Model.DoesNotExist"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DoesNotExist</span></code></a>·exception.</p>239 <a·class="reference·internal"·href="../../ref/models/class.html#django.db.models.Model.DoesNotExist"·title="django.db.models.Model.DoesNotExist"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">DoesNotExist</span></code></a>·exception.</p>
239 </dd></dl>240 </dd></dl>
  
240 <section·id="s-arguments">241 <section·id="s-arguments">
241 <span·id="arguments"></span><h3>Arguments<a·class="headerlink"·href="#arguments"·title="Link·to·this·heading">¶</a></h3>242 <span·id="arguments"></span><h3>Arguments<a·class="headerlink"·href="#arguments"·title="Link·to·this·heading">¶</a></h3>
Offset 305, 15 lines modifiedOffset 306, 15 lines modified
305 will·be·raised·if·more·than·one·object·is·found.</p>306 will·be·raised·if·more·than·one·object·is·found.</p>
306 </section>307 </section>
307 </section>308 </section>
308 <section·id="s-get-list-or-404">309 <section·id="s-get-list-or-404">
309 <span·id="get-list-or-404"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_list_or_404()</span></code><a·class="headerlink"·href="#get-list-or-404"·title="Link·to·this·heading">¶</a></h2>310 <span·id="get-list-or-404"></span><h2><code·class="docutils·literal·notranslate"><span·class="pre">get_list_or_404()</span></code><a·class="headerlink"·href="#get-list-or-404"·title="Link·to·this·heading">¶</a></h2>
310 <dl·class="py·function">311 <dl·class="py·function">
311 <dt·class="sig·sig-object·py"·id="django.shortcuts.get_list_or_404">312 <dt·class="sig·sig-object·py"·id="django.shortcuts.get_list_or_404">
312 <span·class="sig-name·descname"><span·class="pre">get_list_or_404</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">klass</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#get_list_or_404"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.shortcuts.get_list_or_404"·title="Link·to·this·definition">¶</a></dt>313 <span·class="sig-name·descname"><span·class="pre">get_list_or_404</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">klass</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">*</span></span><span·class="n"><span·class="pre">args</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../../_modules/django/shortcuts.html#get_list_or_404"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.shortcuts.get_list_or_404"·title="Link·to·this·definition">¶</a></dt>
313 <dd><p>Returns·the·result·of·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.filter"·title="django.db.models.query.QuerySet.filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">filter()</span></code></a>·on·a314 <dd><p>Returns·the·result·of·<a·class="reference·internal"·href="../../ref/models/querysets.html#django.db.models.query.QuerySet.filter"·title="django.db.models.query.QuerySet.filter"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">filter()</span></code></a>·on·a
314 given·model·manager·cast·to·a·list,·raising·<a·class="reference·internal"·href="views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·if315 given·model·manager·cast·to·a·list,·raising·<a·class="reference·internal"·href="views.html#django.http.Http404"·title="django.http.Http404"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Http404</span></code></a>·if
315 the·resulting·list·is·empty.</p>316 the·resulting·list·is·empty.</p>
316 </dd></dl>317 </dd></dl>
  
317 <section·id="s-id2">318 <section·id="s-id2">
318 <span·id="id2"></span><h3>Arguments<a·class="headerlink"·href="#id2"·title="Link·to·this·heading">¶</a></h3>319 <span·id="id2"></span><h3>Arguments<a·class="headerlink"·href="#id2"·title="Link·to·this·heading">¶</a></h3>
Offset 389, 37 lines modifiedOffset 390, 37 lines modified
389 </li>390 </li>
390 </ul>391 </ul>
391 </li>392 </li>
392 </ul>393 </ul>
  
393 ··</div>394 ··</div>
394 ··<div>395 ··<div>
395 ····<h4>Previous·topic</h4>396 ····<h4>Argomento·precedente</h4>
396 ····<p·class="topless"><a·href="file-uploads.html"397 ····<p·class="topless"><a·href="file-uploads.html"
397 ··························title="previous·chapter">File·Uploads</a></p>398 ··························title="capitolo·precedente">File·Uploads</a></p>
398 ··</div>399 ··</div>
399 ··<div>400 ··<div>
400 ····<h4>Next·topic</h4>401 ····<h4>Argomento·successivo</h4>
401 ····<p·class="topless"><a·href="generic-views.html"402 ····<p·class="topless"><a·href="generic-views.html"
402 ··························title="next·chapter">Generic·views</a></p>403 ··························title="capitolo·successivo">Generic·views</a></p>
403 ··</div>404 ··</div>
404 <search·id="searchbox"·style="display:·none"·role="search">405 <search·id="searchbox"·style="display:·none"·role="search">
Max diff block lines reached; 674/17034 bytes (3.96%) of diff not shown.
5.86 KB
html2text {}
Max HTML report size reached
14.6 KB
./usr/share/doc/python-django-doc/html/topics/http/urls.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>URL·dispatcher·&#8212;·Django·4.2.16·documentation</title>6 ····<title>URL·dispatcher·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Writing·views"·href="views.html"·/>15 ····<link·rel="next"·title="Writing·views"·href="views.html"·/>
15 ····<link·rel="prev"·title="Handling·HTTP·requests"·href="index.html"·/>16 ····<link·rel="prev"·title="Handling·HTTP·requests"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 323, 15 lines modifiedOffset 324, 15 lines modified
323 for·<code·class="docutils·literal·notranslate"><span·class="pre">myapp/</span></code>.</p>324 for·<code·class="docutils·literal·notranslate"><span·class="pre">myapp/</span></code>.</p>
324 <p>The·URLconf·doesn’t·look·at·the·request·method.·In·other·words,·all·request325 <p>The·URLconf·doesn’t·look·at·the·request·method.·In·other·words,·all·request
325 methods··<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>,·etc.··will·be·routed·to·the·same326 methods··<code·class="docutils·literal·notranslate"><span·class="pre">POST</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">GET</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">HEAD</span></code>,·etc.··will·be·routed·to·the·same
326 function·for·the·same·URL.</p>327 function·for·the·same·URL.</p>
327 </section>328 </section>
328 <section·id="s-specifying-defaults-for-view-arguments">329 <section·id="s-specifying-defaults-for-view-arguments">
329 <span·id="specifying-defaults-for-view-arguments"></span><h2>Specifying·defaults·for·view·arguments<a·class="headerlink"·href="#specifying-defaults-for-view-arguments"·title="Link·to·this·heading">¶</a></h2>330 <span·id="specifying-defaults-for-view-arguments"></span><h2>Specifying·defaults·for·view·arguments<a·class="headerlink"·href="#specifying-defaults-for-view-arguments"·title="Link·to·this·heading">¶</a></h2>
330 <p>A·convenient·trick·is·to·specify·default·parameters·for·your·views·arguments.331 <p>A·convenient·trick·is·to·specify·default·parameters·for·your·views·arguments.
331 Here’s·an·example·URLconf·and·view:</p>332 Here’s·an·example·URLconf·and·view:</p>
332 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·URLconf</span>333 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·URLconf</span>
333 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">path</span>334 <span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">path</span>
  
334 <span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">views</span>335 <span·class="kn">from</span>·<span·class="nn">.</span>·<span·class="kn">import</span>·<span·class="n">views</span>
  
335 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>336 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
Offset 381, 16 lines modifiedOffset 382, 16 lines modified
381 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler403</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler403"·title="django.conf.urls.handler403"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler403</span></code></a>.</p></li>382 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler403</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler403"·title="django.conf.urls.handler403"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler403</span></code></a>.</p></li>
382 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler404</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler404"·title="django.conf.urls.handler404"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler404</span></code></a>.</p></li>383 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler404</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler404"·title="django.conf.urls.handler404"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler404</span></code></a>.</p></li>
383 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler500</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler500"·title="django.conf.urls.handler500"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler500</span></code></a>.</p></li>384 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">handler500</span></code>··See·<a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler500"·title="django.conf.urls.handler500"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">django.conf.urls.handler500</span></code></a>.</p></li>
384 </ul>385 </ul>
385 </section>386 </section>
386 <section·id="s-including-other-urlconfs">387 <section·id="s-including-other-urlconfs">
387 <span·id="s-id3"></span><span·id="including-other-urlconfs"></span><span·id="id3"></span><h2>Including·other·URLconfs<a·class="headerlink"·href="#including-other-urlconfs"·title="Link·to·this·heading">¶</a></h2>388 <span·id="s-id3"></span><span·id="including-other-urlconfs"></span><span·id="id3"></span><h2>Including·other·URLconfs<a·class="headerlink"·href="#including-other-urlconfs"·title="Link·to·this·heading">¶</a></h2>
388 <p>At·any·point,·your·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>·can·include·other·URLconf·modules.·This389 <p>At·any·point,·your·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>·can·«include»·other·URLconf·modules.·This
389 essentially·roots·a·set·of·URLs·below·other·ones.</p>390 essentially·«roots»·a·set·of·URLs·below·other·ones.</p>
390 <p>For·example,·here’s·an·excerpt·of·the·URLconf·for·the·<a·class="reference·external"·href="https://www.djangoproject.com/">Django·website</a>391 <p>For·example,·here’s·an·excerpt·of·the·URLconf·for·the·<a·class="reference·external"·href="https://www.djangoproject.com/">Django·website</a>
391 itself.·It·includes·a·number·of·other·URLconfs:</p>392 itself.·It·includes·a·number·of·other·URLconfs:</p>
392 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">include</span><span·class="p">,</span>·<span·class="n">path</span>393 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.urls</span>·<span·class="kn">import</span>·<span·class="n">include</span><span·class="p">,</span>·<span·class="n">path</span>
  
393 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>394 <span·class="n">urlpatterns</span>·<span·class="o">=</span>·<span·class="p">[</span>
394 ····<span·class="c1">#·...·snip·...</span>395 ····<span·class="c1">#·...·snip·...</span>
395 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;community/&quot;</span><span·class="p">,</span>·<span·class="n">include</span><span·class="p">(</span><span·class="s2">&quot;aggregator.urls&quot;</span><span·class="p">)),</span>396 ····<span·class="n">path</span><span·class="p">(</span><span·class="s2">&quot;community/&quot;</span><span·class="p">,</span>·<span·class="n">include</span><span·class="p">(</span><span·class="s2">&quot;aggregator.urls&quot;</span><span·class="p">)),</span>
Offset 644, 15 lines modifiedOffset 645, 15 lines modified
644 </section>645 </section>
645 <section·id="s-naming-url-patterns">646 <section·id="s-naming-url-patterns">
646 <span·id="s-id4"></span><span·id="naming-url-patterns"></span><span·id="id4"></span><h2>Naming·URL·patterns<a·class="headerlink"·href="#naming-url-patterns"·title="Link·to·this·heading">¶</a></h2>647 <span·id="s-id4"></span><span·id="naming-url-patterns"></span><span·id="id4"></span><h2>Naming·URL·patterns<a·class="headerlink"·href="#naming-url-patterns"·title="Link·to·this·heading">¶</a></h2>
647 <p>In·order·to·perform·URL·reversing,·you’ll·need·to·use·<strong>named·URL·patterns</strong>648 <p>In·order·to·perform·URL·reversing,·you’ll·need·to·use·<strong>named·URL·patterns</strong>
648 as·done·in·the·examples·above.·The·string·used·for·the·URL·name·can·contain·any649 as·done·in·the·examples·above.·The·string·used·for·the·URL·name·can·contain·any
649 characters·you·like.·You·are·not·restricted·to·valid·Python·names.</p>650 characters·you·like.·You·are·not·restricted·to·valid·Python·names.</p>
650 <p>When·naming·URL·patterns,·choose·names·that·are·unlikely·to·clash·with·other651 <p>When·naming·URL·patterns,·choose·names·that·are·unlikely·to·clash·with·other
651 applications·choice·of·names.·If·you·call·your·URL·pattern·<code·class="docutils·literal·notranslate"><span·class="pre">comment</span></code>652 applications·choice·of·names.·If·you·call·your·URL·pattern·<code·class="docutils·literal·notranslate"><span·class="pre">comment</span></code>
652 and·another·application·does·the·same·thing,·the·URL·that653 and·another·application·does·the·same·thing,·the·URL·that
653 <a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·finds·depends·on·whichever·pattern·is·last·in654 <a·class="reference·internal"·href="../../ref/urlresolvers.html#django.urls.reverse"·title="django.urls.reverse"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">reverse()</span></code></a>·finds·depends·on·whichever·pattern·is·last·in
654 your·project’s·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>·list.</p>655 your·project’s·<code·class="docutils·literal·notranslate"><span·class="pre">urlpatterns</span></code>·list.</p>
655 <p>Putting·a·prefix·on·your·URL·names,·perhaps·derived·from·the·application656 <p>Putting·a·prefix·on·your·URL·names,·perhaps·derived·from·the·application
656 name·(such·as·<code·class="docutils·literal·notranslate"><span·class="pre">myapp-comment</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">comment</span></code>),·decreases·the·chance657 name·(such·as·<code·class="docutils·literal·notranslate"><span·class="pre">myapp-comment</span></code>·instead·of·<code·class="docutils·literal·notranslate"><span·class="pre">comment</span></code>),·decreases·the·chance
657 of·collision.</p>658 of·collision.</p>
658 <p>You·can·deliberately·choose·the·<em>same·URL·name</em>·as·another·application·if·you659 <p>You·can·deliberately·choose·the·<em>same·URL·name</em>·as·another·application·if·you
Offset 923, 37 lines modifiedOffset 924, 37 lines modified
923 </li>924 </li>
924 </ul>925 </ul>
925 </li>926 </li>
926 </ul>927 </ul>
  
927 ··</div>928 ··</div>
928 ··<div>929 ··<div>
929 ····<h4>Previous·topic</h4>930 ····<h4>Argomento·precedente</h4>
930 ····<p·class="topless"><a·href="index.html"931 ····<p·class="topless"><a·href="index.html"
931 ··························title="previous·chapter">Handling·HTTP·requests</a></p>932 ··························title="capitolo·precedente">Handling·HTTP·requests</a></p>
932 ··</div>933 ··</div>
933 ··<div>934 ··<div>
934 ····<h4>Next·topic</h4>935 ····<h4>Argomento·successivo</h4>
935 ····<p·class="topless"><a·href="views.html"936 ····<p·class="topless"><a·href="views.html"
936 ··························title="next·chapter">Writing·views</a></p>937 ··························title="capitolo·successivo">Writing·views</a></p>
937 ··</div>938 ··</div>
938 <search·id="searchbox"·style="display:·none"·role="search">939 <search·id="searchbox"·style="display:·none"·role="search">
939 ··<h3·id="searchlabel">Quick·search</h3>940 ··<h3·id="searchlabel">Ricerca·veloce</h3>
940 ····<div·class="searchformwrapper">941 ····<div·class="searchformwrapper">
941 ····<form·class="search"·action="../../search.html"·method="get">942 ····<form·class="search"·action="../../search.html"·method="get">
942 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>943 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
943 ······<input·type="submit"·value="Go"·/>944 ······<input·type="submit"·value="Vai"·/>
944 ····</form>945 ····</form>
945 ····</div>946 ····</div>
946 </search>947 </search>
947 <script>document.getElementById('searchbox').style.display·=·"block"</script>948 <script>document.getElementById('searchbox').style.display·=·"block"</script>
948 ········</div>949 ········</div>
949 ······</div>950 ······</div>
950 ··············<h3>Last·update:</h3>951 ··············<h3>Last·update:</h3>
951 ··············<p·class="topless">Sep·03,·2024</p>952 ··············<p·class="topless">set·03,·2024</p>
952 ··········</div>953 ··········</div>
953 ········954 ········
954 ······955 ······
955 ····</div>956 ····</div>
  
956 ····<div·id="ft">957 ····<div·id="ft">
957 ······<div·class="nav">958 ······<div·class="nav">
5.28 KB
html2text {}
Max HTML report size reached
15.3 KB
./usr/share/doc/python-django-doc/html/topics/http/views.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·views·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·views·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="View·decorators"·href="decorators.html"·/>15 ····<link·rel="next"·title="View·decorators"·href="decorators.html"·/>
15 ····<link·rel="prev"·title="URL·dispatcher"·href="urls.html"·/>16 ····<link·rel="prev"·title="URL·dispatcher"·href="urls.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 80, 15 lines modifiedOffset 81, 15 lines modified
80 ··<section·id="s-writing-views">81 ··<section·id="s-writing-views">
81 <span·id="writing-views"></span><h1>Writing·views<a·class="headerlink"·href="#writing-views"·title="Link·to·this·heading">¶</a></h1>82 <span·id="writing-views"></span><h1>Writing·views<a·class="headerlink"·href="#writing-views"·title="Link·to·this·heading">¶</a></h1>
82 <p>A·view·function,·or·<em>view</em>·for·short,·is·a·Python·function·that·takes·a83 <p>A·view·function,·or·<em>view</em>·for·short,·is·a·Python·function·that·takes·a
83 web·request·and·returns·a·web·response.·This·response·can·be·the·HTML·contents84 web·request·and·returns·a·web·response.·This·response·can·be·the·HTML·contents
84 of·a·web·page,·or·a·redirect,·or·a·404·error,·or·an·XML·document,·or·an·image·.85 of·a·web·page,·or·a·redirect,·or·a·404·error,·or·an·XML·document,·or·an·image·.
85 .·.·or·anything,·really.·The·view·itself·contains·whatever·arbitrary·logic·is86 .·.·or·anything,·really.·The·view·itself·contains·whatever·arbitrary·logic·is
86 necessary·to·return·that·response.·This·code·can·live·anywhere·you·want,·as·long87 necessary·to·return·that·response.·This·code·can·live·anywhere·you·want,·as·long
87 as·it’s·on·your·Python·path.·There’s·no·other·requirement–no·magic,·so·to88 as·it’s·on·your·Python·path.·There’s·no·other·requirement–no·«magic,»·so·to
88 speak.·For·the·sake·of·putting·the·code·<em>somewhere</em>,·the·convention·is·to89 speak.·For·the·sake·of·putting·the·code·<em>somewhere</em>,·the·convention·is·to
89 put·views·in·a·file·called·<code·class="docutils·literal·notranslate"><span·class="pre">views.py</span></code>,·placed·in·your·project·or90 put·views·in·a·file·called·<code·class="docutils·literal·notranslate"><span·class="pre">views.py</span></code>,·placed·in·your·project·or
90 application·directory.</p>91 application·directory.</p>
91 <section·id="s-a-simple-view">92 <section·id="s-a-simple-view">
92 <span·id="a-simple-view"></span><h2>A·simple·view<a·class="headerlink"·href="#a-simple-view"·title="Link·to·this·heading">¶</a></h2>93 <span·id="a-simple-view"></span><h2>A·simple·view<a·class="headerlink"·href="#a-simple-view"·title="Link·to·this·heading">¶</a></h2>
93 <p>Here’s·a·view·that·returns·the·current·date·and·time,·as·an·HTML·document:</p>94 <p>Here’s·a·view·that·returns·the·current·date·and·time,·as·an·HTML·document:</p>
94 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>95 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>
Offset 131, 15 lines modifiedOffset 132, 15 lines modified
131 date·and·time.·To·display·this·view·at·a·particular·URL,·you’ll·need·to·create·a132 date·and·time.·To·display·this·view·at·a·particular·URL,·you’ll·need·to·create·a
132 <em>URLconf</em>;·see·<a·class="reference·internal"·href="urls.html"><span·class="doc">URL·dispatcher</span></a>·for·instructions.</p>133 <em>URLconf</em>;·see·<a·class="reference·internal"·href="urls.html"><span·class="doc">URL·dispatcher</span></a>·for·instructions.</p>
133 </section>134 </section>
134 <section·id="s-returning-errors">135 <section·id="s-returning-errors">
135 <span·id="returning-errors"></span><h2>Returning·errors<a·class="headerlink"·href="#returning-errors"·title="Link·to·this·heading">¶</a></h2>136 <span·id="returning-errors"></span><h2>Returning·errors<a·class="headerlink"·href="#returning-errors"·title="Link·to·this·heading">¶</a></h2>
136 <p>Django·provides·help·for·returning·HTTP·error·codes.·There·are·subclasses·of137 <p>Django·provides·help·for·returning·HTTP·error·codes.·There·are·subclasses·of
137 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·for·a·number·of·common·HTTP·status·codes138 <a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·for·a·number·of·common·HTTP·status·codes
138 other·than·200·(which·means·<em>OK</em>).·You·can·find·the·full·list·of·available139 other·than·200·(which·means·<em>«OK»</em>).·You·can·find·the·full·list·of·available
139 subclasses·in·the·<a·class="reference·internal"·href="../../ref/request-response.html#ref-httpresponse-subclasses"><span·class="std·std-ref">request/response</span></a>140 subclasses·in·the·<a·class="reference·internal"·href="../../ref/request-response.html#ref-httpresponse-subclasses"><span·class="std·std-ref">request/response</span></a>
140 documentation.·Return·an·instance·of·one·of·those·subclasses·instead·of·a141 documentation.·Return·an·instance·of·one·of·those·subclasses·instead·of·a
141 normal·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·in·order·to·signify·an·error.·For142 normal·<a·class="reference·internal"·href="../../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>·in·order·to·signify·an·error.·For
142 example:</p>143 example:</p>
143 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span><span·class="p">,</span>·<span·class="n">HttpResponseNotFound</span>144 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span><span·class="p">,</span>·<span·class="n">HttpResponseNotFound</span>
  
  
Offset 231, 15 lines modifiedOffset 232, 15 lines modified
231 </div>232 </div>
232 <p>The·<a·class="reference·internal"·href="../../ref/views.html#django.views.defaults.bad_request"·title="django.views.defaults.bad_request"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">bad_request()</span></code></a>·view·is·overridden·by233 <p>The·<a·class="reference·internal"·href="../../ref/views.html#django.views.defaults.bad_request"·title="django.views.defaults.bad_request"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">bad_request()</span></code></a>·view·is·overridden·by
233 <a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler400"·title="django.conf.urls.handler400"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">handler400</span></code></a>:</p>234 <a·class="reference·internal"·href="../../ref/urls.html#django.conf.urls.handler400"·title="django.conf.urls.handler400"><code·class="xref·py·py-data·docutils·literal·notranslate"><span·class="pre">handler400</span></code></a>:</p>
234 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">handler400</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysite.views.my_custom_bad_request_view&quot;</span>235 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">handler400</span>·<span·class="o">=</span>·<span·class="s2">&quot;mysite.views.my_custom_bad_request_view&quot;</span>
235 </pre></div>236 </pre></div>
236 </div>237 </div>
237 <div·class="admonition·seealso">238 <div·class="admonition·seealso">
238 <p·class="admonition-title">See·also</p>239 <p·class="admonition-title">Vedi·anche</p>
239 <p>Use·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-CSRF_FAILURE_VIEW"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_FAILURE_VIEW</span></code></a>·setting·to·override·the·CSRF·error240 <p>Use·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-CSRF_FAILURE_VIEW"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_FAILURE_VIEW</span></code></a>·setting·to·override·the·CSRF·error
240 view.</p>241 view.</p>
241 </div>242 </div>
242 <section·id="s-testing-custom-error-views">243 <section·id="s-testing-custom-error-views">
243 <span·id="testing-custom-error-views"></span><h3>Testing·custom·error·views<a·class="headerlink"·href="#testing-custom-error-views"·title="Link·to·this·heading">¶</a></h3>244 <span·id="testing-custom-error-views"></span><h3>Testing·custom·error·views<a·class="headerlink"·href="#testing-custom-error-views"·title="Link·to·this·heading">¶</a></h3>
244 <p>To·test·the·response·of·a·custom·error·handler,·raise·the·appropriate·exception245 <p>To·test·the·response·of·a·custom·error·handler,·raise·the·appropriate·exception
245 in·a·test·view.·For·example:</p>246 in·a·test·view.·For·example:</p>
Offset 274, 15 lines modifiedOffset 275, 15 lines modified
274 </pre></div>275 </pre></div>
275 </div>276 </div>
276 </section>277 </section>
277 </section>278 </section>
278 <section·id="s-async-views">279 <section·id="s-async-views">
279 <span·id="s-id2"></span><span·id="async-views"></span><span·id="id2"></span><h2>Async·views<a·class="headerlink"·href="#async-views"·title="Link·to·this·heading">¶</a></h2>280 <span·id="s-id2"></span><span·id="async-views"></span><span·id="id2"></span><h2>Async·views<a·class="headerlink"·href="#async-views"·title="Link·to·this·heading">¶</a></h2>
280 <p>As·well·as·being·synchronous·functions,·views·can·also·be·asynchronous281 <p>As·well·as·being·synchronous·functions,·views·can·also·be·asynchronous
281 (async)·functions,·normally·defined·using·Python’s·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>·syntax.282 («async»)·functions,·normally·defined·using·Python’s·<code·class="docutils·literal·notranslate"><span·class="pre">async</span>·<span·class="pre">def</span></code>·syntax.
282 Django·will·automatically·detect·these·and·run·them·in·an·async·context.283 Django·will·automatically·detect·these·and·run·them·in·an·async·context.
283 However,·you·will·need·to·use·an·async·server·based·on·ASGI·to·get·their284 However,·you·will·need·to·use·an·async·server·based·on·ASGI·to·get·their
284 performance·benefits.</p>285 performance·benefits.</p>
285 <p>Here’s·an·example·of·an·async·view:</p>286 <p>Here’s·an·example·of·an·async·view:</p>
286 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>287 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">datetime</span>
287 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>288 <span·class="kn">from</span>·<span·class="nn">django.http</span>·<span·class="kn">import</span>·<span·class="n">HttpResponse</span>
  
Offset 325, 37 lines modifiedOffset 326, 37 lines modified
325 <li><a·class="reference·internal"·href="#async-views">Async·views</a></li>326 <li><a·class="reference·internal"·href="#async-views">Async·views</a></li>
326 </ul>327 </ul>
327 </li>328 </li>
328 </ul>329 </ul>
  
329 ··</div>330 ··</div>
330 ··<div>331 ··<div>
331 ····<h4>Previous·topic</h4>332 ····<h4>Argomento·precedente</h4>
332 ····<p·class="topless"><a·href="urls.html"333 ····<p·class="topless"><a·href="urls.html"
333 ··························title="previous·chapter">URL·dispatcher</a></p>334 ··························title="capitolo·precedente">URL·dispatcher</a></p>
334 ··</div>335 ··</div>
335 ··<div>336 ··<div>
336 ····<h4>Next·topic</h4>337 ····<h4>Argomento·successivo</h4>
337 ····<p·class="topless"><a·href="decorators.html"338 ····<p·class="topless"><a·href="decorators.html"
338 ··························title="next·chapter">View·decorators</a></p>339 ··························title="capitolo·successivo">View·decorators</a></p>
339 ··</div>340 ··</div>
340 <search·id="searchbox"·style="display:·none"·role="search">341 <search·id="searchbox"·style="display:·none"·role="search">
341 ··<h3·id="searchlabel">Quick·search</h3>342 ··<h3·id="searchlabel">Ricerca·veloce</h3>
342 ····<div·class="searchformwrapper">343 ····<div·class="searchformwrapper">
343 ····<form·class="search"·action="../../search.html"·method="get">344 ····<form·class="search"·action="../../search.html"·method="get">
344 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>345 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
345 ······<input·type="submit"·value="Go"·/>346 ······<input·type="submit"·value="Vai"·/>
346 ····</form>347 ····</form>
Max diff block lines reached; 353/9648 bytes (3.66%) of diff not shown.
5.71 KB
html2text {}
Max HTML report size reached
12.4 KB
./usr/share/doc/python-django-doc/html/topics/i18n/formatting.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Format·localization·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Format·localization·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Time·zones"·href="timezones.html"·/>15 ····<link·rel="next"·title="Time·zones"·href="timezones.html"·/>
15 ····<link·rel="prev"·title="Translation"·href="translation.html"·/>16 ····<link·rel="prev"·title="Translation"·href="translation.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 86, 34 lines modifiedOffset 87, 34 lines modified
86 <a·class="reference·internal"·href="index.html#term-locale-name"><span·class="xref·std·std-term">locale</span></a>.·It·also·handles·localized·input·in·forms.</p>87 <a·class="reference·internal"·href="index.html#term-locale-name"><span·class="xref·std·std-term">locale</span></a>.·It·also·handles·localized·input·in·forms.</p>
87 <p>When·it’s·enabled,·two·users·accessing·the·same·content·may·see·dates,·times·and88 <p>When·it’s·enabled,·two·users·accessing·the·same·content·may·see·dates,·times·and
88 numbers·formatted·in·different·ways,·depending·on·the·formats·for·their·current89 numbers·formatted·in·different·ways,·depending·on·the·formats·for·their·current
89 locale.</p>90 locale.</p>
90 <p>The·formatting·system·is·enabled·by·default.·To·disable·it,·it’s91 <p>The·formatting·system·is·enabled·by·default.·To·disable·it,·it’s
91 necessary·to·set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span>·<span·class="pre">=</span>·<span·class="pre">False</span></code></a>·in·your·settings·file.</p>92 necessary·to·set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span>·<span·class="pre">=</span>·<span·class="pre">False</span></code></a>·in·your·settings·file.</p>
92 <div·class="admonition·note">93 <div·class="admonition·note">
93 <p·class="admonition-title">Note</p>94 <p·class="admonition-title">Nota</p>
94 <p>To·enable·number·formatting·with·thousand·separators,·it·is·necessary·to95 <p>To·enable·number·formatting·with·thousand·separators,·it·is·necessary·to
95 set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_THOUSAND_SEPARATOR"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_THOUSAND_SEPARATOR</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>·in96 set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_THOUSAND_SEPARATOR"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_THOUSAND_SEPARATOR</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>·in
96 your·settings·file.·Alternatively,·you·could·use·<a·class="reference·internal"·href="../../ref/contrib/humanize.html#std-templatefilter-intcomma"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intcomma</span></code></a>·to97 your·settings·file.·Alternatively,·you·could·use·<a·class="reference·internal"·href="../../ref/contrib/humanize.html#std-templatefilter-intcomma"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">intcomma</span></code></a>·to
97 format·numbers·in·your·template.</p>98 format·numbers·in·your·template.</p>
98 </div>99 </div>
99 <div·class="admonition·note">100 <div·class="admonition·note">
100 <p·class="admonition-title">Note</p>101 <p·class="admonition-title">Nota</p>
101 <p>There·is·a·related·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_I18N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_I18N</span></code></a>·setting·that·controls·if·Django102 <p>There·is·a·related·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_I18N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_I18N</span></code></a>·setting·that·controls·if·Django
102 should·activate·translation.·See·<a·class="reference·internal"·href="translation.html"><span·class="doc">Translation</span></a>·for·more103 should·activate·translation.·See·<a·class="reference·internal"·href="translation.html"><span·class="doc">Translation</span></a>·for·more
103 details.</p>104 details.</p>
104 </div>105 </div>
105 </section>106 </section>
106 <section·id="s-locale-aware-input-in-forms">107 <section·id="s-locale-aware-input-in-forms">
107 <span·id="locale-aware-input-in-forms"></span><h2>Locale·aware·input·in·forms<a·class="headerlink"·href="#locale-aware-input-in-forms"·title="Link·to·this·heading">¶</a></h2>108 <span·id="locale-aware-input-in-forms"></span><h2>Locale·aware·input·in·forms<a·class="headerlink"·href="#locale-aware-input-in-forms"·title="Link·to·this·heading">¶</a></h2>
108 <p>When·formatting·is·enabled,·Django·can·use·localized·formats·when·parsing·dates,109 <p>When·formatting·is·enabled,·Django·can·use·localized·formats·when·parsing·dates,
109 times·and·numbers·in·forms.·That·means·it·tries·different·formats·for·different110 times·and·numbers·in·forms.·That·means·it·tries·different·formats·for·different
110 locales·when·guessing·the·format·used·by·the·user·when·inputting·data·on·forms.</p>111 locales·when·guessing·the·format·used·by·the·user·when·inputting·data·on·forms.</p>
111 <div·class="admonition·note">112 <div·class="admonition·note">
112 <p·class="admonition-title">Note</p>113 <p·class="admonition-title">Nota</p>
113 <p>Django·uses·different·formats·for·displaying·data·to·those·it·uses·for114 <p>Django·uses·different·formats·for·displaying·data·to·those·it·uses·for
114 parsing·data.·Most·notably,·the·formats·for·parsing·dates·can’t·use·the115 parsing·data.·Most·notably,·the·formats·for·parsing·dates·can’t·use·the
115 <code·class="docutils·literal·notranslate"><span·class="pre">%a</span></code>·(abbreviated·weekday·name),·<code·class="docutils·literal·notranslate"><span·class="pre">%A</span></code>·(full·weekday·name),116 <code·class="docutils·literal·notranslate"><span·class="pre">%a</span></code>·(abbreviated·weekday·name),·<code·class="docutils·literal·notranslate"><span·class="pre">%A</span></code>·(full·weekday·name),
116 <code·class="docutils·literal·notranslate"><span·class="pre">%b</span></code>·(abbreviated·month·name),·<code·class="docutils·literal·notranslate"><span·class="pre">%B</span></code>·(full·month·name),117 <code·class="docutils·literal·notranslate"><span·class="pre">%b</span></code>·(abbreviated·month·name),·<code·class="docutils·literal·notranslate"><span·class="pre">%B</span></code>·(full·month·name),
117 or·<code·class="docutils·literal·notranslate"><span·class="pre">%p</span></code>·(AM/PM).</p>118 or·<code·class="docutils·literal·notranslate"><span·class="pre">%p</span></code>·(AM/PM).</p>
118 </div>119 </div>
119 <p>To·enable·a·form·field·to·localize·input·and·output·data·use·its·<code·class="docutils·literal·notranslate"><span·class="pre">localize</span></code>120 <p>To·enable·a·form·field·to·localize·input·and·output·data·use·its·<code·class="docutils·literal·notranslate"><span·class="pre">localize</span></code>
Offset 154, 15 lines modifiedOffset 155, 15 lines modified
  
154 <span·class="cp">{%</span>·<span·class="k">localize</span>·<span·class="nv">off</span>·<span·class="cp">%}</span>155 <span·class="cp">{%</span>·<span·class="k">localize</span>·<span·class="nv">off</span>·<span·class="cp">%}</span>
155 ····<span·class="cp">{{</span>·<span·class="nv">value</span>·<span·class="cp">}}</span>156 ····<span·class="cp">{{</span>·<span·class="nv">value</span>·<span·class="cp">}}</span>
156 <span·class="cp">{%</span>·<span·class="k">endlocalize</span>·<span·class="cp">%}</span>157 <span·class="cp">{%</span>·<span·class="k">endlocalize</span>·<span·class="cp">%}</span>
157 </pre></div>158 </pre></div>
158 </div>159 </div>
159 <div·class="admonition·note">160 <div·class="admonition·note">
160 <p·class="admonition-title">Note</p>161 <p·class="admonition-title">Nota</p>
161 <p>The·value·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code></a>·isn’t·respected·inside·of·a162 <p>The·value·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code></a>·isn’t·respected·inside·of·a
162 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">localize</span>·<span·class="pre">%}</span></code>·block.</p>163 <code·class="docutils·literal·notranslate"><span·class="pre">{%</span>·<span·class="pre">localize</span>·<span·class="pre">%}</span></code>·block.</p>
163 </div>164 </div>
164 <p>See·<a·class="reference·internal"·href="#std-templatefilter-localize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">localize</span></code></a>·and·<a·class="reference·internal"·href="#std-templatefilter-unlocalize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">unlocalize</span></code></a>·for·template·filters·that·will165 <p>See·<a·class="reference·internal"·href="#std-templatefilter-localize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">localize</span></code></a>·and·<a·class="reference·internal"·href="#std-templatefilter-unlocalize"><code·class="xref·std·std-tfilter·docutils·literal·notranslate"><span·class="pre">unlocalize</span></code></a>·for·template·filters·that·will
165 do·the·same·job·on·a·per-variable·basis.</p>166 do·the·same·job·on·a·per-variable·basis.</p>
166 </section>167 </section>
167 </section>168 </section>
Offset 284, 37 lines modifiedOffset 285, 37 lines modified
284 </li>285 </li>
285 </ul>286 </ul>
286 </li>287 </li>
287 </ul>288 </ul>
  
288 ··</div>289 ··</div>
289 ··<div>290 ··<div>
290 ····<h4>Previous·topic</h4>291 ····<h4>Argomento·precedente</h4>
291 ····<p·class="topless"><a·href="translation.html"292 ····<p·class="topless"><a·href="translation.html"
292 ··························title="previous·chapter">Translation</a></p>293 ··························title="capitolo·precedente">Translation</a></p>
293 ··</div>294 ··</div>
294 ··<div>295 ··<div>
295 ····<h4>Next·topic</h4>296 ····<h4>Argomento·successivo</h4>
296 ····<p·class="topless"><a·href="timezones.html"297 ····<p·class="topless"><a·href="timezones.html"
297 ··························title="next·chapter">Time·zones</a></p>298 ··························title="capitolo·successivo">Time·zones</a></p>
298 ··</div>299 ··</div>
299 <search·id="searchbox"·style="display:·none"·role="search">300 <search·id="searchbox"·style="display:·none"·role="search">
300 ··<h3·id="searchlabel">Quick·search</h3>301 ··<h3·id="searchlabel">Ricerca·veloce</h3>
301 ····<div·class="searchformwrapper">302 ····<div·class="searchformwrapper">
302 ····<form·class="search"·action="../../search.html"·method="get">303 ····<form·class="search"·action="../../search.html"·method="get">
303 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>304 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
304 ······<input·type="submit"·value="Go"·/>305 ······<input·type="submit"·value="Vai"·/>
305 ····</form>306 ····</form>
306 ····</div>307 ····</div>
307 </search>308 </search>
308 <script>document.getElementById('searchbox').style.display·=·"block"</script>309 <script>document.getElementById('searchbox').style.display·=·"block"</script>
309 ········</div>310 ········</div>
310 ······</div>311 ······</div>
311 ··············<h3>Last·update:</h3>312 ··············<h3>Last·update:</h3>
312 ··············<p·class="topless">Sep·03,·2024</p>313 ··············<p·class="topless">set·03,·2024</p>
313 ··········</div>314 ··········</div>
314 ········315 ········
315 ······316 ······
316 ····</div>317 ····</div>
  
317 ····<div·id="ft">318 ····<div·id="ft">
Max diff block lines reached; 0/8354 bytes (0.00%) of diff not shown.
4.16 KB
html2text {}
Max HTML report size reached
9.77 KB
./usr/share/doc/python-django-doc/html/topics/i18n/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Internationalization·and·localization·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Internationalization·and·localization·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Translation"·href="translation.html"·/>15 ····<link·rel="next"·title="Translation"·href="translation.html"·/>
15 ····<link·rel="prev"·title="Sending·email"·href="../email.html"·/>16 ····<link·rel="prev"·title="Sending·email"·href="../email.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 96, 25 lines modifiedOffset 97, 25 lines modified
96 </ul>97 </ul>
97 <p>Translation·depends·on·the·target·language,·and·formatting·usually·depends·on98 <p>Translation·depends·on·the·target·language,·and·formatting·usually·depends·on
98 the·target·country.·This·information·is·provided·by·browsers·in·the99 the·target·country.·This·information·is·provided·by·browsers·in·the
99 <code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header.·However,·the·time·zone·isn’t·readily·available.</p>100 <code·class="docutils·literal·notranslate"><span·class="pre">Accept-Language</span></code>·header.·However,·the·time·zone·isn’t·readily·available.</p>
100 </section>101 </section>
101 <section·id="s-definitions">102 <section·id="s-definitions">
102 <span·id="definitions"></span><h2>Definitions<a·class="headerlink"·href="#definitions"·title="Link·to·this·heading">¶</a></h2>103 <span·id="definitions"></span><h2>Definitions<a·class="headerlink"·href="#definitions"·title="Link·to·this·heading">¶</a></h2>
103 <p>The·words·internationalization·and·localization·often·cause·confusion;104 <p>The·words·«internationalization»·and·«localization»·often·cause·confusion;
104 here’s·a·simplified·definition:</p>105 here’s·a·simplified·definition:</p>
105 <dl·class="simple·glossary">106 <dl·class="simple·glossary">
106 <dt·id="term-internationalization">internationalization<a·class="headerlink"·href="#term-internationalization"·title="Link·to·this·term">¶</a></dt><dd><p>Preparing·the·software·for·localization.·Usually·done·by·developers.</p>107 <dt·id="term-internationalization">internationalization<a·class="headerlink"·href="#term-internationalization"·title="Link·to·this·term">¶</a></dt><dd><p>Preparing·the·software·for·localization.·Usually·done·by·developers.</p>
107 </dd>108 </dd>
108 <dt·id="term-localization">localization<a·class="headerlink"·href="#term-localization"·title="Link·to·this·term">¶</a></dt><dd><p>Writing·the·translations·and·local·formats.·Usually·done·by·translators.</p>109 <dt·id="term-localization">localization<a·class="headerlink"·href="#term-localization"·title="Link·to·this·term">¶</a></dt><dd><p>Writing·the·translations·and·local·formats.·Usually·done·by·translators.</p>
109 </dd>110 </dd>
110 </dl>111 </dl>
111 <p>More·details·can·be·found·in·the·<a·class="reference·external"·href="https://www.w3.org/International/questions/qa-i18n">W3C·Web·Internationalization·FAQ</a>,·the·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Internationalization_and_localization">Wikipedia·article</a>·or·the·<a·class="reference·external"·href="https://www.gnu.org/software/gettext/manual/gettext.html#Concepts">GNU·gettext·documentation</a>.</p>112 <p>More·details·can·be·found·in·the·<a·class="reference·external"·href="https://www.w3.org/International/questions/qa-i18n">W3C·Web·Internationalization·FAQ</a>,·the·<a·class="reference·external"·href="https://en.wikipedia.org/wiki/Internationalization_and_localization">Wikipedia·article</a>·or·the·<a·class="reference·external"·href="https://www.gnu.org/software/gettext/manual/gettext.html#Concepts">GNU·gettext·documentation</a>.</p>
112 <div·class="admonition·warning">113 <div·class="admonition·warning">
113 <p·class="admonition-title">Warning</p>114 <p·class="admonition-title">Avvertimento</p>
114 <p>Translation·and·formatting·are·controlled·by·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_I18N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_I18N</span></code></a>·and115 <p>Translation·and·formatting·are·controlled·by·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_I18N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_I18N</span></code></a>·and
115 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code></a>·settings·respectively.·However,·both·features·involve116 <a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_L10N"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_L10N</span></code></a>·settings·respectively.·However,·both·features·involve
116 internationalization·and·localization.·The·names·of·the·settings·are·an117 internationalization·and·localization.·The·names·of·the·settings·are·an
117 unfortunate·result·of·Django’s·history.</p>118 unfortunate·result·of·Django’s·history.</p>
118 </div>119 </div>
119 <p>Here·are·some·other·terms·that·will·help·us·to·handle·a·common·language:</p>120 <p>Here·are·some·other·terms·that·will·help·us·to·handle·a·common·language:</p>
120 <dl·class="simple·glossary">121 <dl·class="simple·glossary">
Offset 162, 37 lines modifiedOffset 163, 37 lines modified
162 <li><a·class="reference·internal"·href="#definitions">Definitions</a></li>163 <li><a·class="reference·internal"·href="#definitions">Definitions</a></li>
163 </ul>164 </ul>
164 </li>165 </li>
165 </ul>166 </ul>
  
166 ··</div>167 ··</div>
167 ··<div>168 ··<div>
168 ····<h4>Previous·topic</h4>169 ····<h4>Argomento·precedente</h4>
169 ····<p·class="topless"><a·href="../email.html"170 ····<p·class="topless"><a·href="../email.html"
170 ··························title="previous·chapter">Sending·email</a></p>171 ··························title="capitolo·precedente">Sending·email</a></p>
171 ··</div>172 ··</div>
172 ··<div>173 ··<div>
173 ····<h4>Next·topic</h4>174 ····<h4>Argomento·successivo</h4>
174 ····<p·class="topless"><a·href="translation.html"175 ····<p·class="topless"><a·href="translation.html"
175 ··························title="next·chapter">Translation</a></p>176 ··························title="capitolo·successivo">Translation</a></p>
176 ··</div>177 ··</div>
177 <search·id="searchbox"·style="display:·none"·role="search">178 <search·id="searchbox"·style="display:·none"·role="search">
178 ··<h3·id="searchlabel">Quick·search</h3>179 ··<h3·id="searchlabel">Ricerca·veloce</h3>
179 ····<div·class="searchformwrapper">180 ····<div·class="searchformwrapper">
180 ····<form·class="search"·action="../../search.html"·method="get">181 ····<form·class="search"·action="../../search.html"·method="get">
181 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>182 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
182 ······<input·type="submit"·value="Go"·/>183 ······<input·type="submit"·value="Vai"·/>
183 ····</form>184 ····</form>
184 ····</div>185 ····</div>
185 </search>186 </search>
186 <script>document.getElementById('searchbox').style.display·=·"block"</script>187 <script>document.getElementById('searchbox').style.display·=·"block"</script>
187 ········</div>188 ········</div>
188 ······</div>189 ······</div>
189 ··············<h3>Last·update:</h3>190 ··············<h3>Last·update:</h3>
190 ··············<p·class="topless">Sep·03,·2024</p>191 ··············<p·class="topless">set·03,·2024</p>
191 ··········</div>192 ··········</div>
192 ········193 ········
193 ······194 ······
194 ····</div>195 ····</div>
  
195 ····<div·id="ft">196 ····<div·id="ft">
196 ······<div·class="nav">197 ······<div·class="nav">
3.59 KB
html2text {}
Max HTML report size reached
27.1 KB
./usr/share/doc/python-django-doc/html/topics/i18n/timezones.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Time·zones·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Time·zones·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Logging"·href="../logging.html"·/>15 ····<link·rel="next"·title="Logging"·href="../logging.html"·/>
15 ····<link·rel="prev"·title="Format·localization"·href="formatting.html"·/>16 ····<link·rel="prev"·title="Format·localization"·href="formatting.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 94, 22 lines modifiedOffset 95, 22 lines modified
94 This·probably·doesn’t·matter·for·your·blog,·but·it’s·a·problem·if·you·over·bill95 This·probably·doesn’t·matter·for·your·blog,·but·it’s·a·problem·if·you·over·bill
95 or·under·bill·your·customers·by·one·hour,·twice·a·year,·every·year.·The96 or·under·bill·your·customers·by·one·hour,·twice·a·year,·every·year.·The
96 solution·to·this·problem·is·to·use·UTC·in·the·code·and·use·local·time·only·when97 solution·to·this·problem·is·to·use·UTC·in·the·code·and·use·local·time·only·when
97 interacting·with·end·users.</p>98 interacting·with·end·users.</p>
98 <p>Time·zone·support·is·disabled·by·default.·To·enable·it,·set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span>·<span·class="pre">=</span>99 <p>Time·zone·support·is·disabled·by·default.·To·enable·it,·set·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span>·<span·class="pre">=</span>
99 <span·class="pre">True</span></code></a>·in·your·settings·file.</p>100 <span·class="pre">True</span></code></a>·in·your·settings·file.</p>
100 <div·class="admonition·note">101 <div·class="admonition·note">
101 <p·class="admonition-title">Note</p>102 <p·class="admonition-title">Nota</p>
102 <p>In·Django·5.0,·time·zone·support·will·be·enabled·by·default.</p>103 <p>In·Django·5.0,·time·zone·support·will·be·enabled·by·default.</p>
103 </div>104 </div>
104 <p>Time·zone·support·uses·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>,·which·is·part·of·the·Python·standard105 <p>Time·zone·support·uses·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>,·which·is·part·of·the·Python·standard
105 library·from·Python·3.9.··The·<code·class="docutils·literal·notranslate"><span·class="pre">backports.zoneinfo</span></code>·package·is·automatically106 library·from·Python·3.9.··The·<code·class="docutils·literal·notranslate"><span·class="pre">backports.zoneinfo</span></code>·package·is·automatically
106 installed·alongside·Django·if·you·are·using·Python·3.8.</p>107 installed·alongside·Django·if·you·are·using·Python·3.8.</p>
107 <div·class="admonition·note">108 <div·class="admonition·note">
108 <p·class="admonition-title">Note</p>109 <p·class="admonition-title">Nota</p>
109 <p>The·default·<code·class="file·docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·file·created·by·<a·class="reference·internal"·href="../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">django-admin</span>110 <p>The·default·<code·class="file·docutils·literal·notranslate"><span·class="pre">settings.py</span></code>·file·created·by·<a·class="reference·internal"·href="../../ref/django-admin.html#django-admin-startproject"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">django-admin</span>
110 <span·class="pre">startproject</span></code></a>·includes·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>111 <span·class="pre">startproject</span></code></a>·includes·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span>·<span·class="pre">=</span>·<span·class="pre">True</span></code></a>
111 for·convenience.</p>112 for·convenience.</p>
112 </div>113 </div>
113 <p>If·you’re·wrestling·with·a·particular·problem,·start·with·the·<a·class="reference·internal"·href="#time-zones-faq"><span·class="std·std-ref">time·zone114 <p>If·you’re·wrestling·with·a·particular·problem,·start·with·the·<a·class="reference·internal"·href="#time-zones-faq"><span·class="std·std-ref">time·zone
114 FAQ</span></a>.</p>115 FAQ</span></a>.</p>
115 </section>116 </section>
Offset 137, 27 lines modifiedOffset 138, 27 lines modified
137 should·be·aware·too.·In·this·mode,·the·example·above·becomes:</p>138 should·be·aware·too.·In·this·mode,·the·example·above·becomes:</p>
138 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">timezone</span>139 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.utils</span>·<span·class="kn">import</span>·<span·class="n">timezone</span>
  
139 <span·class="n">now</span>·<span·class="o">=</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">now</span><span·class="p">()</span>140 <span·class="n">now</span>·<span·class="o">=</span>·<span·class="n">timezone</span><span·class="o">.</span><span·class="n">now</span><span·class="p">()</span>
140 </pre></div>141 </pre></div>
141 </div>142 </div>
142 <div·class="admonition·warning">143 <div·class="admonition·warning">
143 <p·class="admonition-title">Warning</p>144 <p·class="admonition-title">Avvertimento</p>
144 <p>Dealing·with·aware·datetime·objects·isn’t·always·intuitive.·For·instance,145 <p>Dealing·with·aware·datetime·objects·isn’t·always·intuitive.·For·instance,
145 the·<code·class="docutils·literal·notranslate"><span·class="pre">tzinfo</span></code>·argument·of·the·standard·datetime·constructor·doesn’t·work146 the·<code·class="docutils·literal·notranslate"><span·class="pre">tzinfo</span></code>·argument·of·the·standard·datetime·constructor·doesn’t·work
146 reliably·for·time·zones·with·DST.·Using·UTC·is·generally·safe;·if·you’re147 reliably·for·time·zones·with·DST.·Using·UTC·is·generally·safe;·if·you’re
147 using·other·time·zones,·you·should·review·the·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>148 using·other·time·zones,·you·should·review·the·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/zoneinfo.html#module-zoneinfo"·title="(in·Python·v3.12)"><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">zoneinfo</span></code></a>
148 documentation·carefully.</p>149 documentation·carefully.</p>
149 </div>150 </div>
150 <div·class="admonition·note">151 <div·class="admonition·note">
151 <p·class="admonition-title">Note</p>152 <p·class="admonition-title">Nota</p>
152 <p>Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.time"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime.time</span></code></a>·objects·also·feature·a·<code·class="docutils·literal·notranslate"><span·class="pre">tzinfo</span></code>153 <p>Python’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/datetime.html#datetime.time"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">datetime.time</span></code></a>·objects·also·feature·a·<code·class="docutils·literal·notranslate"><span·class="pre">tzinfo</span></code>
153 attribute,·and·PostgreSQL·has·a·matching·<code·class="docutils·literal·notranslate"><span·class="pre">time</span>·<span·class="pre">with</span>·<span·class="pre">time</span>·<span·class="pre">zone</span></code>·type.154 attribute,·and·PostgreSQL·has·a·matching·<code·class="docutils·literal·notranslate"><span·class="pre">time</span>·<span·class="pre">with</span>·<span·class="pre">time</span>·<span·class="pre">zone</span></code>·type.
154 However,·as·PostgreSQL’s·docs·put·it,·this·type·exhibits·properties·which155 However,·as·PostgreSQL’s·docs·put·it,·this·type·«exhibits·properties·which
155 lead·to·questionable·usefulness.</p>156 lead·to·questionable·usefulness».</p>
156 <p>Django·only·supports·naive·time·objects·and·will·raise·an·exception·if·you157 <p>Django·only·supports·naive·time·objects·and·will·raise·an·exception·if·you
157 attempt·to·save·an·aware·time·object,·as·a·timezone·for·a·time·with·no158 attempt·to·save·an·aware·time·object,·as·a·timezone·for·a·time·with·no
158 associated·date·does·not·make·sense.</p>159 associated·date·does·not·make·sense.</p>
159 </div>160 </div>
160 </section>161 </section>
161 <section·id="s-interpretation-of-naive-datetime-objects">162 <section·id="s-interpretation-of-naive-datetime-objects">
162 <span·id="s-naive-datetime-objects"></span><span·id="interpretation-of-naive-datetime-objects"></span><span·id="naive-datetime-objects"></span><h3>Interpretation·of·naive·datetime·objects<a·class="headerlink"·href="#interpretation-of-naive-datetime-objects"·title="Link·to·this·heading">¶</a></h3>163 <span·id="s-naive-datetime-objects"></span><span·id="interpretation-of-naive-datetime-objects"></span><span·id="naive-datetime-objects"></span><h3>Interpretation·of·naive·datetime·objects<a·class="headerlink"·href="#interpretation-of-naive-datetime-objects"·title="Link·to·this·heading">¶</a></h3>
Offset 182, 15 lines modifiedOffset 183, 15 lines modified
182 <p>The·<strong>default·time·zone</strong>·is·the·time·zone·defined·by·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>183 <p>The·<strong>default·time·zone</strong>·is·the·time·zone·defined·by·the·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>
183 setting.</p>184 setting.</p>
184 <p>The·<strong>current·time·zone</strong>·is·the·time·zone·that’s·used·for·rendering.</p>185 <p>The·<strong>current·time·zone</strong>·is·the·time·zone·that’s·used·for·rendering.</p>
185 <p>You·should·set·the·current·time·zone·to·the·end·user’s·actual·time·zone·with186 <p>You·should·set·the·current·time·zone·to·the·end·user’s·actual·time·zone·with
186 <a·class="reference·internal"·href="../../ref/utils.html#django.utils.timezone.activate"·title="django.utils.timezone.activate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">activate()</span></code></a>.·Otherwise,·the·default·time·zone·is187 <a·class="reference·internal"·href="../../ref/utils.html#django.utils.timezone.activate"·title="django.utils.timezone.activate"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">activate()</span></code></a>.·Otherwise,·the·default·time·zone·is
187 used.</p>188 used.</p>
188 <div·class="admonition·note">189 <div·class="admonition·note">
189 <p·class="admonition-title">Note</p>190 <p·class="admonition-title">Nota</p>
190 <p>As·explained·in·the·documentation·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>,·Django·sets191 <p>As·explained·in·the·documentation·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-TIME_ZONE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">TIME_ZONE</span></code></a>,·Django·sets
191 environment·variables·so·that·its·process·runs·in·the·default·time·zone.192 environment·variables·so·that·its·process·runs·in·the·default·time·zone.
192 This·happens·regardless·of·the·value·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span></code></a>·and·of·the193 This·happens·regardless·of·the·value·of·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span></code></a>·and·of·the
193 current·time·zone.</p>194 current·time·zone.</p>
194 <p>When·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·this·is·useful·to·preserve195 <p>When·<a·class="reference·internal"·href="../../ref/settings.html#std-setting-USE_TZ"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">USE_TZ</span></code></a>·is·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·this·is·useful·to·preserve
195 backwards-compatibility·with·applications·that·still·rely·on·local·time.196 backwards-compatibility·with·applications·that·still·rely·on·local·time.
196 However,·<a·class="reference·internal"·href="#naive-datetime-objects"><span·class="std·std-ref">as·explained·above</span></a>,·this·isn’t197 However,·<a·class="reference·internal"·href="#naive-datetime-objects"><span·class="std·std-ref">as·explained·above</span></a>,·this·isn’t
Offset 278, 15 lines modifiedOffset 279, 15 lines modified
278 </section>279 </section>
279 <section·id="s-time-zone-aware-output-in-templates">280 <section·id="s-time-zone-aware-output-in-templates">
280 <span·id="s-time-zones-in-templates"></span><span·id="time-zone-aware-output-in-templates"></span><span·id="time-zones-in-templates"></span><h2>Time·zone·aware·output·in·templates<a·class="headerlink"·href="#time-zone-aware-output-in-templates"·title="Link·to·this·heading">¶</a></h2>281 <span·id="s-time-zones-in-templates"></span><span·id="time-zone-aware-output-in-templates"></span><span·id="time-zones-in-templates"></span><h2>Time·zone·aware·output·in·templates<a·class="headerlink"·href="#time-zone-aware-output-in-templates"·title="Link·to·this·heading">¶</a></h2>
281 <p>When·you·enable·time·zone·support,·Django·converts·aware·datetime·objects·to282 <p>When·you·enable·time·zone·support,·Django·converts·aware·datetime·objects·to
282 the·<a·class="reference·internal"·href="#default-current-time-zone"><span·class="std·std-ref">current·time·zone</span></a>·when·they’re·rendered283 the·<a·class="reference·internal"·href="#default-current-time-zone"><span·class="std·std-ref">current·time·zone</span></a>·when·they’re·rendered
283 in·templates.·This·behaves·very·much·like·<a·class="reference·internal"·href="formatting.html"><span·class="doc">format·localization</span></a>.</p>284 in·templates.·This·behaves·very·much·like·<a·class="reference·internal"·href="formatting.html"><span·class="doc">format·localization</span></a>.</p>
284 <div·class="admonition·warning">285 <div·class="admonition·warning">
285 <p·class="admonition-title">Warning</p>286 <p·class="admonition-title">Avvertimento</p>
286 <p>Django·doesn’t·convert·naive·datetime·objects,·because·they·could·be287 <p>Django·doesn’t·convert·naive·datetime·objects,·because·they·could·be
287 ambiguous,·and·because·your·code·should·never·produce·naive·datetimes·when288 ambiguous,·and·because·your·code·should·never·produce·naive·datetimes·when
288 time·zone·support·is·enabled.·However,·you·can·force·conversion·with·the289 time·zone·support·is·enabled.·However,·you·can·force·conversion·with·the
289 template·filters·described·below.</p>290 template·filters·described·below.</p>
290 </div>291 </div>
291 <p>Conversion·to·local·time·isn’t·always·appropriate··you·may·be·generating292 <p>Conversion·to·local·time·isn’t·always·appropriate··you·may·be·generating
292 output·for·computers·rather·than·for·humans.·The·following·filters·and·tags,293 output·for·computers·rather·than·for·humans.·The·following·filters·and·tags,
Offset 310, 15 lines modifiedOffset 311, 15 lines modified
  
310 <span·class="cp">{%</span>·<span·class="k">localtime</span>·<span·class="nv">off</span>·<span·class="cp">%}</span>311 <span·class="cp">{%</span>·<span·class="k">localtime</span>·<span·class="nv">off</span>·<span·class="cp">%}</span>
311 ····<span·class="cp">{{</span>·<span·class="nv">value</span>·<span·class="cp">}}</span>312 ····<span·class="cp">{{</span>·<span·class="nv">value</span>·<span·class="cp">}}</span>
312 <span·class="cp">{%</span>·<span·class="k">endlocaltime</span>·<span·class="cp">%}</span>313 <span·class="cp">{%</span>·<span·class="k">endlocaltime</span>·<span·class="cp">%}</span>
Max diff block lines reached; 6301/17026 bytes (37.01%) of diff not shown.
10.3 KB
html2text {}
Max HTML report size reached
76.8 KB
./usr/share/doc/python-django-doc/html/topics/i18n/translation.html
Max HTML report size reached
6.78 KB
./usr/share/doc/python-django-doc/html/topics/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Using·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Using·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="How·to·install·Django"·href="install.html"·/>15 ····<link·rel="next"·title="How·to·install·Django"·href="install.html"·/>
15 ····<link·rel="prev"·title="Writing·your·first·patch·for·Django"·href="../intro/contributing.html"·/>16 ····<link·rel="prev"·title="Writing·your·first·patch·for·Django"·href="../intro/contributing.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 25 lines modifiedOffset 54, 25 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
66 ····&laquo;·<a·href="../intro/contributing.html"·title="Writing·your·first·patch·for·Django">previous</a>67 ····&laquo;·<a·href="../intro/contributing.html"·title="Writing·your·first·patch·for·Django">previous</a>
67 ·····|68 ·····|
68 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>69 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
69 ···|70 ···|
70 ····<a·href="install.html"·title="How·to·install·Django">next</a>·&raquo;</div>71 ····<a·href="install.html"·title="How·to·install·Django">next</a>·&raquo;</div>
71 ····</div>72 ····</div>
  
72 ····<div·id="bd">73 ····<div·id="bd">
73 ······<div·id="yui-main">74 ······<div·id="yui-main">
74 ········<div·class="yui-b">75 ········<div·class="yui-b">
Offset 310, 47 lines modifiedOffset 311, 47 lines modified
310 ······311 ······
311 ········312 ········
312 ··········<div·class="yui-b"·id="sidebar">313 ··········<div·class="yui-b"·id="sidebar">
313 ············314 ············
314 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">315 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
315 ········<div·class="sphinxsidebarwrapper">316 ········<div·class="sphinxsidebarwrapper">
316 ··<div>317 ··<div>
317 ····<h4>Previous·topic</h4>318 ····<h4>Argomento·precedente</h4>
318 ····<p·class="topless"><a·href="../intro/contributing.html"319 ····<p·class="topless"><a·href="../intro/contributing.html"
319 ··························title="previous·chapter">Writing·your·first·patch·for·Django</a></p>320 ··························title="capitolo·precedente">Writing·your·first·patch·for·Django</a></p>
320 ··</div>321 ··</div>
321 ··<div>322 ··<div>
322 ····<h4>Next·topic</h4>323 ····<h4>Argomento·successivo</h4>
323 ····<p·class="topless"><a·href="install.html"324 ····<p·class="topless"><a·href="install.html"
324 ··························title="next·chapter">How·to·install·Django</a></p>325 ··························title="capitolo·successivo">How·to·install·Django</a></p>
325 ··</div>326 ··</div>
326 <search·id="searchbox"·style="display:·none"·role="search">327 <search·id="searchbox"·style="display:·none"·role="search">
327 ··<h3·id="searchlabel">Quick·search</h3>328 ··<h3·id="searchlabel">Ricerca·veloce</h3>
328 ····<div·class="searchformwrapper">329 ····<div·class="searchformwrapper">
329 ····<form·class="search"·action="../search.html"·method="get">330 ····<form·class="search"·action="../search.html"·method="get">
330 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>331 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
331 ······<input·type="submit"·value="Go"·/>332 ······<input·type="submit"·value="Vai"·/>
332 ····</form>333 ····</form>
333 ····</div>334 ····</div>
334 </search>335 </search>
335 <script>document.getElementById('searchbox').style.display·=·"block"</script>336 <script>document.getElementById('searchbox').style.display·=·"block"</script>
336 ········</div>337 ········</div>
337 ······</div>338 ······</div>
338 ··············<h3>Last·update:</h3>339 ··············<h3>Last·update:</h3>
339 ··············<p·class="topless">Sep·03,·2024</p>340 ··············<p·class="topless">set·03,·2024</p>
340 ··········</div>341 ··········</div>
341 ········342 ········
342 ······343 ······
343 ····</div>344 ····</div>
  
344 ····<div·id="ft">345 ····<div·id="ft">
345 ······<div·class="nav">346 ······<div·class="nav">
346 ····&laquo;·<a·href="../intro/contributing.html"·title="Writing·your·first·patch·for·Django">previous</a>347 ····&laquo;·<a·href="../intro/contributing.html"·title="Writing·your·first·patch·for·Django">previous</a>
347 ·····|348 ·····|
348 ····<a·title="Django·4.2.16·documentation"·href="../index.html"·accesskey="U">up</a>349 ····<a·title="Documentazione·Django·4.2.16·"·href="../index.html"·accesskey="U">up</a>
349 ···|350 ···|
350 ····<a·href="install.html"·title="How·to·install·Django">next</a>·&raquo;</div>351 ····<a·href="install.html"·title="How·to·install·Django">next</a>·&raquo;</div>
351 ····</div>352 ····</div>
352 ··</div>353 ··</div>
  
353 ······<div·class="clearer"></div>354 ······<div·class="clearer"></div>
354 ····</div>355 ····</div>
2.04 KB
html2text {}
Max HTML report size reached
6.04 KB
./usr/share/doc/python-django-doc/html/topics/install.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>How·to·install·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>How·to·install·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Models·and·databases"·href="db/index.html"·/>15 ····<link·rel="next"·title="Models·and·databases"·href="db/index.html"·/>
15 ····<link·rel="prev"·title="Using·Django"·href="index.html"·/>16 ····<link·rel="prev"·title="Using·Django"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 66, 15 lines modifiedOffset 67, 15 lines modified
66 })(jQuery);</script>67 })(jQuery);</script>
67 <link·rel="stylesheet"·href="../_static/console-tabs.css">68 <link·rel="stylesheet"·href="../_static/console-tabs.css">
68 ··</head><body>69 ··</head><body>
  
69 ····<div·class="document">70 ····<div·class="document">
70 ··<div·id="custom-doc"·class="yui-t6">71 ··<div·id="custom-doc"·class="yui-t6">
71 ····<div·id="hd">72 ····<div·id="hd">
72 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>73 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
73 ······<div·id="global-nav">74 ······<div·id="global-nav">
74 ········<a·title="Home·page"·href="../index.html">Home</a>··|75 ········<a·title="Home·page"·href="../index.html">Home</a>··|
75 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|76 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
76 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|77 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
77 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>78 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
78 ······</div>79 ······</div>
79 ······<div·class="nav">80 ······<div·class="nav">
Offset 313, 37 lines modifiedOffset 314, 37 lines modified
313 </li>314 </li>
314 </ul>315 </ul>
315 </li>316 </li>
316 </ul>317 </ul>
  
317 ··</div>318 ··</div>
318 ··<div>319 ··<div>
319 ····<h4>Previous·topic</h4>320 ····<h4>Argomento·precedente</h4>
320 ····<p·class="topless"><a·href="index.html"321 ····<p·class="topless"><a·href="index.html"
321 ··························title="previous·chapter">Using·Django</a></p>322 ··························title="capitolo·precedente">Using·Django</a></p>
322 ··</div>323 ··</div>
323 ··<div>324 ··<div>
324 ····<h4>Next·topic</h4>325 ····<h4>Argomento·successivo</h4>
325 ····<p·class="topless"><a·href="db/index.html"326 ····<p·class="topless"><a·href="db/index.html"
326 ··························title="next·chapter">Models·and·databases</a></p>327 ··························title="capitolo·successivo">Models·and·databases</a></p>
327 ··</div>328 ··</div>
328 <search·id="searchbox"·style="display:·none"·role="search">329 <search·id="searchbox"·style="display:·none"·role="search">
329 ··<h3·id="searchlabel">Quick·search</h3>330 ··<h3·id="searchlabel">Ricerca·veloce</h3>
330 ····<div·class="searchformwrapper">331 ····<div·class="searchformwrapper">
331 ····<form·class="search"·action="../search.html"·method="get">332 ····<form·class="search"·action="../search.html"·method="get">
332 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>333 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
333 ······<input·type="submit"·value="Go"·/>334 ······<input·type="submit"·value="Vai"·/>
334 ····</form>335 ····</form>
335 ····</div>336 ····</div>
336 </search>337 </search>
337 <script>document.getElementById('searchbox').style.display·=·"block"</script>338 <script>document.getElementById('searchbox').style.display·=·"block"</script>
338 ········</div>339 ········</div>
339 ······</div>340 ······</div>
340 ··············<h3>Last·update:</h3>341 ··············<h3>Last·update:</h3>
341 ··············<p·class="topless">Sep·03,·2024</p>342 ··············<p·class="topless">set·03,·2024</p>
342 ··········</div>343 ··········</div>
343 ········344 ········
344 ······345 ······
345 ····</div>346 ····</div>
  
346 ····<div·id="ft">347 ····<div·id="ft">
347 ······<div·class="nav">348 ······<div·class="nav">
2.36 KB
html2text {}
Max HTML report size reached
8.63 KB
./usr/share/doc/python-django-doc/html/topics/logging.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Logging·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Logging·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Pagination"·href="pagination.html"·/>15 ····<link·rel="next"·title="Pagination"·href="pagination.html"·/>
15 ····<link·rel="prev"·title="Time·zones"·href="i18n/timezones.html"·/>16 ····<link·rel="prev"·title="Time·zones"·href="i18n/timezones.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-logging">79 ··········<div·class="yui-g"·id="topics-logging">
79 ············80 ············
80 ··<section·id="s-logging">81 ··<section·id="s-logging">
81 <span·id="s-logging-explanation"></span><span·id="logging"></span><span·id="logging-explanation"></span><h1>Logging<a·class="headerlink"·href="#logging"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-logging-explanation"></span><span·id="logging"></span><span·id="logging-explanation"></span><h1>Logging<a·class="headerlink"·href="#logging"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·seealso">83 <div·class="admonition·seealso">
83 <p·class="admonition-title">See·also</p>84 <p·class="admonition-title">Vedi·anche</p>
84 <ul·class="simple">85 <ul·class="simple">
85 <li><p><a·class="reference·internal"·href="../howto/logging.html#logging-how-to"><span·class="std·std-ref">How·to·configure·and·use·logging</span></a></p></li>86 <li><p><a·class="reference·internal"·href="../howto/logging.html#logging-how-to"><span·class="std·std-ref">How·to·configure·and·use·logging</span></a></p></li>
86 <li><p><a·class="reference·internal"·href="../ref/logging.html#logging-ref"><span·class="std·std-ref">Django·logging·reference</span></a></p></li>87 <li><p><a·class="reference·internal"·href="../ref/logging.html#logging-ref"><span·class="std·std-ref">Django·logging·reference</span></a></p></li>
87 </ul>88 </ul>
88 </div>89 </div>
89 <p>Python·programmers·will·often·use·<code·class="docutils·literal·notranslate"><span·class="pre">print()</span></code>·in·their·code·as·a·quick·and90 <p>Python·programmers·will·often·use·<code·class="docutils·literal·notranslate"><span·class="pre">print()</span></code>·in·their·code·as·a·quick·and
90 convenient·debugging·tool.·Using·the·logging·framework·is·only·a·little·more91 convenient·debugging·tool.·Using·the·logging·framework·is·only·a·little·more
Offset 384, 15 lines modifiedOffset 385, 15 lines modified
384 ····<span·class="p">},</span>385 ····<span·class="p">},</span>
385 <span·class="p">}</span>386 <span·class="p">}</span>
386 </pre></div>387 </pre></div>
387 </div>388 </div>
388 </div>389 </div>
389 <p>This·logging·configuration·does·the·following·things:</p>390 <p>This·logging·configuration·does·the·following·things:</p>
390 <ul>391 <ul>
391 <li><p>Identifies·the·configuration·as·being·in·dictConfig·version·1392 <li><p>Identifies·the·configuration·as·being·in·dictConfig·version·1
392 format.·At·present,·this·is·the·only·dictConfig·format·version.</p></li>393 format.·At·present,·this·is·the·only·dictConfig·format·version.</p></li>
393 <li><p>Defines·two·formatters:</p>394 <li><p>Defines·two·formatters:</p>
394 <ul>395 <ul>
395 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">simple</span></code>,·that·outputs·the·log·level·name·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>)·and·the·log396 <li><p><code·class="docutils·literal·notranslate"><span·class="pre">simple</span></code>,·that·outputs·the·log·level·name·(e.g.,·<code·class="docutils·literal·notranslate"><span·class="pre">DEBUG</span></code>)·and·the·log
396 message.</p>397 message.</p>
397 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">format</span></code>·string·is·a·normal·Python·formatting·string398 <p>The·<code·class="docutils·literal·notranslate"><span·class="pre">format</span></code>·string·is·a·normal·Python·formatting·string
398 describing·the·details·that·are·to·be·output·on·each·logging399 describing·the·details·that·are·to·be·output·on·each·logging
Offset 521, 37 lines modifiedOffset 522, 37 lines modified
521 </li>522 </li>
522 </ul>523 </ul>
523 </li>524 </li>
524 </ul>525 </ul>
  
525 ··</div>526 ··</div>
526 ··<div>527 ··<div>
527 ····<h4>Previous·topic</h4>528 ····<h4>Argomento·precedente</h4>
528 ····<p·class="topless"><a·href="i18n/timezones.html"529 ····<p·class="topless"><a·href="i18n/timezones.html"
529 ··························title="previous·chapter">Time·zones</a></p>530 ··························title="capitolo·precedente">Time·zones</a></p>
530 ··</div>531 ··</div>
531 ··<div>532 ··<div>
532 ····<h4>Next·topic</h4>533 ····<h4>Argomento·successivo</h4>
533 ····<p·class="topless"><a·href="pagination.html"534 ····<p·class="topless"><a·href="pagination.html"
534 ··························title="next·chapter">Pagination</a></p>535 ··························title="capitolo·successivo">Pagination</a></p>
535 ··</div>536 ··</div>
536 <search·id="searchbox"·style="display:·none"·role="search">537 <search·id="searchbox"·style="display:·none"·role="search">
537 ··<h3·id="searchlabel">Quick·search</h3>538 ··<h3·id="searchlabel">Ricerca·veloce</h3>
538 ····<div·class="searchformwrapper">539 ····<div·class="searchformwrapper">
539 ····<form·class="search"·action="../search.html"·method="get">540 ····<form·class="search"·action="../search.html"·method="get">
540 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>541 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
541 ······<input·type="submit"·value="Go"·/>542 ······<input·type="submit"·value="Vai"·/>
542 ····</form>543 ····</form>
543 ····</div>544 ····</div>
544 </search>545 </search>
545 <script>document.getElementById('searchbox').style.display·=·"block"</script>546 <script>document.getElementById('searchbox').style.display·=·"block"</script>
546 ········</div>547 ········</div>
547 ······</div>548 ······</div>
548 ··············<h3>Last·update:</h3>549 ··············<h3>Last·update:</h3>
549 ··············<p·class="topless">Sep·03,·2024</p>550 ··············<p·class="topless">set·03,·2024</p>
550 ··········</div>551 ··········</div>
551 ········552 ········
552 ······553 ······
553 ····</div>554 ····</div>
  
554 ····<div·id="ft">555 ····<div·id="ft">
555 ······<div·class="nav">556 ······<div·class="nav">
3.17 KB
html2text {}
Max HTML report size reached
44.2 KB
./usr/share/doc/python-django-doc/html/topics/migrations.html
Max HTML report size reached
10.2 KB
./usr/share/doc/python-django-doc/html/topics/pagination.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Pagination·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Pagination·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Security·in·Django"·href="security.html"·/>15 ····<link·rel="next"·title="Security·in·Django"·href="security.html"·/>
15 ····<link·rel="prev"·title="Logging"·href="logging.html"·/>16 ····<link·rel="prev"·title="Logging"·href="logging.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-pagination">79 ··········<div·class="yui-g"·id="topics-pagination">
79 ············80 ············
80 ··<section·id="s-pagination">81 ··<section·id="s-pagination">
81 <span·id="pagination"></span><h1>Pagination<a·class="headerlink"·href="#pagination"·title="Link·to·this·heading">¶</a></h1>82 <span·id="pagination"></span><h1>Pagination<a·class="headerlink"·href="#pagination"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·provides·high-level·and·low-level·ways·to·help·you·manage·paginated·data83 <p>Django·provides·high-level·and·low-level·ways·to·help·you·manage·paginated·data
83 ·that·is,·data·that’s·split·across·several·pages,·with·Previous/Next·links.</p>84 ·that·is,·data·that’s·split·across·several·pages,·with·«Previous/Next»·links.</p>
84 <section·id="s-the-paginator-class">85 <section·id="s-the-paginator-class">
85 <span·id="the-paginator-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·class<a·class="headerlink"·href="#the-paginator-class"·title="Link·to·this·heading">¶</a></h2>86 <span·id="the-paginator-class"></span><h2>The·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·class<a·class="headerlink"·href="#the-paginator-class"·title="Link·to·this·heading">¶</a></h2>
86 <p>Under·the·hood,·all·methods·of·pagination·use·the87 <p>Under·the·hood,·all·methods·of·pagination·use·the
87 <a·class="reference·internal"·href="../ref/paginator.html#django.core.paginator.Paginator"·title="django.core.paginator.Paginator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Paginator</span></code></a>·class.·It·does·all·the·heavy·lifting88 <a·class="reference·internal"·href="../ref/paginator.html#django.core.paginator.Paginator"·title="django.core.paginator.Paginator"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Paginator</span></code></a>·class.·It·does·all·the·heavy·lifting
88 of·actually·splitting·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·into·<a·class="reference·internal"·href="../ref/paginator.html#django.core.paginator.Page"·title="django.core.paginator.Page"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Page</span></code></a>89 of·actually·splitting·a·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·into·<a·class="reference·internal"·href="../ref/paginator.html#django.core.paginator.Page"·title="django.core.paginator.Page"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">Page</span></code></a>
89 objects.</p>90 objects.</p>
90 </section>91 </section>
Offset 139, 15 lines modifiedOffset 140, 15 lines modified
139 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p</span><span·class="o">.</span><span·class="n">page</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">)</span>140 <span·class="gp">&gt;&gt;&gt;·</span><span·class="n">p</span><span·class="o">.</span><span·class="n">page</span><span·class="p">(</span><span·class="mi">3</span><span·class="p">)</span>
140 <span·class="gt">Traceback·(most·recent·call·last):</span>141 <span·class="gt">Traceback·(most·recent·call·last):</span>
141 <span·class="c">...</span>142 <span·class="c">...</span>
142 <span·class="gr">EmptyPage</span>:·<span·class="n">That·page·contains·no·results</span>143 <span·class="gr">EmptyPage</span>:·<span·class="n">That·page·contains·no·results</span>
143 </pre></div>144 </pre></div>
144 </div>145 </div>
145 <div·class="admonition·note">146 <div·class="admonition·note">
146 <p·class="admonition-title">Note</p>147 <p·class="admonition-title">Nota</p>
147 <p>Note·that·you·can·give·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·a·list/tuple,·a·Django·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>,148 <p>Note·that·you·can·give·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·a·list/tuple,·a·Django·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>,
148 or·any·other·object·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">__len__()</span></code>·method.·When149 or·any·other·object·with·a·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·or·<code·class="docutils·literal·notranslate"><span·class="pre">__len__()</span></code>·method.·When
149 determining·the·number·of·objects·contained·in·the·passed·object,150 determining·the·number·of·objects·contained·in·the·passed·object,
150 <code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·will·first·try·calling·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>,·then·fallback·to·using151 <code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·will·first·try·calling·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>,·then·fallback·to·using
151 <code·class="docutils·literal·notranslate"><span·class="pre">len()</span></code>·if·the·passed·object·has·no·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·method.·This·allows152 <code·class="docutils·literal·notranslate"><span·class="pre">len()</span></code>·if·the·passed·object·has·no·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·method.·This·allows
152 objects·such·as·Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·to·use·a·more·efficient·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>153 objects·such·as·Django’s·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·to·use·a·more·efficient·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>
153 method·when·available.</p>154 method·when·available.</p>
Offset 242, 37 lines modifiedOffset 243, 37 lines modified
242 <li><a·class="reference·internal"·href="#using-paginator-in-a-view-function">Using·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·in·a·view·function</a></li>243 <li><a·class="reference·internal"·href="#using-paginator-in-a-view-function">Using·<code·class="docutils·literal·notranslate"><span·class="pre">Paginator</span></code>·in·a·view·function</a></li>
243 </ul>244 </ul>
244 </li>245 </li>
245 </ul>246 </ul>
  
246 ··</div>247 ··</div>
247 ··<div>248 ··<div>
248 ····<h4>Previous·topic</h4>249 ····<h4>Argomento·precedente</h4>
249 ····<p·class="topless"><a·href="logging.html"250 ····<p·class="topless"><a·href="logging.html"
250 ··························title="previous·chapter">Logging</a></p>251 ··························title="capitolo·precedente">Logging</a></p>
251 ··</div>252 ··</div>
252 ··<div>253 ··<div>
253 ····<h4>Next·topic</h4>254 ····<h4>Argomento·successivo</h4>
254 ····<p·class="topless"><a·href="security.html"255 ····<p·class="topless"><a·href="security.html"
255 ··························title="next·chapter">Security·in·Django</a></p>256 ··························title="capitolo·successivo">Security·in·Django</a></p>
256 ··</div>257 ··</div>
257 <search·id="searchbox"·style="display:·none"·role="search">258 <search·id="searchbox"·style="display:·none"·role="search">
258 ··<h3·id="searchlabel">Quick·search</h3>259 ··<h3·id="searchlabel">Ricerca·veloce</h3>
259 ····<div·class="searchformwrapper">260 ····<div·class="searchformwrapper">
260 ····<form·class="search"·action="../search.html"·method="get">261 ····<form·class="search"·action="../search.html"·method="get">
261 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>262 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
262 ······<input·type="submit"·value="Go"·/>263 ······<input·type="submit"·value="Vai"·/>
263 ····</form>264 ····</form>
264 ····</div>265 ····</div>
265 </search>266 </search>
266 <script>document.getElementById('searchbox').style.display·=·"block"</script>267 <script>document.getElementById('searchbox').style.display·=·"block"</script>
267 ········</div>268 ········</div>
268 ······</div>269 ······</div>
269 ··············<h3>Last·update:</h3>270 ··············<h3>Last·update:</h3>
270 ··············<p·class="topless">Sep·03,·2024</p>271 ··············<p·class="topless">set·03,·2024</p>
271 ··········</div>272 ··········</div>
272 ········273 ········
273 ······274 ······
274 ····</div>275 ····</div>
  
275 ····<div·id="ft">276 ····<div·id="ft">
276 ······<div·class="nav">277 ······<div·class="nav">
3.27 KB
html2text {}
Max HTML report size reached
27.4 KB
./usr/share/doc/python-django-doc/html/topics/performance.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Performance·and·optimization·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Performance·and·optimization·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Serializing·Django·objects"·href="serialization.html"·/>15 ····<link·rel="next"·title="Serializing·Django·objects"·href="serialization.html"·/>
15 ····<link·rel="prev"·title="Security·in·Django"·href="security.html"·/>16 ····<link·rel="prev"·title="Security·in·Django"·href="security.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 91, 15 lines modifiedOffset 92, 15 lines modified
91 of·things·-·to·improve·the·code’s·performance·without,·or·only·minimally,92 of·things·-·to·improve·the·code’s·performance·without,·or·only·minimally,
92 affecting·its·behavior.</p>93 affecting·its·behavior.</p>
93 </section>94 </section>
94 <section·id="s-general-approaches">95 <section·id="s-general-approaches">
95 <span·id="general-approaches"></span><h2>General·approaches<a·class="headerlink"·href="#general-approaches"·title="Link·to·this·heading">¶</a></h2>96 <span·id="general-approaches"></span><h2>General·approaches<a·class="headerlink"·href="#general-approaches"·title="Link·to·this·heading">¶</a></h2>
96 <section·id="s-what-are-you-optimizing-for">97 <section·id="s-what-are-you-optimizing-for">
97 <span·id="what-are-you-optimizing-for"></span><h3>What·are·you·optimizing·<em>for</em>?<a·class="headerlink"·href="#what-are-you-optimizing-for"·title="Link·to·this·heading">¶</a></h3>98 <span·id="what-are-you-optimizing-for"></span><h3>What·are·you·optimizing·<em>for</em>?<a·class="headerlink"·href="#what-are-you-optimizing-for"·title="Link·to·this·heading">¶</a></h3>
98 <p>It’s·important·to·have·a·clear·idea·what·you·mean·by·performance.·There·is99 <p>It’s·important·to·have·a·clear·idea·what·you·mean·by·performance.·There·is
99 not·just·one·metric·of·it.</p>100 not·just·one·metric·of·it.</p>
100 <p>Improved·speed·might·be·the·most·obvious·aim·for·a·program,·but·sometimes·other101 <p>Improved·speed·might·be·the·most·obvious·aim·for·a·program,·but·sometimes·other
101 performance·improvements·might·be·sought,·such·as·lower·memory·consumption·or102 performance·improvements·might·be·sought,·such·as·lower·memory·consumption·or
102 fewer·demands·on·the·database·or·network.</p>103 fewer·demands·on·the·database·or·network.</p>
103 <p>Improvements·in·one·area·will·often·bring·about·improved·performance·in104 <p>Improvements·in·one·area·will·often·bring·about·improved·performance·in
104 another,·but·not·always;·sometimes·one·can·even·be·at·the·expense·of·another.105 another,·but·not·always;·sometimes·one·can·even·be·at·the·expense·of·another.
105 For·example,·an·improvement·in·a·program’s·speed·might·cause·it·to·use·more106 For·example,·an·improvement·in·a·program’s·speed·might·cause·it·to·use·more
Offset 148, 15 lines modifiedOffset 149, 15 lines modified
148 <span·id="get-things-right-from-the-start"></span><h3>Get·things·right·from·the·start<a·class="headerlink"·href="#get-things-right-from-the-start"·title="Link·to·this·heading">¶</a></h3>149 <span·id="get-things-right-from-the-start"></span><h3>Get·things·right·from·the·start<a·class="headerlink"·href="#get-things-right-from-the-start"·title="Link·to·this·heading">¶</a></h3>
149 <p>Some·work·in·optimization·involves·tackling·performance·shortcomings,·but·some150 <p>Some·work·in·optimization·involves·tackling·performance·shortcomings,·but·some
150 of·the·work·can·be·built-in·to·what·you’d·do·anyway,·as·part·of·the·good151 of·the·work·can·be·built-in·to·what·you’d·do·anyway,·as·part·of·the·good
151 practices·you·should·adopt·even·before·you·start·thinking·about·improving152 practices·you·should·adopt·even·before·you·start·thinking·about·improving
152 performance.</p>153 performance.</p>
153 <p>In·this·respect·Python·is·an·excellent·language·to·work·with,·because·solutions154 <p>In·this·respect·Python·is·an·excellent·language·to·work·with,·because·solutions
154 that·look·elegant·and·feel·right·usually·are·the·best·performing·ones.·As·with155 that·look·elegant·and·feel·right·usually·are·the·best·performing·ones.·As·with
155 most·skills,·learning·what·looks·right·takes·practice,·but·one·of·the·most156 most·skills,·learning·what·«looks·right»·takes·practice,·but·one·of·the·most
156 useful·guidelines·is:</p>157 useful·guidelines·is:</p>
157 <section·id="s-work-at-the-appropriate-level">158 <section·id="s-work-at-the-appropriate-level">
158 <span·id="work-at-the-appropriate-level"></span><h4>Work·at·the·appropriate·level<a·class="headerlink"·href="#work-at-the-appropriate-level"·title="Link·to·this·heading">¶</a></h4>159 <span·id="work-at-the-appropriate-level"></span><h4>Work·at·the·appropriate·level<a·class="headerlink"·href="#work-at-the-appropriate-level"·title="Link·to·this·heading">¶</a></h4>
159 <p>Django·offers·many·different·ways·of·approaching·things,·but·just·because·it’s160 <p>Django·offers·many·different·ways·of·approaching·things,·but·just·because·it’s
160 possible·to·do·something·in·a·certain·way·doesn’t·mean·that·it’s·the·most161 possible·to·do·something·in·a·certain·way·doesn’t·mean·that·it’s·the·most
161 appropriate·way·to·do·it.·For·example,·you·might·find·that·you·could·calculate162 appropriate·way·to·do·it.·For·example,·you·might·find·that·you·could·calculate
162 the·same·thing·-·the·number·of·items·in·a·collection,·perhaps·-·in·a163 the·same·thing·-·the·number·of·items·in·a·collection,·perhaps·-·in·a
Offset 183, 15 lines modifiedOffset 184, 15 lines modified
183 <span·class="cm">--&gt;</span>184 <span·class="cm">--&gt;</span>
184 <span·class="cp">{{</span>·<span·class="nv">my_bicycles</span><span·class="o">|</span><span·class="nf">length</span>·<span·class="cp">}}</span>185 <span·class="cp">{{</span>·<span·class="nv">my_bicycles</span><span·class="o">|</span><span·class="nf">length</span>·<span·class="cp">}}</span>
185 </pre></div>186 </pre></div>
186 </div>187 </div>
187 <p>Generally·speaking,·the·most·appropriate·level·for·the·job·is·the·lowest-level188 <p>Generally·speaking,·the·most·appropriate·level·for·the·job·is·the·lowest-level
188 one·that·it·is·comfortable·to·code·for.</p>189 one·that·it·is·comfortable·to·code·for.</p>
189 <div·class="admonition·note">190 <div·class="admonition·note">
190 <p·class="admonition-title">Note</p>191 <p·class="admonition-title">Nota</p>
191 <p>The·example·above·is·merely·illustrative.</p>192 <p>The·example·above·is·merely·illustrative.</p>
192 <p>Firstly,·in·a·real-life·case·you·need·to·consider·what·is·happening·before193 <p>Firstly,·in·a·real-life·case·you·need·to·consider·what·is·happening·before
193 and·after·your·count·to·work·out·what’s·an·optimal·way·of·doing·it·<em>in·that194 and·after·your·count·to·work·out·what’s·an·optimal·way·of·doing·it·<em>in·that
194 particular·context</em>.·The·database·optimization·documents·describes·<a·class="reference·internal"·href="db/optimization.html#overuse-of-count-and-exists"><span·class="std·std-ref">a195 particular·context</em>.·The·database·optimization·documents·describes·<a·class="reference·internal"·href="db/optimization.html#overuse-of-count-and-exists"><span·class="std·std-ref">a
195 case·where·counting·in·the·template·would·be·better</span></a>.</p>196 case·where·counting·in·the·template·would·be·better</span></a>.</p>
196 <p>Secondly,·there·are·other·options·to·consider:·in·a·real-life·case,·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>197 <p>Secondly,·there·are·other·options·to·consider:·in·a·real-life·case,·<code·class="docutils·literal·notranslate"><span·class="pre">{{</span>
197 <span·class="pre">my_bicycles.count</span>·<span·class="pre">}}</span></code>,·which·invokes·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·method198 <span·class="pre">my_bicycles.count</span>·<span·class="pre">}}</span></code>,·which·invokes·the·<code·class="docutils·literal·notranslate"><span·class="pre">QuerySet</span></code>·<code·class="docutils·literal·notranslate"><span·class="pre">count()</span></code>·method
Offset 319, 24 lines modifiedOffset 320, 24 lines modified
319 </section>320 </section>
320 <section·id="s-static-files">321 <section·id="s-static-files">
321 <span·id="static-files"></span><h3>Static·files<a·class="headerlink"·href="#static-files"·title="Link·to·this·heading">¶</a></h3>322 <span·id="static-files"></span><h3>Static·files<a·class="headerlink"·href="#static-files"·title="Link·to·this·heading">¶</a></h3>
322 <p>Static·files,·which·by·definition·are·not·dynamic,·make·an·excellent·target·for323 <p>Static·files,·which·by·definition·are·not·dynamic,·make·an·excellent·target·for
323 optimization·gains.</p>324 optimization·gains.</p>
324 <section·id="s-manifeststaticfilesstorage">325 <section·id="s-manifeststaticfilesstorage">
325 <span·id="manifeststaticfilesstorage"></span><h4><a·class="reference·internal"·href="../ref/contrib/staticfiles.html#django.contrib.staticfiles.storage.ManifestStaticFilesStorage"·title="django.contrib.staticfiles.storage.ManifestStaticFilesStorage"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a><a·class="headerlink"·href="#manifeststaticfilesstorage"·title="Link·to·this·heading">¶</a></h4>326 <span·id="manifeststaticfilesstorage"></span><h4><a·class="reference·internal"·href="../ref/contrib/staticfiles.html#django.contrib.staticfiles.storage.ManifestStaticFilesStorage"·title="django.contrib.staticfiles.storage.ManifestStaticFilesStorage"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a><a·class="headerlink"·href="#manifeststaticfilesstorage"·title="Link·to·this·heading">¶</a></h4>
326 <p>By·taking·advantage·of·web·browsers·caching·abilities,·you·can327 <p>By·taking·advantage·of·web·browsers·caching·abilities,·you·can
327 eliminate·network·hits·entirely·for·a·given·file·after·the·initial·download.</p>328 eliminate·network·hits·entirely·for·a·given·file·after·the·initial·download.</p>
328 <p><a·class="reference·internal"·href="../ref/contrib/staticfiles.html#django.contrib.staticfiles.storage.ManifestStaticFilesStorage"·title="django.contrib.staticfiles.storage.ManifestStaticFilesStorage"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a>·appends·a329 <p><a·class="reference·internal"·href="../ref/contrib/staticfiles.html#django.contrib.staticfiles.storage.ManifestStaticFilesStorage"·title="django.contrib.staticfiles.storage.ManifestStaticFilesStorage"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">ManifestStaticFilesStorage</span></code></a>·appends·a
329 content-dependent·tag·to·the·filenames·of·<a·class="reference·internal"·href="../ref/contrib/staticfiles.html"><span·class="doc">static·files</span></a>·to·make·it·safe·for·browsers·to·cache·them330 content-dependent·tag·to·the·filenames·of·<a·class="reference·internal"·href="../ref/contrib/staticfiles.html"><span·class="doc">static·files</span></a>·to·make·it·safe·for·browsers·to·cache·them
330 long-term·without·missing·future·changes·-·when·a·file·changes,·so·will·the331 long-term·without·missing·future·changes·-·when·a·file·changes,·so·will·the
331 tag,·so·browsers·will·reload·the·asset·automatically.</p>332 tag,·so·browsers·will·reload·the·asset·automatically.</p>
332 </section>333 </section>
333 <section·id="s-minification">334 <section·id="s-minification">
334 <span·id="minification"></span><h4>Minification<a·class="headerlink"·href="#minification"·title="Link·to·this·heading">¶</a></h4>335 <span·id="minification"></span><h4>«Minification»<a·class="headerlink"·href="#minification"·title="Link·to·this·heading">¶</a></h4>
335 <p>Several·third-party·Django·tools·and·packages·provide·the·ability·to·minify336 <p>Several·third-party·Django·tools·and·packages·provide·the·ability·to·«minify»
336 HTML,·CSS,·and·JavaScript.·They·remove·unnecessary·whitespace,·newlines,·and337 HTML,·CSS,·and·JavaScript.·They·remove·unnecessary·whitespace,·newlines,·and
337 comments,·and·shorten·variable·names,·and·thus·reduce·the·size·of·the·documents338 comments,·and·shorten·variable·names,·and·thus·reduce·the·size·of·the·documents
338 that·your·site·publishes.</p>339 that·your·site·publishes.</p>
339 </section>340 </section>
340 </section>341 </section>
341 </section>342 </section>
342 <section·id="s-template-performance">343 <section·id="s-template-performance">
Offset 360, 15 lines modifiedOffset 361, 15 lines modified
360 versions·of·the·software·that·you’re·using·are·available.</p>361 versions·of·the·software·that·you’re·using·are·available.</p>
361 <p>These·techniques·are·targeted·at·more·advanced·users·who·want·to·push·the362 <p>These·techniques·are·targeted·at·more·advanced·users·who·want·to·push·the
362 boundaries·of·performance·of·an·already·well-optimized·Django·site.</p>363 boundaries·of·performance·of·an·already·well-optimized·Django·site.</p>
363 <p>However,·they·are·not·magic·solutions·to·performance·problems,·and·they’re364 <p>However,·they·are·not·magic·solutions·to·performance·problems,·and·they’re
364 unlikely·to·bring·better·than·marginal·gains·to·sites·that·don’t·already·do·the365 unlikely·to·bring·better·than·marginal·gains·to·sites·that·don’t·already·do·the
365 more·basic·things·the·right·way.</p>366 more·basic·things·the·right·way.</p>
366 <div·class="admonition·note">367 <div·class="admonition·note">
367 <p·class="admonition-title">Note</p>368 <p·class="admonition-title">Nota</p>
368 <p>It’s·worth·repeating:·<strong>reaching·for·alternatives·to·software·you’re369 <p>It’s·worth·repeating:·<strong>reaching·for·alternatives·to·software·you’re
369 already·using·is·never·the·first·answer·to·performance·problems</strong>.·When370 already·using·is·never·the·first·answer·to·performance·problems</strong>.·When
370 you·reach·this·level·of·optimization,·you·need·a·formal·benchmarking371 you·reach·this·level·of·optimization,·you·need·a·formal·benchmarking
371 solution.</p>372 solution.</p>
372 </div>373 </div>
373 <section·id="s-newer-is-often-but-not-always-better">374 <section·id="s-newer-is-often-but-not-always-better">
Max diff block lines reached; 5573/15086 bytes (36.94%) of diff not shown.
12.5 KB
html2text {}
Max HTML report size reached
17.9 KB
./usr/share/doc/python-django-doc/html/topics/security.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Security·in·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Security·in·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Performance·and·optimization"·href="performance.html"·/>15 ····<link·rel="next"·title="Performance·and·optimization"·href="performance.html"·/>
15 ····<link·rel="prev"·title="Pagination"·href="pagination.html"·/>16 ····<link·rel="prev"·title="Pagination"·href="pagination.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 118, 15 lines modifiedOffset 119, 15 lines modified
118 <p>Django·has·built-in·protection·against·most·types·of·CSRF·attacks,·providing·you119 <p>Django·has·built-in·protection·against·most·types·of·CSRF·attacks,·providing·you
119 have·<a·class="reference·internal"·href="../howto/csrf.html#using-csrf"><span·class="std·std-ref">enabled·and·used·it</span></a>·where·appropriate.·However,·as·with120 have·<a·class="reference·internal"·href="../howto/csrf.html#using-csrf"><span·class="std·std-ref">enabled·and·used·it</span></a>·where·appropriate.·However,·as·with
120 any·mitigation·technique,·there·are·limitations.·For·example,·it·is·possible·to121 any·mitigation·technique,·there·are·limitations.·For·example,·it·is·possible·to
121 disable·the·CSRF·module·globally·or·for·particular·views.·You·should·only·do122 disable·the·CSRF·module·globally·or·for·particular·views.·You·should·only·do
122 this·if·you·know·what·you·are·doing.·There·are·other·<a·class="reference·internal"·href="../ref/csrf.html#csrf-limitations"><span·class="std·std-ref">limitations</span></a>·if·your·site·has·subdomains·that·are·outside·of·your123 this·if·you·know·what·you·are·doing.·There·are·other·<a·class="reference·internal"·href="../ref/csrf.html#csrf-limitations"><span·class="std·std-ref">limitations</span></a>·if·your·site·has·subdomains·that·are·outside·of·your
123 control.</p>124 control.</p>
124 <p><a·class="reference·internal"·href="../ref/csrf.html#how-csrf-works"><span·class="std·std-ref">CSRF·protection·works</span></a>·by·checking·for·a·secret·in·each125 <p><a·class="reference·internal"·href="../ref/csrf.html#how-csrf-works"><span·class="std·std-ref">CSRF·protection·works</span></a>·by·checking·for·a·secret·in·each
125 POST·request.·This·ensures·that·a·malicious·user·cannot·replay·a·form·POST·to126 POST·request.·This·ensures·that·a·malicious·user·cannot·«replay»·a·form·POST·to
126 your·website·and·have·another·logged·in·user·unwittingly·submit·that·form.·The127 your·website·and·have·another·logged·in·user·unwittingly·submit·that·form.·The
127 malicious·user·would·have·to·know·the·secret,·which·is·user·specific·(using·a128 malicious·user·would·have·to·know·the·secret,·which·is·user·specific·(using·a
128 cookie).</p>129 cookie).</p>
129 <p>When·deployed·with·<a·class="reference·internal"·href="#security-recommendation-ssl"><span·class="std·std-ref">HTTPS</span></a>,130 <p>When·deployed·with·<a·class="reference·internal"·href="#security-recommendation-ssl"><span·class="std·std-ref">HTTPS</span></a>,
130 <code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·will·check·that·the·HTTP·referer·header·is·set·to·a131 <code·class="docutils·literal·notranslate"><span·class="pre">CsrfViewMiddleware</span></code>·will·check·that·the·HTTP·referer·header·is·set·to·a
131 URL·on·the·same·origin·(including·subdomain·and·port).·Because·HTTPS132 URL·on·the·same·origin·(including·subdomain·and·port).·Because·HTTPS
132 provides·additional·security,·it·is·imperative·to·ensure·connections·use·HTTPS133 provides·additional·security,·it·is·imperative·to·ensure·connections·use·HTTPS
Offset 181, 15 lines modifiedOffset 182, 15 lines modified
181 dangerous!</p></li>182 dangerous!</p></li>
182 <li><p>Set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SECURE_SSL_REDIRECT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECURE_SSL_REDIRECT</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·so·that·requests·over·HTTP183 <li><p>Set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SECURE_SSL_REDIRECT"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECURE_SSL_REDIRECT</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>,·so·that·requests·over·HTTP
183 are·redirected·to·HTTPS.</p>184 are·redirected·to·HTTPS.</p>
184 <p>Please·note·the·caveats·under·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SECURE_PROXY_SSL_HEADER"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECURE_PROXY_SSL_HEADER</span></code></a>.·For·the185 <p>Please·note·the·caveats·under·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SECURE_PROXY_SSL_HEADER"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SECURE_PROXY_SSL_HEADER</span></code></a>.·For·the
185 case·of·a·reverse·proxy,·it·may·be·easier·or·more·secure·to·configure·the186 case·of·a·reverse·proxy,·it·may·be·easier·or·more·secure·to·configure·the
186 main·web·server·to·do·the·redirect·to·HTTPS.</p>187 main·web·server·to·do·the·redirect·to·HTTPS.</p>
187 </li>188 </li>
188 <li><p>Use·secure·cookies.</p>189 <li><p>Use·secure·cookies.</p>
189 <p>If·a·browser·connects·initially·via·HTTP,·which·is·the·default·for·most190 <p>If·a·browser·connects·initially·via·HTTP,·which·is·the·default·for·most
190 browsers,·it·is·possible·for·existing·cookies·to·be·leaked.·For·this·reason,191 browsers,·it·is·possible·for·existing·cookies·to·be·leaked.·For·this·reason,
191 you·should·set·your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_SECURE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SECURE</span></code></a>·and192 you·should·set·your·<a·class="reference·internal"·href="../ref/settings.html#std-setting-SESSION_COOKIE_SECURE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">SESSION_COOKIE_SECURE</span></code></a>·and
192 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_SECURE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SECURE</span></code></a>·settings·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·This·instructs·the·browser193 <a·class="reference·internal"·href="../ref/settings.html#std-setting-CSRF_COOKIE_SECURE"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">CSRF_COOKIE_SECURE</span></code></a>·settings·to·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>.·This·instructs·the·browser
193 to·only·send·these·cookies·over·HTTPS·connections.·Note·that·this·will·mean194 to·only·send·these·cookies·over·HTTPS·connections.·Note·that·this·will·mean
194 that·sessions·will·not·work·over·HTTP,·and·the·CSRF·protection·will·prevent195 that·sessions·will·not·work·over·HTTP,·and·the·CSRF·protection·will·prevent
195 any·POST·data·being·accepted·over·HTTP·(which·will·be·fine·if·you·are196 any·POST·data·being·accepted·over·HTTP·(which·will·be·fine·if·you·are
Offset 217, 15 lines modifiedOffset 218, 15 lines modified
217 <a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·setting·in·the218 <a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·setting·in·the
218 <a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpRequest.get_host"·title="django.http.HttpRequest.get_host"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">django.http.HttpRequest.get_host()</span></code></a>·method.</p>219 <a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpRequest.get_host"·title="django.http.HttpRequest.get_host"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">django.http.HttpRequest.get_host()</span></code></a>·method.</p>
219 <p>This·validation·only·applies·via·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpRequest.get_host"·title="django.http.HttpRequest.get_host"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_host()</span></code></a>;220 <p>This·validation·only·applies·via·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpRequest.get_host"·title="django.http.HttpRequest.get_host"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">get_host()</span></code></a>;
220 if·your·code·accesses·the·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header·directly·from·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>·you221 if·your·code·accesses·the·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header·directly·from·<code·class="docutils·literal·notranslate"><span·class="pre">request.META</span></code>·you
221 are·bypassing·this·security·protection.</p>222 are·bypassing·this·security·protection.</p>
222 <p>For·more·details·see·the·full·<a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·documentation.</p>223 <p>For·more·details·see·the·full·<a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·documentation.</p>
223 <div·class="admonition·warning">224 <div·class="admonition·warning">
224 <p·class="admonition-title">Warning</p>225 <p·class="admonition-title">Avvertimento</p>
225 <p>Previous·versions·of·this·document·recommended·configuring·your·web·server·to226 <p>Previous·versions·of·this·document·recommended·configuring·your·web·server·to
226 ensure·it·validates·incoming·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·headers.·While·this·is·still227 ensure·it·validates·incoming·HTTP·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·headers.·While·this·is·still
227 recommended,·in·many·common·web·servers·a·configuration·that·seems·to228 recommended,·in·many·common·web·servers·a·configuration·that·seems·to
228 validate·the·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header·may·not·in·fact·do·so.·For·instance,·even·if229 validate·the·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header·may·not·in·fact·do·so.·For·instance,·even·if
229 Apache·is·configured·such·that·your·Django·site·is·served·from·a·non-default230 Apache·is·configured·such·that·your·Django·site·is·served·from·a·non-default
230 virtual·host·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">ServerName</span></code>·set,·it·is·still·possible·for·an·HTTP231 virtual·host·with·the·<code·class="docutils·literal·notranslate"><span·class="pre">ServerName</span></code>·set,·it·is·still·possible·for·an·HTTP
231 request·to·match·this·virtual·host·and·supply·a·fake·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header.·Thus,232 request·to·match·this·virtual·host·and·supply·a·fake·<code·class="docutils·literal·notranslate"><span·class="pre">Host</span></code>·header.·Thus,
Offset 260, 15 lines modifiedOffset 261, 15 lines modified
260 be·deployed·such·that·untrusted·users·don’t·have·access·to·any·subdomains,261 be·deployed·such·that·untrusted·users·don’t·have·access·to·any·subdomains,
261 <a·class="reference·internal"·href="http/sessions.html#module-django.contrib.sessions"·title="django.contrib.sessions:·Provides·session·management·for·Django·projects."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.sessions</span></code></a>·also·has·limitations.·See·<a·class="reference·internal"·href="http/sessions.html#topics-session-security"><span·class="std·std-ref">the·session262 <a·class="reference·internal"·href="http/sessions.html#module-django.contrib.sessions"·title="django.contrib.sessions:·Provides·session·management·for·Django·projects."><code·class="xref·py·py-mod·docutils·literal·notranslate"><span·class="pre">django.contrib.sessions</span></code></a>·also·has·limitations.·See·<a·class="reference·internal"·href="http/sessions.html#topics-session-security"><span·class="std·std-ref">the·session
262 topic·guide·section·on·security</span></a>·for·details.</p>263 topic·guide·section·on·security</span></a>·for·details.</p>
263 </section>264 </section>
264 <section·id="s-user-uploaded-content">265 <section·id="s-user-uploaded-content">
265 <span·id="s-user-uploaded-content-security"></span><span·id="user-uploaded-content"></span><span·id="user-uploaded-content-security"></span><h2>User-uploaded·content<a·class="headerlink"·href="#user-uploaded-content"·title="Link·to·this·heading">¶</a></h2>266 <span·id="s-user-uploaded-content-security"></span><span·id="user-uploaded-content"></span><span·id="user-uploaded-content-security"></span><h2>User-uploaded·content<a·class="headerlink"·href="#user-uploaded-content"·title="Link·to·this·heading">¶</a></h2>
266 <div·class="admonition·note">267 <div·class="admonition·note">
267 <p·class="admonition-title">Note</p>268 <p·class="admonition-title">Nota</p>
268 <p>Consider·<a·class="reference·internal"·href="../howto/static-files/deployment.html#staticfiles-from-cdn"><span·class="std·std-ref">serving·static·files·from·a·cloud·service·or·CDN</span></a>·to·avoid·some·of·these·issues.</p>269 <p>Consider·<a·class="reference·internal"·href="../howto/static-files/deployment.html#staticfiles-from-cdn"><span·class="std·std-ref">serving·static·files·from·a·cloud·service·or·CDN</span></a>·to·avoid·some·of·these·issues.</p>
269 </div>270 </div>
270 <ul>271 <ul>
271 <li><p>If·your·site·accepts·file·uploads,·it·is·strongly·advised·that·you·limit272 <li><p>If·your·site·accepts·file·uploads,·it·is·strongly·advised·that·you·limit
272 these·uploads·in·your·web·server·configuration·to·a·reasonable273 these·uploads·in·your·web·server·configuration·to·a·reasonable
273 size·in·order·to·prevent·denial·of·service·(DOS)·attacks.·In·Apache,·this274 size·in·order·to·prevent·denial·of·service·(DOS)·attacks.·In·Apache,·this
274 can·be·easily·set·using·the·<a·class="reference·external"·href="https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody">LimitRequestBody</a>·directive.</p></li>275 can·be·easily·set·using·the·<a·class="reference·external"·href="https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestbody">LimitRequestBody</a>·directive.</p></li>
Offset 356, 37 lines modifiedOffset 357, 37 lines modified
356 <li><a·class="reference·internal"·href="#additional-security-topics">Additional·security·topics</a></li>357 <li><a·class="reference·internal"·href="#additional-security-topics">Additional·security·topics</a></li>
357 </ul>358 </ul>
358 </li>359 </li>
359 </ul>360 </ul>
  
360 ··</div>361 ··</div>
361 ··<div>362 ··<div>
362 ····<h4>Previous·topic</h4>363 ····<h4>Argomento·precedente</h4>
363 ····<p·class="topless"><a·href="pagination.html"364 ····<p·class="topless"><a·href="pagination.html"
364 ··························title="previous·chapter">Pagination</a></p>365 ··························title="capitolo·precedente">Pagination</a></p>
365 ··</div>366 ··</div>
366 ··<div>367 ··<div>
367 ····<h4>Next·topic</h4>368 ····<h4>Argomento·successivo</h4>
368 ····<p·class="topless"><a·href="performance.html"369 ····<p·class="topless"><a·href="performance.html"
369 ··························title="next·chapter">Performance·and·optimization</a></p>370 ··························title="capitolo·successivo">Performance·and·optimization</a></p>
370 ··</div>371 ··</div>
371 <search·id="searchbox"·style="display:·none"·role="search">372 <search·id="searchbox"·style="display:·none"·role="search">
372 ··<h3·id="searchlabel">Quick·search</h3>373 ··<h3·id="searchlabel">Ricerca·veloce</h3>
373 ····<div·class="searchformwrapper">374 ····<div·class="searchformwrapper">
374 ····<form·class="search"·action="../search.html"·method="get">375 ····<form·class="search"·action="../search.html"·method="get">
375 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>376 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
376 ······<input·type="submit"·value="Go"·/>377 ······<input·type="submit"·value="Vai"·/>
377 ····</form>378 ····</form>
Max diff block lines reached; 353/11033 bytes (3.20%) of diff not shown.
6.97 KB
html2text {}
Max HTML report size reached
36.2 KB
./usr/share/doc/python-django-doc/html/topics/serialization.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Serializing·Django·objects·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Serializing·Django·objects·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Django·settings"·href="settings.html"·/>15 ····<link·rel="next"·title="Django·settings"·href="settings.html"·/>
15 ····<link·rel="prev"·title="Performance·and·optimization"·href="performance.html"·/>16 ····<link·rel="prev"·title="Performance·and·optimization"·href="performance.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 75, 20 lines modifiedOffset 76, 20 lines modified
75 ····<div·id="bd">76 ····<div·id="bd">
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-serialization">79 ··········<div·class="yui-g"·id="topics-serialization">
79 ············80 ············
80 ··<section·id="s-serializing-django-objects">81 ··<section·id="s-serializing-django-objects">
81 <span·id="serializing-django-objects"></span><h1>Serializing·Django·objects<a·class="headerlink"·href="#serializing-django-objects"·title="Link·to·this·heading">¶</a></h1>82 <span·id="serializing-django-objects"></span><h1>Serializing·Django·objects<a·class="headerlink"·href="#serializing-django-objects"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django’s·serialization·framework·provides·a·mechanism·for·translating·Django83 <p>Django’s·serialization·framework·provides·a·mechanism·for·«translating»·Django
83 models·into·other·formats.·Usually·these·other·formats·will·be·text-based·and84 models·into·other·formats.·Usually·these·other·formats·will·be·text-based·and
84 used·for·sending·Django·data·over·a·wire,·but·it’s·possible·for·a85 used·for·sending·Django·data·over·a·wire,·but·it’s·possible·for·a
85 serializer·to·handle·any·format·(text-based·or·not).</p>86 serializer·to·handle·any·format·(text-based·or·not).</p>
86 <div·class="admonition·seealso">87 <div·class="admonition·seealso">
87 <p·class="admonition-title">See·also</p>88 <p·class="admonition-title">Vedi·anche</p>
88 <p>If·you·just·want·to·get·some·data·from·your·tables·into·a·serialized89 <p>If·you·just·want·to·get·some·data·from·your·tables·into·a·serialized
89 form,·you·could·use·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-dumpdata"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">dumpdata</span></code></a>·management·command.</p>90 form,·you·could·use·the·<a·class="reference·internal"·href="../ref/django-admin.html#django-admin-dumpdata"><code·class="xref·std·std-djadmin·docutils·literal·notranslate"><span·class="pre">dumpdata</span></code></a>·management·command.</p>
90 </div>91 </div>
91 <section·id="s-serializing-data">92 <section·id="s-serializing-data">
92 <span·id="serializing-data"></span><h2>Serializing·data<a·class="headerlink"·href="#serializing-data"·title="Link·to·this·heading">¶</a></h2>93 <span·id="serializing-data"></span><h2>Serializing·data<a·class="headerlink"·href="#serializing-data"·title="Link·to·this·heading">¶</a></h2>
93 <p>At·the·highest·level,·you·can·serialize·data·like·this:</p>94 <p>At·the·highest·level,·you·can·serialize·data·like·this:</p>
94 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">serializers</span>95 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.core</span>·<span·class="kn">import</span>·<span·class="n">serializers</span>
Offset 116, 15 lines modifiedOffset 117, 15 lines modified
116 <p>This·is·useful·if·you·want·to·serialize·data·directly·to·a·file-like·object117 <p>This·is·useful·if·you·want·to·serialize·data·directly·to·a·file-like·object
117 (which·includes·an·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>):</p>118 (which·includes·an·<a·class="reference·internal"·href="../ref/request-response.html#django.http.HttpResponse"·title="django.http.HttpResponse"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">HttpResponse</span></code></a>):</p>
118 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">with</span>·<span·class="nb">open</span><span·class="p">(</span><span·class="s2">&quot;file.xml&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;w&quot;</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">out</span><span·class="p">:</span>119 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">with</span>·<span·class="nb">open</span><span·class="p">(</span><span·class="s2">&quot;file.xml&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;w&quot;</span><span·class="p">)</span>·<span·class="k">as</span>·<span·class="n">out</span><span·class="p">:</span>
119 ····<span·class="n">xml_serializer</span><span·class="o">.</span><span·class="n">serialize</span><span·class="p">(</span><span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">(),</span>·<span·class="n">stream</span><span·class="o">=</span><span·class="n">out</span><span·class="p">)</span>120 ····<span·class="n">xml_serializer</span><span·class="o">.</span><span·class="n">serialize</span><span·class="p">(</span><span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">(),</span>·<span·class="n">stream</span><span·class="o">=</span><span·class="n">out</span><span·class="p">)</span>
120 </pre></div>121 </pre></div>
121 </div>122 </div>
122 <div·class="admonition·note">123 <div·class="admonition·note">
123 <p·class="admonition-title">Note</p>124 <p·class="admonition-title">Nota</p>
124 <p>Calling·<a·class="reference·internal"·href="#django.core.serializers.get_serializer"·title="django.core.serializers.get_serializer"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">get_serializer()</span></code></a>·with·an·unknown125 <p>Calling·<a·class="reference·internal"·href="#django.core.serializers.get_serializer"·title="django.core.serializers.get_serializer"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">get_serializer()</span></code></a>·with·an·unknown
125 <a·class="reference·internal"·href="#serialization-formats"><span·class="std·std-ref">format</span></a>·will·raise·a126 <a·class="reference·internal"·href="#serialization-formats"><span·class="std·std-ref">format</span></a>·will·raise·a
126 <code·class="docutils·literal·notranslate"><span·class="pre">django.core.serializers.SerializerDoesNotExist</span></code>·exception.</p>127 <code·class="docutils·literal·notranslate"><span·class="pre">django.core.serializers.SerializerDoesNotExist</span></code>·exception.</p>
127 </div>128 </div>
128 <section·id="s-subset-of-fields">129 <section·id="s-subset-of-fields">
129 <span·id="s-id1"></span><span·id="subset-of-fields"></span><span·id="id1"></span><h3>Subset·of·fields<a·class="headerlink"·href="#subset-of-fields"·title="Link·to·this·heading">¶</a></h3>130 <span·id="s-id1"></span><span·id="subset-of-fields"></span><span·id="id1"></span><h3>Subset·of·fields<a·class="headerlink"·href="#subset-of-fields"·title="Link·to·this·heading">¶</a></h3>
130 <p>If·you·only·want·a·subset·of·fields·to·be·serialized,·you·can131 <p>If·you·only·want·a·subset·of·fields·to·be·serialized,·you·can
Offset 134, 15 lines modifiedOffset 135, 15 lines modified
134 <span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">serializers</span><span·class="o">.</span><span·class="n">serialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">(),</span>·<span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;size&quot;</span><span·class="p">])</span>135 <span·class="n">data</span>·<span·class="o">=</span>·<span·class="n">serializers</span><span·class="o">.</span><span·class="n">serialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">SomeModel</span><span·class="o">.</span><span·class="n">objects</span><span·class="o">.</span><span·class="n">all</span><span·class="p">(),</span>·<span·class="n">fields</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">&quot;name&quot;</span><span·class="p">,</span>·<span·class="s2">&quot;size&quot;</span><span·class="p">])</span>
135 </pre></div>136 </pre></div>
136 </div>137 </div>
137 <p>In·this·example,·only·the·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·attributes·of·each·model·will138 <p>In·this·example,·only·the·<code·class="docutils·literal·notranslate"><span·class="pre">name</span></code>·and·<code·class="docutils·literal·notranslate"><span·class="pre">size</span></code>·attributes·of·each·model·will
138 be·serialized.·The·primary·key·is·always·serialized·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">pk</span></code>·element·in·the139 be·serialized.·The·primary·key·is·always·serialized·as·the·<code·class="docutils·literal·notranslate"><span·class="pre">pk</span></code>·element·in·the
139 resulting·output;·it·never·appears·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·part.</p>140 resulting·output;·it·never·appears·in·the·<code·class="docutils·literal·notranslate"><span·class="pre">fields</span></code>·part.</p>
140 <div·class="admonition·note">141 <div·class="admonition·note">
141 <p·class="admonition-title">Note</p>142 <p·class="admonition-title">Nota</p>
142 <p>Depending·on·your·model,·you·may·find·that·it·is·not·possible·to143 <p>Depending·on·your·model,·you·may·find·that·it·is·not·possible·to
143 deserialize·a·model·that·only·serializes·a·subset·of·its·fields.·If·a144 deserialize·a·model·that·only·serializes·a·subset·of·its·fields.·If·a
144 serialized·object·doesn’t·specify·all·the·fields·that·are·required·by·a145 serialized·object·doesn’t·specify·all·the·fields·that·are·required·by·a
145 model,·the·deserializer·will·not·be·able·to·save·deserialized·instances.</p>146 model,·the·deserializer·will·not·be·able·to·save·deserialized·instances.</p>
146 </div>147 </div>
147 </section>148 </section>
148 <section·id="s-inherited-models">149 <section·id="s-inherited-models">
Offset 187, 29 lines modifiedOffset 188, 29 lines modified
187 <code·class="docutils·literal·notranslate"><span·class="pre">serialize</span></code>,·a·string·or·stream·of·data,·and·returns·an·iterator.</p>188 <code·class="docutils·literal·notranslate"><span·class="pre">serialize</span></code>,·a·string·or·stream·of·data,·and·returns·an·iterator.</p>
188 <p>However,·here·it·gets·slightly·complicated.·The·objects·returned·by·the189 <p>However,·here·it·gets·slightly·complicated.·The·objects·returned·by·the
189 <code·class="docutils·literal·notranslate"><span·class="pre">deserialize</span></code>·iterator·<em>aren’t</em>·regular·Django·objects.·Instead,·they·are190 <code·class="docutils·literal·notranslate"><span·class="pre">deserialize</span></code>·iterator·<em>aren’t</em>·regular·Django·objects.·Instead,·they·are
190 special·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject</span></code>·instances·that·wrap·a·created··but·unsaved·191 special·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject</span></code>·instances·that·wrap·a·created··but·unsaved·
191 object·and·any·associated·relationship·data.</p>192 object·and·any·associated·relationship·data.</p>
192 <p>Calling·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject.save()</span></code>·saves·the·object·to·the·database.</p>193 <p>Calling·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject.save()</span></code>·saves·the·object·to·the·database.</p>
193 <div·class="admonition·note">194 <div·class="admonition·note">
194 <p·class="admonition-title">Note</p>195 <p·class="admonition-title">Nota</p>
195 <p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">pk</span></code>·attribute·in·the·serialized·data·doesn’t·exist·or·is196 <p>If·the·<code·class="docutils·literal·notranslate"><span·class="pre">pk</span></code>·attribute·in·the·serialized·data·doesn’t·exist·or·is
196 null,·a·new·instance·will·be·saved·to·the·database.</p>197 null,·a·new·instance·will·be·saved·to·the·database.</p>
197 </div>198 </div>
198 <p>This·ensures·that·deserializing·is·a·non-destructive·operation·even·if·the199 <p>This·ensures·that·deserializing·is·a·non-destructive·operation·even·if·the
199 data·in·your·serialized·representation·doesn’t·match·what’s·currently·in·the200 data·in·your·serialized·representation·doesn’t·match·what’s·currently·in·the
200 database.·Usually,·working·with·these·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject</span></code>·instances·looks201 database.·Usually,·working·with·these·<code·class="docutils·literal·notranslate"><span·class="pre">DeserializedObject</span></code>·instances·looks
201 something·like:</p>202 something·like:</p>
202 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">for</span>·<span·class="n">deserialized_object</span>·<span·class="ow">in</span>·<span·class="n">serializers</span><span·class="o">.</span><span·class="n">deserialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>203 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="k">for</span>·<span·class="n">deserialized_object</span>·<span·class="ow">in</span>·<span·class="n">serializers</span><span·class="o">.</span><span·class="n">deserialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">):</span>
203 ····<span·class="k">if</span>·<span·class="n">object_should_be_saved</span><span·class="p">(</span><span·class="n">deserialized_object</span><span·class="p">):</span>204 ····<span·class="k">if</span>·<span·class="n">object_should_be_saved</span><span·class="p">(</span><span·class="n">deserialized_object</span><span·class="p">):</span>
204 ········<span·class="n">deserialized_object</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>205 ········<span·class="n">deserialized_object</span><span·class="o">.</span><span·class="n">save</span><span·class="p">()</span>
205 </pre></div>206 </pre></div>
206 </div>207 </div>
207 <p>In·other·words,·the·usual·use·is·to·examine·the·deserialized·objects·to·make208 <p>In·other·words,·the·usual·use·is·to·examine·the·deserialized·objects·to·make
208 sure·that·they·are·appropriate·for·saving·before·doing·so.·If·you·trust·your209 sure·that·they·are·«appropriate»·for·saving·before·doing·so.·If·you·trust·your
209 data·source·you·can·instead·save·the·object·directly·and·move·on.</p>210 data·source·you·can·instead·save·the·object·directly·and·move·on.</p>
210 <p>The·Django·object·itself·can·be·inspected·as·<code·class="docutils·literal·notranslate"><span·class="pre">deserialized_object.object</span></code>.211 <p>The·Django·object·itself·can·be·inspected·as·<code·class="docutils·literal·notranslate"><span·class="pre">deserialized_object.object</span></code>.
211 If·fields·in·the·serialized·data·do·not·exist·on·a·model,·a212 If·fields·in·the·serialized·data·do·not·exist·on·a·model,·a
212 <code·class="docutils·literal·notranslate"><span·class="pre">DeserializationError</span></code>·will·be·raised·unless·the·<code·class="docutils·literal·notranslate"><span·class="pre">ignorenonexistent</span></code>213 <code·class="docutils·literal·notranslate"><span·class="pre">DeserializationError</span></code>·will·be·raised·unless·the·<code·class="docutils·literal·notranslate"><span·class="pre">ignorenonexistent</span></code>
213 argument·is·passed·in·as·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>:</p>214 argument·is·passed·in·as·<code·class="docutils·literal·notranslate"><span·class="pre">True</span></code>:</p>
214 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">serializers</span><span·class="o">.</span><span·class="n">deserialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="n">ignorenonexistent</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>215 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">serializers</span><span·class="o">.</span><span·class="n">deserialize</span><span·class="p">(</span><span·class="s2">&quot;xml&quot;</span><span·class="p">,</span>·<span·class="n">data</span><span·class="p">,</span>·<span·class="n">ignorenonexistent</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">)</span>
215 </pre></div>216 </pre></div>
Offset 251, 19 lines modifiedOffset 252, 19 lines modified
251 <span·class="w">········</span><span·class="cm">&lt;!--·...·--&gt;</span>252 <span·class="w">········</span><span·class="cm">&lt;!--·...·--&gt;</span>
252 <span·class="w">····</span><span·class="nt">&lt;/object&gt;</span>253 <span·class="w">····</span><span·class="nt">&lt;/object&gt;</span>
253 <span·class="nt">&lt;/django-objects&gt;</span>254 <span·class="nt">&lt;/django-objects&gt;</span>
254 </pre></div>255 </pre></div>
Max diff block lines reached; 12949/24079 bytes (53.78%) of diff not shown.
12.6 KB
html2text {}
Max HTML report size reached
15.2 KB
./usr/share/doc/python-django-doc/html/topics/settings.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Django·settings·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Django·settings·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="Signals"·href="signals.html"·/>15 ····<link·rel="next"·title="Signals"·href="signals.html"·/>
15 ····<link·rel="prev"·title="Serializing·Django·objects"·href="serialization.html"·/>16 ····<link·rel="prev"·title="Serializing·Django·objects"·href="serialization.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 88, 15 lines modifiedOffset 89, 15 lines modified
88 <p>Here·are·a·couple·of·example·settings:</p>89 <p>Here·are·a·couple·of·example·settings:</p>
89 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ALLOWED_HOSTS</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;www.example.com&quot;</span><span·class="p">]</span>90 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">ALLOWED_HOSTS</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="s2">&quot;www.example.com&quot;</span><span·class="p">]</span>
90 <span·class="n">DEBUG</span>·<span·class="o">=</span>·<span·class="kc">False</span>91 <span·class="n">DEBUG</span>·<span·class="o">=</span>·<span·class="kc">False</span>
91 <span·class="n">DEFAULT_FROM_EMAIL</span>·<span·class="o">=</span>·<span·class="s2">&quot;webmaster@example.com&quot;</span>92 <span·class="n">DEFAULT_FROM_EMAIL</span>·<span·class="o">=</span>·<span·class="s2">&quot;webmaster@example.com&quot;</span>
92 </pre></div>93 </pre></div>
93 </div>94 </div>
94 <div·class="admonition·note">95 <div·class="admonition·note">
95 <p·class="admonition-title">Note</p>96 <p·class="admonition-title">Nota</p>
96 <p>If·you·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·you·also·need·to·properly·set97 <p>If·you·set·<a·class="reference·internal"·href="../ref/settings.html#std-setting-DEBUG"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">DEBUG</span></code></a>·to·<code·class="docutils·literal·notranslate"><span·class="pre">False</span></code>,·you·also·need·to·properly·set
97 the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·setting.</p>98 the·<a·class="reference·internal"·href="../ref/settings.html#std-setting-ALLOWED_HOSTS"><code·class="xref·std·std-setting·docutils·literal·notranslate"><span·class="pre">ALLOWED_HOSTS</span></code></a>·setting.</p>
98 </div>99 </div>
99 <p>Because·a·settings·file·is·a·Python·module,·the·following·apply:</p>100 <p>Because·a·settings·file·is·a·Python·module,·the·following·apply:</p>
100 <ul>101 <ul>
101 <li><p>It·doesn’t·allow·for·Python·syntax·errors.</p></li>102 <li><p>It·doesn’t·allow·for·Python·syntax·errors.</p></li>
102 <li><p>It·can·assign·settings·dynamically·using·normal·Python·syntax.103 <li><p>It·can·assign·settings·dynamically·using·normal·Python·syntax.
Offset 313, 16 lines modifiedOffset 314, 16 lines modified
313 </div>314 </div>
314 <p>Also,·it’s·an·error·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·more·than·once,·or·to·call315 <p>Also,·it’s·an·error·to·call·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·more·than·once,·or·to·call
315 <code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·after·any·setting·has·been·accessed.</p>316 <code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·after·any·setting·has·been·accessed.</p>
316 <p>It·boils·down·to·this:·Use·exactly·one·of·either·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·or317 <p>It·boils·down·to·this:·Use·exactly·one·of·either·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·or
317 <span·class="target"·id="index-8"></span><a·class="reference·internal"·href="#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>.·Not·both,·and·not·neither.</p>318 <span·class="target"·id="index-8"></span><a·class="reference·internal"·href="#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>.·Not·both,·and·not·neither.</p>
318 </section>319 </section>
319 <section·id="s-calling-django-setup-is-required-for-standalone-django-usage">320 <section·id="s-calling-django-setup-is-required-for-standalone-django-usage">
320 <span·id="calling-django-setup-is-required-for-standalone-django-usage"></span><h3>Calling·<code·class="docutils·literal·notranslate"><span·class="pre">django.setup()</span></code>·is·required·for·standalone·Django·usage<a·class="headerlink"·href="#calling-django-setup-is-required-for-standalone-django-usage"·title="Link·to·this·heading">¶</a></h3>321 <span·id="calling-django-setup-is-required-for-standalone-django-usage"></span><h3>Calling·<code·class="docutils·literal·notranslate"><span·class="pre">django.setup()</span></code>·is·required·for·«standalone»·Django·usage<a·class="headerlink"·href="#calling-django-setup-is-required-for-standalone-django-usage"·title="Link·to·this·heading">¶</a></h3>
321 <p>If·you’re·using·components·of·Django·standalone··for·example,·writing·a322 <p>If·you’re·using·components·of·Django·«standalone»··for·example,·writing·a
322 Python·script·which·loads·some·Django·templates·and·renders·them,·or·uses·the323 Python·script·which·loads·some·Django·templates·and·renders·them,·or·uses·the
323 ORM·to·fetch·some·data··there’s·one·more·step·you’ll·need·in·addition·to324 ORM·to·fetch·some·data··there’s·one·more·step·you’ll·need·in·addition·to
324 configuring·settings.</p>325 configuring·settings.</p>
325 <p>After·you’ve·either·set·<span·class="target"·id="index-9"></span><a·class="reference·internal"·href="#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>·or·called326 <p>After·you’ve·either·set·<span·class="target"·id="index-9"></span><a·class="reference·internal"·href="#envvar-DJANGO_SETTINGS_MODULE"><code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a>·or·called
326 <code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>,·you’ll·need·to·call·<a·class="reference·internal"·href="../ref/applications.html#django.setup"·title="django.setup"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.setup()</span></code></a>·to·load·your327 <code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>,·you’ll·need·to·call·<a·class="reference·internal"·href="../ref/applications.html#django.setup"·title="django.setup"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">django.setup()</span></code></a>·to·load·your
327 settings·and·populate·Django’s·application·registry.·For·example:</p>328 settings·and·populate·Django’s·application·registry.·For·example:</p>
328 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">django</span>329 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">import</span>·<span·class="nn">django</span>
Offset 348, 15 lines modifiedOffset 349, 15 lines modified
348 ····<span·class="kn">import</span>·<span·class="nn">django</span>349 ····<span·class="kn">import</span>·<span·class="nn">django</span>
  
349 ····<span·class="n">django</span><span·class="o">.</span><span·class="n">setup</span><span·class="p">()</span>350 ····<span·class="n">django</span><span·class="o">.</span><span·class="n">setup</span><span·class="p">()</span>
350 </pre></div>351 </pre></div>
351 </div>352 </div>
352 </div>353 </div>
353 <div·class="admonition·seealso">354 <div·class="admonition·seealso">
354 <p·class="admonition-title">See·also</p>355 <p·class="admonition-title">Vedi·anche</p>
355 <dl·class="simple">356 <dl·class="simple">
356 <dt><a·class="reference·internal"·href="../ref/settings.html"><span·class="doc">The·Settings·Reference</span></a></dt><dd><p>Contains·the·complete·list·of·core·and·contrib·app·settings.</p>357 <dt><a·class="reference·internal"·href="../ref/settings.html"><span·class="doc">The·Settings·Reference</span></a></dt><dd><p>Contains·the·complete·list·of·core·and·contrib·app·settings.</p>
357 </dd>358 </dd>
358 </dl>359 </dl>
359 </div>360 </div>
360 </section>361 </section>
361 </section>362 </section>
Offset 390, 46 lines modifiedOffset 391, 46 lines modified
390 <li><a·class="reference·internal"·href="#altering-settings-at-runtime">Altering·settings·at·runtime</a></li>391 <li><a·class="reference·internal"·href="#altering-settings-at-runtime">Altering·settings·at·runtime</a></li>
391 <li><a·class="reference·internal"·href="#security">Security</a></li>392 <li><a·class="reference·internal"·href="#security">Security</a></li>
392 <li><a·class="reference·internal"·href="#available-settings">Available·settings</a></li>393 <li><a·class="reference·internal"·href="#available-settings">Available·settings</a></li>
393 <li><a·class="reference·internal"·href="#creating-your-own-settings">Creating·your·own·settings</a></li>394 <li><a·class="reference·internal"·href="#creating-your-own-settings">Creating·your·own·settings</a></li>
394 <li><a·class="reference·internal"·href="#using-settings-without-setting-django-settings-module">Using·settings·without·setting·<code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a><ul>395 <li><a·class="reference·internal"·href="#using-settings-without-setting-django-settings-module">Using·settings·without·setting·<code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code></a><ul>
395 <li><a·class="reference·internal"·href="#custom-default-settings">Custom·default·settings</a></li>396 <li><a·class="reference·internal"·href="#custom-default-settings">Custom·default·settings</a></li>
396 <li><a·class="reference·internal"·href="#either-configure-or-django-settings-module-is-required">Either·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·or·<code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code>·is·required</a></li>397 <li><a·class="reference·internal"·href="#either-configure-or-django-settings-module-is-required">Either·<code·class="docutils·literal·notranslate"><span·class="pre">configure()</span></code>·or·<code·class="xref·std·std-envvar·docutils·literal·notranslate"><span·class="pre">DJANGO_SETTINGS_MODULE</span></code>·is·required</a></li>
397 <li><a·class="reference·internal"·href="#calling-django-setup-is-required-for-standalone-django-usage">Calling·<code·class="docutils·literal·notranslate"><span·class="pre">django.setup()</span></code>·is·required·for·standalone·Django·usage</a></li>398 <li><a·class="reference·internal"·href="#calling-django-setup-is-required-for-standalone-django-usage">Calling·<code·class="docutils·literal·notranslate"><span·class="pre">django.setup()</span></code>·is·required·for·«standalone»·Django·usage</a></li>
398 </ul>399 </ul>
399 </li>400 </li>
400 </ul>401 </ul>
401 </li>402 </li>
402 </ul>403 </ul>
  
403 ··</div>404 ··</div>
404 ··<div>405 ··<div>
405 ····<h4>Previous·topic</h4>406 ····<h4>Argomento·precedente</h4>
406 ····<p·class="topless"><a·href="serialization.html"407 ····<p·class="topless"><a·href="serialization.html"
407 ··························title="previous·chapter">Serializing·Django·objects</a></p>408 ··························title="capitolo·precedente">Serializing·Django·objects</a></p>
408 ··</div>409 ··</div>
409 ··<div>410 ··<div>
410 ····<h4>Next·topic</h4>411 ····<h4>Argomento·successivo</h4>
411 ····<p·class="topless"><a·href="signals.html"412 ····<p·class="topless"><a·href="signals.html"
412 ··························title="next·chapter">Signals</a></p>413 ··························title="capitolo·successivo">Signals</a></p>
413 ··</div>414 ··</div>
414 <search·id="searchbox"·style="display:·none"·role="search">415 <search·id="searchbox"·style="display:·none"·role="search">
415 ··<h3·id="searchlabel">Quick·search</h3>416 ··<h3·id="searchlabel">Ricerca·veloce</h3>
416 ····<div·class="searchformwrapper">417 ····<div·class="searchformwrapper">
417 ····<form·class="search"·action="../search.html"·method="get">418 ····<form·class="search"·action="../search.html"·method="get">
418 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>419 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
419 ······<input·type="submit"·value="Go"·/>420 ······<input·type="submit"·value="Vai"·/>
420 ····</form>421 ····</form>
421 ····</div>422 ····</div>
422 </search>423 </search>
423 <script>document.getElementById('searchbox').style.display·=·"block"</script>424 <script>document.getElementById('searchbox').style.display·=·"block"</script>
424 ········</div>425 ········</div>
425 ······</div>426 ······</div>
426 ··············<h3>Last·update:</h3>427 ··············<h3>Last·update:</h3>
Max diff block lines reached; 76/9847 bytes (0.77%) of diff not shown.
5.5 KB
html2text {}
Max HTML report size reached
31.5 KB
./usr/share/doc/python-django-doc/html/topics/signals.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../">2 <html·lang="it"·data-content_root="../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Signals·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Signals·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../search.html"·/>
14 ····<link·rel="next"·title="System·check·framework"·href="checks.html"·/>15 ····<link·rel="next"·title="System·check·framework"·href="checks.html"·/>
15 ····<link·rel="prev"·title="Django·settings"·href="settings.html"·/>16 ····<link·rel="prev"·title="Django·settings"·href="settings.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../templatebuiltins.js"></script>18 <script·src="../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 75, 15 lines modifiedOffset 76, 15 lines modified
75 ····<div·id="bd">76 ····<div·id="bd">
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-signals">79 ··········<div·class="yui-g"·id="topics-signals">
79 ············80 ············
80 ··<section·id="s-module-django.dispatch">81 ··<section·id="s-module-django.dispatch">
81 <span·id="s-signals"></span><span·id="module-django.dispatch"></span><span·id="signals"></span><h1>Signals<a·class="headerlink"·href="#module-django.dispatch"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-signals"></span><span·id="module-django.dispatch"></span><span·id="signals"></span><h1>Signals<a·class="headerlink"·href="#module-django.dispatch"·title="Link·to·this·heading">¶</a></h1>
82 <p>Django·includes·a·signal·dispatcher·which·helps·decoupled·applications·get83 <p>Django·includes·a·«signal·dispatcher»·which·helps·decoupled·applications·get
83 notified·when·actions·occur·elsewhere·in·the·framework.·In·a·nutshell,·signals84 notified·when·actions·occur·elsewhere·in·the·framework.·In·a·nutshell,·signals
84 allow·certain·<em>senders</em>·to·notify·a·set·of·<em>receivers</em>·that·some·action·has85 allow·certain·<em>senders</em>·to·notify·a·set·of·<em>receivers</em>·that·some·action·has
85 taken·place.·They’re·especially·useful·when·many·pieces·of·code·may·be86 taken·place.·They’re·especially·useful·when·many·pieces·of·code·may·be
86 interested·in·the·same·events.</p>87 interested·in·the·same·events.</p>
87 <p>For·example,·a·third-party·app·can·register·to·be·notified·of·settings88 <p>For·example,·a·third-party·app·can·register·to·be·notified·of·settings
88 changes:</p>89 changes:</p>
89 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">AppConfig</span>90 <div·class="highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="kn">from</span>·<span·class="nn">django.apps</span>·<span·class="kn">import</span>·<span·class="n">AppConfig</span>
Offset 102, 31 lines modifiedOffset 103, 31 lines modified
102 </pre></div>103 </pre></div>
103 </div>104 </div>
104 <p>Django’s·<a·class="reference·internal"·href="../ref/signals.html"><span·class="doc">built-in·signals</span></a>·let·user·code·get·notified·of105 <p>Django’s·<a·class="reference·internal"·href="../ref/signals.html"><span·class="doc">built-in·signals</span></a>·let·user·code·get·notified·of
105 certain·actions.</p>106 certain·actions.</p>
106 <p>You·can·also·define·and·send·your·own·custom·signals.·See107 <p>You·can·also·define·and·send·your·own·custom·signals.·See
107 <a·class="reference·internal"·href="#defining-and-sending-signals"><span·class="std·std-ref">Defining·and·sending·signals</span></a>·below.</p>108 <a·class="reference·internal"·href="#defining-and-sending-signals"><span·class="std·std-ref">Defining·and·sending·signals</span></a>·below.</p>
108 <div·class="admonition·warning">109 <div·class="admonition·warning">
109 <p·class="admonition-title">Warning</p>110 <p·class="admonition-title">Avvertimento</p>
110 <p>Signals·give·the·appearance·of·loose·coupling,·but·they·can·quickly·lead·to111 <p>Signals·give·the·appearance·of·loose·coupling,·but·they·can·quickly·lead·to
111 code·that·is·hard·to·understand,·adjust·and·debug.</p>112 code·that·is·hard·to·understand,·adjust·and·debug.</p>
112 <p>Where·possible·you·should·opt·for·directly·calling·the·handling·code,113 <p>Where·possible·you·should·opt·for·directly·calling·the·handling·code,
113 rather·than·dispatching·via·a·signal.</p>114 rather·than·dispatching·via·a·signal.</p>
114 </div>115 </div>
115 <section·id="s-listening-to-signals">116 <section·id="s-listening-to-signals">
116 <span·id="listening-to-signals"></span><h2>Listening·to·signals<a·class="headerlink"·href="#listening-to-signals"·title="Link·to·this·heading">¶</a></h2>117 <span·id="listening-to-signals"></span><h2>Listening·to·signals<a·class="headerlink"·href="#listening-to-signals"·title="Link·to·this·heading">¶</a></h2>
117 <p>To·receive·a·signal,·register·a·<em>receiver</em>·function·using·the118 <p>To·receive·a·signal,·register·a·<em>receiver</em>·function·using·the
118 <a·class="reference·internal"·href="#django.dispatch.Signal.connect"·title="django.dispatch.Signal.connect"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Signal.connect()</span></code></a>·method.·The·receiver·function·is·called·when·the·signal119 <a·class="reference·internal"·href="#django.dispatch.Signal.connect"·title="django.dispatch.Signal.connect"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Signal.connect()</span></code></a>·method.·The·receiver·function·is·called·when·the·signal
119 is·sent.·All·of·the·signal’s·receiver·functions·are·called·one·at·a·time,·in120 is·sent.·All·of·the·signal’s·receiver·functions·are·called·one·at·a·time,·in
120 the·order·they·were·registered.</p>121 the·order·they·were·registered.</p>
121 <dl·class="py·method">122 <dl·class="py·method">
122 <dt·class="sig·sig-object·py"·id="django.dispatch.Signal.connect">123 <dt·class="sig·sig-object·py"·id="django.dispatch.Signal.connect">
123 <span·class="sig-prename·descclassname"><span·class="pre">Signal.</span></span><span·class="sig-name·descname"><span·class="pre">connect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">receiver</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">sender</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">weak</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">dispatch_uid</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/dispatch/dispatcher.html#Signal.connect"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.dispatch.Signal.connect"·title="Link·to·this·definition">¶</a></dt>124 <span·class="sig-prename·descclassname"><span·class="pre">Signal.</span></span><span·class="sig-name·descname"><span·class="pre">connect</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">receiver</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">sender</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">weak</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">True</span></span></em>,·<em·class="sig-param"><span·class="n"><span·class="pre">dispatch_uid</span></span><span·class="o"><span·class="pre">=</span></span><span·class="default_value"><span·class="pre">None</span></span></em>)<a·class="reference·internal"·href="../_modules/django/dispatch/dispatcher.html#Signal.connect"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.dispatch.Signal.connect"·title="Link·to·this·definition">¶</a></dt>
124 <dd><dl·class="field-list·simple">125 <dd><dl·class="field-list·simple">
125 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>126 <dt·class="field-odd">Parametri<span·class="colon">:</span></dt>
126 <dd·class="field-odd"><ul·class="simple">127 <dd·class="field-odd"><ul·class="simple">
127 <li><p><strong>receiver</strong>··The·callback·function·which·will·be·connected·to·this128 <li><p><strong>receiver</strong>··The·callback·function·which·will·be·connected·to·this
128 signal.·See·<a·class="reference·internal"·href="#receiver-functions"><span·class="std·std-ref">Receiver·functions</span></a>·for·more·information.</p></li>129 signal.·See·<a·class="reference·internal"·href="#receiver-functions"><span·class="std·std-ref">Receiver·functions</span></a>·for·more·information.</p></li>
129 <li><p><strong>sender</strong>··Specifies·a·particular·sender·to·receive·signals·from.·See130 <li><p><strong>sender</strong>··Specifies·a·particular·sender·to·receive·signals·from.·See
130 <a·class="reference·internal"·href="#connecting-to-specific-signals"><span·class="std·std-ref">Connecting·to·signals·sent·by·specific·senders</span></a>·for·more·information.</p></li>131 <a·class="reference·internal"·href="#connecting-to-specific-signals"><span·class="std·std-ref">Connecting·to·signals·sent·by·specific·senders</span></a>·for·more·information.</p></li>
131 <li><p><strong>weak</strong>··Django·stores·signal·handlers·as·weak·references·by132 <li><p><strong>weak</strong>··Django·stores·signal·handlers·as·weak·references·by
132 default.·Thus,·if·your·receiver·is·a·local·function,·it·may·be133 default.·Thus,·if·your·receiver·is·a·local·function,·it·may·be
Offset 171, 17 lines modifiedOffset 172, 17 lines modified
  
171 <span·class="n">request_finished</span><span·class="o">.</span><span·class="n">connect</span><span·class="p">(</span><span·class="n">my_callback</span><span·class="p">)</span>172 <span·class="n">request_finished</span><span·class="o">.</span><span·class="n">connect</span><span·class="p">(</span><span·class="n">my_callback</span><span·class="p">)</span>
172 </pre></div>173 </pre></div>
173 </div>174 </div>
174 <p>Alternatively,·you·can·use·a·<a·class="reference·internal"·href="#django.dispatch.receiver"·title="django.dispatch.receiver"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">receiver()</span></code></a>·decorator:</p>175 <p>Alternatively,·you·can·use·a·<a·class="reference·internal"·href="#django.dispatch.receiver"·title="django.dispatch.receiver"><code·class="xref·py·py-func·docutils·literal·notranslate"><span·class="pre">receiver()</span></code></a>·decorator:</p>
175 <dl·class="py·function">176 <dl·class="py·function">
176 <dt·class="sig·sig-object·py"·id="django.dispatch.receiver">177 <dt·class="sig·sig-object·py"·id="django.dispatch.receiver">
177 <span·class="sig-name·descname"><span·class="pre">receiver</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">signal</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../_modules/django/dispatch/dispatcher.html#receiver"><span·class="viewcode-link"><span·class="pre">[source]</span></span></a><a·class="headerlink"·href="#django.dispatch.receiver"·title="Link·to·this·definition">¶</a></dt>178 <span·class="sig-name·descname"><span·class="pre">receiver</span></span>(<em·class="sig-param"><span·class="n"><span·class="pre">signal</span></span></em>,·<em·class="sig-param"><span·class="o"><span·class="pre">**</span></span><span·class="n"><span·class="pre">kwargs</span></span></em>)<a·class="reference·internal"·href="../_modules/django/dispatch/dispatcher.html#receiver"><span·class="viewcode-link"><span·class="pre">[sorgente]</span></span></a><a·class="headerlink"·href="#django.dispatch.receiver"·title="Link·to·this·definition">¶</a></dt>
178 <dd><dl·class="field-list·simple">179 <dd><dl·class="field-list·simple">
179 <dt·class="field-odd">Parameters<span·class="colon">:</span></dt>180 <dt·class="field-odd">Parametri<span·class="colon">:</span></dt>
180 <dd·class="field-odd"><ul·class="simple">181 <dd·class="field-odd"><ul·class="simple">
181 <li><p><strong>signal</strong>··A·signal·or·a·list·of·signals·to·connect·a·function·to.</p></li>182 <li><p><strong>signal</strong>··A·signal·or·a·list·of·signals·to·connect·a·function·to.</p></li>
182 <li><p><strong>kwargs</strong>··Wildcard·keyword·arguments·to·pass·to·a183 <li><p><strong>kwargs</strong>··Wildcard·keyword·arguments·to·pass·to·a
183 <a·class="reference·internal"·href="#receiver-functions"><span·class="std·std-ref">function</span></a>.</p></li>184 <a·class="reference·internal"·href="#receiver-functions"><span·class="std·std-ref">function</span></a>.</p></li>
184 </ul>185 </ul>
185 </dd>186 </dd>
186 </dl>187 </dl>
Offset 223, 15 lines modifiedOffset 224, 15 lines modified
  
223 ········<span·class="c1">#·Explicitly·connect·a·signal·handler.</span>224 ········<span·class="c1">#·Explicitly·connect·a·signal·handler.</span>
224 ········<span·class="n">request_finished</span><span·class="o">.</span><span·class="n">connect</span><span·class="p">(</span><span·class="n">signals</span><span·class="o">.</span><span·class="n">my_callback</span><span·class="p">)</span>225 ········<span·class="n">request_finished</span><span·class="o">.</span><span·class="n">connect</span><span·class="p">(</span><span·class="n">signals</span><span·class="o">.</span><span·class="n">my_callback</span><span·class="p">)</span>
225 </pre></div>226 </pre></div>
226 </div>227 </div>
227 </div>228 </div>
228 <div·class="admonition·note">229 <div·class="admonition·note">
229 <p·class="admonition-title">Note</p>230 <p·class="admonition-title">Nota</p>
230 <p>The·<a·class="reference·internal"·href="../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>·method·may·be·executed·more·than231 <p>The·<a·class="reference·internal"·href="../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>·method·may·be·executed·more·than
231 once·during·testing,·so·you·may·want·to·<a·class="reference·internal"·href="#preventing-duplicate-signals"><span·class="std·std-ref">guard·your·signals·from232 once·during·testing,·so·you·may·want·to·<a·class="reference·internal"·href="#preventing-duplicate-signals"><span·class="std·std-ref">guard·your·signals·from
232 duplication</span></a>,·especially·if·you’re·planning233 duplication</span></a>,·especially·if·you’re·planning
233 to·send·them·within·tests.</p>234 to·send·them·within·tests.</p>
234 </div>235 </div>
235 </section>236 </section>
236 <section·id="s-connecting-to-signals-sent-by-specific-senders">237 <section·id="s-connecting-to-signals-sent-by-specific-senders">
Offset 293, 15 lines modifiedOffset 294, 15 lines modified
293 sender·and·receiver·of·your·custom·signal·are·both·within·your·project,294 sender·and·receiver·of·your·custom·signal·are·both·within·your·project,
294 you’re·better·off·using·an·explicit·function·call.</p>295 you’re·better·off·using·an·explicit·function·call.</p>
295 </div>296 </div>
296 <section·id="s-defining-signals">297 <section·id="s-defining-signals">
297 <span·id="defining-signals"></span><h3>Defining·signals<a·class="headerlink"·href="#defining-signals"·title="Link·to·this·heading">¶</a></h3>298 <span·id="defining-signals"></span><h3>Defining·signals<a·class="headerlink"·href="#defining-signals"·title="Link·to·this·heading">¶</a></h3>
Max diff block lines reached; 10827/22311 bytes (48.53%) of diff not shown.
9.6 KB
html2text {}
Max HTML report size reached
34.9 KB
./usr/share/doc/python-django-doc/html/topics/signing.html
Max HTML report size reached
37.2 KB
./usr/share/doc/python-django-doc/html/topics/templates.html
Max HTML report size reached
70.5 KB
./usr/share/doc/python-django-doc/html/topics/testing/advanced.html
Max HTML report size reached
6.06 KB
./usr/share/doc/python-django-doc/html/topics/testing/index.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Testing·in·Django·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Testing·in·Django·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Writing·and·running·tests"·href="overview.html"·/>15 ····<link·rel="next"·title="Writing·and·running·tests"·href="overview.html"·/>
15 ····<link·rel="prev"·title="Managing·files"·href="../files.html"·/>16 ····<link·rel="prev"·title="Managing·files"·href="../files.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 117, 37 lines modifiedOffset 118, 37 lines modified
117 ······118 ······
118 ········119 ········
119 ··········<div·class="yui-b"·id="sidebar">120 ··········<div·class="yui-b"·id="sidebar">
120 ············121 ············
121 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">122 ······<div·class="sphinxsidebar"·role="navigation"·aria-label="Main">
122 ········<div·class="sphinxsidebarwrapper">123 ········<div·class="sphinxsidebarwrapper">
123 ··<div>124 ··<div>
124 ····<h4>Previous·topic</h4>125 ····<h4>Argomento·precedente</h4>
125 ····<p·class="topless"><a·href="../files.html"126 ····<p·class="topless"><a·href="../files.html"
126 ··························title="previous·chapter">Managing·files</a></p>127 ··························title="capitolo·precedente">Managing·files</a></p>
127 ··</div>128 ··</div>
128 ··<div>129 ··<div>
129 ····<h4>Next·topic</h4>130 ····<h4>Argomento·successivo</h4>
130 ····<p·class="topless"><a·href="overview.html"131 ····<p·class="topless"><a·href="overview.html"
131 ··························title="next·chapter">Writing·and·running·tests</a></p>132 ··························title="capitolo·successivo">Writing·and·running·tests</a></p>
132 ··</div>133 ··</div>
133 <search·id="searchbox"·style="display:·none"·role="search">134 <search·id="searchbox"·style="display:·none"·role="search">
134 ··<h3·id="searchlabel">Quick·search</h3>135 ··<h3·id="searchlabel">Ricerca·veloce</h3>
135 ····<div·class="searchformwrapper">136 ····<div·class="searchformwrapper">
136 ····<form·class="search"·action="../../search.html"·method="get">137 ····<form·class="search"·action="../../search.html"·method="get">
137 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>138 ······<input·type="text"·name="q"·aria-labelledby="searchlabel"·autocomplete="off"·autocorrect="off"·autocapitalize="off"·spellcheck="false"/>
138 ······<input·type="submit"·value="Go"·/>139 ······<input·type="submit"·value="Vai"·/>
139 ····</form>140 ····</form>
140 ····</div>141 ····</div>
141 </search>142 </search>
142 <script>document.getElementById('searchbox').style.display·=·"block"</script>143 <script>document.getElementById('searchbox').style.display·=·"block"</script>
143 ········</div>144 ········</div>
144 ······</div>145 ······</div>
145 ··············<h3>Last·update:</h3>146 ··············<h3>Last·update:</h3>
146 ··············<p·class="topless">Sep·03,·2024</p>147 ··············<p·class="topless">set·03,·2024</p>
147 ··········</div>148 ··········</div>
148 ········149 ········
149 ······150 ······
150 ····</div>151 ····</div>
  
151 ····<div·id="ft">152 ····<div·id="ft">
152 ······<div·class="nav">153 ······<div·class="nav">
2.21 KB
html2text {}
Max HTML report size reached
25.0 KB
./usr/share/doc/python-django-doc/html/topics/testing/overview.html
    
Offset 1, 22 lines modifiedOffset 1, 23 lines modified
1 <!DOCTYPE·html>1 <!DOCTYPE·html>
  
2 <html·lang="en"·data-content_root="../../">2 <html·lang="it"·data-content_root="../../">
3 ··<head>3 ··<head>
4 ····<meta·charset="utf-8"·/>4 ····<meta·charset="utf-8"·/>
5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>5 ····<meta·name="viewport"·content="width=device-width,·initial-scale=1.0"·/><meta·name="viewport"·content="width=device-width,·initial-scale=1"·/>
  
6 ····<title>Writing·and·running·tests·&#8212;·Django·4.2.16·documentation</title>6 ····<title>Writing·and·running·tests·&#8212;·Documentazione·Django·4.2.16·</title>
7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>7 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/pygments.css?v=d10597a4"·/>
8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>8 ····<link·rel="stylesheet"·type="text/css"·href="../../_static/default.css?v=bf4d74af"·/>
9 ····<script·src="../../_static/documentation_options.js?v=c0732c08"></script>9 ····<script·src="../../_static/documentation_options.js?v=22dbfe03"></script>
10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>10 ····<script·src="../../_static/doctools.js?v=9a2dae69"></script>
11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>11 ····<script·src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
 12 ····<script·src="../../_static/translations.js?v=da26b4cc"></script>
12 ····<link·rel="index"·title="Index"·href="../../genindex.html"·/>13 ····<link·rel="index"·title="Indice"·href="../../genindex.html"·/>
13 ····<link·rel="search"·title="Search"·href="../../search.html"·/>14 ····<link·rel="search"·title="Cerca"·href="../../search.html"·/>
14 ····<link·rel="next"·title="Testing·tools"·href="tools.html"·/>15 ····<link·rel="next"·title="Testing·tools"·href="tools.html"·/>
15 ····<link·rel="prev"·title="Testing·in·Django"·href="index.html"·/>16 ····<link·rel="prev"·title="Testing·in·Django"·href="index.html"·/>
  
  
  
16 ·17 ·
17 <script·src="../../templatebuiltins.js"></script>18 <script·src="../../templatebuiltins.js"></script>
Offset 53, 15 lines modifiedOffset 54, 15 lines modified
53 })(jQuery);</script>54 })(jQuery);</script>
  
54 ··</head><body>55 ··</head><body>
  
55 ····<div·class="document">56 ····<div·class="document">
56 ··<div·id="custom-doc"·class="yui-t6">57 ··<div·id="custom-doc"·class="yui-t6">
57 ····<div·id="hd">58 ····<div·id="hd">
58 ······<h1><a·href="../../index.html">Django·4.2.16·documentation</a></h1>59 ······<h1><a·href="../../index.html">Documentazione·Django·4.2.16·</a></h1>
59 ······<div·id="global-nav">60 ······<div·id="global-nav">
60 ········<a·title="Home·page"·href="../../index.html">Home</a>··|61 ········<a·title="Home·page"·href="../../index.html">Home</a>··|
61 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|62 ········<a·title="Table·of·contents"·href="../../contents.html">Table·of·contents</a>··|
62 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|63 ········<a·title="Global·index"·href="../../genindex.html">Index</a>··|
63 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>64 ········<a·title="Module·index"·href="../../py-modindex.html">Modules</a>
64 ······</div>65 ······</div>
65 ······<div·class="nav">66 ······<div·class="nav">
Offset 76, 15 lines modifiedOffset 77, 15 lines modified
76 ······<div·id="yui-main">77 ······<div·id="yui-main">
77 ········<div·class="yui-b">78 ········<div·class="yui-b">
78 ··········<div·class="yui-g"·id="topics-testing-overview">79 ··········<div·class="yui-g"·id="topics-testing-overview">
79 ············80 ············
80 ··<section·id="s-module-django.test">81 ··<section·id="s-module-django.test">
81 <span·id="s-writing-and-running-tests"></span><span·id="module-django.test"></span><span·id="writing-and-running-tests"></span><h1>Writing·and·running·tests<a·class="headerlink"·href="#module-django.test"·title="Link·to·this·heading">¶</a></h1>82 <span·id="s-writing-and-running-tests"></span><span·id="module-django.test"></span><span·id="writing-and-running-tests"></span><h1>Writing·and·running·tests<a·class="headerlink"·href="#module-django.test"·title="Link·to·this·heading">¶</a></h1>
82 <div·class="admonition·seealso">83 <div·class="admonition·seealso">
83 <p·class="admonition-title">See·also</p>84 <p·class="admonition-title">Vedi·anche</p>
84 <p>The·<a·class="reference·internal"·href="../../intro/tutorial05.html"><span·class="doc">testing·tutorial</span></a>,·the·<a·class="reference·internal"·href="tools.html"><span·class="doc">testing·tools85 <p>The·<a·class="reference·internal"·href="../../intro/tutorial05.html"><span·class="doc">testing·tutorial</span></a>,·the·<a·class="reference·internal"·href="tools.html"><span·class="doc">testing·tools
85 reference</span></a>,·and·the·<a·class="reference·internal"·href="advanced.html"><span·class="doc">advanced·testing·topics</span></a>.</p>86 reference</span></a>,·and·the·<a·class="reference·internal"·href="advanced.html"><span·class="doc">advanced·testing·topics</span></a>.</p>
86 </div>87 </div>
87 <p>This·document·is·split·into·two·primary·sections.·First,·we·explain·how·to·write88 <p>This·document·is·split·into·two·primary·sections.·First,·we·explain·how·to·write
88 tests·with·Django.·Then,·we·explain·how·to·run·them.</p>89 tests·with·Django.·Then,·we·explain·how·to·run·them.</p>
89 <section·id="s-writing-tests">90 <section·id="s-writing-tests">
90 <span·id="writing-tests"></span><h2>Writing·tests<a·class="headerlink"·href="#writing-tests"·title="Link·to·this·heading">¶</a></h2>91 <span·id="writing-tests"></span><h2>Writing·tests<a·class="headerlink"·href="#writing-tests"·title="Link·to·this·heading">¶</a></h2>
Offset 122, 15 lines modifiedOffset 123, 15 lines modified
122 your·test·suite·grows·you’ll·likely·want·to·restructure·it·into·a·tests123 your·test·suite·grows·you’ll·likely·want·to·restructure·it·into·a·tests
123 package·so·you·can·split·your·tests·into·different·submodules·such·as124 package·so·you·can·split·your·tests·into·different·submodules·such·as
124 <code·class="docutils·literal·notranslate"><span·class="pre">test_models.py</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">test_views.py</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">test_forms.py</span></code>,·etc.·Feel·free·to125 <code·class="docutils·literal·notranslate"><span·class="pre">test_models.py</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">test_views.py</span></code>,·<code·class="docutils·literal·notranslate"><span·class="pre">test_forms.py</span></code>,·etc.·Feel·free·to
125 pick·whatever·organizational·scheme·you·like.</p>126 pick·whatever·organizational·scheme·you·like.</p>
126 <p>See·also·<a·class="reference·internal"·href="advanced.html#testing-reusable-applications"><span·class="std·std-ref">Using·the·Django·test·runner·to·test·reusable·applications</span></a>.</p>127 <p>See·also·<a·class="reference·internal"·href="advanced.html#testing-reusable-applications"><span·class="std·std-ref">Using·the·Django·test·runner·to·test·reusable·applications</span></a>.</p>
127 </div>128 </div>
128 <div·class="admonition·warning">129 <div·class="admonition·warning">
129 <p·class="admonition-title">Warning</p>130 <p·class="admonition-title">Avvertimento</p>
130 <p>If·your·tests·rely·on·database·access·such·as·creating·or·querying·models,131 <p>If·your·tests·rely·on·database·access·such·as·creating·or·querying·models,
131 be·sure·to·create·your·test·classes·as·subclasses·of132 be·sure·to·create·your·test·classes·as·subclasses·of
132 <a·class="reference·internal"·href="tools.html#django.test.TestCase"·title="django.test.TestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.TestCase</span></code></a>·rather·than·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>.</p>133 <a·class="reference·internal"·href="tools.html#django.test.TestCase"·title="django.test.TestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">django.test.TestCase</span></code></a>·rather·than·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>.</p>
133 <p>Using·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>·avoids·the·cost·of·running·each·test·in·a134 <p>Using·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>·avoids·the·cost·of·running·each·test·in·a
134 transaction·and·flushing·the·database,·but·if·your·tests·interact·with135 transaction·and·flushing·the·database,·but·if·your·tests·interact·with
135 the·database·their·behavior·will·vary·based·on·the·order·that·the·test136 the·database·their·behavior·will·vary·based·on·the·order·that·the·test
136 runner·executes·them.·This·can·lead·to·unit·tests·that·pass·when·run·in137 runner·executes·them.·This·can·lead·to·unit·tests·that·pass·when·run·in
Offset 143, 16 lines modifiedOffset 144, 16 lines modified
143 your·project’s·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span></code>·utility:</p>144 your·project’s·<code·class="docutils·literal·notranslate"><span·class="pre">manage.py</span></code>·utility:</p>
144 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span>145 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span>$<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span>
145 </pre></div>146 </pre></div>
146 </div>147 </div>
147 <p>Test·discovery·is·based·on·the·unittest·module’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest-test-discovery"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">built-in·test148 <p>Test·discovery·is·based·on·the·unittest·module’s·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest-test-discovery"·title="(in·Python·v3.12)"><span·class="xref·std·std-ref">built-in·test
148 discovery</span></a>.··By·default,·this·will·discover·tests·in149 discovery</span></a>.··By·default,·this·will·discover·tests·in
149 any·file·named·<code·class="docutils·literal·notranslate"><span·class="pre">test*.py</span></code>·under·the·current·working·directory.</p>150 any·file·named·<code·class="docutils·literal·notranslate"><span·class="pre">test*.py</span></code>·under·the·current·working·directory.</p>
150 <p>You·can·specify·particular·tests·to·run·by·supplying·any·number·of·test151 <p>You·can·specify·particular·tests·to·run·by·supplying·any·number·of·«test
151 labels·to·<code·class="docutils·literal·notranslate"><span·class="pre">./manage.py</span>·<span·class="pre">test</span></code>.·Each·test·label·can·be·a·full·Python·dotted152 labels»·to·<code·class="docutils·literal·notranslate"><span·class="pre">./manage.py</span>·<span·class="pre">test</span></code>.·Each·test·label·can·be·a·full·Python·dotted
152 path·to·a·package,·module,·<code·class="docutils·literal·notranslate"><span·class="pre">TestCase</span></code>·subclass,·or·test·method.·For·instance:</p>153 path·to·a·package,·module,·<code·class="docutils·literal·notranslate"><span·class="pre">TestCase</span></code>·subclass,·or·test·method.·For·instance:</p>
153 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·Run·all·the·tests·in·the·animals.tests·module</span>154 <div·class="highlight-shell·notranslate"><div·class="highlight"><pre><span></span><span·class="c1">#·Run·all·the·tests·in·the·animals.tests·module</span>
154 $<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span><span·class="w">·</span>animals.tests155 $<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span><span·class="w">·</span>animals.tests
  
155 <span·class="c1">#·Run·all·the·tests·found·within·the·&#39;animals&#39;·package</span>156 <span·class="c1">#·Run·all·the·tests·found·within·the·&#39;animals&#39;·package</span>
156 $<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span><span·class="w">·</span>animals157 $<span·class="w">·</span>./manage.py<span·class="w">·</span><span·class="nb">test</span><span·class="w">·</span>animals
  
Offset 193, 15 lines modifiedOffset 194, 15 lines modified
193 display·deprecation·warnings.·Django,·like·many·other·Python·libraries,194 display·deprecation·warnings.·Django,·like·many·other·Python·libraries,
194 uses·these·warnings·to·flag·when·features·are·going·away.·It·also·might195 uses·these·warnings·to·flag·when·features·are·going·away.·It·also·might
195 flag·areas·in·your·code·that·aren’t·strictly·wrong·but·could·benefit196 flag·areas·in·your·code·that·aren’t·strictly·wrong·but·could·benefit
196 from·a·better·implementation.</p>197 from·a·better·implementation.</p>
197 </div>198 </div>
198 <section·id="s-the-test-database">199 <section·id="s-the-test-database">
199 <span·id="s-id2"></span><span·id="the-test-database"></span><span·id="id2"></span><h3>The·test·database<a·class="headerlink"·href="#the-test-database"·title="Link·to·this·heading">¶</a></h3>200 <span·id="s-id2"></span><span·id="the-test-database"></span><span·id="id2"></span><h3>The·test·database<a·class="headerlink"·href="#the-test-database"·title="Link·to·this·heading">¶</a></h3>
200 <p>Tests·that·require·a·database·(namely,·model·tests)·will·not·use·your·real201 <p>Tests·that·require·a·database·(namely,·model·tests)·will·not·use·your·«real»
201 (production)·database.·Separate,·blank·databases·are·created·for·the·tests.</p>202 (production)·database.·Separate,·blank·databases·are·created·for·the·tests.</p>
202 <p>Regardless·of·whether·the·tests·pass·or·fail,·the·test·databases·are·destroyed203 <p>Regardless·of·whether·the·tests·pass·or·fail,·the·test·databases·are·destroyed
203 when·all·the·tests·have·been·executed.</p>204 when·all·the·tests·have·been·executed.</p>
204 <p>You·can·prevent·the·test·databases·from·being·destroyed·by·using·the205 <p>You·can·prevent·the·test·databases·from·being·destroyed·by·using·the
205 <a·class="reference·internal"·href="../../ref/django-admin.html#cmdoption-test-keepdb"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">test</span>·<span·class="pre">--keepdb</span></code></a>·option.·This·will·preserve·the·test·database·between206 <a·class="reference·internal"·href="../../ref/django-admin.html#cmdoption-test-keepdb"><code·class="xref·std·std-option·docutils·literal·notranslate"><span·class="pre">test</span>·<span·class="pre">--keepdb</span></code></a>·option.·This·will·preserve·the·test·database·between
206 runs.·If·the·database·does·not·exist,·it·will·first·be·created.·Any·migrations207 runs.·If·the·database·does·not·exist,·it·will·first·be·created.·Any·migrations
207 will·also·be·applied·in·order·to·keep·it·up·to·date.</p>208 will·also·be·applied·in·order·to·keep·it·up·to·date.</p>
Offset 241, 15 lines modifiedOffset 242, 15 lines modified
241 module-level·code·and·a·real·database·exists,·production·data·could·pollute242 module-level·code·and·a·real·database·exists,·production·data·could·pollute
242 your·tests.·<em>It·is·a·bad·idea·to·have·such·import-time·database·queries·in243 your·tests.·<em>It·is·a·bad·idea·to·have·such·import-time·database·queries·in
243 your·code</em>·anyway·-·rewrite·your·code·so·that·it·doesn’t·do·this.</p>244 your·code</em>·anyway·-·rewrite·your·code·so·that·it·doesn’t·do·this.</p>
244 <p>This·also·applies·to·customized·implementations·of245 <p>This·also·applies·to·customized·implementations·of
245 <a·class="reference·internal"·href="../../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>.</p>246 <a·class="reference·internal"·href="../../ref/applications.html#django.apps.AppConfig.ready"·title="django.apps.AppConfig.ready"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">ready()</span></code></a>.</p>
246 </div>247 </div>
247 <div·class="admonition·seealso">248 <div·class="admonition·seealso">
248 <p·class="admonition-title">See·also</p>249 <p·class="admonition-title">Vedi·anche</p>
249 <p>The·<a·class="reference·internal"·href="advanced.html#topics-testing-advanced-multidb"><span·class="std·std-ref">advanced·multi-db·testing·topics</span></a>.</p>250 <p>The·<a·class="reference·internal"·href="advanced.html#topics-testing-advanced-multidb"><span·class="std·std-ref">advanced·multi-db·testing·topics</span></a>.</p>
250 </div>251 </div>
251 </section>252 </section>
252 <section·id="s-order-in-which-tests-are-executed">253 <section·id="s-order-in-which-tests-are-executed">
253 <span·id="s-order-of-tests"></span><span·id="order-in-which-tests-are-executed"></span><span·id="order-of-tests"></span><h3>Order·in·which·tests·are·executed<a·class="headerlink"·href="#order-in-which-tests-are-executed"·title="Link·to·this·heading">¶</a></h3>254 <span·id="s-order-of-tests"></span><span·id="order-in-which-tests-are-executed"></span><span·id="order-of-tests"></span><h3>Order·in·which·tests·are·executed<a·class="headerlink"·href="#order-in-which-tests-are-executed"·title="Link·to·this·heading">¶</a></h3>
254 <p>In·order·to·guarantee·that·all·<code·class="docutils·literal·notranslate"><span·class="pre">TestCase</span></code>·code·starts·with·a·clean·database,255 <p>In·order·to·guarantee·that·all·<code·class="docutils·literal·notranslate"><span·class="pre">TestCase</span></code>·code·starts·with·a·clean·database,
255 the·Django·test·runner·reorders·tests·in·the·following·way:</p>256 the·Django·test·runner·reorders·tests·in·the·following·way:</p>
Offset 259, 22 lines modifiedOffset 260, 22 lines modified
259 <a·class="reference·internal"·href="tools.html#django.test.SimpleTestCase"·title="django.test.SimpleTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SimpleTestCase</span></code></a>,·including260 <a·class="reference·internal"·href="tools.html#django.test.SimpleTestCase"·title="django.test.SimpleTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">SimpleTestCase</span></code></a>,·including
260 <a·class="reference·internal"·href="tools.html#django.test.TransactionTestCase"·title="django.test.TransactionTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TransactionTestCase</span></code></a>)·are·run·with·no·particular261 <a·class="reference·internal"·href="tools.html#django.test.TransactionTestCase"·title="django.test.TransactionTestCase"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">TransactionTestCase</span></code></a>)·are·run·with·no·particular
261 ordering·guaranteed·nor·enforced·among·them.</p></li>262 ordering·guaranteed·nor·enforced·among·them.</p></li>
262 <li><p>Then·any·other·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>·tests·(including·doctests)·that·may263 <li><p>Then·any·other·<a·class="reference·external"·href="/usr/share/doc/python3-doc/html/library/unittest.html#unittest.TestCase"·title="(in·Python·v3.12)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">unittest.TestCase</span></code></a>·tests·(including·doctests)·that·may
263 alter·the·database·without·restoring·it·to·its·original·state·are·run.</p></li>264 alter·the·database·without·restoring·it·to·its·original·state·are·run.</p></li>
264 </ul>265 </ul>
Max diff block lines reached; 4845/15886 bytes (30.50%) of diff not shown.
9.37 KB
html2text {}
Max HTML report size reached
211 KB
./usr/share/doc/python-django-doc/html/topics/testing/tools.html
Max HTML report size reached
66.4 KB
./usr/share/doc/python-django-doc/html/_static/language_data.js
Max HTML report size reached