{"title":"Socruithe","version":"6.1","locale":"ga","docname":"ref/settings","url":"/ga/6.1/ref/settings/","canonical":"https://djangodocs.dev/ga/6.1/ref/settings/","summary":"Socruithe lárnacha Authas Teachtaireachtaí Seisiúin Suíomhanna Comhaid Statach Innéacs Áiritheach na Socruithe Warning Bí cúramach nuair a sháraigh tú socruithe, go…","html":"<h1>Socruithe<a class=\"heading-anchor\" href=\"#settings\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<nav class=\"contents local\" id=\"contents\">\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#core-settings\" id=\"id16\">Socruithe lárnacha</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#auth\" id=\"id17\">Authas</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#messages\" id=\"id18\">Teachtaireachtaí</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#sessions\" id=\"id19\">Seisiúin</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#sites\" id=\"id20\">Suíomhanna</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#static-files\" id=\"id21\">Comhaid Statach</a></p></li>\n<li><p><a class=\"reference internal\" href=\"#core-settings-topical-index\" id=\"id22\">Innéacs Áiritheach na Socruithe</a></p></li>\n</ul>\n</nav>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>Bí cúramach nuair a sháraigh tú socruithe, go háirithe nuair is liosta nó foclóir neamh-folamh é an luach réamhshocraithe, mar shampla:setting: STATICFILES_FINDERS. Déan cinnte go gcoinníonn tú na comhpháirteanna a theastaíonn ó ghnéithe Django is mian leat a úsáid.</p>\n</aside>\n<section id=\"core-settings\">\n<h2><a class=\"toc-backref\" href=\"#id16\" role=\"doc-backlink\">Socruithe lárnacha</a><a class=\"headerlink\" href=\"#core-settings\" title=\"Link to this heading\">¶</a></h2>\n<p>Seo liosta de na socruithe atá ar fáil i gcroí Django agus a luachanna réamhshocraithe. Tá socruithe a sholáthraíonn aipeanna contrib liostaithe thíos, agus innéacs tráthúil de na croí-shocruithe ina dhiaidh sin. Le haghaidh ábhar tosaigh, féach an:doc: treoir ábhair <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>socruithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>&lt;/topics/settings&gt;.</p>\n<section id=\"absolute-url-overrides\">\n<span id=\"std-setting-ABSOLUTE_URL_OVERRIDES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">URL_ABSOLUTE_OVERRIDES</span></code><a class=\"heading-anchor\" href=\"#absolute-url-overrides\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Foclóir folamh)</p>\n<p>Tá foclóir ag mapáil <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;app_label.model_name&quot;</span></code> teaghrán chuig feidhmeanna a thógann réad samhail agus a chuireann a URL ar ais. Is bealach é seo chun modhanna <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>get_absolute_url () <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>a chur isteach nó a shárú ar bhonn in aghaidh an tsuiteála. Sampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">ABSOLUTE_URL_OVERRIDES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;blogs.blog&quot;</span><span class=\"p\">:</span> <span class=\"k\">lambda</span> <span class=\"n\">o</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/blogs/</span><span class=\"si\">%s</span><span class=\"s2\">/&quot;</span> <span class=\"o\">%</span> <span class=\"n\">o</span><span class=\"o\">.</span><span class=\"n\">slug</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;news.story&quot;</span><span class=\"p\">:</span> <span class=\"k\">lambda</span> <span class=\"n\">o</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/stories/</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\">o</span><span class=\"o\">.</span><span class=\"n\">pub_year</span><span class=\"p\">,</span> <span class=\"n\">o</span><span class=\"o\">.</span><span class=\"n\">slug</span><span class=\"p\">),</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Ba chóir go mbeadh an t-ainm samhail a úsáidtear sa suíomh seo go léir líon beag, beag beann ar chás ainm aicme iarbhír an tsamhail.</p>\n</section>\n<section id=\"admins\">\n<span id=\"std-setting-ADMINS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>RIARACHÁIN ``<a class=\"heading-anchor\" href=\"#admins\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de na daoine go léir a fhaigheann fógraí earráide cód. Nuair: Setting: debug = false &lt;DEBUG&gt;`agus:class: `~django.utils.log.adminEmailHandler cumraithe in:setting: LOGGING (déanta de réir réamhshocraithe), ríomhphostálann Django na sonraí eisceachtaí a ardaíodh sa timthriall iarrata/freagartha do na daoine seo.</p>\n<p>Each item in the list should be an email address string. Example:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">ADMINS</span> <span class=\"o\">=</span> <span class=\"p\">[</span><span class=\"s2\">&quot;john@example.com&quot;</span><span class=\"p\">,</span> <span class=\"s1\">&#39;&quot;Ng, Mary&quot; &lt;mary@example.com&gt;&#39;</span><span class=\"p\">]</span>\n</code></pre></div>\n<p>To safely build an address with a display name from variable content, see\n<a class=\"reference internal\" href=\"/ga/6.1/topics/email/#formatting-addresses\"><span class=\"std std-ref\">Formatting email addresses</span></a>, which recommends using\n<a class=\"reference external\" href=\"https://docs.python.org/3/library/email.headerregistry.html#email.headerregistry.Address\" title=\"(in Python v3.14)\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">Address</span></code></a> over string formatting, but since this\nsetting requires a list of strings, wrap each <code class=\"docutils literal notranslate\"><span class=\"pre\">Address</span></code> in <code class=\"docutils literal notranslate\"><span class=\"pre\">str(...)</span></code>.</p>\n<aside class=\"version-note version-changed\" data-version=\"6.0\">\n<p class=\"version-note-title\">Changed in Django 6.0</p><p>In older versions, required a list of (name, address) tuples.</p>\n</aside>\n</section>\n<section id=\"allowed-hosts\">\n<span id=\"std-setting-ALLOWED_HOSTS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">ÓSTÁLACHA</span> <span class=\"pre\">CEADAITHEAD</span></code><a class=\"heading-anchor\" href=\"#allowed-hosts\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de na teaghráin a léiríonn na hainmneacha óstaí/fearainn ar féidir leis an suíomh Django seo freastal orthu. Is beart slándála é seo chun cosc a choisc:ref: Ionsaithe ceanntásc Óstach HTTP &lt;host-headers-virtual-hosting&gt;, atá indéanta fiú faoi go leor cumraíochtaí freastalaí gréasáin atá cosúil go bhfuil siad sábháilte.</p>\n<p>Is féidir le luachanna sa liosta seo a bheith ina ainmneacha láncháilithe (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">`www.example.com'</span></code>), agus sa chás sin déanfar iad a mheaitseáil i gcoinne ceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">Óst`</span> <span class=\"pre\">an</span> <span class=\"pre\">iarratais</span> <span class=\"pre\">go</span> <span class=\"pre\">díreach</span> <span class=\"pre\">(cás-neamh-íogair,</span> <span class=\"pre\">gan</span> <span class=\"pre\">calafort</span> <span class=\"pre\">san</span> <span class=\"pre\">áireamh).</span> <span class=\"pre\">Is</span> <span class=\"pre\">féidir</span> <span class=\"pre\">luach</span> <span class=\"pre\">a</span> <span class=\"pre\">thosaíonn</span> <span class=\"pre\">le</span> <span class=\"pre\">tréimhse</span> <span class=\"pre\">a</span> <span class=\"pre\">úsáid</span> <span class=\"pre\">mar</span> <span class=\"pre\">fho-chárta</span> <span class=\"pre\">fiáin:</span> <span class=\"pre\">meaitneoidh</span> <span class=\"pre\">``'.example.com'</span></code> <code class=\"docutils literal notranslate\"><span class=\"pre\">example.com</span></code>, www.example.com`, agus aon fho-fhearann eile de example.com`. Meaitneoidh luach <code class=\"docutils literal notranslate\"><span class=\"pre\">*'</span></code> rud ar bith; sa chás seo tá tú freagrach as do bhailíochtú féin a sholáthar ar an gceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">Host</span></code> (b'fhéidir i lár- earraí; más amhlaidh ní mór an middleware seo a liostú ar dtús in:setting: MIDDLEWARE).</p>\n<p>Ceadaíonn Django freisin ainm fearainn láncháilithe (FQDN) `_ d'aon iontrálacha. Cuimsíonn roinnt brabhsálaithe ponc críochnaitheach sa cheanntásc ``Óst a stiallann Django agus bailíochtú óstach á ndéanamh.</p>\n<p>If the <code class=\"docutils literal notranslate\"><span class=\"pre\">Host</span></code> header (or <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Host</span></code> if\n<a class=\"reference internal\" href=\"#std-setting-USE_X_FORWARDED_HOST\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_X_FORWARDED_HOST</span></code></a> is enabled) does not match any value in this\nlist, the <a class=\"reference internal\" href=\"/ga/6.1/ref/request-response/#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 will raise\n<a class=\"reference internal\" href=\"/ga/6.1/ref/exceptions/#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>.</p>\n<p>Nuair a bhíonn: Setting: DEBUG <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> agus <code class=\"docutils literal notranslate\"><span class=\"pre\">ALLOWED_HOSTS</span></code> folamh, bailítear an t-óstach i gcoinne <code class=\"docutils literal notranslate\"><span class=\"pre\">['.localhost',</span> <span class=\"pre\">'127.0.0.1',</span> <span class=\"pre\">'[::1]']</span></code>.</p>\n<p>&lt;topics-testing-advanced-multiple-hosts&gt;Tá <code class=\"docutils literal notranslate\"><span class=\"pre\">ALLOWED_HOSTS</span></code> freis:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>seiceáilte agus tástálacha á reáchtáil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>This validation only applies via <a class=\"reference internal\" href=\"/ga/6.1/ref/request-response/#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>;\nif 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\nare bypassing this security protection.</p>\n</section>\n<section id=\"append-slash\">\n<span id=\"std-setting-APPEND_SLASH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">APPEND_SLASH</span></code><a class=\"heading-anchor\" href=\"#append-slash\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Nuair a bheidh sé socraithe go True`, mura n-oireann URL an iarratais aon cheann de na patrúin san URLConf agus mura gcríochnaíonn sé i slash, eisítear atreorú HTTP chuig an URL céanna le slash curtha leis. Tabhair faoi deara gur féidir leis an atreorú a bheith ina chúis le haon sonraí a chuirtear isteach in iarratas POST a chailleadh</p>\n<p>Ní úsáidtear an socrú: Setting: APPEND_SLASH ach má tá: class: ~django.middleware.common.commonMiddleware suiteáilte (féach: doc: /topics/http/middleware). Féach freis:socrú: PREPEND_WWW.</p>\n</section>\n<section id=\"caches\">\n<span id=\"std-setting-CACHES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CÁIS</span></code><a class=\"heading-anchor\" href=\"#caches\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.cache.backends.locmem.LocMemCache&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Foclóir ina bhfuil na socruithe do gach taisce le húsáid le Django. Is foclóir neadaithe é a léarscálann a n-ábhar ainmneacha taisce chuig foclóir ina bhfuil na roghanna le haghaidh taisce aonair.</p>\n<p>Ní mór don socrú: Socrú: CACHES taisce <code class=\"docutils literal notranslate\"><span class=\"pre\">réamhshocraithe</span></code> a chumrú; féadfar aon líon taisce breise a shonrú freisin. Má tá cúltaca taisce á úsáid agat seachas an taisce cuimhne áitiúil, nó má theastaíonn uait iolracha a shainiú, beidh roghanna eile ag teastáil. Tá na roghanna taisce seo a leanas ar fáil.</p>\n<section id=\"backend\">\n<span id=\"std-setting-CACHES-BACKEND\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">`CÚLT</span></code><a class=\"heading-anchor\" href=\"#backend\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>An cúltaca taisce le húsáid. Is iad na cúltaca taisce ionsuite:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Core.Cache.Backends.db.DatabaseCache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.Core.Cache.Backends.Dummy.DummyCache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Core.Cache.Backends.FileBased.FileBasedCache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Core.Cache.Backends.Locmem.LocMemCache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.Core.Cache.Backends.Memcached.PymemCacheCache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.Core.Cache.Backends.memcached.pylibmccache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.Core.Cache.Backends.Redis.RedisCache'</span></code></p></li>\n</ul>\n<p>Is féidir leat cúltaca taisce nach seolann le Django a úsáid trí shocrú: BACKEND `chuig cosán láncháilithe &lt;CACHES-BACKEND&gt;de rang cúltaca taisce (ie ``MyPackage.Backends.whatever.whateverCache`).</p>\n</section>\n<section id=\"key-function\">\n<span id=\"std-setting-CACHES-KEY_FUNCTION\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">EOCHAIRFHEIDHME</span></code><a class=\"heading-anchor\" href=\"#key-function\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>A string containing a dotted path to a function (or any callable) that defines\nhow to compose a key, prefix, and version into a final cache key. The default\nfunction converts the components to strings and joins them with colons, as\nshown in the <a class=\"reference internal\" href=\"/ga/6.1/topics/cache/#cache-key-transformation\"><span class=\"std std-ref\">cache documentation</span></a>.</p>\n<p>Féadfaidh tú aon phríomhfheidhm a theastaíonn uait a úsáid, fad is atá an síniú argóint céanna aige.</p>\n</section>\n<section id=\"key-prefix\">\n<span id=\"std-setting-CACHES-KEY_PREFIX\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">EOCHAIR_RÉAMH</span></code><a class=\"heading-anchor\" href=\"#key-prefix\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Sreang a chuirfear san áireamh go huathoibríoch (réamhshocraithe de réir réamhshocraithe) chuig gach eochair taisce a úsáideann an freastalaí Django.</p>\n<p>Féach na:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cáipéisíocht taiscéala &lt;cache_key_prefixing&gt;`le haghaidh tuilleadh faisnéise.</p>\n</section>\n<section id=\"location\">\n<span id=\"std-setting-CACHES-LOCATION\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">SUÍOMH</span></code><a class=\"heading-anchor\" href=\"#location\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Suíomh an taisce le húsáid. D'fhéadfadh gurb é seo an eolaire do taisce chórais chomhaid, óstach agus calafort do fhreastalaí memcache, nó ainm aitheantais do taisce cuimhne áitiúil. m.sh.:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">CACHES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.cache.backends.filebased.FileBasedCache&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;LOCATION&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/var/tmp/django_cache&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n</section>\n<section id=\"options\">\n<span id=\"std-setting-CACHES-OPTIONS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNAÍ</span></code><a class=\"heading-anchor\" href=\"#options\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Paraiméadair bhreise le dul chuig an gcúltaca taisce. Athraíonn paraiméadair atá ar fáil ag brath ar do chúltaca taisce.</p>\n<p>&lt;cache_arguments&gt;Is féidir roinnt faisnéise faoi pharaiméadair atá ar fáil a fháil sa doiciméadúiséireacht: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cache argóintí <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>. Le haghaidh tuilleadh faisnéise, téigh i gcomhairle le cáipéisíocht do mhodúl cúlt</p>\n</section>\n<section id=\"timeout\">\n<span id=\"std-setting-CACHES-TIMEOUT\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">TIMEOUT</span></code><a class=\"heading-anchor\" href=\"#timeout\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>300`</p>\n<p>Meastar go bhfuil líon na soicind roimh iontráil taisce seasmhach. Más luach an socraithe seo <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, ní rachaidh iontrálacha taisce in éag. Fágann luach <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code> go rachaidh eochracha in éag láithreach (go héifeachtach “ná taisceáil”).</p>\n</section>\n<section id=\"version\">\n<span id=\"std-setting-CACHES-VERSION\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">LEAGAN</span></code><a class=\"heading-anchor\" href=\"#version\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">1</span></code></p>\n<p>An uimhir leagan réamhshocraithe d'eochracha taisce a ghineann an freastalaí Django.</p>\n<p>Féach na:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cáipéisíocht taiscéala &lt;cache_versioning&gt;`le haghaidh tuilleadh faisnéise.</p>\n</section>\n</section>\n<section id=\"cache-middleware-alias\">\n<span id=\"std-setting-CACHE_MIDDLEWARE_ALIAS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_ALIAS</span></code><a class=\"heading-anchor\" href=\"#cache-middleware-alias\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'default'</span></code></p>\n<p>&lt;the-per-site-cache&gt;An nasc taisce le húsáid don: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cache middleware <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"cache-middleware-key-prefix\">\n<span id=\"std-setting-CACHE_MIDDLEWARE_KEY_PREFIX\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_KEY_PREFIX</span></code><a class=\"heading-anchor\" href=\"#cache-middleware-key-prefix\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>&lt;the-per-site-cache&gt;Sreang a bheidh réamhshocraithe leis na heochracha taisce a ghineann an: ref: cache middleware `. Comhcheanglaítear an réimír seo leis an socrú: setting: `KEY_PREFIX &lt;CACHES-KEY_PREFIX&gt;; ní chuireann sé in ionad é.</p>\n<p>Féach: doc: /topics/cache.</p>\n</section>\n<section id=\"cache-middleware-seconds\">\n<span id=\"std-setting-CACHE_MIDDLEWARE_SECONDS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_SOICIND</span></code><a class=\"heading-anchor\" href=\"#cache-middleware-seconds\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>600`</p>\n<p>&lt;the-per-site-cache&gt;An líon iomláir réamhshocraithe soicind chun leathanach a thaisceadh don: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cache middleware <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach: doc: /topics/cache.</p>\n</section>\n<section id=\"csrf-cookie-age\">\n<span id=\"std-setting-CSRF_COOKIE_AGE\"></span><span id=\"settings-csrf\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_AOS</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-age\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">31449600</span></code> (thart ar 1 bhliain, i soicindí)</p>\n<p>Aois fianáin CSRF, i soicindí.</p>\n<p>Is é an chúis le am éaga fadtréimhse a shocrú fadhbanna a sheachaint i gcás úsáideoir ag dúnadh brabhsálaí nó leathanach a leabharmharcáil agus ansin an leathanach sin a luchtú ó taisce brabhsálaí. Gan fianáin leanúnacha, theipfeadh ar an aighneacht foirme sa chás seo.</p>\n<p>Féadann roinnt brabhsálaithe (go sonrach Internet Explorer) fianáin leanúnacha a úsáid nó féadfaidh siad na hinnéacsanna don phróca fianán a bheith truaillithe ar dhiosca, rud a fhágann go dteipfidh seiceálacha cosanta CSRF (uaireanta go tréimhseach). Athraigh an socrú seo go <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>chun fianáin CSRF bunaithe ar sheisiún a úsáid, a choinníonn na fianáin i gcuimhne seachas ar stóráil leanúnach.</p>\n</section>\n<section id=\"csrf-cookie-domain\">\n<span id=\"std-setting-CSRF_COOKIE_DOMAIN\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_DOMAIN</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-domain\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>The domain to be used when setting the CSRF cookie. This can be useful for\neasily allowing cross-subdomain requests to be excluded from the normal cross\nsite request forgery protection. It should be set to a string such as\n<code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;.example.com&quot;</span></code> to allow a POST request from a form on one subdomain to be\naccepted by a view served from another subdomain.</p>\n<p>&lt;csrf-limitations&gt;Tabhair faoi deara le do thoil nach dtugann láithreacht an socrú seo le tuiscint go bhfuil cosaint CSRF Django sábháilte ó ionsaithe tras-fho-fearainn de réir réamhshocraithe - féach an ranna:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Teorainneacha CSRF <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"csrf-cookie-httponly\">\n<span id=\"std-setting-CSRF_COOKIE_HTTPONLY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_HTTPONLY</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-httponly\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé an bhratach HttpOnly a úsáid ar an bhfianán CSRF. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, ní bheidh JavaScript taobh an chliaint in ann rochtain a fháil ar an bhfianán CSRF.</p>\n<p>Ní thugann an fianán CSRF a ainmniú mar HttpOnly aon chosaint phraiticiúil toisc nach bhfuil CSRF ach chun cosaint a dhéanamh ar ionsaithe tras-fearainn. Más féidir le hionsaitheoir an fianán a léamh trí JavaScript, tá siad ar an bhfearann céanna cheana féin chomh fada agus is eol don bhrabhsálaí, ionas gur féidir leo aon rud is mian leo a dhéanamh ar aon nós. (Is poll i bhfad níos mó é XSS ná CSRF.)</p>\n<p>Cé nach dtugann an suíomh mórán sochair phraiticiúil, uaireanta teastaíonn iniúchóirí slándála é</p>\n<p>&lt;acquiring-csrf-token-from-cookie&gt;Má chumasaíonn tú é seo agus má theastaíonn uait luach an chomhartha CSRF a sheoladh le hiarratas AJAX, ní mór do JavaScript an luach:ref: ó ionchur foirm chomhartha CSRF i bhfolach `in &lt;acquiring-csrf-token-from-html&gt;ionad:ref: `ón bhfianán a tharraingt.</p>\n<p>Féach: SETTING: SESSION_COOKIE_HTTPONLY le haghaidh sonraí ar HTTPONLY`.</p>\n</section>\n<section id=\"csrf-cookie-name\">\n<span id=\"std-setting-CSRF_COOKIE_NAME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`AINM_CSRF_COOKIE</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'csrftoken'</span></code></p>\n<p>Ainm na fianáin le húsáid le haghaidh comhartha fíordheimhnithe CSRF. Is féidir leis seo a bheith cibé rud is mian leat (fad is atá sé difriúil ó na hainmneacha fianán eile i d'iarratas). Féach: doc: /ref/csrf.</p>\n</section>\n<section id=\"csrf-cookie-path\">\n<span id=\"std-setting-CSRF_COOKIE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_PATH</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'/'</span></code></p>\n<p>An cosán atá leagtha síos ar an bhfianán CSRF. Ba chóir go mbeadh sé seo comhoiriúnach le cosán URL do shuiteála Django nó a bheith ina thuismitheoir ar an gcosán sin.</p>\n<p>Tá sé seo úsáideach má tá cásanna iolracha Django agat ag rith faoin ainm óstach céanna. Is féidir leo cosáin éagsúla fianán a úsáid, agus ní fheicfidh gach cás ach a fhianán CSRF féin.</p>\n</section>\n<section id=\"csrf-cookie-samesite\">\n<span id=\"std-setting-CSRF_COOKIE_SAMESITE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_SAMESITE</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-samesite\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Lax'</span></code></p>\n<p>Luach an bhratach <a class=\"reference external\" href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value\">SameSite</a> ar an bhfianán CSRF. Cuireann an bratach seo cosc ar an bhfianán a sheoladh in iarratais tras-láithreáin.</p>\n<p>Féach:SETTING: SESSION_COOKIE_SAMESITE le haghaidh sonraí faoi Samesite`.</p>\n</section>\n<section id=\"csrf-cookie-secure\">\n<span id=\"std-setting-CSRF_COOKIE_SECURE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_SECURE</span></code><a class=\"heading-anchor\" href=\"#csrf-cookie-secure\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu fianán slán a úsáid don fhianán CSRF. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, marcálfar an fianán mar “slán”, rud a chiallaíonn go bhféadfadh brabhsálaithe a chinntiú nach seoltar an fianán ach le nasc HTTPS.</p>\n</section>\n<section id=\"csrf-use-sessions\">\n<span id=\"std-setting-CSRF_USE_SESSIONS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÚINT_ÚSÁID_CSRF</span></code><a class=\"heading-anchor\" href=\"#csrf-use-sessions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu an comhartha CSRF a stóráil i seisiún an úsáideora in ionad i bhfianán. Éilíonn sé úsáid:mod: django.contrib.sesions.</p>\n<p>Tá an comhartha CSRF a stóráil i bhfianán (réamhshocrú Django) sábháilte, ach is cleachtas coitianta é a stóráil sa seisiún i gcreataí gréasáin eile agus dá bhrí sin éilíonn iniúchóirí slándála uaireanta.</p>\n<p>Ós rud é go dteastaíonn comhartha &lt;error-views&gt;CSRF uir:ref: réamhshocraithe earráidí `, :class: `~django.contrib.sessions.middleware.sessionMiddleware le feiceáil in:setting: MIDDLEWARE roimh aon middleware a d'fhéadfadh eisceacht a ardú chun amharc earráide a spreagadh (mar shampla:exc: ~django.core.exceptions.perdenied) má tá tú ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_USE_SESSIONS</span></code>. Féach: ref: middleware-ording.</p>\n</section>\n<section id=\"csrf-failure-view\">\n<span id=\"std-setting-CSRF_FAILURE_VIEW\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_FAILURE_VIEW</span></code><a class=\"heading-anchor\" href=\"#csrf-failure-view\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'django.views.csrf.csrf_failure'</span></code></p>\n<p>Conair poncaí chuig an bhfeidhm amharc atá le húsáid nuair a dhiúltaítear iarratas isteach ag na:doc: Cosaint CSRF &lt;/ref/csrf&gt;. Ba chóir go mbeadh an síniú seo ag an bhfeidhm:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"k\">def</span><span class=\"w\"> </span><span class=\"nf\">csrf_failure</span><span class=\"p\">(</span><span class=\"n\">request</span><span class=\"p\">,</span> <span class=\"n\">reason</span><span class=\"o\">=</span><span class=\"s2\">&quot;&quot;</span><span class=\"p\">):</span> <span class=\"o\">...</span>\n</code></pre></div>\n<p>i gcás gur teachtaireacht ghearr (atá beartaithe d'fhorbróirí nó logála, ní d'úsáideoirí deiridh) a léiríonn an chúis a dhiúltaíodh don iarratas. Ba chóir dó filleadh an:class: ~django.http.httpResponseForbidden.</p>\n<p>Glacann <code class=\"docutils literal notranslate\"><span class=\"pre\">django.views.csrf.csrf_failure</span> <span class=\"pre\">()</span> <span class=\"pre\">``le</span> <span class=\"pre\">paraiméadar</span> <span class=\"pre\">breise</span> <span class=\"pre\">``template_name</span></code> atá réamhshocraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">403_csrf.html'</span></code>. Má tá teimpléad leis an ainm sin ann, úsáidfear é chun an leathanach a rinneadh.</p>\n</section>\n<section id=\"csrf-header-name\">\n<span id=\"std-setting-CSRF_HEADER_NAME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`CSRF_HEADER_AINM</span></code><a class=\"heading-anchor\" href=\"#csrf-header-name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'HTTP_X_CSRFTOKEN'</span></code></p>\n<p>Ainm an cheanntásc iarratais a úsáidtear le haghaidh fíordheimhniú CSRF.</p>\n<p>Mar is amhlaidh le ceannteidil HTTP eile i Request.meta`, normalaítear an t-ainm ceannteidil a fhaightear ón bhfreastalaí trí gach carachtar a thiontú go uachtarchlóir, aon bhriseanna a chur in ionad béim, agus réimír <code class=\"docutils literal notranslate\"><span class=\"pre\">'HTTP_'`</span> <span class=\"pre\">a</span> <span class=\"pre\">chur</span> <span class=\"pre\">leis</span> <span class=\"pre\">an</span> <span class=\"pre\">ainm.</span> <span class=\"pre\">Mar</span> <span class=\"pre\">shampla,</span> <span class=\"pre\">má</span> <span class=\"pre\">sheolann</span> <span class=\"pre\">do</span> <span class=\"pre\">chliant</span> <span class=\"pre\">ceannteideal</span> <span class=\"pre\">``'X-XSRF-TOKEN'</span></code>, ba chóir go mbeadh an socrú <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>HTTP_X_XSRF_TOKEN'.</p>\n</section>\n<section id=\"csrf-trusted-origins\">\n<span id=\"std-setting-CSRF_TRUSTED_ORIGINS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CSRF_TRUSTED_ORIGINS</span></code><a class=\"heading-anchor\" href=\"#csrf-trusted-origins\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de bhunús iontaofa le haghaidh iarratais neamhshábháilte (m.sh. POST `).</p>\n<p>Maidir le hiarratais ina n-áirítear an ceannteideal <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Bunaidh <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>, éilíonn cosaint CSRF Django go n-oireann an ceannteideal an tionscnamh atá i láthair sa cheannteideal <a href=\"#id5\"><span class=\"problematic\" id=\"id6\">``</span></a>Óst`.</p>\n<p>For a secure (determined by <a class=\"reference internal\" href=\"/ga/6.1/ref/request-response/#django.http.HttpRequest.is_secure\" title=\"django.http.HttpRequest.is_secure\"><code class=\"xref py py-meth docutils literal notranslate\"><span class=\"pre\">is_secure()</span></code></a>) unsafe\nrequest that doesn't include the <code class=\"docutils literal notranslate\"><span class=\"pre\">Origin</span></code> header, the request must include a\n<code class=\"docutils literal notranslate\"><span class=\"pre\">Referer</span></code> header that matches the origin in the <code class=\"docutils literal notranslate\"><span class=\"pre\">Host</span></code> header.</p>\n<p>Cuireann na seiceálacha seo cosc, mar shampla, ar iarratas <code class=\"docutils literal notranslate\"><span class=\"pre\">POST</span> <span class=\"pre\">``ó</span> <span class=\"pre\">`subdomain.example.com</span></code> go n-éireoidh leo i gcoinne api.example.com`. Má theastaíonn iarratais neamhshábháilte tras-bhunús uait, ag leanúint leis an sampla, cuir <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a><a class=\"reference external\" href=\"https://subdomain.example.com\">https://subdomain.example.com</a> '<a href=\"#id5\"><span class=\"problematic\" id=\"id6\">`</span></a>leis an liosta seo (agus/nó <a href=\"#id7\"><span class=\"problematic\" id=\"id8\">``</span></a><a class=\"reference external\" href=\"http://\">http://</a>... <a href=\"#id9\"><span class=\"problematic\" id=\"id10\">``</span></a>má thagann iarratais ó leathanach neamhchinnte).</p>\n<p>Tacaíonn an socrú le fo-fhearann freisin, ionas gur féidir leat <code class=\"docutils literal notranslate\"><span class=\"pre\">'https://*.example.com</span> <span class=\"pre\">'``a</span> <span class=\"pre\">chur</span> <span class=\"pre\">leis,</span> <span class=\"pre\">mar</span> <span class=\"pre\">shampla,</span> <span class=\"pre\">chun</span> <span class=\"pre\">rochtain</span> <span class=\"pre\">a</span> <span class=\"pre\">cheadú</span> <span class=\"pre\">ó</span> <span class=\"pre\">gach</span> <span class=\"pre\">fo-fhearann</span> <span class=\"pre\">de</span> <span class=\"pre\">`example.com</span></code>.</p>\n</section>\n<section id=\"databases\">\n<span id=\"std-setting-DATABASES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">BUNACHAIR</span> <span class=\"pre\">SONRAÍ</span></code><a class=\"heading-anchor\" href=\"#databases\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Foclóir folamh)</p>\n<p>Foclóir ina bhfuil na socruithe do gach bunachar sonraí le húsáid le Django. Is foclóir neadaithe é a léarscáil a n-ábhar ailias bunachar sonraí go foclóir ina bhfuil na roghanna do bhunachar sonraí aonair.</p>\n<p>Ní mór don socrú: “BUNACHAR SONRAÍ” bunachar sonraí “réamhshocraithe” a chumrú; féadfar aon líon bunachar sonraí breise a shonrú freisin.</p>\n<p>Is é an comhad socruithe is simplí is féidir le socrú bunachar sonraí aonair ag baint úsáide as SQLite. Is féidir é seo a chumrú trí na rudaí seo a leanas a úsáid:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">DATABASES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;ENGINE&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.db.backends.sqlite3&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;NAME&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mydatabase&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Agus tú ag nascadh le cúltaca bunachar sonraí eile, mar shampla MariaDB, MySQL, Oracle, nó PostgreSQL, beidh paraiméadair nasc breise ag teastáil. Féach an socrú:setting: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>ENGINE &lt;DATABASE-ENGINE&gt;`thíos maidir le conas cineálacha eile bunachar sonraí a shonrú. Tá an sampla seo le haghaidh PostgreSQL:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">DATABASES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;ENGINE&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.db.backends.postgresql&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;NAME&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mydatabase&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;USER&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mydatabaseuser&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;PASSWORD&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mypassword&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;HOST&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;127.0.0.1&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;PORT&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;5432&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Tá na roghanna istigh seo a leanas a d'fhéadfadh a bheith ag teastáil le haghaidh cumraíochtaí níos casta ar fáil:</p>\n<section id=\"atomic-requests\">\n<span id=\"std-setting-DATABASE-ATOMIC_REQUESTS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">IARRATAITHE_ATOMIC</span></code><a class=\"heading-anchor\" href=\"#atomic-requests\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Socraigh é seo go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> chun gach radharc a fhilleadh in idirbheart ar an mbunachar sonraí seo. Féach:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>tiing-idirbheartaí-go-http-iarrataireachtaí <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"autocommit\">\n<span id=\"std-setting-DATABASE-AUTOCOMMIT\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">AUTOCOMIT</span></code><a class=\"heading-anchor\" href=\"#autocommit\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>&lt;deactivate-transaction-management&gt;Socraigh é seo go False` más mian leat: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>bainistíocht idirbheart Django a dhíchumasú <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>agus cuir tú féin i bhfeidhm.</p>\n</section>\n<section id=\"engine\">\n<span id=\"std-setting-DATABASE-ENGINE\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">INNEAL</span></code><a class=\"heading-anchor\" href=\"#engine\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>An cúltaca bunachar sonraí le húsáid. Is iad na cúltaca bunachar sonraí ionsuite:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.db.backends.postgresql'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.db.backends.mysql'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.db.backends.sqlite3'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.db.backends.oracle'</span></code></p></li>\n</ul>\n<p>Is féidir leat cúltaca bunachar sonraí a úsáid nach seolann le Django trí “ENGINE” a shocrú go cosán láncháilithe (ie <code class=\"docutils literal notranslate\"><span class=\"pre\">mypackage.backends.whatever</span></code>).</p>\n</section>\n<section id=\"host\">\n<span id=\"std-setting-HOST\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ÓSTACH</span></code><a class=\"heading-anchor\" href=\"#host\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Cén óstach le húsáid agus tú ag nascadh leis an mbunachar sonraí. Ciallaíonn sreang folamh localhost. Ní úsáidtear le SQLite.</p>\n<p>Má thosaíonn an luach seo le slash ar aghaidh (<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'/'<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>) agus má tá MySQL á úsáid agat, ceanglóidh MySQL trí soicéad Unix leis an soicéad sonraithe. Mar shampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"s2\">&quot;HOST&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/var/run/mysql&quot;</span>\n</code></pre></div>\n<p>Má tá MySQL á úsáid agat agus nach dtosaíonn an luach seo* le slach ar aghaidh, glactar leis gurb é an luach seo an t-óstach.</p>\n<p>Má tá PostgreSQL á úsáid agat, de réir réamhshocraithe (folam:setting: HOST), déantar an nasc leis an mbunachar sonraí trí soicéid fearainn UNIX (línte 'áitiúla' i pg_hba.conf`). Mura bhfuil do soicéad fearainn UNIX sa suíomh caighdeánach, bain úsáid as an luach céanna de <code class=\"docutils literal notranslate\"><span class=\"pre\">unix_socket_directory</span> <span class=\"pre\">``ó</span> <span class=\"pre\">`postgresql.conf</span></code>. Más mian leat nascadh trí soicéid TCP, socraí:setting: HOST go 'localhost' nó '127.0.0.1' (línte 'óstach' i pg_hba.conf`). Ar Windows, ba cheart duit sainmhíniú i gcónaí:setting: HOST, toisc nach bhfuil soicéid fearainn UNIX ar fáil.</p>\n</section>\n<section id=\"name\">\n<span id=\"std-setting-NAME\"></span><h4><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>AINM `<a class=\"heading-anchor\" href=\"#name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Ainm an bhunachar sonraí le húsáid. Maidir le SQLite, is é an cosán iomlán chuig an gcomhad bunachar sonraí. Agus an cosán á shonrú agat, bain úsáid as slashes ar aghaidh i gcónaí, fiú ar Windows (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">C:</span> <span class=\"pre\">/homes/user/mysite/sqlite3.db</span></code>).</p>\n</section>\n<section id=\"conn-max-age\">\n<span id=\"std-setting-CONN_MAX_AGE\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">CONN_MAX_AOS</span></code><a class=\"heading-anchor\" href=\"#conn-max-age\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code></p>\n<p>Saolré nasc bunachar sonraí, mar shláimhir soicind. &lt;persistent-database-connections&gt;Úsáid <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code> chun naisc bunachar sonraí a dhúnadh ag deireadh gach iarratais - iompar stairiúil Django - agus <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>le haghaidh neamhtheoranna:ref: <a href=\"#id5\"><span class=\"problematic\" id=\"id6\">`</span></a>naisc bunachar sonraí leanúnacha <a href=\"#id7\"><span class=\"problematic\" id=\"id8\">`</span></a>.</p>\n</section>\n<section id=\"conn-health-checks\">\n<span id=\"std-setting-CONN_HEALTH_CHECKS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">SEICEÁLACHA</span> <span class=\"pre\">SLÁINTE</span> <span class=\"pre\">CONN</span></code><a class=\"heading-anchor\" href=\"#conn-health-checks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Má tá sé socraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, déan &lt;persistent-database-connections&gt;far seiceáil sláinte atá ann: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>naisc bunachar sonraí leanúnacha 'sula n-athúsáidtear iad i ngach iarratas a dhéanann rochtain ar bhunachar sonraí. Má theipeann ar an seiceáil sláinte, athbhunófar an nasc gan teip ar an iarratas nuair nach bhfuil an nasc inúsáidte a thuilleadh ach tá an freastalaí bunachar sonraí réidh chun naisc nua a ghlacadh agus a sheirbheáil (m.sh. tar éis freastalaí bunachar sonraí a atosú a dhúnadh</p>\n</section>\n<section id=\"std-setting-OPTIONS\">\n<span id=\"id1\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNAÍ</span></code><a class=\"heading-anchor\" href=\"#std-setting-OPTIONS\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Foclóir folamh)</p>\n<p>Paraiméadair bhreise le húsáid agus tú ag nascadh leis an mbunachar Athraíonn na paraiméadair atá ar fáil ag brath ar do chúltaca bunachar</p>\n<p>Is féidir roinnt faisnéise faoi pharaiméadair atá ar fáil a fháil sa dhoiciméadúiséireacht: Doc: &lt;/ref/databases&gt; Bunachar Sonraí Backends. Le haghaidh tuilleadh faisnéise, téigh i gcomhairle le cáipéisíocht do mhodúl cúlt</p>\n</section>\n<section id=\"password\">\n<span id=\"std-setting-PASSWORD\"></span><h4><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>PASFHOCAL ``<a class=\"heading-anchor\" href=\"#password\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>An pasfhocal le húsáid agus tú ag nascadh leis an mbunachar sonraí. Ní úsáidtear le SQLite.</p>\n</section>\n<section id=\"port\">\n<span id=\"std-setting-PORT\"></span><h4><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>CALAFOIRT'<a class=\"heading-anchor\" href=\"#port\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>An calafort le húsáid agus tú ag nascadh leis an mbunachar sonraí. Ciallaíonn sreang folamh an calafort réamhshocraithe. Ní úsáidtear le SQLite.</p>\n</section>\n<section id=\"time-zone\">\n<span id=\"std-setting-DATABASE-TIME_ZONE\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">CRIOS_AMA</span></code><a class=\"heading-anchor\" href=\"#time-zone\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Sreang a léiríonn an crios ama don nasc bunachar sonraí seo nó <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>. Glacann an rogha istigh seo den socrú: setting: DATABASES leis na luachanna céanna leis an socrú ginearált:setting: TIME_ZONE.</p>\n<p>Nuair: Setting: <code class=\"docutils literal notranslate\"><span class=\"pre\">`True</span></code> USE_TZ, filleann dáta léitheoireachta ón mbunachar sonraí dáta ar an eolas uaireanta agus an crios ama atá socraithe ar luach an rogha seo mura bhfuil <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, nó go UTC ar shlí eile.</p>\n<p>Nuair: SETTING: USE_TZ <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>, is earráid é an rogha seo a shocrú.</p>\n<ul>\n<li><p>Mura dtacaíonn cúltaca an bhunachar sonraí le criosanna ama (m.sh. SQLite, MySQL, Oracle), léann agus scríobhann Django dáta-amanna in am áitiúil de réir an rogha seo má tá sé socraithe agus i UTC mura bhfuil sé.</p>\n<p>Athraíonn athrú an chrios ama nasc an chaoi a léitear dáta-amanna ón mbunachar sonraí agus a scríobh chuig.</p>\n<ul class=\"simple\">\n<li><p>Má bhainistíonn Django an bunachar sonraí agus nach bhfuil cúis láidir agat a mhalairt a dhéanamh, ba cheart duit an rogha seo a fhágáil gan socrú. Is fearr amanna dáta a stóráil in UTC toisc go seachnaíonn sé amanna dáta débhríoch nó nach bhfuil ann le linn athruithe ama sábhála solais an lae. Chomh maith leis sin, coinníonn uimhríocht dáta-ama simplí a fháil in UTC - ní gá athruithe fritháireamh féideartha a mheas thar aistriú DST.</p></li>\n<li><p>Má tá tú ag nascadh le bunachar sonraí tríú páirtí a stórálann dáta in am áitiúil seachas UTC, ansin ní mór duit an rogha seo a shocrú go dtí an crios ama cuí. Mar an gcéanna, má bhainistíonn Django an bunachar sonraí ach má nascann córais tríú páirtí leis an mbunachar sonraí céanna agus má tá súil leo dáta a fháil in am áitiúil, ansin ní mór duit an rogha seo a shocrú.</p></li>\n</ul>\n</li>\n<li><p>Má thacaíonn cúltaca an bhunachar sonraí le criosanna ama (m.sh., PostgreSQL), ansin socraítear crios ama an nasc bunachar sonraí go dtí an luach seo.</p>\n<p>Cé go bhfuil gá go han-annamh ag teastáil an rogha <code class=\"docutils literal notranslate\"><span class=\"pre\">TIME_ZONE</span></code> a shocrú, tá cásanna ann ina bhfuil sé riachtanach. Go sonrach, moltar an socrú ginearált:setting: TIME_ZONE a mheaitseáil agus tú ag déileáil le ceisteanna amh a bhaineann le feidhmeanna dáta/ama cosúil le date_trunc () `PostgreSQL nó `generate_series () `, go háirithe agus sraitheanna bunaithe ama á ghiniúint a aistríonn coigilteas solais.</p>\n<p>Is féidir an luach seo a athrú ag am ar bith, láimhseálfaidh an bunachar sonraí tiontú dáta-amanna go dtí an crios ama cumraithe.</p>\n<p>Mar sin féin, tá míbhuntáiste aige seo: bíonn uimhríocht dáta níos deacra uimhríocht dáta-ama go léir a fháil in am áitiúil - ní mór duit cuntas a thabhairt ar athruithe féideartha fritháireamh ar aistrithe</p>\n<p>Smaoinigh ar thiontú go am áitiúil go sainráite le <code class=\"docutils literal notranslate\"><span class=\"pre\">AT</span> <span class=\"pre\">TIME</span> <span class=\"pre\">ZONE</span></code> i gceisteanna amh SQL in ionad an rogha <code class=\"docutils literal notranslate\"><span class=\"pre\">TIME_ZONE</span></code> a shocrú.</p>\n</li>\n</ul>\n</section>\n<section id=\"disable-server-side-cursors\">\n<span id=\"std-setting-DATABASE-DISABLE_SERVER_SIDE_CURSORS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">CÚRSAÍ</span> <span class=\"pre\">TAOBH</span> <span class=\"pre\">FREASTALAÍ_DÍCHUMASACHA</span></code><a class=\"heading-anchor\" href=\"#disable-server-side-cursors\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Socraigh é seo go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> más mian leat úsáid cúrsaí taobh an fhreastalaí a dhíchumasú le: meth: .queryset.iterator. :ref: transaction-pooling-server-side-cursors cur síos ar an gcás úsáide.</p>\n<p>Is suíomh atá sonrach le PostgreSQL é seo.</p>\n</section>\n<section id=\"user\">\n<span id=\"std-setting-USER\"></span><h4><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>ÚSÁIDEOIR ``<a class=\"heading-anchor\" href=\"#user\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>An t-ainm úsáideora le húsáid agus tú ag ceangal leis an mbunachar sonraí Ní úsáidtear le SQLite.</p>\n</section>\n<section id=\"test\">\n<span id=\"std-setting-DATABASE-TEST\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">TÁSTÁLA</span></code><a class=\"heading-anchor\" href=\"#test\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Foclóir folamh)</p>\n<p>Foclóir socruithe do bhunachar sonraí tástála; le haghaidh tuilleadh sonraí faoi chruthú agus úsáid bunachair sonraí tástála, féach:ref: the-test-database.</p>\n<p>Seo sampla le cumraíocht bunachar sonraí tástála:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">DATABASES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;ENGINE&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.db.backends.postgresql&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;USER&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mydatabaseuser&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;NAME&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mydatabase&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;TEST&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n            <span class=\"s2\">&quot;NAME&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;mytestdatabase&quot;</span><span class=\"p\">,</span>\n        <span class=\"p\">},</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Tá na heochracha seo a leanas sa fhoclóir <code class=\"docutils literal notranslate\"><span class=\"pre\">TEST</span></code> ar fáil:</p>\n<section id=\"charset\">\n<span id=\"std-setting-TEST_CHARSET\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">CHARSET</span></code><a class=\"heading-anchor\" href=\"#charset\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An t-ionchódú tacar carachtair a úsáidtear chun an bunachar sonraí tástála a Cuirtear luach an teaghráin seo go díreach chuig an mbunachar sonraí, mar sin tá a fhormáid go sonrach le cúltaca.</p>\n<p>Le tacaíocht ó na cúltaca PostgreSQL (postgresql`) agus <a class=\"reference external\" href=\"https://dev.mysql.com/doc/refman/en/charset-charsets.html\">MySQL</a> (<code class=\"docutils literal notranslate\"><span class=\"pre\">mysql</span></code>).</p>\n</section>\n<section id=\"collation\">\n<span id=\"std-setting-TEST_COLLATION\"></span><h5><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>COMHLÁNÚ ``<a class=\"heading-anchor\" href=\"#collation\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An t-ordú comhlánaithe le húsáid agus an bunachar sonraí tástála á chruthú. Cuirtear an luach seo ar aghaidh go díreach chuig an gcúltaca, mar sin tá a fhormáid go sonrach le cúltaca.</p>\n<p>Ní thacaítear ach leis an gcúltaca <code class=\"docutils literal notranslate\"><span class=\"pre\">mysql</span></code> (féach an <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>lámhleabhar MySQL <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>_ le haghaidh sonraí).</p>\n</section>\n<section id=\"dependencies\">\n<span id=\"std-setting-TEST_DEPENDENCIES\"></span><h5><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>SPLEÁCHAIS ``<a class=\"heading-anchor\" href=\"#dependencies\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">['réamhshocraithe']</span></code>, do gach bunachar sonraí seachas <code class=\"docutils literal notranslate\"><span class=\"pre\">default</span></code>, nach bhfuil aon spleáchais aige.</p>\n<p>Sspleáchais ordú cruthaithe an bhunachar sonraí. Féach an doiciméadú ar:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>ord cruthaithe bunachar sonraí tástála a rialú &lt;topics-testing-creation-dependencies&gt;`le haghaidh sonraí.</p>\n</section>\n<section id=\"migrate\">\n<span id=\"std-setting-TEST_MIGRATE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">`IMIRCE</span></code><a class=\"heading-anchor\" href=\"#migrate\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Nuair a bheidh sé socraithe ar False, ní rithfidh imirce agus an bunachar sonraí tástála á gcruthú. Tá sé seo cosúil le <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code> a shocrú mar luach in:setting: MIGRATION_MODULES, ach do gach aip.</p>\n</section>\n<section id=\"mirror\">\n<span id=\"std-setting-TEST_MIRROR\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">SCÁTHÁN</span></code><a class=\"heading-anchor\" href=\"#mirror\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An t-ainm den bhunachar sonraí ba chóir go mbeadh an bunachar sonraí seo a scáthú le linn Braitheann sé ar idirbhearta agus dá bhrí sin caithfear é a úsáid laistigh de: class: ~django.test.transactionTestCase in ionad:class: ~django.test.testcase.</p>\n<p>Tá an suíomh seo ann chun cumraíochtaí bunscoil/macasamhail (dá ngairtear máistir/sclábhaí ag roinnt bunachair sonraí) a thástáil ar bhunachar sonraí iolracha. &lt;topics-testing-primaryreplica&gt;Féach an doiciméadú ar:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cumraíochtaí bunscoile/macasamhail a thástáil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>le haghaidh sonraí.</p>\n</section>\n<section id=\"std-setting-TEST_NAME\">\n<span id=\"id2\"></span><h5><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>AINM `<a class=\"heading-anchor\" href=\"#std-setting-TEST_NAME\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Ainm an bhunachar sonraí le húsáid agus an tsraith tástála á reáchtáil.</p>\n<p>Má úsáidtear an luach réamhshocraithe (<code class=\"docutils literal notranslate\"><span class=\"pre\">None</span> <span class=\"pre\">``)</span> <span class=\"pre\">le</span> <span class=\"pre\">hinneall</span> <span class=\"pre\">bunachar</span> <span class=\"pre\">sonraí</span> <span class=\"pre\">SQLite,</span> <span class=\"pre\">úsáidfidh</span> <span class=\"pre\">na</span> <span class=\"pre\">tástálacha</span> <span class=\"pre\">bunachar</span> <span class=\"pre\">sonraí</span> <span class=\"pre\">cónaitheoirí</span> <span class=\"pre\">cuimhne.</span> <span class=\"pre\">Maidir</span> <span class=\"pre\">le</span> <span class=\"pre\">gach</span> <span class=\"pre\">inneall</span> <span class=\"pre\">bunachar</span> <span class=\"pre\">sonraí</span> <span class=\"pre\">eile</span> <span class=\"pre\">úsáidfidh</span> <span class=\"pre\">an</span> <span class=\"pre\">bunachar</span> <span class=\"pre\">sonraí</span> <span class=\"pre\">tástála</span> <span class=\"pre\">an</span> <span class=\"pre\">t-ainm</span> <span class=\"pre\">```test_'+DATABASE_NAME</span></code>.</p>\n<p>Féach:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>bunachar sonraí tástála'.</p>\n</section>\n<section id=\"template\">\n<span id=\"std-setting-TEST_TEMPLATE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">TEIMPLÉAD</span></code><a class=\"heading-anchor\" href=\"#template\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Is suíomh atá sonrach le PostgreSQL é seo.</p>\n<p>Ainm <a class=\"reference internal\" href=\"#template\">teimpléad</a> (m.sh. <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>teimpléad0') as a chruthófar bunachar sonraí tástála.</p>\n</section>\n<section id=\"create-db\">\n<span id=\"std-setting-TEST_CREATE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">CRUTHAITHE_DB</span></code><a class=\"heading-anchor\" href=\"#create-db\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Má tá sé socraithe ar False`, ní chruthófar na spásanna tástála go huathoibríoch ag tús na dtástálacha nó ní chruthófar na spásanna tástála ag an deireadh.</p>\n</section>\n<section id=\"create-user\">\n<span id=\"std-setting-TEST_USER_CREATE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">CHRUTHAITHE_ÚSÁIDEOIR</span></code><a class=\"heading-anchor\" href=\"#create-user\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Má tá sé socraithe ar False`, ní chruthófar an t-úsáideoir tástála go huathoibríoch ag tús na dtástálacha agus titeoidh sé ag an deireadh.</p>\n</section>\n<section id=\"std-setting-TEST_USER\">\n<span id=\"id4\"></span><h5><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>ÚSÁIDEOIR ``<a class=\"heading-anchor\" href=\"#std-setting-TEST_USER\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An t-ainm úsáideora le húsáid agus tú ag ceangal le bunachar sonraí Oracle a úsáidfear agus tástálacha á reáchtáil Mura gcuirtear ar fáil, úsáidfidh Django <code class=\"docutils literal notranslate\"><span class=\"pre\">`'test_'+USER</span></code>.</p>\n</section>\n<section id=\"std-setting-TEST_PASSWD\">\n<span id=\"id5\"></span><h5><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>PASFHOCAL ``<a class=\"heading-anchor\" href=\"#std-setting-TEST_PASSWD\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An focal faire le húsáid agus tú ag nascadh le bunachar sonraí Oracle a úsáidfear agus tástálacha á reáchtáil. Mura gcuirtear ar fáil, ginfidh Django pasfhocal randamach.</p>\n</section>\n<section id=\"oracle-managed-files\">\n<span id=\"std-setting-TEST_ORACLE_MANAGED_FILES\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">COMHAD</span> <span class=\"pre\">BAINISTITHE</span> <span class=\"pre\">ORACLE</span></code><a class=\"heading-anchor\" href=\"#oracle-managed-files\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Má tá sé socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, úsáidfear spásanna tábla Comhaid Bainistithe Oracle (OMF). :setting: DATAFILE agus:setting: DATAFILE_TMP déanfar neamhaird.</p>\n</section>\n<section id=\"tblspace\">\n<span id=\"std-setting-TEST_TBLSPACE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">TBLSPACE</span></code><a class=\"heading-anchor\" href=\"#tblspace\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Ainm an spás tábla a úsáidfear agus tástálacha á reáchtáil. Mura gcuirtear ar fáil, úsáidfidh Django <code class=\"docutils literal notranslate\"><span class=\"pre\">`'test_'+USER</span></code>.</p>\n</section>\n<section id=\"tblspace-tmp\">\n<span id=\"std-setting-TEST_TBLSPACE_TMP\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">TBLSPACE_TMP</span></code><a class=\"heading-anchor\" href=\"#tblspace-tmp\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Ainm an spás tábla sealadach a úsáidfear agus tástálacha á reáchtáil. Mura gcuirtear ar fáil, úsáidfidh Django <code class=\"docutils literal notranslate\"><span class=\"pre\">`'test_'+</span> <span class=\"pre\">USER</span> <span class=\"pre\">+</span> <span class=\"pre\">'_temp'</span></code>.</p>\n</section>\n<section id=\"datafile\">\n<span id=\"std-setting-DATAFILE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE</span></code><a class=\"heading-anchor\" href=\"#datafile\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Ainm na fille sonraí le húsáid don TBLSPACE. Mura gcuirtear ar fáil, úsáidfidh Django <code class=\"docutils literal notranslate\"><span class=\"pre\">TBLSPACE</span> <span class=\"pre\">+</span> <span class=\"pre\">'.dbf'</span></code>.</p>\n</section>\n<section id=\"datafile-tmp\">\n<span id=\"std-setting-DATAFILE_TMP\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_TMP</span></code><a class=\"heading-anchor\" href=\"#datafile-tmp\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Ainm na sonraí le húsáid don TBLSPACE_TMP. Mura gcuirtear ar fáil, úsáidfidh Django <code class=\"docutils literal notranslate\"><span class=\"pre\">TBLSPACE_TMP</span> <span class=\"pre\">+</span> <span class=\"pre\">'.dbf'</span></code>.</p>\n</section>\n<section id=\"datafile-maxsize\">\n<span id=\"std-setting-DATAFILE_MAXSIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_MAXSIZE</span></code><a class=\"heading-anchor\" href=\"#datafile-maxsize\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>500M `</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An méid uasta a cheadaítear don DATAFILE fás air.</p>\n</section>\n<section id=\"datafile-tmp-maxsize\">\n<span id=\"std-setting-DATAFILE_TMP_MAXSIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_TMP_MAXSIZE</span></code><a class=\"heading-anchor\" href=\"#datafile-tmp-maxsize\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>500M `</p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An méid uasta a cheadaítear don DATAFILE_TMP fás.</p>\n</section>\n<section id=\"datafile-size\">\n<span id=\"std-setting-DATAFILE_SIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">MÉID_DATAFILE</span></code><a class=\"heading-anchor\" href=\"#datafile-size\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'50M'</span></code></p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Méid tosaigh an DATAFILE.</p>\n</section>\n<section id=\"datafile-tmp-size\">\n<span id=\"std-setting-DATAFILE_TMP_SIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_TMP_SIZE</span></code><a class=\"heading-anchor\" href=\"#datafile-tmp-size\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'50M'</span></code></p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>Méid tosaigh an DATAFILE_TMP.</p>\n</section>\n<section id=\"datafile-extsize\">\n<span id=\"std-setting-DATAFILE_EXTSIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_EXTSIZE</span></code><a class=\"heading-anchor\" href=\"#datafile-extsize\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'25M'</span></code></p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An méid a leathnaítear an DATAFILE nuair a bhíonn níos mó spáis ag teastáil.</p>\n</section>\n<section id=\"datafile-tmp-extsize\">\n<span id=\"std-setting-DATAFILE_TMP_EXTSIZE\"></span><h5><code class=\"docutils literal notranslate\"><span class=\"pre\">DATAFILE_TMP_EXTSIZE</span></code><a class=\"heading-anchor\" href=\"#datafile-tmp-extsize\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h5>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'25M'</span></code></p>\n<p>Is suíomh atá sonrach le Oracle é seo.</p>\n<p>An méid a leathnaítear an DATAFILE_TMP nuair a bhíonn níos mó spáis ag teastáil.</p>\n</section>\n</section>\n</section>\n<section id=\"data-upload-max-memory-size\">\n<span id=\"std-setting-DATA_UPLOAD_MAX_MEMORY_SIZE\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>SONRA_UASLÓDÁIL_MÉID_CUIMHNEACHÁIN UASTA ``<a class=\"heading-anchor\" href=\"#data-upload-max-memory-size\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: 2621440` (ie 2.5 MB).</p>\n<p>The maximum size in bytes that a request body may be before a\n<a class=\"reference internal\" href=\"/ga/6.1/ref/exceptions/#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> (<code class=\"docutils literal notranslate\"><span class=\"pre\">RequestDataTooBig</span></code>) is\nraised. The check is done when accessing <code class=\"docutils literal notranslate\"><span class=\"pre\">request.body</span></code> or <code class=\"docutils literal notranslate\"><span class=\"pre\">request.POST</span></code>\nand is calculated against the total request size excluding any file upload\ndata (<code class=\"docutils literal notranslate\"><span class=\"pre\">request.FILES</span></code>). You can set this to <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code> to disable the check.\nApplications that are expected to receive unusually large form posts should\ntune this setting.</p>\n<p>Under ASGI, the entire request may be spooled to disk before this limit is\nenforced. Therefore, it is strongly recommended to place additional protections\nin front of Django which limit the entire request payload.</p>\n<p>The amount of request data is correlated to the amount of memory or storage\nneeded to process the request and populate the GET and POST dictionaries.\nLarge requests could be used as a denial-of-service attack vector if left\nunchecked. Since web servers don't typically perform deep request inspection,\nit's not possible to perform a similar check at that level.</p>\n<p>Féach freis:socrú: FILE_UPLOAD_MAX_MEMORY_SIZE.</p>\n</section>\n<section id=\"data-upload-max-number-fields\">\n<span id=\"std-setting-DATA_UPLOAD_MAX_NUMBER_FIELDS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SONRA_UASLÓDÁIL_UIMHREACH_RÉIMSÍ</span> <span class=\"pre\">UASGHAIR</span></code><a class=\"heading-anchor\" href=\"#data-upload-max-number-fields\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">1000</span></code></p>\n<p>Ardaítear an líon uasta na bparaiméadair a d'fhéadfaí a fháil trí GET nó POST roimh a:exc: ~Django.Core.Exceptions.SuspiciousOperation (<code class=\"docutils literal notranslate\"><span class=\"pre\">ToomanyFields</span></code>). Is féidir leat é seo a shocrú go <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>chun an seic a dhíchumasú. Ba chóir d'iarratais a bhfuiltear ag súil go bhfaighidh líon neamhghnách mór réimsí foirme an socrú seo a</p>\n<p>Tá líon na bparaiméadair iarratais comhghaolmhar leis an méid ama a theastaíonn chun an t-iarratas a phróiseáil agus na foclóirí GET agus POST a líonadh. D'fhéadfaí iarratais mhóra a úsáid mar veicteoir ionsaí diúltaithe seirbhíse má fhágtar gan seiceáil. Ós rud é nach ndéanann freastalaithe gréasáin iniúchadh domhain iarratais de ghnáth, ní féidir seiceáil den chineál céanna a dhéanamh ag an leibhéal sin.</p>\n</section>\n<section id=\"data-upload-max-number-files\">\n<span id=\"std-setting-DATA_UPLOAD_MAX_NUMBER_FILES\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>SONRAÍ_UASLÓDÁIL_UIMHREACH_COMHAID ``<a class=\"heading-anchor\" href=\"#data-upload-max-number-files\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">100</span></code></p>\n<p>Ardaítear an líon uasta comhaid a d'fhéadfaí a fháil trí POST in iarratas ionchódaithe <code class=\"docutils literal notranslate\"><span class=\"pre\">multipart/form-data</span> <span class=\"pre\">``roimh</span> <span class=\"pre\">a:exc:</span> <span class=\"pre\">`~Django.Core.Exceptions.SuspiciousOperation`</span> <span class=\"pre\">(`ToomanyFiles</span></code>). Is féidir leat é seo a shocrú go <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>chun an seic a dhíchumasú. Ba chóir d'iarratais a bhfuiltear ag súil go bhfaighidh líon neamhghnách mór réimsí comhad an suíomh seo a dhí</p>\n<p>Tá comhghaol ag líon na gcomhad a nglactar leis an méid ama agus cuimhne a theastaíonn chun an iarratas a phróiseáil. D'fhéadfaí iarratais mhóra a úsáid mar veicteoir ionsaí diúltaithe seirbhíse má fhágtar gan seiceáil. Ós rud é nach ndéanann freastalaithe gréasáin iniúchadh domhain iarratais de ghnáth, ní féidir seiceáil den chineál céanna a dhéanamh ag an leibhéal sin.</p>\n</section>\n<section id=\"database-routers\">\n<span id=\"std-setting-DATABASE_ROUTERS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÓDAIRÍ_BUNACHAR</span> <span class=\"pre\">SONRAÍ</span></code><a class=\"heading-anchor\" href=\"#database-routers\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta na ródairí a úsáidfear chun a chinneadh cén bunachar sonraí atá le húsáid agus ceist bunachar sonraí á ndéanamh agat.</p>\n<p>&lt;topics-db-multi-db-routing&gt;Féach an doiciméadú ar:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>ródú uathoibríoch bunachar sonraí i cumraíochtaí ilbhunachar sonraí <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"date-format\">\n<span id=\"std-setting-DATE_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_DÁTA</span></code><a class=\"heading-anchor\" href=\"#date-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'N</span> <span class=\"pre\">j,</span> <span class=\"pre\">Y'</span></code> (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">4</span> <span class=\"pre\">Feabhra,</span> <span class=\"pre\">2003</span></code>)</p>\n<p>An formáidiú réamhshocraithe le húsáid chun réimsí dáta a thaispeáint in aon chuid den chóras. Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin. &lt;date&gt;Féach: TFilter: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>teaghráin formáid dáta ceadaithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach freis:setting: DATETIME_FORMAT, :setting: TIME_FORMAT agus:setting: SHORT_DATE_FORMAT.</p>\n</section>\n<section id=\"date-input-formats\">\n<span id=\"std-setting-DATE_INPUT_FORMATS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>FORMÁIDÍ DÁTA_IONCHUIRIÚCHÁIN ``<a class=\"heading-anchor\" href=\"#date-input-formats\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;%Y-%m-</span><span class=\"si\">%d</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;2006-10-25&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/2006&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/06&#39;</span>\n    <span class=\"s2\">&quot;%b </span><span class=\"si\">%d</span><span class=\"s2\"> %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;Oct 25 2006&#39;</span>\n    <span class=\"s2\">&quot;%b </span><span class=\"si\">%d</span><span class=\"s2\">, %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;Oct 25, 2006&#39;</span>\n    <span class=\"s2\">&quot;</span><span class=\"si\">%d</span><span class=\"s2\"> %b %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;25 Oct 2006&#39;</span>\n    <span class=\"s2\">&quot;</span><span class=\"si\">%d</span><span class=\"s2\"> %b, %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;25 Oct, 2006&#39;</span>\n    <span class=\"s2\">&quot;%B </span><span class=\"si\">%d</span><span class=\"s2\"> %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;October 25 2006&#39;</span>\n    <span class=\"s2\">&quot;%B </span><span class=\"si\">%d</span><span class=\"s2\">, %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;October 25, 2006&#39;</span>\n    <span class=\"s2\">&quot;</span><span class=\"si\">%d</span><span class=\"s2\"> %B %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;25 October 2006&#39;</span>\n    <span class=\"s2\">&quot;</span><span class=\"si\">%d</span><span class=\"s2\"> %B, %Y&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;25 October, 2006&#39;</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Liosta de na formáidí a nglacfar leo agus sonraí á ionchur isteach i réimse dáta. Déanfar triail a bhaint as formáidí in ord, ag baint úsáide as an gcéad cheann bailí. Tabhair faoi deara go n-úsáideann na teaghráin formáide seo comhréir modúl Python: ref: datetime '&lt;strftime-strptime-behavior&gt;, ní na teaghráin formáide ón scagaire teimpléad:tfilter: `dáta.</p>\n<p>Tá tosaíocht níos airde ag an bhformáid áitiúil agus cuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freis:socrú: DATETIME_INPUT_FORMATS agus:SETTING: TIME_INPUT_FORMATS.</p>\n</section>\n<section id=\"datetime-format\">\n<span id=\"std-setting-DATETIME_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_DÁTAIME</span></code><a class=\"heading-anchor\" href=\"#datetime-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'N</span> <span class=\"pre\">j,</span> <span class=\"pre\">Y,</span> <span class=\"pre\">P'</span></code> (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">4</span> <span class=\"pre\">Feabhra,</span> <span class=\"pre\">2003,</span> <span class=\"pre\">4</span> <span class=\"pre\">p.m.</span></code>)</p>\n<p>An formáidiú réamhshocraithe le húsáid chun réimsí dáta-ama a thaispeáint in aon chuid den chóras. Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin. &lt;date&gt;Féach: TFilter: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>teaghráin formáid dáta ceadaithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach freis:socrú: DATE_FORMAT, :setting: TIME_FORMAT agus:setting: SHORT_DATETIME_FORMAT.</p>\n</section>\n<section id=\"datetime-input-formats\">\n<span id=\"std-setting-DATETIME_INPUT_FORMATS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>FORMÁIDÍ DÁTAIME_IONCHUIRIÚCHÁIN ``<a class=\"heading-anchor\" href=\"#datetime-input-formats\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;%Y-%m-</span><span class=\"si\">%d</span><span class=\"s2\"> %H:%M:%S&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;2006-10-25 14:30:59&#39;</span>\n    <span class=\"s2\">&quot;%Y-%m-</span><span class=\"si\">%d</span><span class=\"s2\"> %H:%M:%S.</span><span class=\"si\">%f</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;2006-10-25 14:30:59.000200&#39;</span>\n    <span class=\"s2\">&quot;%Y-%m-</span><span class=\"si\">%d</span><span class=\"s2\"> %H:%M&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;2006-10-25 14:30&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%Y %H:%M:%S&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/2006 14:30:59&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%Y %H:%M:%S.</span><span class=\"si\">%f</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/2006 14:30:59.000200&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%Y %H:%M&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/2006 14:30&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%y %H:%M:%S&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/06 14:30:59&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%y %H:%M:%S.</span><span class=\"si\">%f</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/06 14:30:59.000200&#39;</span>\n    <span class=\"s2\">&quot;%m/</span><span class=\"si\">%d</span><span class=\"s2\">/%y %H:%M&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;10/25/06 14:30&#39;</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Liosta formáidí a nglacfar leo agus sonraí á ionchur isteach ar réimse dáta-ama. Déanfar triail a bhaint as formáidí in ord, ag baint úsáide as an gcéad cheann bailí. Tabhair faoi deara go n-úsáideann na teaghráin formáide seo comhréir modúl Python: ref: datetime '&lt;strftime-strptime-behavior&gt;, ní na teaghráin formáide ón scagaire teimpléad:tfilter: `dáta. Ní chuirtear formáidí dáta amháin san áireamh mar go ndéanfaidh réimsí dáta-ama iarracht go huathoibríoch: setting: DATE_INPUT_FORMATS sa rogha deireanach.</p>\n<p>Tá tosaíocht níos airde ag an bhformáid áitiúil agus cuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freis:socrú: DATE_INPUT_FORMATS agus:socrú: TIME_INPUT_FORMATS.</p>\n</section>\n<section id=\"debug\">\n<span id=\"std-setting-DEBUG\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">DEBUG</span></code><a class=\"heading-anchor\" href=\"#debug\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Boolean a chasann ar/as modh dífhabhtaithe.</p>\n<p>Ná imscaradh suíomh riamh i dtáirgeadh le: socrú: DEBUG a chasadh air.</p>\n<p>Ceann de phríomhghnéithe an mhodh dífhabhtaithe ná leathanaigh earráide mionsonraithe a thaispeáint. Má ardaíonn d'aip eisceacht nuair a bhíonn: socrú: DEBUG <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, taispeánfaidh Django rianú mionsonraithe, lena n-áirítear go leor meiteashonraí faoi do thimpeallacht, mar shampla na socruithe Django atá sainmhínithe faoi láthair (ó settings.py`).</p>\n<p>Mar bheart slándála, * ní chuimseoidh Django socruithe a d'fhéadfadh a bheith íogair, mar shampla:setting: SECRET_KEY. Go sonrach, eisifaidh sé aon socrú a chuimsíonn a n-ainm aon cheann de na nithe seo a leanas:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`'API'</span></code></p></li>\n<li><p><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'EOCHAIR'</p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`'PASS'</span></code></p></li>\n<li><p><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'RÚNAÍ'</p></li>\n<li><p><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'SÍNIÚ'</p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`'TOKEN'</span></code></p></li>\n</ul>\n<p>Tabhair faoi deara gur cluichí páirtitheach* iad seo. Meaitneoidh <code class=\"docutils literal notranslate\"><span class=\"pre\">'PASS'</span></code> PASSWORD freisin, díreach mar a mheaitseálfaidh <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'TOKEN'` TOKENIZED agus mar sin de freisin.</p>\n<p>Mar sin féin, tabhair faoi deara go mbeidh codanna de d'aschur dífhabhtaithe ann i gcónaí atá míchuí le haghaidh tomhaltas poiblí. Tugann cosáin comhad, roghanna cumraíochta agus a leithéid go léir faisnéis bhreise d'ionsaitheoirí faoi do fhre</p>\n<p>Tá sé tábhachtach cuimhneamh freisin go gcuimhneoidh Django ar gach ceist SQL a fhorghníomhaíonn sé nuair a bheidh ag rith le:setting: DEBUG air. Tá sé seo úsáideach nuair a bhíonn tú ag dífhabhtú, ach ídífidh sé cuimhne go tapa ar fhreastalaí táirgeachta.</p>\n<p>Faoi dheireadh, más é: setting: DEBUG <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>, ní mór duit an socrú: setting: ALLOWED_HOSTS a shocrú i gceart freisin. Mura ndéantar é sin, beidh gach iarratas ar ais mar “Droch-iarratas (400)”.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>&lt;startproject&gt;Leagann an comhad réamhshocraithe:file: settings.py a chruthaí:djadmin: django-admin startproject ```DEBUG = True` le haghaidh áisiúlachta.</p>\n</aside>\n</section>\n<section id=\"debug-propagate-exceptions\">\n<span id=\"std-setting-DEBUG_PROPAGATE_EXCEPTIONS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`EISCEACHTAIS_IOMADAITHE_DEBUG</span></code><a class=\"heading-anchor\" href=\"#debug-propagate-exceptions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Má tá sé socraithe go True`, déantar láimhseáil eisceachta Django ar fheidhmeanna amharc (:data: ~django.conf.urls.handler500, nó an dearcadh dífhabhtaithe ife:setting: DEBUG True`) agus logáil 500 freagra (:ref: django-request-logger) agus iomadú eisceachtaí aníos.</p>\n<p>Is féidir leis seo a bheith úsáideach do roinnt socruithe tástála. Níor chóir é a úsáid ar shuíomh beo mura dteastaíonn uait do fhreastalaí gréasáin (in ionad Django) freagraí “Earráid Freastalaí Inmheánach” a ghiniúint. Sa chás sin, déan cinnte nach dtaispeánann do fhreastalaí an rian cruach nó faisnéis íogair eile sa fhreagra.</p>\n</section>\n<section id=\"decimal-separator\">\n<span id=\"std-setting-DECIMAL_SEPARATOR\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">DEIGHILTEOIR</span> <span class=\"pre\">DEACHIMAL</span></code><a class=\"heading-anchor\" href=\"#decimal-separator\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'.'` (Ponc)</p>\n<p>Déileálóir deachúil réamhshocraithe a úsáidtear agus uimhreacha</p>\n<p>Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freis:socrú: NUMBER_GROUPING, :setting: THOUSAND_SEPARATOR agus:setting: USE_THOUSAND_SEPARATOR.</p>\n</section>\n<section id=\"default-auto-field\">\n<span id=\"std-setting-DEFAULT_AUTO_FIELD\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÉAMHSHOCRAITHE_AUTO_FIELD</span></code><a class=\"heading-anchor\" href=\"#default-auto-field\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">'</span></code><a class=\"reference internal\" href=\"/ga/6.1/ref/models/fields/#django.db.models.BigAutoField\" title=\"django.db.models.BigAutoField\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">django.db.models.BigAutoField</span></code></a><code class=\"docutils literal notranslate\"><span class=\"pre\">'</span></code></p>\n<p>&lt;django.db.models.Field.primary_key&gt;Cineál réimse eochair phríomhúil réamhshocraithe le húsáid le haghaidh samhlacha nach bhfuil réimse acu le:attr: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>primary_key=True <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<aside class=\"version-note version-changed\" data-version=\"6.0\">\n<p class=\"version-note-title\">Changed in Django 6.0</p><p>In older versions, the default value is\n<a class=\"reference internal\" href=\"/ga/6.1/ref/models/fields/#django.db.models.AutoField\" title=\"django.db.models.AutoField\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">django.db.models.AutoField</span></code></a>.</p>\n</aside>\n<aside class=\"admonition-migrating-auto-created-through-tables admonition\">\n<p class=\"admonition-title\">Aimirce uathoibríoch a cruthaíodh</p>\n<p>Meas a thabhairt ar luach DEFAULT_AUTO_FIELD` nuair a chruthaítear uathoibríoch nua trí tháblaí le haghaidh caidrimh go leor.</p>\n<p>Ar an drochuair, ní féidir leis an gcreat imirce príomh-eochracha atá ann cheana a cruthaíodh trí tháblaí a nuashonrú faoi láthair.</p>\n<p>Ciallaíonn sé seo má athraíonn tú luach <code class=\"docutils literal notranslate\"><span class=\"pre\">DEFAULT_AUTO_FIELD</span></code> agus ansin imirce a ghineann tú, nuashonrófar eochracha príomhúil na samhlacha gaolmhara, mar aon leis na heochracha eachtracha ón tábla trí thráid, ach ní imirfear príomh-eochair an tábla uathoibríoch.</p>\n<p>D'fhonn aghaidh a thabhairt air seo, ba chóir duit oibríocht a:class: ~django.db.migrations.operations.runsql a chur le d'imirce chun an chéim <code class=\"docutils literal notranslate\"><span class=\"pre\">ALTER</span> <span class=\"pre\">TABLE</span></code> riachtanach a dhéanamh. Is féidir leat an t-ainm tábla atá ann cheana a sheiceáil trí sqlmigrate`, dbshell`, nó le remote_field.through an réimse. Maoin _meta.db_table `.</p>\n<p>Déanann an córas imirce láimhseáil cheana féin a shainmhínítear go sainráite trí</p>\n<p>&lt;32674&gt;Imirce uathoibríoch a cheadú don phríomh-eochair an uathoibríoch atá ann cheana a chruthaítear trí tháblaí: ticéad: féadfar 'a chur i bhfeidhm</p>\n</aside>\n</section>\n<section id=\"default-charset\">\n<span id=\"std-setting-DEFAULT_CHARSET\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">DEFAULT_CHARSET</span></code><a class=\"heading-anchor\" href=\"#default-charset\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'utf-8'</span></code></p>\n<p>Charset réamhshocraithe le húsáid do gach rud <code class=\"docutils literal notranslate\"><span class=\"pre\">HttpResponse`,</span> <span class=\"pre\">mura</span> <span class=\"pre\">ndéantar</span> <span class=\"pre\">cineál</span> <span class=\"pre\">MIME</span> <span class=\"pre\">a</span> <span class=\"pre\">shonrú</span> <span class=\"pre\">de</span> <span class=\"pre\">láimh.</span> <span class=\"pre\">Úsáidtear</span> <span class=\"pre\">agus</span> <span class=\"pre\">an</span> <span class=\"pre\">ceannteideal</span> <span class=\"pre\">``Content-Type</span></code> á thógáil.</p>\n</section>\n<section id=\"default-exception-reporter\">\n<span id=\"std-setting-DEFAULT_EXCEPTION_REPORTER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TUAIRISEOIRÍ_EISCEACHTÁIL_RÉAMHSHOCRAITHE</span></code><a class=\"heading-anchor\" href=\"#default-exception-reporter\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`</span></code>:class: Django.Views.debug.ExceptionReporter<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a></p>\n<p>Aicme tuairisceoir eisceachta réamhshocraithe le húsáid mura bhfuil aon duine sannta don shampla:class: ~django.http.httpRequest fós. Féach: tagairt: tuarascálacha saincheaptha earráid.</p>\n</section>\n<section id=\"default-exception-reporter-filter\">\n<span id=\"std-setting-DEFAULT_EXCEPTION_REPORTER_FILTER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SCAGAIR_TUAIRISCITHEOIRÍ_EISCEACHTÁIL_RÉAMHSHOCRAITHE</span></code><a class=\"heading-anchor\" href=\"#default-exception-reporter-filter\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`</span></code>:class: django.views.debug.safeExceptionReporterFilter<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a></p>\n<p>Aicme scagaire tuairisceachta eisceachta réamhshocraithe le húsáid mura sannadh aon rud don shampla:class: ~django.http.httpRequest fós. &lt;filtering-error-reports&gt;Féach: tagairt: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Tuarascálacha earráide scagtha <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"default-from-email\">\n<span id=\"std-setting-DEFAULT_FROM_EMAIL\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">DEFAULT_FROM_RÍOMHPHOST</span></code><a class=\"heading-anchor\" href=\"#default-from-email\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'stiúrthóir</span> <span class=\"pre\">gréasáin</span> <span class=\"pre\">&#64;localhost</span> <span class=\"pre\">'</span></code></p>\n<p>Seoladh ríomhphoist réamhshocraithe le haghaidh comhfhreagras uathoibrithe ó bhainisteoir an láithreáin Úsáidtear an seoladh seo sa cheanntásc <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>From: <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>de ríomhphoist amach agus féadann sé aon fhormáid a ghlacadh bailí sa phrótacal seolta ríomhphoist roghnaithe.</p>\n<p>Ní dhéanann sé seo difear do theachtaireachtaí earráide a sheoltar chuig:setting: ADMINS agus:setting: MANAGERS. Féach: SETTING: SERVER_EMAIL chuige sin.</p>\n<p>To build an address with a display name from variable content, see\n<a class=\"reference internal\" href=\"/ga/6.1/topics/email/#formatting-addresses\"><span class=\"std std-ref\">Formatting email addresses</span></a>.</p>\n</section>\n<section id=\"default-index-tablespace\">\n<span id=\"std-setting-DEFAULT_INDEX_TABLESPACE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÉAMHSHOCRAITHE_INDEX_TABLESPACE</span></code><a class=\"heading-anchor\" href=\"#default-index-tablespace\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Spás tábla réamhshocraithe le húsáid le haghaidh innéacsanna ar réimsí nach sonraíonn ceann amháin, má thacaíonn an cúltaca leis (féach: doc: /topics/db/tablespaces).</p>\n</section>\n<section id=\"default-tablespace\">\n<span id=\"std-setting-DEFAULT_TABLESPACE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">DEFAULT_TABLESPACE</span></code><a class=\"heading-anchor\" href=\"#default-tablespace\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Spás tábla réamhshocraithe le húsáid le haghaidh samhlacha nach sonraíonn ceann amháin, má thacaíonn an cúltaca leis (féach: doc: /topics/db/tablespaces).</p>\n</section>\n<section id=\"disallowed-user-agents\">\n<span id=\"std-setting-DISALLOWED_USER_AGENTS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">GNÍOMHAIRÍ_ÚSÁIDEOIR_NEAMHCHEADAITHE</span></code><a class=\"heading-anchor\" href=\"#disallowed-user-agents\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de na rudaí léirithe rialta tiomsaithe a léiríonn teaghráin Gníomhaire Úsáideora nach bhfuil cead acu cuairt a thabhairt ar aon leathanach, Úsáid é seo le haghaidh bots/crawlers. Ní úsáidtear é seo ach amháin má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">CommonMiddleware</span></code> suiteáilte (féach: doc: /topics/http/middleware).</p>\n</section>\n<section id=\"email-backend\">\n<span id=\"std-setting-EMAIL_BACKEND\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_BACKEND</span></code><a class=\"heading-anchor\" href=\"#email-backend\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">'</span></code><a class=\"reference internal\" href=\"/ga/6.1/topics/email/#topic-email-smtp-backend\"><span class=\"std std-ref\">django.core.mail.backends.smtp.EmailBackend</span></a><code class=\"docutils literal notranslate\"><span class=\"pre\">'</span></code></p>\n<p>An cúltaca le húsáid chun ríomhphoist a sheoladh. Le haghaidh liosta na gcúltaca atá ar fáil féach:ref: topic-email-backends.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <a class=\"reference internal\" href=\"#std-setting-MAILERS-BACKEND\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">BACKEND</span></code></a> in the\n<a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;default&quot;</span></code> configuration. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-file-path\">\n<span id=\"std-setting-EMAIL_FILE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_FILE_PATH</span></code><a class=\"heading-anchor\" href=\"#email-file-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>An eolaire a úsáideann an: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>backend ríomhphoist comhad &lt;topic-email-file-backend&gt;`chun comhaid aschuir a stóráil.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;file_path&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a>\nin a <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the file email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-host\">\n<span id=\"std-setting-EMAIL_HOST\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_ÓST</span></code><a class=\"heading-anchor\" href=\"#email-host\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'localhost'</span></code></p>\n<p>An t-óstach le húsáid chun ríomhphost a sheoladh.</p>\n<p>Féach freisin: socrú: EMAIL_PORT.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;host&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in a\n<a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-host-password\">\n<span id=\"std-setting-EMAIL_HOST_PASSWORD\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>RÍOMHPHOST_HOST_PASFHOCAL ``<a class=\"heading-anchor\" href=\"#email-host-password\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Pasfhocal le húsáid don fhreastalaí SMTP atá sainmhínithe in:setting: EMAIL_HOST. Úsáidtear an socrú seo i gcomhar le:setting: EMAIL_HOST_USER agus tú ag fíordheimhniú chuig an bhfreastalaí SMTP. Má tá ceachtar de na socruithe seo folamh, ní dhéanfaidh Django iarracht fíordheimhniú.</p>\n<p>Féach freisin: socrú: EMAIL_HOST_USER.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;password&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in\na <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-host-user\">\n<span id=\"std-setting-EMAIL_HOST_USER\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>RÍOMHPHOST_HOST_ÚSÁIDEOIR ``<a class=\"heading-anchor\" href=\"#email-host-user\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Ainm úsáideora le húsáid don fhreastalaí SMTP atá sainmhínithe in:setting: EMAIL_HOST. Má tá sé folamh, ní dhéanfaidh Django iarracht fíordheimhniú.</p>\n<p>Féach freis:socrú: EMAIL_HOST_PASSWORD.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;username&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in\na <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-port\">\n<span id=\"std-setting-EMAIL_PORT\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>RÍOMHPHOST_PORT `<a class=\"heading-anchor\" href=\"#email-port\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">25</span></code></p>\n<p>Port le húsáid don fhreastalaí SMTP atá sainmhínithe in:setting: EMAIL_HOST.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;port&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in a\n<a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-subject-prefix\">\n<span id=\"std-setting-EMAIL_SUBJECT_PREFIX\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_ÁBHAIR_RÉAMH</span></code><a class=\"heading-anchor\" href=\"#email-subject-prefix\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'[Django]</span> <span class=\"pre\">'</span></code></p>\n<p>Réimír líne ábhair do theachtaireachtaí ríomhphoist a sheoltar le <code class=\"docutils literal notranslate\"><span class=\"pre\">django.core.mail.mail_admins</span></code> nó <code class=\"docutils literal notranslate\"><span class=\"pre\">django.core.mail.mail_managers</span></code>. Is dócha go mbeidh tú ag iarraidh an spás siar a áireamh.</p>\n</section>\n<section id=\"email-use-localtime\">\n<span id=\"std-setting-EMAIL_USE_LOCALTIME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_ÚSÁID_ÁITIÚIL</span> <span class=\"pre\">TIM</span></code><a class=\"heading-anchor\" href=\"#email-use-localtime\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu an ceannteideal SMTP <code class=\"docutils literal notranslate\"><span class=\"pre\">Dáta</span> <span class=\"pre\">``de</span> <span class=\"pre\">theachtaireachtaí</span> <span class=\"pre\">ríomhphoist</span> <span class=\"pre\">a</span> <span class=\"pre\">sheoladh</span> <span class=\"pre\">sa</span> <span class=\"pre\">chrios</span> <span class=\"pre\">ama</span> <span class=\"pre\">áitiúil</span> <span class=\"pre\">(``True</span></code>) nó i UTC (<code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>).</p>\n</section>\n<section id=\"email-use-tls\">\n<span id=\"std-setting-EMAIL_USE_TLS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`RÍOMHPHOST_ÚSÁID_TLS</span></code><a class=\"heading-anchor\" href=\"#email-use-tls\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu nasc TLS (slán) a úsáid agus tú ag caint leis an bhfreastalaí SMTP. Úsáidtear é seo le haghaidh naisc shoiléire TLS, go ginearálta ar chalafort 587. Má tá naisc crochta agat, féach an socrú intuigthe TLS: setting: EMAIL_USE_SSL.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;use_tls&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in\na <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-use-ssl\">\n<span id=\"std-setting-EMAIL_USE_SSL\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_ÚSÁID_SSL</span></code><a class=\"heading-anchor\" href=\"#email-use-ssl\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu nasc intuigthe TLS (slán) a úsáid agus tú ag caint leis an bhfreastalaí SMTP. I bhformhór na ndoiciméadaithe ríomhphoist tugtar SSL ar an gcineál seo nasc TLS. Úsáidtear é go ginearálta ar chalafort 465. Má tá fadhbanna agat, féach an socrú sainráite TLS: setting: EMAIL_USE_TLS.</p>\n<p>Tabhair faoi deara go bhfuil: setting: EMAIL_USE_TLS/:SETTING: EMAIL_USE_SSL frithpháirteach, mar sin ní shocraigh ach ceann de na socruithe sin go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;use_ssl&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in\na <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-ssl-certfile\">\n<span id=\"std-setting-EMAIL_SSL_CERTFILE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_SSL_CERTFILE</span></code><a class=\"heading-anchor\" href=\"#email-ssl-certfile\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>If <a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_SSL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_SSL</span></code></a> or <a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_TLS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_TLS</span></code></a> is <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> and the\nsecure connection to the SMTP server requires client authentication, use this\nsetting to specify the path to a PEM-formatted certificate chain file, which\nmust be used in conjunction with <a class=\"reference internal\" href=\"#std-setting-EMAIL_SSL_KEYFILE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_SSL_KEYFILE</span></code></a>.</p>\n<p><code class=\"docutils literal notranslate\"><span class=\"pre\">EMAIL_SSL_CERTFILE</span></code> should not be used with a self-signed server certificate\nor a certificate from a private certificate authority (CA). In such cases, the\nserver's certificate (or the root certificate of the private CA) should be\ninstalled into the system's CA bundle. This can be done by following\nplatform-specific instructions for installing a root CA certificate,\nor by using OpenSSL's <code class=\"docutils literal notranslate\"><span class=\"pre\">SSL_CERT_FILE</span></code> or <code class=\"docutils literal notranslate\"><span class=\"pre\">SSL_CERT_DIR</span></code> environment\nvariables to specify a custom certificate bundle (if modifying the system\nbundle is not possible or desired).</p>\n<p>For more complex scenarios, the <a class=\"reference internal\" href=\"/ga/6.1/topics/email/#topic-email-smtp-backend\"><span class=\"std std-ref\">SMTP EmailBackend</span></a> can be subclassed to add root certificates to its\n<code class=\"docutils literal notranslate\"><span class=\"pre\">ssl_context</span></code> using\n<a class=\"reference external\" href=\"https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_verify_locations\" title=\"(in Python v3.14)\"><code class=\"docutils literal notranslate\"><span class=\"pre\">ssl.SSLContext.load_verify_locations()</span></code></a>.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;ssl_certfile&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in a <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP\nemail backend. See <a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-ssl-keyfile\">\n<span id=\"std-setting-EMAIL_SSL_KEYFILE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_SSL_KEYFILE</span></code><a class=\"heading-anchor\" href=\"#email-ssl-keyfile\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>If <a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_SSL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_SSL</span></code></a> or <a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_TLS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_TLS</span></code></a> is <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, you can\noptionally specify the path to a PEM-formatted private key file for client\nauthentication of the SSL connection along with <a class=\"reference internal\" href=\"#std-setting-EMAIL_SSL_CERTFILE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_SSL_CERTFILE</span></code></a>.</p>\n<p>Tabhair faoi deara nach mbíonn aon seiceáil deimhnithe mar thoradh ar shocting:setting: EMAIL_SSL_CERTFILE agus:setting: EMAIL_SSL_KEYFILE. Cuirtear iad ar aghaidh chuig an nasc SSL bunúsach. Féach do thoil do dhoiciméadú feidhm Python: Meth: Python: ssl.sslContext.wrap_socket le haghaidh sonraí maidir le conas a láimhseálfar an comhad slabhra deimhnithe agus comhad eochair phríobháideach.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;ssl_keyfile&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a>\nin a <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"email-timeout\">\n<span id=\"std-setting-EMAIL_TIMEOUT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">RÍOMHPHOST_TIMEOUT</span></code><a class=\"heading-anchor\" href=\"#email-timeout\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Sonraíonn sé ama i soicindí chun oibríochtaí a bhlocáil cosúil leis an iarracht nasc.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting is deprecated and will be removed in Django 7.0. Its\nreplacement is <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;timeout&quot;</span></code> under <a class=\"reference internal\" href=\"#std-setting-MAILERS-OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">OPTIONS</span></code></a> in\na <a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a> definition that uses the SMTP email backend. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers\"><span class=\"std std-ref\">Migrating email to mailers</span></a>.</p>\n</aside>\n</section>\n<section id=\"file-upload-handlers\">\n<span id=\"std-setting-FILE_UPLOAD_HANDLERS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">LÁIMHSEÁLAITHE</span> <span class=\"pre\">COMHAI_UASLÓDÁLAÍ</span></code><a class=\"heading-anchor\" href=\"#file-upload-handlers\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;django.core.files.uploadhandler.MemoryFileUploadHandler&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.core.files.uploadhandler.TemporaryFileUploadHandler&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Liosta de láimhseálaithe le húsáid le haghaidh uaslódála. Ligeann an socrú seo a athrú saincheaptha iomlán - fiú athsholáthar - próiseas uaslódála Django.</p>\n<p>See <a class=\"reference internal\" href=\"/ga/6.1/topics/http/file-uploads/#file-upload-handlers\"><span class=\"std std-ref\">Uaslódáil Handlers</span></a> for details.</p>\n</section>\n<section id=\"file-upload-max-memory-size\">\n<span id=\"std-setting-FILE_UPLOAD_MAX_MEMORY_SIZE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_MAX_MÉIDE_CUIMHNEACH</span></code><a class=\"heading-anchor\" href=\"#file-upload-max-memory-size\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: 2621440` (ie 2.5 MB).</p>\n<p>The maximum size (in bytes) that an upload will be before it gets streamed to\nthe file system. See <a class=\"reference internal\" href=\"/ga/6.1/topics/http/file-uploads/#file-upload-handlers\"><span class=\"std std-ref\">Uaslódáil Handlers</span></a> for details.</p>\n<p>Féach freis:socrú: DATA_UPLOAD_MAX_MEMORY_SIZE.</p>\n</section>\n<section id=\"file-upload-directory-permissions\">\n<span id=\"std-setting-FILE_UPLOAD_DIRECTORY_PERMISSIONS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>CEADÚNA_STIÚRTHÓIREACH_UASLÓDÁIL_COMHAD ``<a class=\"heading-anchor\" href=\"#file-upload-directory-permissions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An modh uimhriúil le cur i bhfeidhm ar eolairí a cruthaíodh sa phróiseas comhaid a uaslódáil.</p>\n<p>Cinneann an socrú seo na ceadanna réamhshocraithe d'eolairí statacha bailithe agus an t-ordú bainistíochta: djadmin: collectstatic á n-úsáid agat. Féach: Djadmin: collectstatic le haghaidh sonraí maidir leis a shárú.</p>\n<p>Léiríonn an luach seo feidhmiúlacht agus rabhadh an shocraithe:setting: FILE_UPLOAD_PERMISSIONS.</p>\n</section>\n<section id=\"file-upload-permissions\">\n<span id=\"std-setting-FILE_UPLOAD_PERMISSIONS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CEADÚNA_UASLÓDÁIL_FILE</span></code><a class=\"heading-anchor\" href=\"#file-upload-permissions\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">0o644</span></code></p>\n<p>An modh uimhriúil (ie <code class=\"docutils literal notranslate\"><span class=\"pre\">0o644</span></code>) chun comhaid nua-uaslódáilte a shocrú chuige. Le haghaidh tuilleadh faisnéise faoin méid a chiallaíonn na modhanna seo, féach an doiciméadú le haghaidh: func: os.chmod.</p>\n<p>Má tá <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>, gheobhaidh tú iompar spleách ar an gcóras oibriúcháin. Ar fhormhór na n-ardán, beidh modh 0o600 ag comhaid shealadacha, agus sábhálfar comhaid a shábháiltear ó chuimhne ag baint úsáide as umask caighdeánach an chórais.</p>\n<p>Ar chúiseanna slándála, ní chuirtear na ceadanna seo i bhfeidhm ar na comhaid shealadacha atá stóráilte in:setting: FILE_UPLOAD_TEMP_DIR.</p>\n<p>Cinneann an socrú seo na ceadanna réamhshocraithe do chomhaid statacha bailithe agus an t-ordú bainistíochta: djadmin: collectstatic á n-úsáid agat. Féach: Djadmin: collectstatic le haghaidh sonraí maidir leis a shárú.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>** Réamhítear an modh i gcónaí le** <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>0o' ** . **</p>\n<p>Mura bhfuil tú eolach ar mhodhanna comhaid, tabhair faoi deara go bhfuil an réimír <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>0` an-tábhachtach: léiríonn sé uimhir ochtúil, arb é sin an bealach a chaithfear modhanna a shonrú. Má dhéanann tú iarracht <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>644` a úsáid, gheobhaidh tú iompar go hiomlán mícheart.</p>\n</aside>\n<aside class=\"admonition-a-numeric-value-trumps-umask admonition\">\n<p class=\"admonition-title\">A numeric value trumps umask</p>\n<p>When this setting has a numeric value (one you've set yourself, or the\ndefault <code class=\"docutils literal notranslate\"><span class=\"pre\">0o644</span></code>), this value will be used as is, and a umask will not\nbe applied to it. The umask will apply only if this setting is <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>.</p>\n</aside>\n</section>\n<section id=\"file-upload-temp-dir\">\n<span id=\"std-setting-FILE_UPLOAD_TEMP_DIR\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_TEMP_DIR</span></code><a class=\"heading-anchor\" href=\"#file-upload-temp-dir\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An eolaire chun sonraí a stóráil chuig (de ghnáth comhaid níos mó ná: setting: FILE_UPLOAD_MAX_MEMORY_SIZE) go sealadach agus comhaid á uaslódáil. Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span> <span class=\"pre\">``,</span> <span class=\"pre\">úsáidfidh</span> <span class=\"pre\">Django</span> <span class=\"pre\">an</span> <span class=\"pre\">eolaire</span> <span class=\"pre\">sealadach</span> <span class=\"pre\">caighdeánach</span> <span class=\"pre\">don</span> <span class=\"pre\">chóras</span> <span class=\"pre\">oibriúcháin.</span> <span class=\"pre\">Mar</span> <span class=\"pre\">shampla,</span> <span class=\"pre\">réamhshocróidh</span> <span class=\"pre\">sé</span> <span class=\"pre\">seo</span> <span class=\"pre\">go</span> <span class=\"pre\">``/tmp</span></code> ar chórais oibriúcháin<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">*</span></a>nix-style.</p>\n<p>See <a class=\"reference internal\" href=\"/ga/6.1/topics/http/file-uploads/#file-upload-handlers\"><span class=\"std std-ref\">Uaslódáil Handlers</span></a> for details.</p>\n</section>\n<section id=\"first-day-of-week\">\n<span id=\"std-setting-FIRST_DAY_OF_WEEK\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`CHÉAD_LAETH_DEN</span> <span class=\"pre\">TSEACHTAINE</span></code><a class=\"heading-anchor\" href=\"#first-day-of-week\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code> (Dé Domhnaigh)</p>\n<p>Uimhir a léiríonn an chéad lá den tseachtain. Tá sé seo úsáideach go háirithe agus féilire á thaispeáint. Ní úsáidtear an luach seo ach nuair nach n-úsáidtear idirnáisiúnú formáid, nó nuair nach féidir formáid a fháil don áitiúil reatha.</p>\n<p>Caithfidh an luach a bheith ina shláimhir ó 0 go 6, áit a chiallaíonn 0 Dé Domhnaigh, ciallaíonn 1 Luain agus mar sin de.</p>\n</section>\n<section id=\"fixture-dirs\">\n<span id=\"std-setting-FIXTURE_DIRS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FIXTURE_DIRS</span></code><a class=\"heading-anchor\" href=\"#fixture-dirs\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta na n-eolair &lt;fixtures-explanation&gt;í a chuardaíodh ar chomhaid: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>fixture <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>, i dteannta leis an eolaire <a href=\"#id5\"><span class=\"problematic\" id=\"id6\">``</span></a>daingneáin <a href=\"#id7\"><span class=\"problematic\" id=\"id8\">``</span></a>de gach feidhmchlár, in ord cuardaigh.</p>\n<p>Tabhair faoi deara gur chóir go n-úsáidfeadh na cosáin seo slashes ar aghaidh i stíl Unix, fiú ar Windows.</p>\n<p>Féach: tagairt: topics-tástála-daingneáin tosaitheach agus:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>topics-tástála-daingneáin <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"force-script-name\">\n<span id=\"std-setting-FORCE_SCRIPT_NAME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`AINM_SCRIPT_FORCE</span></code><a class=\"heading-anchor\" href=\"#force-script-name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>If not <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, this will be used as the value of the <code class=\"docutils literal notranslate\"><span class=\"pre\">SCRIPT_NAME</span></code>\nenvironment variable in any HTTP request. This setting can be used to override\nthe server-provided value of <code class=\"docutils literal notranslate\"><span class=\"pre\">SCRIPT_NAME</span></code>, which may be a rewritten version\nof the preferred value or not supplied at all. It is also used by\n<a class=\"reference internal\" href=\"/ga/6.1/ref/applications/#django.setup\" title=\"django.setup\"><code class=\"xref py py-func docutils literal notranslate\"><span class=\"pre\">django.setup()</span></code></a> to set the URL resolver script prefix outside of the\nrequest/response cycle (e.g. in management commands and standalone scripts) to\ngenerate correct URLs when <code class=\"docutils literal notranslate\"><span class=\"pre\">FORCE_SCRIPT_NAME</span></code> is provided.</p>\n</section>\n<section id=\"form-renderer\">\n<span id=\"std-setting-FORM_RENDERER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FOIRM_RENDERER</span></code><a class=\"heading-anchor\" href=\"#form-renderer\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`</span></code>:class: django.forms.renderers.djangoTemplates<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a></p>\n<p>An rang a léiríonn foirmeacha agus a fhoirmíonn giuirléidí. &lt;low-level-widget-render-api&gt;Caithfidh sé: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>an API rindreála ísealleibhéil <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>a chur i bhfeidhm. Is iad na láithreoirí foirmeacha san áireamh:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">``</span></code>:class: Django.Forms.renderers.djangoTemplates<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'`</span></code>:class: Django.Forms.renderers.jinja2<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">``</span></code>:class: Django.Forms.Renderers.TemplateSetting<code class=\"docutils literal notranslate\"><span class=\"pre\">`</span></code></p></li>\n</ul>\n</section>\n<section id=\"format-module-path\">\n<span id=\"std-setting-FORMAT_MODULE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">MODÚL_BHEALACH_FORMÁID</span></code><a class=\"heading-anchor\" href=\"#format-module-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Conair iomlán Python chuig pacáiste Python ina bhfuil sainmhínithe formáid saincheaptha le haghaidh áitiúla tionscadail. Mura bhfuil <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, seiceálfaidh Django le haghaidh comhad <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>formats.py`, faoin eolaire a ainmnítear mar an áitiúil reatha, agus úsáideoidh sé na formáidí atá sainmhínithe sa chomhad seo.</p>\n<p>Táthar ag súil go n-ainmníofar ainm an eolaire ina bhfuil na sainmhínithe formáide ag baint úsáid:term: notáil ainm áitiúil, mar shampla ``de`, pt_br`, <code class=\"docutils literal notranslate\"><span class=\"pre\">en_us</span></code>, srl.</p>\n<p>Mar shampla, má tá: setting: FORMAT_MODULE_PATH socraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">mysite.formats</span></code>, agus is é <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>en <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Béarla) an teanga reatha, beidh Django ag súil le crann eolaire mar:</p>\n<div class=\"code-block\" data-language=\"text\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Text</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Text code\"><code>mysite/\n    formats/\n        __init__.py\n        en/\n            __init__.py\n            formats.py\n</code></pre></div>\n<p>Is féidir leat an socrú seo a shocrú freisin ar liosta de chosáin Python, mar shampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">FORMAT_MODULE_PATH</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"s2\">&quot;mysite.formats&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;some_app.formats&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Nuair a chuardaíonn Django ar fhormáid áirithe, rachaidh sé trí gach cosán Python a thugtar go dtí go bhfaighidh sé modúl a shainmhíníonn an fhormáid a thugtar Ciallaíonn sé seo go mbeidh tosaíocht ag formáidí a shainmhínítear i bpacáistí níos faide ar an liosta thar na formáidí céanna i bpacáistí níos faide síos.</p>\n<p>Is iad na formáidí atá ar fáil ná:</p>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATE_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATE_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATE_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATE_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATETIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATETIME_FORMAT</span></code></a>,</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATETIME_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATETIME_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DECIMAL_SEPARATOR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DECIMAL_SEPARATOR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FIRST_DAY_OF_WEEK\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FIRST_DAY_OF_WEEK</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MONTH_DAY_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MONTH_DAY_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-NUMBER_GROUPING\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">NUMBER_GROUPING</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SHORT_DATE_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SHORT_DATE_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SHORT_DATETIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SHORT_DATETIME_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-THOUSAND_SEPARATOR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">THOUSAND_SEPARATOR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TIME_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TIME_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TIME_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-YEAR_MONTH_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">YEAR_MONTH_FORMAT</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"ignorable-404-urls\">\n<span id=\"std-setting-IGNORABLE_404_URLS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">URLACHA</span> <span class=\"pre\">NEAMHCHOITIANTA</span> <span class=\"pre\">404_</span></code><a class=\"heading-anchor\" href=\"#ignorable-404-urls\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>List of compiled regular expression objects describing URLs that should be\nignored when reporting HTTP 404 errors via email (see\n<a class=\"reference internal\" href=\"/ga/6.1/howto/error-reporting/\"><span class=\"doc\">Conas tuairisciú earráide a bhainisti</span></a>). Regular expressions are matched against\nrequest's full paths, as returned by\n<a class=\"reference internal\" href=\"/ga/6.1/ref/request-response/#django.http.HttpRequest.get_full_path\" title=\"django.http.HttpRequest.get_full_path\"><code class=\"xref py py-meth docutils literal notranslate\"><span class=\"pre\">get_full_path()</span></code></a> (including any query strings).\nUse this if your site does not provide a commonly requested file such as\n<code class=\"docutils literal notranslate\"><span class=\"pre\">favicon.ico</span></code> or <code class=\"docutils literal notranslate\"><span class=\"pre\">robots.txt</span></code>.</p>\n<p>Ní úsáidtear é seo ach má tá: class: ~django.middleware.common.BrokenLinkemailsMiddleware cumasaithe (féach: doc: /topics/http/middleware).</p>\n</section>\n<section id=\"installed-apps\">\n<span id=\"std-setting-INSTALLED_APPS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">APPS_SHUITEÁIL</span></code><a class=\"heading-anchor\" href=\"#installed-apps\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de na teaghráin a ainmníonn gach feidhmchlár atá cumasaithe sa suiteáil Django seo. Ba chóir go mbeadh gach sreang ina chonair Python poncaithe chuig:</p>\n<ul class=\"simple\">\n<li><p>aicme cumraíochta feidhmchláir (is fearr), nó</p></li>\n<li><p>pacáiste ina bhfuil iarratas.</p></li>\n</ul>\n<p><a class=\"reference internal\" href=\"/ga/6.1/ref/applications/\"><span class=\"doc\">Learn more about application configurations</span></a>.</p>\n<aside class=\"admonition-use-the-application-registry-for-introspection admonition\">\n<p class=\"admonition-title\">Úsáid clárlann an fheidhmchláir le haghaidh ionfhios</p>\n<p>Níor cheart rochtain a fháil ar do chód riamh: setting: INSTALLED_APPS go díreach. Úsáid: attr: django.apps.apps ina ionad.</p>\n</aside>\n<aside class=\"admonition-application-names-and-labels-must-be-unique-in-setting-installed-apps admonition\">\n<p class=\"admonition-title\">Caithfidh ainmneacha agus lipéid iarratais a bheith uathúil in:setting: INSTALLED_APPS</p>\n<p>Iarratas: Attr: ainmneacha &lt;django.apps.AppConfig.name&gt;- an cosán Python poncanach chuig an bpacáiste iarratais - caithfidh a bheith uathúil. Níl aon bhealach ann an feidhmchlár céanna a áireamh faoi dhó, gan a chód a dhúbailt faoi ainm eile.</p>\n<p>Iarratas: ATTR: lipéid &lt;django.apps.AppConfig.label&gt;- de réir réamhshocraithe caithfidh an chuid deiridh den ainm - a bheith uathúil freisin. Mar shampla, ní féidir leat <code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.auth</span></code> agus <code class=\"docutils literal notranslate\"><span class=\"pre\">myproject.auth</span></code> araon a chur san áireamh. Mar sin féin, is féidir leat feidhmchlár a athlipéadú le cumraíocht saincheaptha a shainmhíníonn difríocht: attr: ~django.apps.appconfig.label.</p>\n<p>Tá feidhm ag na rialacha seo beag beann ar: tagraíonn setting: INSTALLED_APPS aicmí cumraíochta feidhmchláir nó pacáistí feidhmchláir.</p>\n</aside>\n<p>Nuair a sholáthraíonn roinnt feidhmchlár leaganacha éagsúla den acmhainn chéanna (teimpléad, comhad statach, ordú bainistíochta, aistriúchán), tá tosaíocht ag an bhfeidhmchlár atá liostaithe ar dtús in:setting: INSTALLED_APPS.</p>\n</section>\n<section id=\"internal-ips\">\n<span id=\"std-setting-INTERNAL_IPS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">IPS_INMHEÁN</span></code><a class=\"heading-anchor\" href=\"#internal-ips\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta de sheoltaí IP, mar teaghráin, go bhfuil:</p>\n<ul class=\"simple\">\n<li><p>Lig don phróiseálaí comhthéacs: func: ~django.template.context_processors.debug roinnt athróg a chur le comhthéacs an teimpléid.</p></li>\n<li><p>Is féidir leis an leabharmharcanna:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>admindocs bookmarklets &lt;admindocs-bookmarklets&gt;`a úsáid fiú mura bhfuil sé logáilte isteach mar úsáideoir foirne.</p></li>\n<li><p>Tá siad marcáilte mar “inmheánach” (seachas “EXTERNAL”) in:class: ~django.utils.log.adminEmailHandler ríomhphoist.</p></li>\n</ul>\n</section>\n<section id=\"language-code\">\n<span id=\"std-setting-LANGUAGE_CODE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CÓD_TEANGA</span></code><a class=\"heading-anchor\" href=\"#language-code\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'en-us'</span></code></p>\n<p>Sreang a léiríonn an cód teanga don tsuiteáil seo. &lt;language code&gt;Ba chóir go mbeadh sé seo i gcaighdeán:term: formáid ID teanga `. Mar shampla, is é Béarla na SA `&quot;en-us&quot;<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>. Féach freisin an <a class=\"reference external\" href=\"http://www.i18nguy.com/unicode/language-identifiers.html\">liosta na n-aitheantóirí teanga</a> agus:doc: /topics/i18n/index.</p>\n<p>Freastalaíonn sé trí chuspóir:</p>\n<ul class=\"simple\">\n<li><p>Mura bhfuil an meán-earraí áitiúla in úsáid, cinneann sé cén t-aistriúchán a sheirbheálfar do gach úsáideoir.</p></li>\n<li><p>Má tá an láithreán gréasáin gníomhach, soláthraíonn sé teanga aisghabhála i gcás nach féidir an teanga is fearr leis an úsáideoir a chinneadh nó nach dtacaíonn an suíomh Gréasáin leis. Soláthraíonn sé an t-aistriúchán ar ais freisin nuair nach bhfuil aistriúchán do litriúil ar leith ann don teanga is fearr leis an úsáideoir.</p></li>\n<li><p>Má dhéantar logánú a dhíchumasú go sainráite tríd an scagair:tfilter: unlocalize nó an chlibe:ttag: {% localize off%}&lt;localize&gt;, soláthraíonn sé formáidí logánaithe fillte a chuirfear i bhfeidhm ina ionad sin. Féach:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>logánú a rialú i dteimpléid &lt;topic-l10n-templates&gt;`le haghaidh sonraí.</p></li>\n</ul>\n<p>Féach:ref: how django-discovers-language-preference le haghaidh tuilleadh sonraí.</p>\n</section>\n<section id=\"language-cookie-age\">\n<span id=\"std-setting-LANGUAGE_COOKIE_AGE\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>TEANGA_FIANÁIN AOIS ``<a class=\"heading-anchor\" href=\"#language-cookie-age\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code> (in éag nuair a dhún an bhrabhsálaí)</p>\n<p>Aois na fianán teanga, i soicindí.</p>\n</section>\n<section id=\"language-cookie-domain\">\n<span id=\"std-setting-LANGUAGE_COOKIE_DOMAIN\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGA_FIANÁINE_FEARAIN</span></code><a class=\"heading-anchor\" href=\"#language-cookie-domain\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An fearann le húsáid don fhianán teanga. Socraigh é seo go sreang mar <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;example.com&quot;</span></code> le haghaidh fianáin tras-fearainn, nó bain úsáid as <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>le haghaidh fianán fearainn caighdeánach.</p>\n<p>Bí cúramach agus an suíomh seo á nuashonrú agat ar shuíomh táirgeachta. Má nuashonraíonn tú an socrú seo chun fianáin tras-fhearann a chumasú ar shuíomh a d'úsáid fianáin fearainn caighdeánacha roimhe seo, ní nuashonrófar fianáin úsáideora atá ann cheana a bhfuil an sean-fearainn Mar thoradh air seo ní bheidh úsáideoirí an láithreáin in ann an teanga a athrú chomh fada agus a leanfaidh na fianáin seo. Is é an t-aon rogha sábháilte agus iontaofa chun an lasc a dhéanamh ná ainm na fianán teanga a athrú go buan (tríd an socrú: LANGUAGE_COOKIE_NAME) agus meán-earraí a chur leis a chóipeálann an luach ón sean-fhianán go ceann nua agus ansin scriosann sé an seancheann.</p>\n</section>\n<section id=\"language-cookie-httponly\">\n<span id=\"std-setting-LANGUAGE_COOKIE_HTTPONLY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGA_FIANÁIN_HTTPONLY</span></code><a class=\"heading-anchor\" href=\"#language-cookie-httponly\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu an bhratach HttpOnly` a úsáid ar an bhfianán teanga. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, ní bheidh JavaScript taobh an chliaint in ann rochtain a fháil ar an bhfianán teanga.</p>\n<p>Féach: SETTING: SESSION_COOKIE_HTTPONLY le haghaidh sonraí ar HTTPONLY`.</p>\n</section>\n<section id=\"language-cookie-name\">\n<span id=\"std-setting-LANGUAGE_COOKIE_NAME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">AINM_FIANÁIN</span> <span class=\"pre\">TEANGA</span></code><a class=\"heading-anchor\" href=\"#language-cookie-name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'django_langue'</span></code></p>\n<p>Ainm na fianán atá le húsáid don fhianán teanga. Is féidir leis seo a bheith cibé rud is mian leat (fad is atá sé difriúil ó na hainmneacha fianán eile i d'iarratas). Féach: doc: /topics/i18n/index.</p>\n</section>\n<section id=\"language-cookie-path\">\n<span id=\"std-setting-LANGUAGE_COOKIE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGA_FIANÁIN</span> <span class=\"pre\">BHEALAIGH</span></code><a class=\"heading-anchor\" href=\"#language-cookie-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'/'</span></code></p>\n<p>An cosán atá leagtha síos ar an bhfianán teanga. Ba chóir go mbeadh sé seo comhoiriúnach le cosán URL do shuiteála Django nó a bheith ina thuismitheoir ar an gcosán sin.</p>\n<p>Tá sé seo úsáideach má tá cásanna iolracha Django agat ag rith faoin ainm óstach céanna. Is féidir leo cosáin éagsúla fianán a úsáid agus ní fheicfidh gach cás ach a fianán teanga féin.</p>\n<p>Bí cúramach agus an suíomh seo á nuashonrú agat ar shuíomh táirgeachta. Má nuashonraíonn tú an socrú seo chun cosán níos doimhne a úsáid ná mar a úsáideadh sé roimhe seo, ní nuashonrófar fianáin úsáideora atá ann cheana a bhfuil an sean-chosán Mar thoradh air seo ní bheidh úsáideoirí an láithreáin in ann an teanga a athrú chomh fada agus a leanann na fianáin seo. Is é an t-aon rogha sábháilte agus iontaofa chun an lasc a dhéanamh ná ainm na fianán teanga a athrú go buan (tríd an socrú: LANGUAGE_COOKIE_NAME), agus meán-earraí a chur leis a chóipeálann an luach ón sean-fhianán go ceann nua agus ansin scriosann sé an ceann.</p>\n</section>\n<section id=\"language-cookie-samesite\">\n<span id=\"std-setting-LANGUAGE_COOKIE_SAMESITE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGA_FIANÁN_COMHCHOSAITHE</span></code><a class=\"heading-anchor\" href=\"#language-cookie-samesite\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Luach an bhratach <a class=\"reference external\" href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value\">SameSite</a> ar an bhfianán teanga. Cuireann an bratach seo cosc ar an bhfianán a sheoladh in iarratais tras-láithreáin.</p>\n<p>Féach:SETTING: SESSION_COOKIE_SAMESITE le haghaidh sonraí faoi Samesite`.</p>\n</section>\n<section id=\"language-cookie-secure\">\n<span id=\"std-setting-LANGUAGE_COOKIE_SECURE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGA_FIANÁINE_SLÁNDÁLA</span></code><a class=\"heading-anchor\" href=\"#language-cookie-secure\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu fianán slán a úsáid don fhianán teanga. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, marcálfar an fianán mar “slán”, rud a chiallaíonn go bhféadfaidh brabhsálaithe a chinntiú nach seoltar an fianán ach faoi nasc HTTPS.</p>\n</section>\n<section id=\"languages\">\n<span id=\"std-setting-LANGUAGES\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>TEANGACHA ``<a class=\"heading-anchor\" href=\"#languages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: Liosta de na teangacha go léir atá ar fáil. Tá an liosta seo ag fás i gcónaí agus is cinnte go mbeadh cóip a áireamh anseo as dáta go tapa. Is féidir leat an liosta reatha de na dteangacha aistrithe a fheiceáil trí:source: django/conf/global_settings.py.</p>\n<p>Is é an liosta de dhá thuples san fhormáid (:term: cód teanga &lt;language code&gt;, <code class=\"docutils literal notranslate\"><span class=\"pre\">ainm</span> <span class=\"pre\">teanga</span> <span class=\"pre\">``)</span> <span class=\"pre\">--</span> <span class=\"pre\">mar</span> <span class=\"pre\">shampla,</span></code> ('ja', 'Seapáinis') <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>. Sonraíonn sé seo cé na teangacha atá ar fáil le haghaidh roghnú teanga. Féach: doc: /topics/i18n/index.</p>\n<p>Go ginearálta, ba chóir go leor an luach réamhshocraithe. Socraigh an socrú seo ach más mian leat roghnú teanga a theorannú go fo-thacar de na teangacha a sholáthraítear Django.</p>\n<p>Má shainmhíníonn tú socrú saincheap:setting: LANGUAGES, is féidir leat na hainmneacha teanga a mharcáil mar teaghráin aistriúcháin ag baint úsáide as an bhfeidhm:func: ~django.utils.translation.gettext_lazy.</p>\n<p>Seo comhad socruithe samplach:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"kn\">from</span><span class=\"w\"> </span><span class=\"nn\">django.utils.translation</span><span class=\"w\"> </span><span class=\"kn\">import</span> <span class=\"n\">gettext_lazy</span> <span class=\"k\">as</span> <span class=\"n\">_</span>\n\n<span class=\"n\">LANGUAGES</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"p\">(</span><span class=\"s2\">&quot;de&quot;</span><span class=\"p\">,</span> <span class=\"n\">_</span><span class=\"p\">(</span><span class=\"s2\">&quot;German&quot;</span><span class=\"p\">)),</span>\n    <span class=\"p\">(</span><span class=\"s2\">&quot;en&quot;</span><span class=\"p\">,</span> <span class=\"n\">_</span><span class=\"p\">(</span><span class=\"s2\">&quot;English&quot;</span><span class=\"p\">)),</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n</section>\n<section id=\"languages-bidi\">\n<span id=\"std-setting-LANGUAGES_BIDI\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEANGACH_BIDI</span></code><a class=\"heading-anchor\" href=\"#languages-bidi\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: Liosta de na cóid teanga go léir atá scríofa ar dheis go clé. Is féidir leat an liosta reatha de na teangacha seo a fheiceáil trí:source: django/conf/global_settings.py.</p>\n<p>Tá an liosta: téarma: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cóid teanga &lt;language code&gt;`do theangacha atá scríofa ar dheis go clé.</p>\n<p>Go ginearálta, ba chóir go leor an luach réamhshocraithe. Socraigh an socrú seo ach más mian leat roghnú teanga a theorannú go fo-thacar de na teangacha a sholáthraítear Django. Má shainmhíníonn tú socrú saincheap:setting: LANGUAGES, d'fhéadfadh go mbeadh cóid teanga nach bhfuil cumasaithe ar shuíomh ar leith i liosta na dteangacha déthreoracha.</p>\n</section>\n<section id=\"locale-paths\">\n<span id=\"std-setting-LOCALE_PATHS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>COSÁIN ÁITIÚLA ``<a class=\"heading-anchor\" href=\"#locale-paths\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta d'eolairí ina bhfuil Django ag lorg comhaid aistriúcháin. Féach:ref: cona-django-aimsitheach-aistriúcháin.</p>\n<p>Sampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">LOCALE_PATHS</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"s2\">&quot;/home/www/project/common_files/locale&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;/var/local/translations/locale&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Breathnóidh Django laistigh de gach ceann de na cosáin seo do na heolairí <code class=\"docutils literal notranslate\"><span class=\"pre\">&lt;locale_code&gt;/LC_MESSAGES</span></code> ina bhfuil na comhaid aistriúcháin iarbhír.</p>\n</section>\n<section id=\"logging\">\n<span id=\"std-setting-LOGGING\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>LOGÁIL ISTEACH ``<a class=\"heading-anchor\" href=\"#logging\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: Foclóir cumraíochta logála.</p>\n<p>Struchtúr sonraí ina bhfuil faisnéis chumraíochta. Nuair nach bhfuil sé folamh, cuirfear ábhar an struchtúir sonraí seo ar aghaidh mar argóint chuig an modh cumraíochta a thuairiscítear in:setting: LOGGING_CONFIG.</p>\n<p>I measc rudaí eile, cuireann an chumraíocht logála réamhshocraithe earráidí freastalaí HTTP 500 chuig láimhseálaí logála ríomhphoist nuai:socrú: “DEBUG” ná False`. Féach freis:ref: configuring-loging.</p>\n<p>Is féidir leat an chumraíocht logála réamhshocraithe a fheiceáil trí fhéachaint isteach: source: django/utils/log.py.</p>\n</section>\n<section id=\"logging-config\">\n<span id=\"std-setting-LOGGING_CONFIG\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">LOGING_CONFIG</span></code><a class=\"heading-anchor\" href=\"#logging-config\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Loging.config.dictConfig'</span></code></p>\n<p>Conair chuig glaoch a úsáidfear chun logáil isteach i dtionscadal Django a chumrú. &lt;logging-config-dictschema&gt;Pointí ag cás de Python's:ref: modh cumraíochta DictConfig de réir réamhshocraithe.</p>\n<p>Má shocraíonn tú: socrú: LOGGING_CONFIG go <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, scipeánfar an próiseas cumraíochta logála.</p>\n</section>\n<section id=\"mailers\">\n<span id=\"std-setting-MAILERS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code><a class=\"heading-anchor\" href=\"#mailers\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.1\">\n<p class=\"version-note-title\">New in Django 6.1</p></aside>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>A dictionary containing the settings for all email backends to be used with\nDjango. It is a nested dictionary that maps backend aliases to dictionaries\ncontaining each mailer's backend import path and configuration options.</p>\n<p>Sampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">MAILERS</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.mail.backends.smtp.EmailBackend&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;OPTIONS&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n            <span class=\"s2\">&quot;host&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;smtp.example.net&quot;</span><span class=\"p\">,</span>\n        <span class=\"p\">},</span>\n    <span class=\"p\">},</span>\n    <span class=\"s2\">&quot;newsletters&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.mail.backends.smtp.EmailBackend&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;OPTIONS&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n            <span class=\"s2\">&quot;host&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;smtp.bulk-email-service.example.com&quot;</span><span class=\"p\">,</span>\n            <span class=\"s2\">&quot;username&quot;</span><span class=\"p\">:</span> <span class=\"n\">os</span><span class=\"o\">.</span><span class=\"n\">environ</span><span class=\"p\">[</span><span class=\"s2\">&quot;BULK_EMAIL_SERVICE_ACCOUNT_ID&quot;</span><span class=\"p\">],</span>\n            <span class=\"s2\">&quot;password&quot;</span><span class=\"p\">:</span> <span class=\"n\">os</span><span class=\"o\">.</span><span class=\"n\">environ</span><span class=\"p\">[</span><span class=\"s2\">&quot;BULK_EMAIL_SERVICE_API_KEY&quot;</span><span class=\"p\">],</span>\n            <span class=\"s2\">&quot;use_tls&quot;</span><span class=\"p\">:</span> <span class=\"kc\">True</span><span class=\"p\">,</span>\n        <span class=\"p\">},</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>If you plan to send email through Django, configuring at least a <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;default&quot;</span></code>\nmailer is recommended. Any number of additional mailers may also be specified.\nDepending on which backend is used, other options may be required.</p>\n<p>Setting <code class=\"docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code> to an empty dictionary (<code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code>) disables email sending and\nany attempt to send mail will raise <code class=\"docutils literal notranslate\"><span class=\"pre\">MailerDoesNotExist</span></code>.</p>\n<p>See <a class=\"reference internal\" href=\"/ga/6.1/topics/email/#topic-email-configuration\"><span class=\"std std-ref\">Configuring email</span></a> for more information.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>In Django 7.0, the default value will change from &quot;Not defined&quot; to <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code>.\nUntil then, if <code class=\"docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code> is not defined in the project's settings, Django\nwill create a <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;default&quot;</span></code> mailer using the <a class=\"reference internal\" href=\"#std-setting-EMAIL_BACKEND\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_BACKEND</span></code></a>\nsetting. Projects can opt into the Django 7.0 behavior at any time by\nadding <code class=\"docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code> and removing <code class=\"docutils literal notranslate\"><span class=\"pre\">EMAIL_BACKEND</span></code> from their settings. See\n<a class=\"reference internal\" href=\"/ga/6.1/howto/mailers-migration/#migrating-to-mailers-settings\"><span class=\"std std-ref\">Migrating settings</span></a>.</p>\n</aside>\n<section id=\"std-setting-MAILERS-BACKEND\">\n<span id=\"id6\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">`CÚLT</span></code><a class=\"heading-anchor\" href=\"#std-setting-MAILERS-BACKEND\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;django.core.mail.backends.smtp.EmailBackend&quot;</span></code></p>\n<p>The Python import path to the email backend class. If <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;BACKEND&quot;</span></code> is omitted,\nDjango's <a class=\"reference internal\" href=\"/ga/6.1/topics/email/#topic-email-smtp-backend\"><span class=\"std std-ref\">Cúltaca SMTP</span></a> is used.</p>\n<p>See <a class=\"reference internal\" href=\"/ga/6.1/topics/email/#topic-email-backends\"><span class=\"std std-ref\">Cúltaca ríomhphoist</span></a> for a list of Django's built-in backends and\npointers to community-maintained options.</p>\n</section>\n<section id=\"std-setting-MAILERS-OPTIONS\">\n<span id=\"id7\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNAÍ</span></code><a class=\"heading-anchor\" href=\"#std-setting-MAILERS-OPTIONS\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code></p>\n<p>Configuration parameters to pass to the email backend. The available and\nrequired options vary depending on the backend.</p>\n</section>\n</section>\n<section id=\"managers\">\n<span id=\"std-setting-MANAGERS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>BAINISTEOIRÍ ``<a class=\"heading-anchor\" href=\"#managers\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta san fhormáid chéanna amha:setting: ADMINS a shonraíonn cé ar chóir fógraí nasc briste a fháil nuai:class: ~django.middleware.common.BrokenLinkemailsMiddleware cumasaithe.</p>\n<aside class=\"version-note version-changed\" data-version=\"6.0\">\n<p class=\"version-note-title\">Changed in Django 6.0</p><p>In older versions, required a list of (name, address) tuples.</p>\n</aside>\n</section>\n<section id=\"media-root\">\n<span id=\"std-setting-MEDIA_ROOT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">MEDIA_FRÉAMH</span></code><a class=\"heading-anchor\" href=\"#media-root\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Conair iomlán córas comhaid chuig an eolaire a bheidh ina choimeád:doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>comhaid uaslódáilte úsáideora <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>. &lt;/topics/files&gt;</p>\n<p>Sampla: <code class=\"docutils literal notranslate\"><span class=\"pre\">”</span> <span class=\"pre\">/var/www/example.com/media/&quot;</span></code></p>\n<p>Féach freis:socrú: MEDIA_URL.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p><a class=\"reference internal\" href=\"#std-setting-MEDIA_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_ROOT</span></code></a> and <a class=\"reference internal\" href=\"#std-setting-STATIC_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">STATIC_ROOT</span></code></a> must have different\nvalues. Before <a class=\"reference internal\" href=\"#std-setting-STATIC_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">STATIC_ROOT</span></code></a> was introduced, it was common to\nrely or fallback on <a class=\"reference internal\" href=\"#std-setting-MEDIA_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_ROOT</span></code></a> to also serve static files;\nhowever, since this can have serious security implications, there is a\nvalidation check to prevent it.</p>\n</aside>\n</section>\n<section id=\"media-url\">\n<span id=\"std-setting-MEDIA_URL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>MEDIA_URL ``<a class=\"heading-anchor\" href=\"#media-url\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>URL a láimhseálann na meáin a sheirbheáiltear ó:setting: MEDIA_ROOT, a úsáidtear le haghaidh: doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>comhaid stóráilte &lt;/topics/files&gt; a bhainistiú. Caithfidh sé deireadh a chur le slasc má tá sé socraithe ar luach neamh-folamh. Beidh ort: ref: <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>na comhaid seo a chumrú le seirbheáil &lt;serving-uploaded-files-in-development&gt;`i dtimpeallachtaí forbartha agus táirgeachta araon.</p>\n<p>Más mian leat <code class=\"docutils literal notranslate\"><span class=\"pre\">{{MEDIA_URL}}</span></code> a úsáid i do theimpléid, cuir <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>django.template.context_processors.media' sa rogha <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>context_processors' de:setting: TEMPLATES.</p>\n<p>Sampla: <code class=\"docutils literal notranslate\"><span class=\"pre\">”</span> <span class=\"pre\">https://media.example.com/</span> <span class=\"pre\">“</span></code></p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>Tá rioscaí slándála ann má tá tú ag glacadh le hábhar uaslódáilte ó úsáideoirí neam Féach ábhar an treoir slándála ar:ref: user-uploaded-content-security le haghaidh sonraí maolaithe.</p>\n</aside>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p><a class=\"reference internal\" href=\"#std-setting-MEDIA_URL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_URL</span></code></a> and <a class=\"reference internal\" href=\"#std-setting-STATIC_URL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">STATIC_URL</span></code></a> must have different\nvalues. See <a class=\"reference internal\" href=\"#std-setting-MEDIA_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_ROOT</span></code></a> for more details.</p>\n</aside>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Más: Socrú: Is cosán coibhneasta é MEDIA_URL, ansin déanfar é a réamhshocrú ag an luach <code class=\"docutils literal notranslate\"><span class=\"pre\">SCRIPT_NAME</span></code> a sholáthraíonn an freastalaí (nó <code class=\"docutils literal notranslate\"><span class=\"pre\">/</span></code> mura bhfuil sé socraithe). Fágann sé seo go bhfuil sé níos éasca feidhmchlár Django a sheirbheáil i bhfochonair gan cumraíocht bhreise a chur leis na socruithe.</p>\n</aside>\n</section>\n<section id=\"middleware\">\n<span id=\"std-setting-MIDDLEWARE\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>MEÁN-EARRAÍ ``<a class=\"heading-anchor\" href=\"#middleware\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Liosta de mheán-earraí le húsáid. Féach: doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>/topics/http/middleware <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n</section>\n<section id=\"migration-modules\">\n<span id=\"std-setting-MIGRATION_MODULES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">MODÚL_IMIRCE</span></code><a class=\"heading-anchor\" href=\"#migration-modules\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Foclóir folamh)</p>\n<p>Foclóir a shonraíonn an pacáiste inar féidir modúil imirce a fháil ar bhonn in aghaidh an aip. Is foclóir folamh é luach réamhshocraithe an socrú seo, ach is é “imirceacháin” ainm an phacáiste réamhshocraithe do mhodúil imirce.</p>\n<p>Sampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">{</span><span class=\"s2\">&quot;blog&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;blog.db_migrations&quot;</span><span class=\"p\">}</span>\n</code></pre></div>\n<p>Sa chás seo, beidh imirce a bhaineann leis an aip <code class=\"docutils literal notranslate\"><span class=\"pre\">blog</span></code> sa phacáiste <code class=\"docutils literal notranslate\"><span class=\"pre\">blog.db_migrations</span></code>.</p>\n<p>Má sholáthraíonn tú an argóint <code class=\"docutils literal notranslate\"><span class=\"pre\">app_label</span></code>, cruthóidh: djadmin: makemigrations an pacáiste go huathoibríoch mura bhfuil sé ann cheana féin.</p>\n<p>Nuair a sholáthraíonn tú <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code> mar luach d'aip, measfaidh Django an aip mar aip gan imirce beag beann ar fho-mhodúl <code class=\"docutils literal notranslate\"><span class=\"pre\">imirce</span></code> atá ann cheana. Is féidir é seo a úsáid, mar shampla, i gcomhad socruithe tástála chun imirce a scipeáil agus tú ag tástáil (cruthófar táblaí fós do mhúnlaí na n-aipeanna). Chun imirce do gach aip a dhíchumasú le linn tástálacha, is féidir leat an: socrú: MIGRATE `go `False`&lt;TEST_MIGRATE&gt; ina ionad. Má úsáidtear <code class=\"docutils literal notranslate\"><span class=\"pre\">MIGRATION_MODULES</span></code> i do shocruithe ginearálta tionscadail, cuimhnigh an roghna:option: migration --run-syncdb a úsáid más mian leat táblaí a chruthú don aip.</p>\n</section>\n<section id=\"month-day-format\">\n<span id=\"std-setting-MONTH_DAY_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_LAETH_MHÍ</span></code><a class=\"heading-anchor\" href=\"#month-day-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'F</span> <span class=\"pre\">j'</span></code></p>\n<p>An formáidiú réamhshocraithe le húsáid le haghaidh réimsí dáta ar leathanaigh liosta athraithe riaracháin Django - agus, b'fhéidir, ag codanna eile den chóras - i gcásanna nach dtaispeántar ach an mhí agus an lá.</p>\n<p>Mar shampla, nuair a bhíonn leathanach liosta athraithe riaracháin Django á scagadh ag druileáil dáta, taispeánann an ceannteideal do lá ar leith an lá agus an mhí. Tá formáidí éagsúla ag áitiúla éagsúla. Mar shampla, déarfadh Béarla na SA “1 Eanáir,” ach d'fhéadfadh an Spáinnis a rá “1 Enero.”</p>\n<p>Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid chomhfhreagrach áitiúil agus go gcuirfear i bhfeidhm ina ionad.</p>\n<p>&lt;date&gt;Féach: TFilter: teaghráin formáid dáta ceadaithe `. Féach freis:socrú: `DATE_FORMAT, :setting: DATETIME_FORMAT, :setting: TIME_FORMAT agus:setting: YEAR_MONTH_FORMAT.</p>\n</section>\n<section id=\"number-grouping\">\n<span id=\"std-setting-NUMBER_GROUPING\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>UIMHREACH_GHRÚPÁIL ``<a class=\"heading-anchor\" href=\"#number-grouping\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code></p>\n<p>Líon na ndigití atá grúpáilte le chéile ar an gcuid sláireach d'uimhir.</p>\n<p>Úsáid choitianta ná míle deighilteoir a thaispeáint. Más é an socrú seo <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code>, ansin ní chuirfear aon ghrúpáil i bhfeidhm ar an uimhir. Má tá an socrú seo níos mó ná 0`, ansin úsáidfear: setting: THOUSAND_SEPARATOR mar an deighilteoir idir na grúpaí sin.</p>\n<p>Úsáideann roinnt áiteanna grúpáil dhigit neamh-aonfhoirmeach, m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">10,00,00,000</span></code> i En_in`. Maidir leis an gcás seo, is féidir leat seicheamh a sholáthar le líon na méideanna grúpa dhigit atá le cur i bhfeidhm. Sainmhíníonn an chéad uimhir méid an ghrúpa roimh an teorannach deachúil, agus sainmhíníonn gach uimhir a leanann méid na ngrúpaí roimhe seo. Má chuirtear deireadh leis an seicheamh le <code class=\"docutils literal notranslate\"><span class=\"pre\">-1</span></code>, ní dhéantar aon ghrúpáil bhreise. Má chríochnaíonn an seicheamh le <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code>, úsáidtear méid an ghrúpa deireanach don chuid eile den uimhir.</p>\n<p>Sampla tuple le haghaidh <code class=\"docutils literal notranslate\"><span class=\"pre\">en_in</span></code>:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">NUMBER_GROUPING</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"mi\">3</span><span class=\"p\">,</span> <span class=\"mi\">2</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n</code></pre></div>\n<p>Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freis:socrú: DECIMAL_SEPARATOR, :setting: THOUSAND_SEPARATOR agus:setting: USE_THOUSAND_SEPARATOR.</p>\n</section>\n<section id=\"prepend-www\">\n<span id=\"std-setting-PREPEND_WWW\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">PREPEND_WWW</span></code><a class=\"heading-anchor\" href=\"#prepend-www\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé an ndéanfar an fo-fhearann “www.” a phleanáil chuig URLanna nach bhfuil sé acu. Ní úsáidtear é seo ach má tá: class: ~django.middleware.common.commonMiddleware suiteáilte (féach: doc: /topics/http/middleware). Féach freis:socrú: APPEND_SLASH.</p>\n</section>\n<section id=\"root-urlconf\">\n<span id=\"std-setting-ROOT_URLCONF\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">ROOT_URLCONF</span></code><a class=\"heading-anchor\" href=\"#root-urlconf\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>Sreang a léiríonn an cosán iomlán allmhairithe Python chuig do URLConf fréimhe, mar shampla <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;mydjangoapps.urls&quot;`.</span> <span class=\"pre\">Is</span> <span class=\"pre\">féidir</span> <span class=\"pre\">é</span> <span class=\"pre\">a</span> <span class=\"pre\">shárú</span> <span class=\"pre\">ar</span> <span class=\"pre\">bhonn</span> <span class=\"pre\">in</span> <span class=\"pre\">aghaidh</span> <span class=\"pre\">iarratais</span> <span class=\"pre\">tríd</span> <span class=\"pre\">an</span> <span class=\"pre\">tréith</span> <span class=\"pre\">``urlconf</span></code> a shocrú ar an réad <code class=\"docutils literal notranslate\"><span class=\"pre\">HttpRequest</span></code> atá ag teacht isteach. Féach: ref: how django-processes-a-request le haghaidh sonraí.</p>\n</section>\n<section id=\"secret-key\">\n<span id=\"std-setting-SECRET_KEY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">EOCHAIR_RÚNA</span></code><a class=\"heading-anchor\" href=\"#secret-key\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>Eochair rúnda do shuiteáil Django áirithe. Úsáidtear é seo chun: doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>síniú cripteagrafach' a sholáthar, agus ba chóir é a shocrú go luach u&lt;/topics/signing&gt; athúil, nach féidir a thuar.</p>\n<p><a class=\"reference internal\" href=\"/ga/6.1/ref/django-admin/#django-admin-startproject\"><code class=\"xref std std-djadmin docutils literal notranslate\"><span class=\"pre\">django-admin</span> <span class=\"pre\">startproject</span></code></a> automatically adds a\nrandomly-generated <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY</span></code> to each new project.</p>\n<p>Níor chóir go nglacfadh úsáidí an eochair leis gur téacs nó beáit é. Ba chóir go mbeadh gach úsáid trí:func: ~django.utils.encoding.force_str nó: func: ~django.utils.encoding.force_bytes chun é a thiontú go dtí an cineál atá ag teastáil.</p>\n<p>Diúltóidh Django tosú mura bhfuil: setting: SECRET_KEY socraithe.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>** Coinnigh an luach seo faoi rún. **</p>\n<p>Scaoileann Django ag rith le: socrú: SECRET_KEY go leor de chosaintí slándála Django, agus d'fhéadfadh méadú pribhléid agus leochaileachtaí forghníomhú iargúlta cód a bheith mar thoradh air.</p>\n</aside>\n<p>Úsáidtear an eochair rúnda le haghaidh:</p>\n<ul class=\"simple\">\n<li><p>All <a class=\"reference internal\" href=\"/ga/6.1/topics/http/sessions/\"><span class=\"doc\">sessions</span></a> if you are using\nany other session backend than <code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.sessions.backends.cache</span></code>,\nor are using the default\n<a class=\"reference internal\" href=\"/ga/6.1/topics/auth/customizing/#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>.</p></li>\n<li><p>Gach: Doc: teachtaireachtaí `má tá tú ag baint úsáide:class: `~django.contrib.messages.storage.cookie.cookieStorage nó&lt;/ref/contrib/messages&gt; :class: ~django.contrib.messages.storage.fallback.fallbackStorage.</p></li>\n<li><p>Gach: Class: comharthaí ~django.contrib.auth.views.passwordResetView.</p></li>\n<li><p>Aon úsáid ar:doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>síniú cripteagrafach', mura gcuirtear eochair dhifriúil ar fáil. &lt;/topics/signing&gt;</p></li>\n</ul>\n<p>Nuair nach bhfuil eochair rúnda socraithe a thuilleadh mar: setting: SECRET_KEY nó atá ann laistigh de: setting: SECRET_KEY_FALLBACKS beidh gach ceann de na rudaí thuas neamhbhailí. Agus do eochair rúnda á rothlú agat, ba chóir duit an sean-eochair a bhogadh chuig: setting: SECRET_KEY_FALLBACKS go sealadach. Ní úsáidtear eochracha rúnda le haghaidh pasfhocail úsáideoirí agus ní bheidh tionchar ag rothlú eochair orthu.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>&lt;startproject&gt;Cruthaíonn an comhad réamhshocraithe:file: settings.py a chruthaí:djadmin: django-admin startproject `uathúil ``SECRET_KEY` le haghaidh áisiúlachta.</p>\n</aside>\n</section>\n<section id=\"secret-key-fallbacks\">\n<span id=\"std-setting-SECRET_KEY_FALLBACKS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">EOCHAIR_FALLBACKS</span></code><a class=\"heading-anchor\" href=\"#secret-key-fallbacks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code></p>\n<p>Liosta d'eochracha rúnda tagtha le haghaidh suiteáil Django áirithe. Úsáidtear iad seo chun rothlú an <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY</span></code> a cheadú.</p>\n<p>D'fhonn d'eochracha rúnda a rothlú, socraigh <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY</span></code> nua agus bog an luach roimhe seo go dtí tús <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY_FALLBACKS</span></code>. Ansin bain na seanluachanna ó dheireadh an <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY_FALLBACKS</span></code> nuair a bheidh tú réidh chun na seisiúin, na comharthaí athshocraithe pasfhocal, agus mar sin de, a úsáideann iad a chur in éag.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Tá oibríochtaí sínithe costasach go ríomhaireachta. Cuireann sean-eochrluachanna iolracha agat i <code class=\"docutils literal notranslate\"><span class=\"pre\">SECRET_KEY_FALLBACKS</span></code> lasbhreas breise le gach seiceáil nach n-oireann le heochair níos luaithe.</p>\n<p>Dá bhrí sin, ba cheart luachanna titim a bhaint tar éis tréimhse chuí, rud a cheadaíonn rothlú eochair.</p>\n</aside>\n<p>Níor chóir go nglacfadh úsáidí na príomhluachanna rúnda leis gur téacs nó béite iad. Ba chóir go mbeadh gach úsáid trí:func: ~django.utils.encoding.force_str nó: func: ~django.utils.encoding.force_bytes chun é a thiontú go dtí an cineál atá ag teastáil.</p>\n</section>\n<section id=\"secure-content-type-nosniff\">\n<span id=\"std-setting-SECURE_CONTENT_TYPE_NOSNIFF\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CINEÁL_ÁBHAR</span> <span class=\"pre\">SLÁNDÁILTE_NOSNIFF</span></code><a class=\"heading-anchor\" href=\"#secure-content-type-nosniff\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, socraíonn an:class: ~django.middleware.securityMiddleware ceannteideal: :ref: x-content-type-options ar gach freagra nach bhfuil sé ann cheana féin.</p>\n</section>\n<section id=\"secure-cross-origin-opener-policy\">\n<span id=\"std-setting-SECURE_CROSS_ORIGIN_OPENER_POLICY\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>BEARTAS OSCAILTEOIREACH_THRAS_BUNAIDH SLÁNDÁILTE ``<a class=\"heading-anchor\" href=\"#secure-cross-origin-opener-policy\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>bhunús céann'</p>\n<p>Mura bhfuil sé socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, socraíonn an:class: ~django.middleware.securityMiddleware an ceannteideal: :ref: cross-origin-opener-policy ar gach freagra nach bhfuil sé ar an luach a chuirtear ar fáil cheana féin.</p>\n</section>\n<section id=\"secure-csp\">\n<span id=\"std-setting-SECURE_CSP\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SECURE_CSP</span></code><a class=\"heading-anchor\" href=\"#secure-csp\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.0\">\n<p class=\"version-note-title\">New in Django 6.0</p></aside>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code></p>\n<p>This setting defines the directives used by the\n<a class=\"reference internal\" href=\"/ga/6.1/ref/middleware/#django.middleware.csp.ContentSecurityPolicyMiddleware\" title=\"django.middleware.csp.ContentSecurityPolicyMiddleware\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">ContentSecurityPolicyMiddleware</span></code></a>, which\ngenerates and adds a <a class=\"reference internal\" href=\"/ga/6.1/ref/csp/#csp-overview\"><span class=\"std std-ref\">Content-Security-Policy</span></a> (CSP) header\nto all responses that do not already include one.</p>\n<p>The <code class=\"docutils literal notranslate\"><span class=\"pre\">Content-Security-Policy</span></code> header instructs browsers to restrict which\nresources a page is allowed to load. A properly configured CSP can block\ncontent that violates defined rules, helping prevent cross-site scripting (XSS)\nand other content injection attacks by explicitly declaring trusted sources for\ncontent such as scripts, styles, images, fonts, and more.</p>\n<p>The setting must be a mapping (typically a dictionary) of directive names to\ntheir values. Each key should be a valid CSP directive such as <code class=\"docutils literal notranslate\"><span class=\"pre\">default-src</span></code>\nor <code class=\"docutils literal notranslate\"><span class=\"pre\">script-src</span></code>. The corresponding value can be a list, tuple, or set of\nsource expressions or URLs to allow for that directive. If a set is used, it\nwill be automatically sorted to ensure consistent output in the generated\nheaders.</p>\n<p>This example illustrates the expected structure, using the constants defined in\n<a class=\"reference internal\" href=\"/ga/6.1/ref/csp/#csp-constants\"><span class=\"std std-ref\">CSP constants</span></a>:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"kn\">from</span><span class=\"w\"> </span><span class=\"nn\">django.utils.csp</span><span class=\"w\"> </span><span class=\"kn\">import</span> <span class=\"n\">CSP</span>\n\n<span class=\"n\">SECURE_CSP</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">SELF</span><span class=\"p\">],</span>\n    <span class=\"s2\">&quot;img-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"s2\">&quot;data:&quot;</span><span class=\"p\">,</span> <span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">SELF</span><span class=\"p\">,</span> <span class=\"s2\">&quot;https://images.example.com&quot;</span><span class=\"p\">],</span>\n    <span class=\"s2\">&quot;frame-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">NONE</span><span class=\"p\">],</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<aside class=\"admonition-directives-validation admonition\">\n<p class=\"admonition-title\">Directives validation</p>\n<p>Django's CSP middleware helps construct and send the appropriate header\nbased on your settings, but it does <strong>not validate</strong> that the directives and\nvalues conform to the CSP specification. It is your responsibility to ensure\nthat the configuration is syntactically and semantically correct. Use\nbrowser developer tools or external CSP validators during development.</p>\n<p>For a list of available directives and their values, refer to the <a class=\"reference external\" href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy#directives\">MDN\ndocumentation on CSP directives</a>.</p>\n</aside>\n</section>\n<section id=\"secure-csp-report-only\">\n<span id=\"std-setting-SECURE_CSP_REPORT_ONLY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SECURE_CSP_REPORT_ONLY</span></code><a class=\"heading-anchor\" href=\"#secure-csp-report-only\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.0\">\n<p class=\"version-note-title\">New in Django 6.0</p></aside>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code></p>\n<p>This setting is just like <a class=\"reference internal\" href=\"#std-setting-SECURE_CSP\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CSP</span></code></a>, but instead of enforcing the\npolicy, it instructs the\n<a class=\"reference internal\" href=\"/ga/6.1/ref/middleware/#django.middleware.csp.ContentSecurityPolicyMiddleware\" title=\"django.middleware.csp.ContentSecurityPolicyMiddleware\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">ContentSecurityPolicyMiddleware</span></code></a> to apply a\n<code class=\"docutils literal notranslate\"><span class=\"pre\">Content-Security-Policy-Report-Only</span></code> header to responses, which allows\nbrowsers to monitor and report policy violations without blocking content. This\nis useful for testing and refining a policy before enforcement.</p>\n<p>Most browsers log CSP violations to the developer console and can optionally\nsend them to a reporting endpoint. To collect these reports, the <code class=\"docutils literal notranslate\"><span class=\"pre\">report-uri</span></code>\ndirective must be defined (see <a class=\"reference internal\" href=\"/ga/6.1/ref/csp/#csp-reports\"><span class=\"std std-ref\">Policy violation reports</span></a> for more details).</p>\n<p>As noted in the <a class=\"reference external\" href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only\">MDN documentation on Content-Security-Policy-Report-Only</a>,\nthe <code class=\"docutils literal notranslate\"><span class=\"pre\">report-uri</span></code> directive must be specified for reports to be sent;\notherwise, the header has no reporting effect (other than logging to the\nbrowser's developer tools console).</p>\n<p>Following the example from the <a class=\"reference internal\" href=\"#std-setting-SECURE_CSP\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CSP</span></code></a> setting:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"kn\">from</span><span class=\"w\"> </span><span class=\"nn\">django.utils.csp</span><span class=\"w\"> </span><span class=\"kn\">import</span> <span class=\"n\">CSP</span>\n\n<span class=\"n\">SECURE_CSP_REPORT_ONLY</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">SELF</span><span class=\"p\">],</span>\n    <span class=\"s2\">&quot;img-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"s2\">&quot;data:&quot;</span><span class=\"p\">,</span> <span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">SELF</span><span class=\"p\">,</span> <span class=\"s2\">&quot;https://images.example.com&quot;</span><span class=\"p\">],</span>\n    <span class=\"s2\">&quot;frame-src&quot;</span><span class=\"p\">:</span> <span class=\"p\">[</span><span class=\"n\">CSP</span><span class=\"o\">.</span><span class=\"n\">NONE</span><span class=\"p\">],</span>\n    <span class=\"s2\">&quot;report-uri&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/my-site/csp/reports/&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n</section>\n<section id=\"secure-hsts-include-subdomains\">\n<span id=\"std-setting-SECURE_HSTS_INCLUDE_SUBDOMAINS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SLÁNDA_HSTS_INCLUDE_SUBDOMAINS</span></code><a class=\"heading-anchor\" href=\"#secure-hsts-include-subdomains\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, cuireann an:class: ~django.middleware.securityMiddleware an treoir includeSubdomains` leis an gceannteideal: http-strict-transport-security. Níl aon éifeacht aige gan leith:leagtar síos: SECURE_HSTS_SECONDS socraítear go luach neamh-nialasach.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>Má shocraíonn sé seo go mícheart is féidir le do shuíomh a bhriseadh go neamh-inchúlghabháilte (maidir le luach: SETING: SECURE_HSTS_SECONDS). Léigh an doiciméad:ref: http-strict-transport-security ar dtús.</p>\n</aside>\n</section>\n<section id=\"secure-hsts-preload\">\n<span id=\"std-setting-SECURE_HSTS_PRELOAD\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SLÁNDA_HSTS_PRELOAD</span></code><a class=\"heading-anchor\" href=\"#secure-hsts-preload\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, cuireann an:class: ~django.middleware.securityMiddleware an treoir <code class=\"docutils literal notranslate\"><span class=\"pre\">preload</span></code> leis an gceannteideal: http-strict-transport-security. Níl aon éifeacht aige gan leithéid: socraítear SECURE_HSTS_SECONDS go luach neamh-nialasach.</p>\n</section>\n<section id=\"secure-hsts-seconds\">\n<span id=\"std-setting-SECURE_HSTS_SECONDS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SLÁNDA_HSTS_SOICIND</span></code><a class=\"heading-anchor\" href=\"#secure-hsts-seconds\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code></p>\n<p>Má tá luach sláimhir neamh-nialasach leagtha síos, socraíonn an ceannteideal: :ref: http-strict-transport-security ar gach freagra nach bhfuil sé ann cheana féin.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>Is féidir é seo a shocrú go mícheart do shuíomh a bhriseadh go dochreidte (ar feadh tamaill). Léigh an doiciméad:ref: http-strict-transport-security ar dtús.</p>\n</aside>\n</section>\n<section id=\"secure-proxy-ssl-header\">\n<span id=\"std-setting-SECURE_PROXY_SSL_HEADER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SLÁNT_PROXY_SSL_HEADER</span></code><a class=\"heading-anchor\" href=\"#secure-proxy-ssl-header\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Tuple a léiríonn teaglaim ceannair/luach HTTP a thugann le fios go bhfuil iarratas slán. Rialaíonn sé seo iompar modh <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>is_secure () <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>an réad iarratais.</p>\n<p>De réir réamhshocraithe, cinneann <code class=\"docutils literal notranslate\"><span class=\"pre\">is_secure</span> <span class=\"pre\">()</span> <span class=\"pre\">``an</span> <span class=\"pre\">bhfuil</span> <span class=\"pre\">iarratas</span> <span class=\"pre\">slán</span> <span class=\"pre\">trí</span> <span class=\"pre\">dheimhniú</span> <span class=\"pre\">go</span> <span class=\"pre\">n-úsáideann</span> <span class=\"pre\">URL</span> <span class=\"pre\">iarrtha</span> <span class=\"pre\">``https:</span> <span class=\"pre\">//</span></code>. Tá an modh seo tábhachtach do chosaint CSRF Django, agus féadfaidh do chód féin nó aipeanna tríú páirtí é a úsáid.</p>\n<p>Má tá d'aip Django taobh thiar de sheachfhreastalaí, áfach, b'fhéidir go bhfuil an seachfhreastalaí ag “shlogadh” cibé an úsáideann an t-iarratas bunaidh HTTPS nó nach Má tá nasc neamh-HTTPS idir an seachfhreastalaí agus Django ansin chuirfeadh <code class=\"docutils literal notranslate\"><span class=\"pre\">is_secure</span> <span class=\"pre\">()</span> <span class=\"pre\">``ar</span> <span class=\"pre\">ais</span> <span class=\"pre\">``False</span></code> i gcónaí - fiú le haghaidh iarratais a rinne an t-úsáideoir deiridh trí HTTPS. I gcodarsnacht leis sin, má tá nasc HTTPS idir an seachfhreastalaí agus Django ansin chuirfeadh <code class=\"docutils literal notranslate\"><span class=\"pre\">is_secure</span> <span class=\"pre\">()</span> <span class=\"pre\">``ar</span> <span class=\"pre\">ais</span> <span class=\"pre\">``True</span></code> i gcónaí - fiú le haghaidh iarratais a rinneadh ar dtús trí HTTP.</p>\n<p>Sa chás seo, cumraigh do sheachfhreastalaí chun ceanntásc saincheaptha HTTP a shocrú a insíonn do Django an tháinig an t-iarratas isteach trí HTTPS, agus socraigh <code class=\"docutils literal notranslate\"><span class=\"pre\">SECURE_PROXY_SSL_HEADER</span></code> ionas go mbeidh a fhios ag Django cén ceannteideal atá le lorg.</p>\n<p>Socraigh tuple le dhá ghné - ainm an cheanntásc le cuardach agus an luach riachtanach. Mar shampla:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">SECURE_PROXY_SSL_HEADER</span> <span class=\"o\">=</span> <span class=\"p\">(</span><span class=\"s2\">&quot;HTTP_X_FORWARDED_PROTO&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;https&quot;</span><span class=\"p\">)</span>\n</code></pre></div>\n<p>Deir sé seo le Django muinín a bheith agat as an gceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Proto</span></code> a thagann ónár seachfhreastalaí agus go ráthaítear go mbeidh an t-iarratas slán (ie, tháinig sé isteach ar dtús trí HTTPS) nuair:</p>\n<ul class=\"simple\">\n<li><p>is é an luach ceanntásc <code class=\"docutils literal notranslate\"><span class=\"pre\">'https'</span></code>, nó</p></li>\n<li><p>is é a luach tosaigh, is clé ná <code class=\"docutils literal notranslate\"><span class=\"pre\">'https'</span></code> i gcás liosta prótacail scartha le camóg (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">`https,</span> <span class=\"pre\">http,</span> <span class=\"pre\">http'</span></code>).</p></li>\n</ul>\n<p>Ba chóir duit* ach an socrú seo a shocrú má rialaíonn tú do sheachfhreastalaí nó má tá ráthaíocht éigin eile agat go socraí/stiallann sé an ceannteideal seo go cuí.</p>\n<p>Tabhair faoi deara go gcaithfidh an ceannteideal a bheith sa fhormáid mar a úsáideann <code class=\"docutils literal notranslate\"><span class=\"pre\">Request.meta</span></code> - gach caipín agus is dócha go dtosaíonn le <code class=\"docutils literal notranslate\"><span class=\"pre\">HTTP_</span></code>. (Cuimhnigh, cuireann Django <code class=\"docutils literal notranslate\"><span class=\"pre\">'HTTP_'</span></code> go huathoibríoch le tús ainmneacha x-cheannteideal sula gcuireann an ceannteideal ar fáil i <code class=\"docutils literal notranslate\"><span class=\"pre\">Request.meta</span></code>.)</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>** Féadfaidh an socrú seo a mhodhnú slándáil do shuíomh a chur i gcur Cinntigh go dtuigeann tú do shocrú go hiomlán sula n-athraíonn tú **</p>\n<p>Déan cinnte go bhfuil GACH ceann de na rudaí seo a leanas fíor sula gcuirtear é seo a shocrú (glacadh leis na luachanna ón sampla thuas</p>\n<ul class=\"simple\">\n<li><p>Tá d'aip Django taobh thiar de sheachfhreastalaí.</p></li>\n<li><p>Stíorálann do sheachfhreastalaí an ceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Proto</span></code> ó gach iarratas atá ag teacht isteach, fiú nuair a bhíonn liosta prótacail scartha le camóg ann. Is é sin le rá, má chuimsíonn úsáideoirí deiridh an ceanntásc sin ina n-iarratais, caithfidh an seachfhreastalaí é.</p></li>\n<li><p>Socraíonn do sheachfhreastalaí an ceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Proto</span></code> agus seolann sé chuig Django é, ach amháin le haghaidh iarratais a thagann isteach trí HTTPS ar dtús.</p></li>\n</ul>\n<p>Mura bhfuil aon cheann acu sin fíor, ba cheart duit an socrú seo a choinneáil socraithe go <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>agus bealach eile a fháil chun HTTPS a chinneadh, b'fhéidir trí mheán-earraí saincheaptha.</p>\n</aside>\n</section>\n<section id=\"secure-redirect-exempt\">\n<span id=\"std-setting-SECURE_REDIRECT_EXEMPT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SLÁNDA_ATHREDIRECT_EISEOLÚINT</span></code><a class=\"heading-anchor\" href=\"#secure-redirect-exempt\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Má mheaitseálann cosán URL le léiriú rialta sa liosta seo, ní atreorófar an t-iarratas chuig HTTPS. Stíleann an: Class: ~django.middleware.security.securityMiddleware slascanna a threoraíonn ó chosáin URL, mar sin níor cheart iad a bheith san áireamh ar phatrúin, m.sh. SECURE_REDIRECT_EXEMPT = [r'^no-ssl/$',...] `. Má tá: SETTING: SECURE_SSL_REDIRECT <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>, níl aon éifeacht ag an socrú seo.</p>\n</section>\n<section id=\"secure-referrer-policy\">\n<span id=\"std-setting-SECURE_REFERRER_POLICY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">BEARTAS</span> <span class=\"pre\">ATREORÓIR_SLÁNDÁLA</span></code><a class=\"heading-anchor\" href=\"#secure-referrer-policy\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>bhunús céann'</p>\n<p>Má tá sé cumraithe, socraíonn an:class: ~django.middleware.securityMiddleware an ceannteideal: ref: referrer-policy ar gach freagra nach bhfuil sé ar an luach a chuirtear ar fáil cheana féin.</p>\n</section>\n<section id=\"secure-ssl-host\">\n<span id=\"std-setting-SECURE_SSL_HOST\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SSL_ÓST_SÁBHÁILTE</span></code><a class=\"heading-anchor\" href=\"#secure-ssl-host\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Má tá teaghrán ann (m.sh. secure.example.com`), déanfar gach athsheoladh SSL a threorú chuig an óstach seo seachas an t-óstach a iarrtar bunaidh (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">www.example.com</span></code>). Má tá: SETTING: SECURE_SSL_REDIRECT <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>, níl aon éifeacht ag an socrú seo.</p>\n</section>\n<section id=\"secure-ssl-redirect\">\n<span id=\"std-setting-SECURE_SSL_REDIRECT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SECURE_SSL_REDIRECT</span></code><a class=\"heading-anchor\" href=\"#secure-ssl-redirect\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>&lt;ssl-redirect&gt;Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, an:class: <span class=\"xref std std-ref\">~django.middleware.securityMiddleware</span> atreoraíonn `gach iarratas neamh-HTTPS chuig HTTPS (ach amháin na URLanna sin a mheaitseálann le abairt rialta atá liostaithe in:setting: `SECURE_REDIRECT_EXEMPT).</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Má chruthaíonn athatreoruithe gan teorainn é seo a chasadh go True`, is dócha go bhfuil do shuíomh ag rith taobh thiar de seachfhreastalaí agus nach féidir leo a rá cé na hiarratais atá slán agus cé nach bhfuil. Is dócha go socraíonn do sheachfhreastalaí ceanntásc chun iarrataí slán a chur in iúl; is féidir leat an fhadhb a cheartú trí fháil amach cad é an ceannteideal sin agus an socrú:setting: SECURE_PROXY_SSL_HEADER a chumrú dá réir.</p>\n</aside>\n</section>\n<section id=\"serialization-modules\">\n<span id=\"std-setting-SERIALIZATION_MODULES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">MODÚL_SRAITHEACH</span></code><a class=\"heading-anchor\" href=\"#serialization-modules\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>Foclóir modúil ina bhfuil sainmhínithe serializer (curtha ar fáil mar teaghráin), eochairte ag aitheantóir teaghrán don chineál sraitheach sin. Mar shampla, chun serializer YAML a shainiú, bain úsáid as:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">SERIALIZATION_MODULES</span> <span class=\"o\">=</span> <span class=\"p\">{</span><span class=\"s2\">&quot;yaml&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;path.to.yaml_serializer&quot;</span><span class=\"p\">}</span>\n</code></pre></div>\n</section>\n<section id=\"server-email\">\n<span id=\"std-setting-SERVER_EMAIL\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FREASTALAÍ_RÍOMHPHOST</span></code><a class=\"heading-anchor\" href=\"#server-email\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'root</span> <span class=\"pre\">&#64;localhost</span> <span class=\"pre\">'</span></code></p>\n<p>An seoladh ríomhphoist as a dtagann teachtaireachtaí earráide, mar shampla iad siúd a sheoltar chuig:setting: ADMINS agus:setting: MANAGERS. Úsáidtear an seoladh seo sa cheanntásc <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>From: <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>agus féadann sé aon fhormáid a ghlacadh bailí sa phrótacal seolta ríomhphoist roghnaithe.</p>\n<p>To build an address with a display name from variable content, see\n<a class=\"reference internal\" href=\"/ga/6.1/topics/email/#formatting-addresses\"><span class=\"std std-ref\">Formatting email addresses</span></a>.</p>\n<aside class=\"admonition-why-are-my-emails-sent-from-a-different-address admonition\">\n<p class=\"admonition-title\">Cén fáth a sheoltar mo ríomhphoist ó sheoladh difriúil?</p>\n<p>This address is used only for error messages. It is <em>not</em> the address that\nregular email messages sent with <a class=\"reference internal\" href=\"/ga/6.1/topics/email/#django.core.mail.send_mail\" title=\"django.core.mail.send_mail\"><code class=\"xref py py-func docutils literal notranslate\"><span class=\"pre\">send_mail()</span></code></a>\ncome from; for that, see <a class=\"reference internal\" href=\"#std-setting-DEFAULT_FROM_EMAIL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_FROM_EMAIL</span></code></a>.</p>\n</aside>\n</section>\n<section id=\"short-date-format\">\n<span id=\"std-setting-SHORT_DATE_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_DÁTA_GEARR</span></code><a class=\"heading-anchor\" href=\"#short-date-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`M/D/Y'</span></code> (m.sh. <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>12/31/2003 <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>)</p>\n<p>Formáidiú atá ar fáil is féidir a úsáid chun réimsí dáta a thaispeáint ar theimpléid. Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid chomhfhreagrach áitiúil agus go gcuirfear i bhfeidhm ina ionad. &lt;date&gt;Féach: TFilter: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>teaghráin formáid dáta ceadaithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach freis:socrú: DATE_FORMAT agus:socrú: SHORT_DATETIME_FORMAT.</p>\n</section>\n<section id=\"short-datetime-format\">\n<span id=\"std-setting-SHORT_DATETIME_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_DÁTA</span> <span class=\"pre\">GEARRTHA</span></code><a class=\"heading-anchor\" href=\"#short-datetime-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`M/D/Y</span> <span class=\"pre\">P'</span></code> (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">12/31/2003</span> <span class=\"pre\">4</span> <span class=\"pre\">p.m.</span></code>)</p>\n<p>Formáidiú atá ar fáil is féidir a úsáid chun réimsí dáta-ama a thaispeáint ar theimpléid. Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid chomhfhreagrach áitiúil agus go gcuirfear i bhfeidhm ina ionad. &lt;date&gt;Féach: TFilter: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>teaghráin formáid dáta ceadaithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach freis:socrú: DATE_FORMAT agus:socrú: SHORT_DATE_FORMAT.</p>\n</section>\n<section id=\"signed-cookie-legacy-salt-fallback\">\n<span id=\"std-setting-SIGNED_COOKIE_LEGACY_SALT_FALLBACK\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SIGNED_COOKIE_LEGACY_SALT_FALLBACK</span></code><a class=\"heading-anchor\" href=\"#signed-cookie-legacy-salt-fallback\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"5.2.15\">\n<p class=\"version-note-title\">New in Django 5.2.15</p></aside>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Controls whether <a class=\"reference internal\" href=\"/ga/6.1/ref/request-response/#django.http.HttpRequest.get_signed_cookie\" title=\"django.http.HttpRequest.get_signed_cookie\"><code class=\"xref py py-meth docutils literal notranslate\"><span class=\"pre\">get_signed_cookie()</span></code></a> accepts\ncookies signed with Django's historical signed-cookie salt derivation based on\n<code class=\"docutils literal notranslate\"><span class=\"pre\">key</span> <span class=\"pre\">+</span> <span class=\"pre\">salt</span></code>.</p>\n<p>Set this to <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> to accept those legacy signed cookies in addition to\ncookies signed with Django's current unambiguous signed-cookie salt derivation.</p>\n<aside class=\"version-note version-changed\" data-version=\"6.1\">\n<p class=\"version-note-title\">Changed in Django 6.1</p><p>In older versions, the default was <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>.</p>\n</aside>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This transitional setting will be removed in Django 7.0, when legacy signed\ncookies will no longer be accepted.</p>\n</aside>\n</section>\n<section id=\"signing-backend\">\n<span id=\"std-setting-SIGNING_BACKEND\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`SIGNING_BACKEND</span></code><a class=\"heading-anchor\" href=\"#signing-backend\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Django.Core.Signing.TimeStampSigner'` `</p>\n<p>An cúltaca a úsáidtear chun fianáin agus sonraí eile a shíniú.</p>\n<p>Féach freisin an doiciméadach:doc: /topics/signing.</p>\n</section>\n<section id=\"silenced-system-checks\">\n<span id=\"std-setting-SILENCED_SYSTEM_CHECKS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>SEICEÁLACH_CHÓRAIS CIOSTAITHE ``<a class=\"heading-anchor\" href=\"#silenced-system-checks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta d'aitheantóirí teachtaireachtaí a ghineann creat seiceála an chórais (ie <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>[&quot;Models.W001&quot;] <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>) ar mhaith leat aitheantas a thabhairt go buan agus neamhaird a dhéanamh orthu. Ní aschur seiceálacha ciúnaithe chuig an gconsól.</p>\n<p>Féach freisin an doiciméadach:doc: /ref/checks.</p>\n</section>\n<section id=\"storages\">\n<span id=\"std-setting-STORAGES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">STÓRÁLAÍ</span></code><a class=\"heading-anchor\" href=\"#storages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.files.storage.FileSystemStorage&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">},</span>\n    <span class=\"s2\">&quot;staticfiles&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.contrib.staticfiles.storage.StaticFilesStorage&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Foclóir ina bhfuil na socruithe do gach stóráil le húsáid le Django. Is foclóir neadaithe é a léarscáil a n-ábhar ailias stórála chuig foclóir ina bhfuil na roghanna le haghaidh stórála aonair.</p>\n<p>Is féidir le stórais aon alias a roghnaíonn tú a bheith acu. Mar sin féin, tá dhá ainm le tábhacht speisialta:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">default</span></code> le haghaidh: doc: <code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">comhaid</span> <span class=\"pre\">a</span> <span class=\"pre\">bhainistiú'</span> <span class=\"pre\">&lt;/topics/files&gt;.</span> <span class=\"pre\">``````</span></code> Django.Core.Files.Storage.FileSystemStorage<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>is é an t-inneall stórála réamhshocraithe.</p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">staticfiles</span></code> le haghaidh: doc: <code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">comhaid</span> <span class=\"pre\">statacha</span> <span class=\"pre\">a</span> <span class=\"pre\">bhainistiú'</span> <span class=\"pre\">&lt;/ref/contrib/staticfiles&gt;.</span> <span class=\"pre\">``````</span></code> Django.contrib.staticFiles.Storage.staticFilesStorage<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>is é an t-inneall stórála réamhshocraithe.</p></li>\n</ul>\n<p>Seo a leanas sampla <code class=\"docutils literal notranslate\"><span class=\"pre\">settings.py</span></code> snippet a shainmhíníonn stóráil comhaid saincheaptha ar a dtugtar <code class=\"docutils literal notranslate\"><span class=\"pre\">example</span></code>:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">STORAGES</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n    <span class=\"c1\"># ...</span>\n    <span class=\"s2\">&quot;example&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.core.files.storage.FileSystemStorage&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;OPTIONS&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n            <span class=\"s2\">&quot;location&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/example&quot;</span><span class=\"p\">,</span>\n            <span class=\"s2\">&quot;base_url&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;/example/&quot;</span><span class=\"p\">,</span>\n        <span class=\"p\">},</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Cuirtear <code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANN</span></code> chuig an BACKEND` ar thionscnamh i **kwargs`.</p>\n<p>Is féidir sampla réidh le húsáid de na cúltaca stórála a aisghabháil ó:data: django.core.files.storage.storages. Úsáid eochair a fhreagraíonn don sainmhíniú cúltaca in:setting: STORAGES.</p>\n<aside class=\"admonition-is-my-value-merged-with-the-default-value admonition\">\n<p class=\"admonition-title\">An bhfuil mo luach cumaisc leis an luach réamhshocraithe?</p>\n<p>Sáraíonn an socrú seo a shainiú an luach réamhshocraithe agus níl* níl* cumasc leis.</p>\n</aside>\n</section>\n<section id=\"tasks\">\n<span id=\"std-setting-TASKS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TASKS</span></code><a class=\"heading-anchor\" href=\"#tasks\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.0\">\n<p class=\"version-note-title\">New in Django 6.0</p></aside>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">{</span>\n    <span class=\"s2\">&quot;default&quot;</span><span class=\"p\">:</span> <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.tasks.backends.immediate.ImmediateBackend&quot;</span><span class=\"p\">,</span>\n    <span class=\"p\">}</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>A dictionary containing the settings for all Task backends to be used with\nDjango. It is a nested dictionary whose contents maps backend aliases to a\ndictionary containing the options for each backend.</p>\n<p>The <a class=\"reference internal\" href=\"#std-setting-TASKS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TASKS</span></code></a> setting must configure a <code class=\"docutils literal notranslate\"><span class=\"pre\">default</span></code> backend; any number\nof additional backends may also be specified. Depending on which backend is\nused, other options may be required. The following options are available as\nstandard.</p>\n<section id=\"std-setting-TASKS-BACKEND\">\n<span id=\"id8\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">`CÚLT</span></code><a class=\"heading-anchor\" href=\"#std-setting-TASKS-BACKEND\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>&quot;<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Sreang folamh)</p>\n<p>The Tasks backend to use. The built-in backends are:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.tasks.backends.dummy.DummyBackend'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.tasks.backends.immediate.ImmediateBackend'</span></code></p></li>\n</ul>\n<p>You can use a backend that doesn't ship with Django by setting\n<a class=\"reference internal\" href=\"#std-setting-TASKS-BACKEND\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">BACKEND</span></code></a> to a fully-qualified path of a backend\nclass (i.e. <code class=\"docutils literal notranslate\"><span class=\"pre\">mypackage.backends.whatever.WhateverBackend</span></code>).</p>\n</section>\n<section id=\"queues\">\n<span id=\"std-setting-TASKS-QUEUES\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">QUEUES</span></code><a class=\"heading-anchor\" href=\"#queues\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">[&quot;default&quot;]</span></code></p>\n<p>Specify the queue names supported by the backend. This can be used to ensure\nTasks aren't enqueued to queues which do not exist.</p>\n<p>To disable queue name validation, set to an empty list (<code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code>).</p>\n</section>\n<section id=\"std-setting-TASKS-OPTIONS\">\n<span id=\"id9\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNAÍ</span></code><a class=\"heading-anchor\" href=\"#std-setting-TASKS-OPTIONS\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Default: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code></p>\n<p>Extra parameters to pass to the Task backend. Available parameters vary\ndepending on the Task backend.</p>\n</section>\n</section>\n<section id=\"templates\">\n<span id=\"std-setting-TEMPLATES\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEIMPLÉID</span></code><a class=\"heading-anchor\" href=\"#templates\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta ina bhfuil na socruithe do gach innill teimpléad le húsáid le Django. Is foclóir é gach mír den liosta ina bhfuil na roghanna le haghaidh inneall aonair.</p>\n<p>Seo socrú a insíonn d'inneall teimpléid Django teimpléid a luchtú ón bhfo-eolaire <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>teimpléid <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>taobh istigh de gach feidhmchlár suiteáilte:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">TEMPLATES</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"p\">{</span>\n        <span class=\"s2\">&quot;BACKEND&quot;</span><span class=\"p\">:</span> <span class=\"s2\">&quot;django.template.backends.django.DjangoTemplates&quot;</span><span class=\"p\">,</span>\n        <span class=\"s2\">&quot;APP_DIRS&quot;</span><span class=\"p\">:</span> <span class=\"kc\">True</span><span class=\"p\">,</span>\n    <span class=\"p\">},</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Tá na roghanna seo a leanas ar fáil do gach cúltaca.</p>\n<section id=\"std-setting-TEMPLATES-BACKEND\">\n<span id=\"id10\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">`CÚLT</span></code><a class=\"heading-anchor\" href=\"#std-setting-TEMPLATES-BACKEND\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>An cúltaca teimpléad le húsáid. Is iad na cúltaca teimpléad ionsuite:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Template.Backends.Django.DjangoTemplates'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Template.Backends.Jinja2.Jinja2'</span></code></p></li>\n</ul>\n<p>Is féidir leat cúltaca teimpléad nach seolann le Django a úsáid trí <code class=\"docutils literal notranslate\"><span class=\"pre\">BACKEND</span></code> a shocrú go cosán láncháilithe (ie <code class=\"docutils literal notranslate\"><span class=\"pre\">`MyPackage.whatever.backend'</span></code>).</p>\n</section>\n<section id=\"std-setting-TEMPLATES-NAME\">\n<span id=\"id11\"></span><h4><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>AINM `<a class=\"heading-anchor\" href=\"#std-setting-TEMPLATES-NAME\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: féach thíos</p>\n<p>An alias don inneall teimpléad áirithe seo. Is aitheantóir é a cheadaíonn inneall a roghnú le haghaidh rindreála. Caithfidh ainmneacha a bheith uathúil ar fud gach innill teimpléad cumraithe</p>\n<p>Réamhshocraíonn sé ainm an mhodúil a shainníonn rang an innill, i.e. an chéad phíosa deireanach de: setting: BACKEND &lt;TEMPLATES-BACKEND&gt;, nuair nach gcuirtear ar fáil é. Mar shampla más é <code class=\"docutils literal notranslate\"><span class=\"pre\">'MyPackage.whatever.backend'</span></code> an cúltaca ansin is é <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>whatever'` a ainm réamhshocraithe.</p>\n</section>\n<section id=\"dirs\">\n<span id=\"std-setting-TEMPLATES-DIRS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">`DIRS</span></code><a class=\"heading-anchor\" href=\"#dirs\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Eolairí inar chóir don inneall comhaid foinse teimpléad a lorg, in ord cuardaigh.</p>\n</section>\n<section id=\"app-dirs\">\n<span id=\"std-setting-TEMPLATES-APP_DIRS\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">APP_DIRS</span></code><a class=\"heading-anchor\" href=\"#app-dirs\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé an chóir don inneall comhaid foinse teimpléad a lorg taobh istigh d'fheidhmchlá</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>&lt;startproject&gt;Leagann an comhad réamhshocraithe:file: settings.py a chruthaí:djadmin: django-admin startproject ````APP_DIRS': True`.</p>\n</aside>\n</section>\n<section id=\"std-setting-TEMPLATES-OPTIONS\">\n<span id=\"id12\"></span><h4><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNAÍ</span></code><a class=\"heading-anchor\" href=\"#std-setting-TEMPLATES-OPTIONS\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">{}</span></code> (Ordú folamh)</p>\n<p>Paraiméadair bhreise le dul chuig an gcúltaca teimpléid. Athraíonn paraiméadair atá ar fáil ag brath ar an gcúl teimpléid Féach: Class: ~django.template.backends.django.djangoTemplates agus:class: ~django.template.backends.jinja2.jinja2 le haghaidh roghanna na gcúltaca ionsuite.</p>\n</section>\n</section>\n<section id=\"test-runner\">\n<span id=\"std-setting-TEST_RUNNER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TÁST_RUNNER</span></code><a class=\"heading-anchor\" href=\"#test-runner\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Django.Test.Runner.DiscoverRunner'` `</p>\n<p>Ainm an ranga le húsáid chun an tsraith tástála a thosú. Féach: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>creataí tástála eile'.</p>\n</section>\n<section id=\"test-non-serialized-apps\">\n<span id=\"std-setting-TEST_NON_SERIALIZED_APPS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TÁSTÁIL_NEAM_AIPEANNA</span> <span class=\"pre\">SRAITHEACH</span></code><a class=\"heading-anchor\" href=\"#test-non-serialized-apps\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>D'fhonn stát an bunachar sonraí a athbhunú idir tástálacha do TransactionTestCase` agus cúltaca bunachar sonraí gan idirbhearta, déanfaidh Django: ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>sraitheadh ábhar na n-aipeanna uile &lt;test-case-serialized-rollback&gt;`nuair a thosaíonn sé an rith tástála ionas gur féidir leis an gcóip sin a athluchtú sula ndéanann sé tástálacha a theastaíonn uathu.</p>\n<p>Moillíonn sé seo am tosaithe an rádálaí tástála; má tá aipeanna agat a fhios uait nach dteastaíonn an ghné seo uathu, is féidir leat a n-ainmneacha iomlána a chur anseo (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">django.contrib.contenttypes</span></code>) chun iad a eisiamh ón bpróiseas sraitheach seo.</p>\n</section>\n<section id=\"thousand-separator\">\n<span id=\"std-setting-THOUSAND_SEPARATOR\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>MÍLTE DEIGHILTEOIR ``<a class=\"heading-anchor\" href=\"#thousand-separator\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>', '<a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>(Coma)</p>\n<p>Míle deighilteoir réamhshocraithe a úsáidtear agus u Ní úsáidtear an socrú seo ach nuair:setting: USE_THOUSAND_SEPARATOR <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> agus:setting: NUMBER_GROUPING níos mó ná <code class=\"docutils literal notranslate\"><span class=\"pre\">0</span></code>.</p>\n<p>Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freis:socrú: NUMBER_GROUPING, :setting: DECIMAL_SEPARATOR agus:setting: USE_THOUSAND_SEPARATOR.</p>\n</section>\n<section id=\"time-format\">\n<span id=\"std-setting-TIME_FORMAT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FORMÁID_AIM</span></code><a class=\"heading-anchor\" href=\"#time-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'P'</span></code> (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">4</span> <span class=\"pre\">p.m.</span></code>)</p>\n<p>An formáidiú réamhshocraithe le húsáid chun réimsí ama a thaispeáint in aon chuid den chóras. Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid áitiúil agus go gcuirfear i bhfeidhm ina ionad sin. &lt;date&gt;Féach: TFilter: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>teaghráin formáid dáta ceadaithe <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>.</p>\n<p>Féach freis:socrú: DATE_FORMAT agus:socrú: DATETIME_FORMAT.</p>\n</section>\n<section id=\"time-input-formats\">\n<span id=\"std-setting-TIME_INPUT_FORMATS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>FORMÁID_IONCHUIR_AMA ``<a class=\"heading-anchor\" href=\"#time-input-formats\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;%H:%M:%S&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;14:30:59&#39;</span>\n    <span class=\"s2\">&quot;%H:%M:%S.</span><span class=\"si\">%f</span><span class=\"s2\">&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;14:30:59.000200&#39;</span>\n    <span class=\"s2\">&quot;%H:%M&quot;</span><span class=\"p\">,</span>  <span class=\"c1\"># &#39;14:30&#39;</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Liosta de na formáidí a nglacfar leo agus sonraí á ionchur isteach ar réimse ama. Déanfar triail a bhaint as formáidí in ord, ag baint úsáide as an gcéad cheann bailí. Tabhair faoi deara go n-úsáideann na teaghráin formáide seo comhréir modúl Python: ref: datetime '&lt;strftime-strptime-behavior&gt;, ní na teaghráin formáide ón scagaire teimpléad:tfilter: `dáta.</p>\n<p>Tá tosaíocht níos airde ag an bhformáid áitiúil agus cuirfear i bhfeidhm ina ionad sin.</p>\n<p>Féach freisin: socrú: DATE_INPUT_FORMATS agus:setting: DATETIME_INPUT_FORMATS.</p>\n</section>\n<section id=\"std-setting-TIME_ZONE\">\n<span id=\"id13\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">CRIOS_AMA</span></code><a class=\"heading-anchor\" href=\"#std-setting-TIME_ZONE\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Meiriceá/Chicago'</span></code></p>\n<p>Sreang a léiríonn an crios ama don suiteáil seo. Féach an <a class=\"reference external\" href=\"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones\">liosta criosanna ama</a>.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Ós rud é gur eisíodh Django den chéad uair leis an: setting: TIME_ZONE socraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">'America/Chicago'`,</span> <span class=\"pre\">fanann</span> <span class=\"pre\">an</span> <span class=\"pre\">suíomh</span> <span class=\"pre\">domhanda</span> <span class=\"pre\">(a</span> <span class=\"pre\">úsáidtear</span> <span class=\"pre\">mura</span> <span class=\"pre\">bhfuil</span> <span class=\"pre\">aon</span> <span class=\"pre\">rud</span> <span class=\"pre\">sainmhínithe</span> <span class=\"pre\">i</span> <span class=\"pre\">`settings.py</span></code> do thionscadail) <code class=\"docutils literal notranslate\"><span class=\"pre\">Meiricea/Chicago'`</span> <span class=\"pre\">le</span> <span class=\"pre\">haghaidh</span> <span class=\"pre\">comhoiriúnacht</span> <span class=\"pre\">ar</span> <span class=\"pre\">ais.</span> <span class=\"pre\">Teimpléid</span> <span class=\"pre\">nua</span> <span class=\"pre\">tionscadail</span> <span class=\"pre\">réamhshocraithe</span> <span class=\"pre\">go</span> <span class=\"pre\">``'UTC'</span></code>.</p>\n</aside>\n<p>Tabhair faoi deara nach gá gurb é seo crios ama an fhreastalaí. Mar shampla, féadfaidh freastalaí amháin freastal ar iliomad suíomhanna faoi thiomáint Django, gach ceann acu le socrú crios ama ar leithligh.</p>\n<p>Nuair: SETTING: Is é USE_TZ <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>, is é seo an crios ama ina stóráilfidh Django gach dáta ama. Nuair: SETTING: Is é USE_TZ <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, is é seo an crios ama réamhshocraithe a úsáidfidh Django chun dáta-amanna a thaispeáint i dteimpléid agus chun dáta a iontráiltear i bhfoirmeacha a léirmhíniú.</p>\n<p>Ar thimpeallachtaí Unix (áit a chuirtear: func: time.tzset i bhfeidhm), socraíonn Django an athróg <code class=\"docutils literal notranslate\"><span class=\"pre\">os.environ</span> <span class=\"pre\">['TZ']</span> <span class=\"pre\">``don</span> <span class=\"pre\">chrios</span> <span class=\"pre\">ama</span> <span class=\"pre\">a</span> <span class=\"pre\">shonraíonn</span> <span class=\"pre\">tú</span> <span class=\"pre\">sa</span> <span class=\"pre\">socrú:</span> <span class=\"pre\">`TIME_ZONE`.</span> <span class=\"pre\">Mar</span> <span class=\"pre\">sin,</span> <span class=\"pre\">oibreoidh</span> <span class=\"pre\">do</span> <span class=\"pre\">thuairimí</span> <span class=\"pre\">agus</span> <span class=\"pre\">samhlacha</span> <span class=\"pre\">go</span> <span class=\"pre\">léir</span> <span class=\"pre\">go</span> <span class=\"pre\">huathoibríoch</span> <span class=\"pre\">sa</span> <span class=\"pre\">chrios</span> <span class=\"pre\">ama</span> <span class=\"pre\">seo.</span> <span class=\"pre\">&lt;settings-without-django-settings-module&gt;Mar</span> <span class=\"pre\">sin</span> <span class=\"pre\">féin,</span> <span class=\"pre\">ní</span> <span class=\"pre\">shocróidh</span> <span class=\"pre\">Django</span> <span class=\"pre\">an</span> <span class=\"pre\">t-athróg</span> <span class=\"pre\">comhshaoil</span> <span class=\"pre\">``TZ</span></code> má tá an rogha cumraíochta láimhe á úsáid agat mar a thuairiscítear in:ref: socruithe a chumrú de láimh `. Mura socraíonn Django an t-athróg comhshaoil ``TZ, is fútsa atá sé a chinntiú go bhfuil do phróisis ag rith sa timpeallacht cheart.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Ní féidir le Django criosanna ama malartacha a úsáid go hiontaofa i dtimpeallacht Windows. Má tá Django á reáchtáil agat ar Windows, caithfear :setting: TIME_ZONE a shocrú chun crios ama an chórais a mheaitseáil.</p>\n</aside>\n</section>\n<section id=\"use-blank-choice-dash\">\n<span id=\"std-setting-USE_BLANK_CHOICE_DASH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">USE_BLANK_CHOICE_DASH</span></code><a class=\"heading-anchor\" href=\"#use-blank-choice-dash\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.1\">\n<p class=\"version-note-title\">New in Django 6.1</p></aside>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>The default blank choice label in <code class=\"docutils literal notranslate\"><span class=\"pre\">Select</span></code> widgets was changed from\n<code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;---------&quot;</span></code> to <code class=\"docutils literal notranslate\"><span class=\"pre\">django.db.models.fields.BLANK_CHOICE_LABEL</span></code>. Set this\ntransitional setting to <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> to revert to the previous label.</p>\n<aside class=\"version-note version-deprecated\" data-version=\"6.1\">\n<p class=\"version-note-title\">Deprecated since Django 6.1</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.1: </span>This setting will be removed in Django 7.0. To use a custom default blank\nchoice label, override <code class=\"docutils literal notranslate\"><span class=\"pre\">django.db.models.fields.BLANK_CHOICE_LABEL</span></code> in\nthe app's <code class=\"docutils literal notranslate\"><span class=\"pre\">ready()</span></code> method.</p>\n</aside>\n</section>\n<section id=\"use-i18n\">\n<span id=\"std-setting-USE_I18N\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">USE_I18N</span></code><a class=\"heading-anchor\" href=\"#use-i18n\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Boolean a shonraíonn an chóir córas aistriúcháin Django a chumasú. Soláthraíonn sé seo bealach chun é a mhúchadh, le haghaidh feidhmíochta. Má shocraítear é seo go False, déanfaidh Django roinnt optamaithe ionas nach luchtfaidh sé an t-innealra aistriúcháin.</p>\n<p>Féach freis:socrú: LANGUAGE_CODE agus:socrú: USE_TZ.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>&lt;startproject&gt;Cuimsíonn an comhad réamhshocraithe:file: settings.py a chruthaí:djadmin: django-admin startproject ```USE_I18N = True` le haghaidh áisiúlachta.</p>\n</aside>\n</section>\n<section id=\"use-thousand-separator\">\n<span id=\"std-setting-USE_THOUSAND_SEPARATOR\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>ÚSÁID_MÍLTE DEIGHILTEOIR ``<a class=\"heading-anchor\" href=\"#use-thousand-separator\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Boolean a shonraíonn an bhfuil uimhreacha le taispeáint ag baint úsáide as míle deighilteoir. Nuair a bheidh sé socraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, déanfaidh Django uimhreacha a fhormáidiú ag baint úsáide as socruithe:: NUMBER_GROUPING agus:setting: THOUSAND_SEPARATOR. Is féidir leis an áitiúil a shocrú an dá shocrú deireanach freisin, a ghlacann tosaíocht.</p>\n<p>Féach freis:socrú: DECIMAL_SEPARATOR, :setting: NUMBER_GROUPING agus:setting: THOUSAND_SEPARATOR.</p>\n</section>\n<section id=\"use-tz\">\n<span id=\"std-setting-USE_TZ\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>ÚSÁID_TZ ``<a class=\"heading-anchor\" href=\"#use-tz\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Boolean a shonraíonn an mbeidh amanna dáta ar an eolas ó chrios ama de réir réamhshocraithe nó nach bhfuil. Má tá sé seo socraithe go <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, úsáidfidh Django amanna dáta atá ar an eolas faoi chrios ama go hinmheánach.</p>\n<p>Nuair a bhíonn USE_TZ` bréagach, úsáidfidh Django amanna dáta naif in am áitiúil, ach amháin nuair a dhéantar teaghráin formáidithe ISO 8601 á pháirseáil, áit a gcoinneofar faisnéis crios ama i gcónaí má tá sé i láthair.</p>\n<p>Féach freis:socrú: TIME_ZONE agus:socrú: USE_I18N.</p>\n</section>\n<section id=\"use-x-forwarded-host\">\n<span id=\"std-setting-USE_X_FORWARDED_HOST\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">ÚSÁID_X_FORWARDED_ÓST</span></code><a class=\"heading-anchor\" href=\"#use-x-forwarded-host\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Boolean a shonraíonn an gceanntásc <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Host</span></code> a úsáid mar rogha ar an gceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">Host</span></code>. Níor chóir é seo a chumasú ach amháin má tá seachfhreastalaí a leagann an ceanntásc seo in úsáid.</p>\n<p>Glacann an socrú seo tosaíocht thair:setting: USE_X_FORWARDED_PORT. Per:RFC: 7239 #section -5.3, is féidir leis an gceannteideal <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Host</span></code> uimhir an chalafoirt a áireamh, agus sa chás sin níor chóir duit:setting: USE_X_FORWARDED_PORT a úsáid.</p>\n</section>\n<section id=\"use-x-forwarded-port\">\n<span id=\"std-setting-USE_X_FORWARDED_PORT\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>ÚSÁID_X_FORWARDED_PORT `<a class=\"heading-anchor\" href=\"#use-x-forwarded-port\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Boolean a shonraíonn an gceanntásc <code class=\"docutils literal notranslate\"><span class=\"pre\">X-Forwarded-Port</span></code> a úsáid mar rogha leis an athróg <code class=\"docutils literal notranslate\"><span class=\"pre\">SERVER_PORT</span></code> <code class=\"docutils literal notranslate\"><span class=\"pre\">META</span></code>. Níor chóir é seo a chumasú ach amháin má tá seachfhreastalaí a leagann an ceanntásc seo in úsáid.</p>\n<p><a class=\"reference internal\" href=\"#std-setting-USE_X_FORWARDED_HOST\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_X_FORWARDED_HOST</span></code></a> takes priority over this setting.</p>\n</section>\n<section id=\"urlize-assume-https\">\n<span id=\"std-setting-URLIZE_ASSUME_HTTPS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">URLIZE_ASSUME_HTTPS</span></code><a class=\"heading-anchor\" href=\"#urlize-assume-https\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<aside class=\"version-note version-added\" data-version=\"6.0\">\n<p class=\"version-note-title\">New in Django 6.0</p></aside>\n<aside class=\"version-note version-deprecated\" data-version=\"6.0\">\n<p class=\"version-note-title\">Deprecated since Django 6.0</p><p><span class=\"versionmodified deprecated\">Deprecated since version 6.0.</span></p>\n</aside>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Set this transitional setting to <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code> to opt into using HTTPS as the\ndefault protocol when none is provided in URLs processed by the\n<a class=\"reference internal\" href=\"/ga/6.1/ref/templates/builtins/#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=\"/ga/6.1/ref/templates/builtins/#std-templatefilter-urlizetrunc\"><code class=\"xref std std-tfilter docutils literal notranslate\"><span class=\"pre\">urlizetrunc</span></code></a> template filters during the Django\n6.x release cycle.</p>\n</section>\n<section id=\"wsgi-application\">\n<span id=\"std-setting-WSGI_APPLICATION\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">WSGI_IARRATAS</span></code><a class=\"heading-anchor\" href=\"#wsgi-application\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Conair iomlán Python an réad feidhmchláir WSGI a úsáidfidh freastalaithe ionsuite Django (e.g.:djadmin: runserver). Cruthóidh an t-ordú bainist &lt;startproject&gt;íochta: Djadmin: django-admin startproject `comhad caighdeánach `wsgi.py le <code class=\"docutils literal notranslate\"><span class=\"pre\">feidhmchlár</span> <span class=\"pre\">``is</span> <span class=\"pre\">féidir</span> <span class=\"pre\">a</span> <span class=\"pre\">ghlaoch</span> <span class=\"pre\">ann,</span> <span class=\"pre\">agus</span> <span class=\"pre\">cuirfidh</span> <span class=\"pre\">an</span> <span class=\"pre\">socrú</span> <span class=\"pre\">seo</span> <span class=\"pre\">chuig</span> <span class=\"pre\">an</span> <span class=\"pre\">``feidhmchlár</span></code> sin.</p>\n<p>Mura bhfuil sé socraithe, úsáidfear luach tuairisceáin <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>django.core.wsgi.get_wsgi_application () <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>. Sa chás seo, beidh iompar: djadmin: runserver comhionann le leaganacha Django roimhe seo.</p>\n</section>\n<section id=\"year-month-format\">\n<span id=\"std-setting-YEAR_MONTH_FORMAT\"></span><h3>FORMÁID <code class=\"docutils literal notranslate\"><span class=\"pre\">BLIAN_MHÍOS</span></code><a class=\"heading-anchor\" href=\"#year-month-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'F</span> <span class=\"pre\">Y'</span></code></p>\n<p>An formáidiú réamhshocraithe le húsáid le haghaidh réimsí dáta ar leathanaigh liosta athraithe riaracháin Django - agus, b'fhéidir, ag codanna eile den chóras - i gcásanna nach dtaispeántar ach an bhliain agus an mhí.</p>\n<p>Mar shampla, nuair a bhíonn leathanach liosta athraithe riaracháin Django á scagadh ag druileáil dáta, taispeánann an ceannteideal do mhí ar leith an mhí agus an bhliain. Tá formáidí éagsúla ag áitiúla éagsúla. Mar shampla, déarfadh Béarla na SA “Eanáir 2006,” ach d'fhéadfadh áitiúil eile a rá “2006/Eanáir.”</p>\n<p>Tabhair faoi deara go bhfuil tosaíocht níos airde ag an bhformáid chomhfhreagrach áitiúil agus go gcuirfear i bhfeidhm ina ionad.</p>\n<p>&lt;date&gt;Féach: TFilter: teaghráin formáid dáta ceadaithe `. Féach freis:socrú: `DATE_FORMAT, :setting: DATETIME_FORMAT, :setting: TIME_FORMAT agus:setting: MONTH_DAY_FORMAT.</p>\n</section>\n<section id=\"x-frame-options\">\n<span id=\"std-setting-X_FRAME_OPTIONS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">ROGHANNA</span> <span class=\"pre\">X_FRAME</span></code><a class=\"heading-anchor\" href=\"#x-frame-options\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'DENY'</span></code></p>\n<p>An luach réamhshocraithe don cheanntásc X-Frame-Options a úsáideann ar:class: ~django.middleware.clickjacking.xframeOptionsMiddleware. Féach an doiciméad:doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>click&lt;/ref/clickjacking/&gt; jacking cosant'.</p>\n</section>\n</section>\n<section id=\"auth\">\n<h2><a class=\"toc-backref\" href=\"#id17\" role=\"doc-backlink\">Authas</a><a class=\"headerlink\" href=\"#auth\" title=\"Link to this heading\">¶</a></h2>\n<p>Socruithe le haghaidh: mod: django.contrib.auth.</p>\n<section id=\"authentication-backends\">\n<span id=\"std-setting-AUTHENTICATION_BACKENDS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">BACKENDATION_BACKENDS</span></code><a class=\"heading-anchor\" href=\"#authentication-backends\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">['django.contrib.auth.backends.modelBackend']</span></code></p>\n<p>Liosta d'aicmí cúltaca fíordheimhnithe (mar teaghráin) le húsáid agus tú ag iarraidh úsáideoir a fhíordheimhniú. &lt;authentication-backends&gt;Féach na:ref: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>doiciméadú cúltaca fíordheimhniúcháin <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">`</span></a>le haghaidh sonraí.</p>\n</section>\n<section id=\"auth-user-model\">\n<span id=\"std-setting-AUTH_USER_MODEL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>AUTH_USER_MODEL ``<a class=\"heading-anchor\" href=\"#auth-user-model\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">`Auth.user'</span></code></p>\n<p>An tsamhail atá le húsáid chun ionadaíocht a dhéanamh ar Úsáideoir. Féach: ref: auth-custom-user.</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>Ní féidir leat an socrú AUTH_USER_MODEL a athrú le linn shaolré tionscadail (i.e. nuair a bheidh samhlacha déanta agus imirce agat atá ag brath air) gan iarracht tromchúiseach. Tá sé i gceist é a shocrú ag tús an tionscadail, agus caithfidh an tsamhail a thagraíonn sé a bheith ar fáil sa chéad imirce den aip ina gcónaíonn sé ann. Féach: ref: auth-custom-user le haghaidh tuilleadh sonraí.</p>\n</aside>\n</section>\n<section id=\"login-redirect-url\">\n<span id=\"std-setting-LOGIN_REDIRECT_URL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>LOG_REDIRECT_URL ``<a class=\"heading-anchor\" href=\"#login-redirect-url\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'/cuntais/próifíl/'</span></code></p>\n<p>An URL nó:ref: patrún URL ainmnithe &lt;naming-url-patterns&gt;`ina ndéantar iarratais a atreorú tar éis logáil isteach nuair nach bhfaigheann an:class: `~django.contrib.auth.views.loginView paraiméadar GET <code class=\"docutils literal notranslate\"><span class=\"pre\">next</span></code>.</p>\n</section>\n<section id=\"login-url\">\n<span id=\"std-setting-LOGIN_URL\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">LOG_URL</span></code><a class=\"heading-anchor\" href=\"#login-url\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'/cuntais/logáil</span> <span class=\"pre\">isteach</span> <span class=\"pre\">/'</span></code></p>\n<p>An URL nó:ref: patrún URL ainmnithe `ina n- &lt;naming-url-patterns&gt;atreoraítear iarratais ar logáil isteach nuair a úsáidtear an:func: `~django.contrib.auth.decorators.login_required decorator, :class: ~django.contrib.auth.mixins.loginrequiredMixin, :class: ~django.contrib.auth.mixins.accessin, nó when :class: ~django.contrib.auth.middleware.loginrequiredMiddleware suiteáilte.</p>\n</section>\n<section id=\"logout-redirect-url\">\n<span id=\"std-setting-LOGOUT_REDIRECT_URL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>LOGOUT_REDIRECT_URL ``<a class=\"heading-anchor\" href=\"#logout-redirect-url\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An URL nó:ref: patrún URL ainmnithe &lt;naming-url-patterns&gt;`ina ndéantar iarratais a atreorú tar éis logáil amach ias:class: `~django.contrib.auth.views.logoutview tréith <code class=\"docutils literal notranslate\"><span class=\"pre\">next_page</span></code>.</p>\n<p>Má tá <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, ní dhéanfar aon athsheoladh agus déanfar an radharc logála amach a léiriú.</p>\n</section>\n<section id=\"password-reset-timeout\">\n<span id=\"std-setting-PASSWORD_RESET_TIMEOUT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">PASFHOCAL_RESET_TIMEOUT</span></code><a class=\"heading-anchor\" href=\"#password-reset-timeout\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>259200` (3 lá, i soicindí)</p>\n<p>Tá líon na soicind a bhfuil nasc athshocraithe pasfhocal bailí dóibh.</p>\n<p>Úsáidtear ag an: class: ~django.contrib.auth.views.passwordResetConfirmView.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Ní dhéanann luach an t-ama seo a laghdú aon difríocht ar chumas ionsaitheora comhartha athshocraithe pasfhocal a chur i bhfeidhm go brútal. Tá comharthaí deartha le bheith sábháilte ó fhorfheidhmiú brúite gan aon am amach.</p>\n<p>Tá an t-am seo ann chun cosaint a dhéanamh i gcoinne roinnt cásanna ionsaithe nach dócha, mar shampla duine a fhaigheann rochtain ar chartlanna ríomhphoist a d'fhéadfadh sean-chomharthaí athshocraithe pasfho</p>\n</aside>\n</section>\n<section id=\"password-hashers\">\n<span id=\"std-setting-PASSWORD_HASHERS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">PASSWORD_HASHERS</span></code><a class=\"heading-anchor\" href=\"#password-hashers\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Féach:ref: auth_password_storage.</p>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;django.contrib.auth.hashers.PBKDF2PasswordHasher&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.contrib.auth.hashers.Argon2PasswordHasher&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.contrib.auth.hashers.BCryptSHA256PasswordHasher&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.contrib.auth.hashers.ScryptPasswordHasher&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n</section>\n<section id=\"auth-password-validators\">\n<span id=\"std-setting-AUTH_PASSWORD_VALIDATORS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">BAILÍOCHTAITHEOIR_PASSWORD_AUTH</span></code><a class=\"heading-anchor\" href=\"#auth-password-validators\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Liosta na mbailíochtóirí a úsáidtear chun neart pasfhocail an úsáideora a sheiceáil. Féach:ref: bailíochtú pasfhocal le haghaidh tuilleadh sonraí. De réir réamhshocraithe, ní dhéantar aon bhailíochtú agus glactar le gach pasfhocal.</p>\n</section>\n</section>\n<section id=\"messages\">\n<span id=\"settings-messages\"></span><h2><a class=\"toc-backref\" href=\"#id18\" role=\"doc-backlink\">Teachtaireachtaí</a><a class=\"headerlink\" href=\"#messages\" title=\"Link to this heading\">¶</a></h2>\n<p>Socruithe le haghaidh: mod: django.contrib.messages.</p>\n<section id=\"message-level\">\n<span id=\"std-setting-MESSAGE_LEVEL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>LEIBHÉAL_TEACHTAIREACHTAÍ ``<a class=\"heading-anchor\" href=\"#message-level\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Messages.info</span></code></p>\n<p>Socraíonn sé an leibhéal íosta teachtaireachta a thaifeadfar ag creat na teachtaireachtaí. Féach: tagairt: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>leibhéil teachtaireachtaí &lt;message-level&gt;`le haghaidh tuilleadh sonraí.</p>\n<aside class=\"admonition-avoiding-circular-imports admonition\">\n<p class=\"admonition-title\">Allmhairithe ciorclach</p>\n<p>Má sháraigh tú <code class=\"docutils literal notranslate\"><span class=\"pre\">MESSAGE_LEVEL</span></code> i do chomhad socruithe agus má bhíonn tú ag brath ar aon cheann de na comhsheasmhainní ionsuite, ní mór duit an modúl comhsheasmhach a allmhairiú go díreach chun an fhéidearthacht allmhairí ciorclach a sheachaint, m.sh.:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"kn\">from</span><span class=\"w\"> </span><span class=\"nn\">django.contrib.messages</span><span class=\"w\"> </span><span class=\"kn\">import</span> <span class=\"n\">constants</span> <span class=\"k\">as</span> <span class=\"n\">message_constants</span>\n\n<span class=\"n\">MESSAGE_LEVEL</span> <span class=\"o\">=</span> <span class=\"n\">message_constants</span><span class=\"o\">.</span><span class=\"n\">DEBUG</span>\n</code></pre></div>\n<p>&lt;message-level-constants&gt;Más mian leat, féadfaidh tú na luachanna uimhriúla do na comhsheasmhainní a shonrú go díreach de réir na luachanna sa thuas:ref: tábla comhsheasmhainne.</p>\n</aside>\n</section>\n<section id=\"message-storage\">\n<span id=\"std-setting-MESSAGE_STORAGE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">TEACHTAIREACHTAÍ</span> <span class=\"pre\">STÓRÁLA</span></code><a class=\"heading-anchor\" href=\"#message-storage\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.contrib.messages.storage.fallback.fallbackStorage'</span></code></p>\n<p>Rialuithe áit a stórálann Django sonraí teachtaireachtaí. Is iad na luachanna bailí:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.contrib.messages.storage.fallback.fallbackstorage'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`Django.Contrib.Messages.Storage.Session.SessionStorage'</span></code></p></li>\n<li><p><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Django.contrib.messages.storage.cookie.cookieIestorage'</p></li>\n</ul>\n<p>Féach: tagairt: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>cúltaca stórála teachtaireachtaí &lt;message-storage-backends&gt;`le haghaidh tuilleadh sonraí.</p>\n<p>Na cúltaca a úsáideann fianáin --:class: ~django.contrib.messages.storage.cookie.cookieStorage agus:class: ~django.contrib.messages.storage.fallback.fallbackStorage -- bain úsáid as luach:setting: SESSION_COOKIE_DOMAIN, :setting: SESSION_COOKIE_SECURE :setting: SESSION_COOKIE_HTTPONLY agus a gcuid fianáin á leagan síos agat.</p>\n</section>\n<section id=\"message-tags\">\n<span id=\"std-setting-MESSAGE_TAGS\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>TAG_TEACHTAIREACHTAÍ ``<a class=\"heading-anchor\" href=\"#message-tags\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">{</span>\n    <span class=\"n\">messages</span><span class=\"o\">.</span><span class=\"n\">DEBUG</span><span class=\"p\">:</span> <span class=\"s2\">&quot;debug&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">messages</span><span class=\"o\">.</span><span class=\"n\">INFO</span><span class=\"p\">:</span> <span class=\"s2\">&quot;info&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">messages</span><span class=\"o\">.</span><span class=\"n\">SUCCESS</span><span class=\"p\">:</span> <span class=\"s2\">&quot;success&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">messages</span><span class=\"o\">.</span><span class=\"n\">WARNING</span><span class=\"p\">:</span> <span class=\"s2\">&quot;warning&quot;</span><span class=\"p\">,</span>\n    <span class=\"n\">messages</span><span class=\"o\">.</span><span class=\"n\">ERROR</span><span class=\"p\">:</span> <span class=\"s2\">&quot;error&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">}</span>\n</code></pre></div>\n<p>Socraíonn sé seo mapáil leibhéal teachtaireachta go clib teachtaireachta, a léirítear de ghnáth mar rang CSS i HTML. Má shonraíonn tú luach, leathnóidh sé an réamhshocrú. Ciallaíonn sé seo nach gá duit ach na luachanna sin a chaithfidh tú a shárú a shonrú. Féach: Ref: teachtaireachtaí taispeántaí thuas le haghaidh tuilleadh sonraí.</p>\n<aside class=\"admonition-avoiding-circular-imports admonition\">\n<p class=\"admonition-title\">Allmhairithe ciorclach</p>\n<p>Má sháraigh tú <code class=\"docutils literal notranslate\"><span class=\"pre\">MESSAGE_TAGS</span></code> i do chomhad socruithe agus má bhíonn tú ag brath ar aon cheann de na comhsheasmhainní ionsuite, ní mór duit an modúl <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>constants` a allmhairiú go díreach chun an fhéidearthacht allmhairí ciorclach a sheachaint, m.sh.:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"kn\">from</span><span class=\"w\"> </span><span class=\"nn\">django.contrib.messages</span><span class=\"w\"> </span><span class=\"kn\">import</span> <span class=\"n\">constants</span> <span class=\"k\">as</span> <span class=\"n\">message_constants</span>\n\n<span class=\"n\">MESSAGE_TAGS</span> <span class=\"o\">=</span> <span class=\"p\">{</span><span class=\"n\">message_constants</span><span class=\"o\">.</span><span class=\"n\">INFO</span><span class=\"p\">:</span> <span class=\"s2\">&quot;&quot;</span><span class=\"p\">}</span>\n</code></pre></div>\n<p>&lt;message-level-constants&gt;Más mian leat, féadfaidh tú na luachanna uimhriúla do na comhsheasmhainní a shonrú go díreach de réir na luachanna sa thuas:ref: tábla comhsheasmhainne.</p>\n</aside>\n</section>\n</section>\n<section id=\"sessions\">\n<span id=\"settings-sessions\"></span><h2><a class=\"toc-backref\" href=\"#id19\" role=\"doc-backlink\">Seisiúin</a><a class=\"headerlink\" href=\"#sessions\" title=\"Link to this heading\">¶</a></h2>\n<p>Socruithe le haghaidh: mod: django.contrib.sessions.</p>\n<section id=\"session-cache-alias\">\n<span id=\"std-setting-SESSION_CACHE_ALIAS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÓN_CACHE_ALIAS</span></code><a class=\"heading-anchor\" href=\"#session-cache-alias\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'default'</span></code></p>\n<p>Má tá tú ag baint úsáidea:ref: stóráil seisiúin bunaithe ar taisce &lt;cached-sessions-backend&gt;, roghnaíonn sé seo an taisce le húsáid.</p>\n</section>\n<section id=\"session-cookie-age\">\n<span id=\"std-setting-SESSION_COOKIE_AGE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÓN_COOKIE_AOS</span></code><a class=\"heading-anchor\" href=\"#session-cookie-age\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>1209600` (2 seachtaine, i soicindí)</p>\n<p>Aois na bhfianáin seisiúin, i soicindí.</p>\n</section>\n<section id=\"session-cookie-domain\">\n<span id=\"std-setting-SESSION_COOKIE_DOMAIN\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SESSION_COOKIE_DOMAIN</span></code><a class=\"heading-anchor\" href=\"#session-cookie-domain\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An fearainn le húsáid le haghaidh fianáin seisiúin. Socraigh é seo go sreang mar <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;example.com&quot;</span></code> le haghaidh fianáin tras-fearainn, nó bain úsáid as <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>le haghaidh fianán fearainn caighdeánach.</p>\n<p>Chun fianáin tras-fearainn a úsáid la:setting: CSRF_USE_SESSIONS, ní mór duit ponc tosaigh a áireamh (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">”</span> <span class=\"pre\">.example.com&quot;</span></code>) chun freastal ar sheiceáil atreoraithe meán-earraí CSRF.</p>\n<p>Bí cúramach agus an suíomh seo á nuashonrú agat ar shuíomh táirgeachta. Má nuashonraíonn tú an socrú seo chun fianáin tras-fearainn a chumasú ar shuíomh a d'úsáid fianáin fearainn caighdeánacha roimhe seo, socraítear fianáin úsáideora atá ann cheana ar an sean-fhearann D'fhéadfadh sé seo go mbeidh siad in ann logáil isteach chomh fada agus a leanann na fianáin seo.</p>\n<p>Bíonn tionchar ag an socrú seo freisin ar fhianáin arna leagan síos ar:mod: django.contrib.messages.</p>\n</section>\n<section id=\"session-cookie-httponly\">\n<span id=\"std-setting-SESSION_COOKIE_HTTPONLY\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SESSION_COOKIE_HTTPONLY</span></code><a class=\"heading-anchor\" href=\"#session-cookie-httponly\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Fíor`</p>\n<p>Cibé acu an bhratach HttpOnly a úsáid ar an bhfianán seisiúin. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, ní bheidh JavaScript taobh an chliaint in ann rochtain a fháil ar an bhfianán seisiúin.</p>\n<p>Is bratach é <a class=\"reference external\" href=\"https://owasp.org/www-community/HttpOnly\">HTTPOnly</a> atá san áireamh i gceannteideal freagartha Set-Cookie HTTP. Tá sé mar chuid den chaighdeán:rfc: 6265 #section -4.1.2.6 le haghaidh fianáin agus féadann sé a bheith ina bhealach úsáideach chun an baol go bhfaighidh script taobh an chliaint rochtain ar na sonraí cosanta fianán a mhaolú.</p>\n<p>Fágann sé seo nach bhfuil sé chomh tábhachtach d'ionsaitheoir leochaileacht scripteála tras-láithreáin a mhéadú go seisiún úsáideora a fhuadach iomlán. Níl go leor cúiseanna maithe ann chun é seo a mhúchadh. Níor chóir do chód fianáin seisiúin a léamh ó JavaScript.</p>\n</section>\n<section id=\"session-cookie-name\">\n<span id=\"std-setting-SESSION_COOKIE_NAME\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">`SESSION_COOKIE_NAME</span></code><a class=\"heading-anchor\" href=\"#session-cookie-name\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'seisión</span></code></p>\n<p>Ainm na fianán le húsáid le haghaidh seisiúin. Is féidir leis seo a bheith cibé rud is mian leat (fad is atá sé difriúil ó na hainmneacha fianán eile i d'iarratas).</p>\n</section>\n<section id=\"session-cookie-path\">\n<span id=\"std-setting-SESSION_COOKIE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÓN_COOKIE_PATH</span></code><a class=\"heading-anchor\" href=\"#session-cookie-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'/'</span></code></p>\n<p>An cosán atá leagtha amach ar an bhfianán seisiúin. Ba chóir go n-oireann sé seo cosán URL do shuiteála Django nó a bheith ina thuismitheoir ar an gcosán sin.</p>\n<p>Tá sé seo úsáideach má tá cásanna iolracha Django agat ag rith faoin ainm óstach céanna. Is féidir leo cosáin éagsúla fianán a úsáid, agus ní fheicfidh gach cás ach a fhianán seisiúin féin.</p>\n</section>\n<section id=\"session-cookie-samesite\">\n<span id=\"std-setting-SESSION_COOKIE_SAMESITE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÓN_FIANÁINE_SAMESITE</span></code><a class=\"heading-anchor\" href=\"#session-cookie-samesite\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Lax'</span></code></p>\n<p>Luach an bhratach <a class=\"reference external\" href=\"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value\">SameSite</a> ar an bhfianán seisiúin. Cuireann an bratach seo cosc ar an bhfianán a sheoladh isteach in iarratais tras-láithreáin agus mar sin cosc a chur ar ionsaithe CSRF agus rud a fhágann go bhfuil roinnt modhanna chun fianán</p>\n<p>Is iad na luachanna féideartha don socrú:</p>\n<ul>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Strict</span></code>: cuireann an brabhsálaí cosc ar an bhfianán a sheoladh chuig an spriocshuíomh i ngach comhthéacs brabhsála tras-láithreáin, fiú nuair a bhíonn nasc rialta á leanúint agat.</p>\n<p>Mar shampla, do shuíomh Gréasáin cosúil le GitHub chiallódh sé seo má leanann úsáideoir logáilte nasc chuig tionscadal príobháideach GitHub a chuirtear ar fhóram plé corparáideach nó ríomhphost, ní gheobhaidh GitHub an fianán seisiúin agus ní bheidh an t-úsáideoir in ann rochtain a fháil ar an tionscadal. Is dóichí nach bhfuil suíomh Gréasáin bainc ag iarraidh cead a cheadú aon leathanaigh idirghníomhaíochta a nascadh ó shuíomhanna seachtracha mar sin bheadh an bhratach <code class=\"docutils literal notranslate\"><span class=\"pre\">Strict</span></code> oiriúnach.</p>\n</li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Lax'</span></code> (réamhshocraithe): soláthraíonn cothromaíocht idir slándáil agus inúsáidteacht do shuíomhanna gréasáin atá ag iarraidh seisiún logáilte isteach an úsáideora a choinneáil tar éis don úsáideoir teacht ó nasc seachtrach.</p>\n<p>Sa chás GitHub, ceadaíodh an fianán seisiúin nuair a leanfaí nasc rialta ó shuíomh Gréasáin seachtrach agus cuirfí bac ar mhodhanna iarratais CSRF (m.sh. POST `).</p>\n</li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">`None'</span></code> (teaghrán): seolfar an fianán seisiúin le gach iarratas ar an láithreán céanna agus tras-láithreán.</p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code>: díchumasaíonn an bratach.</p></li>\n</ul>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Soláthraíonn brabhsálaithe nua-aimseartha beartas réamhshocraithe níos sábháilte don bhratach <code class=\"docutils literal notranslate\"><span class=\"pre\">SameSite</span></code> agus glacfaidh siad le <code class=\"docutils literal notranslate\"><span class=\"pre\">Lax</span></code> le haghaidh fianáin gan luach follasach soiléir.</p>\n</aside>\n</section>\n<section id=\"session-cookie-secure\">\n<span id=\"std-setting-SESSION_COOKIE_SECURE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÚN_FIANÁIN</span> <span class=\"pre\">SHÁBHÁILTE</span></code><a class=\"heading-anchor\" href=\"#session-cookie-secure\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu fianán slán a úsáid don fhianán seisiúin. Má tá sé seo socraithe ar <code class=\"docutils literal notranslate\"><span class=\"pre\">True</span></code>, marcálfar an fianán mar “slán”, rud a chiallaíonn go bhféadfaidh brabhsálaithe a chinntiú nach seoltar an fianán ach faoi nasc HTTPS.</p>\n<p>Ní smaoineamh maith é an socrú seo a fhágáil mar d'fhéadfadh ionsaitheoir fianán seisiúin neamhchriptithe a ghabháil le sniffer paicéad agus an fianán a úsáid chun seisiún an úsáideora a fhuadadh.</p>\n</section>\n<section id=\"session-engine\">\n<span id=\"std-setting-SESSION_ENGINE\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">INNEAL_SEISIÚNA</span></code><a class=\"heading-anchor\" href=\"#session-engine\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.db'</span></code></p>\n<p>Rialuithe ina stórálann Django sonraí seisiúin. Is iad na hinnill san áireamh:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.db'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.file'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.cache'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.cached_db'</span></code></p></li>\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'django.contrib.sessions.backends.signed_cookies'</span></code></p></li>\n</ul>\n<p>Féach: ref: seisiúin cumraitheach le haghaidh tuilleadh sonraí.</p>\n</section>\n<section id=\"session-expire-at-browser-close\">\n<span id=\"std-setting-SESSION_EXPIRE_AT_BROWSER_CLOSE\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>SEISIÚIN_DEIGH_AT_BRABHSÁLAÍ_DÚNTA ``<a class=\"heading-anchor\" href=\"#session-expire-at-browser-close\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé an rachaidh an seisiún in éag nuair a dhúnn an úsáideoir a bhrabhsála Féach:ref: brabhsálaí-length-vs-seisiúin persistent-s.</p>\n</section>\n<section id=\"session-file-path\">\n<span id=\"std-setting-SESSION_FILE_PATH\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SESSION_FILE_PATH</span></code><a class=\"heading-anchor\" href=\"#session-file-path\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>Má tá stóráil seisiúin comhadbhunaithe á úsáid agat, socraíonn sé seo an eolaire ina stóráilfidh Django sonraí seisiúin. Nuair a úsáidtear an luach réamhshocraithe (<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>None <a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>), úsáidfidh Django an eolaire sealadach caighdeánach don chóras.</p>\n</section>\n<section id=\"session-save-every-request\">\n<span id=\"std-setting-SESSION_SAVE_EVERY_REQUEST\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SEISIÚN_SÁBHA_GACH</span> <span class=\"pre\">IARRAT</span></code><a class=\"heading-anchor\" href=\"#session-save-every-request\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Fréag</span></code></p>\n<p>Cibé acu sonraí an tseisiúin a shábháil ar gach iarratas. Más é seo <code class=\"docutils literal notranslate\"><span class=\"pre\">False</span></code> (réamhshocraithe), ansin ní shábhálfar sonraí an tseisiúin ach má tá siad modhnaithe - is é sin, má shanntar nó scriosadh aon cheann dá luachanna foclóra. Ní chruthófar seisiúin folamh, fiú má tá an suíomh seo gníomhach.</p>\n</section>\n<section id=\"session-serializer\">\n<span id=\"std-setting-SESSION_SERIALIZER\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">SESSION_SERIALIZER</span></code><a class=\"heading-anchor\" href=\"#session-serializer\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.contrib.sessions.serializers.jsonSerializer'</span></code></p>\n<p>Conair iomlán iompórtála ranga serializer le húsáid chun sonraí seisiúin a shraitheadh. Is é an sraitheoir san áireamh:</p>\n<ul class=\"simple\">\n<li><p><code class=\"docutils literal notranslate\"><span class=\"pre\">'Django.Contrib.Sessions.Serializers.JSONSerializer'</span></code></p></li>\n</ul>\n<p>Féach:ref: session_serialization le haghaidh sonraí.</p>\n</section>\n</section>\n<section id=\"sites\">\n<h2><a class=\"toc-backref\" href=\"#id20\" role=\"doc-backlink\">Suíomhanna</a><a class=\"headerlink\" href=\"#sites\" title=\"Link to this heading\">¶</a></h2>\n<p>Socruithe le haghaidh: mod: django.contrib.sites.</p>\n<section id=\"site-id\">\n<span id=\"std-setting-SITE_ID\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">ID_LÁITHREACH</span></code><a class=\"heading-anchor\" href=\"#site-id\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocrú: Gan sainmhíniú</p>\n<p>An ID, mar shláimhir, an láithreáin reatha sa tábla bunachar sonraí <code class=\"docutils literal notranslate\"><span class=\"pre\">django_site</span></code>. Úsáidtear é seo ionas gur féidir le sonraí feidhmchláir dul isteach i suíomhanna ar leith agus gur féidir le bunachar sonraí amháin ábhar a bhainistiú do shuíomhanna iolr</p>\n</section>\n</section>\n<section id=\"static-files\">\n<span id=\"settings-staticfiles\"></span><h2><a class=\"toc-backref\" href=\"#id21\" role=\"doc-backlink\">Comhaid Statach</a><a class=\"headerlink\" href=\"#static-files\" title=\"Link to this heading\">¶</a></h2>\n<p>Socruithe le haghaidh: mod: django.contrib.staticfiles.</p>\n<section id=\"static-root\">\n<span id=\"std-setting-STATIC_ROOT\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">FRÉAMH_STATIC</span></code><a class=\"heading-anchor\" href=\"#static-root\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>An cosán iomlán chuig an eolaire ina mbailfidh: djadmin: collectstatic comhaid statacha le haghaidh imscartha.</p>\n<p>Sampla: <code class=\"docutils literal notranslate\"><span class=\"pre\">”</span> <span class=\"pre\">/var/www/example.com/static/&quot;</span></code></p>\n<p>Má tá an aip contrib: doc: staticfiles cumasaithe (mar atá sa te&#64;&#64;&lt;/ref/contrib/staticfiles&gt; impléad réamhshocraithe tionscadail), baileoidh an t-ordú bainistíochta: djadmin: collectstatic comhaid statacha san eolaire seo. Féach an conas ar: doc: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>comhaid statacha a bhainistiú' le haghaidh tuilleadh sonraí faoin úsáid .&lt;/howto/static-files/index&gt;</p>\n<aside class=\"admonition admonition-warning\" role=\"note\">\n<p class=\"admonition-title\">Warning</p>\n<p>This should be an initially empty destination directory for collecting\nyour static files from their permanent locations into one directory for\nease of deployment; it is <strong>not</strong> a place to store your static files\npermanently. You should do that in directories that will be found by\n<a class=\"reference internal\" href=\"/ga/6.1/ref/contrib/staticfiles/\"><span class=\"doc\">staticfiles</span></a>’s\n<a class=\"reference internal\" href=\"#std-setting-STATICFILES_FINDERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">finders</span></code></a>, which by default, are\n<code class=\"docutils literal notranslate\"><span class=\"pre\">'static/'</span></code> app sub-directories and any directories you include in\n<a class=\"reference internal\" href=\"#std-setting-STATICFILES_DIRS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">STATICFILES_DIRS</span></code></a>.</p>\n</aside>\n</section>\n<section id=\"static-url\">\n<span id=\"std-setting-STATIC_URL\"></span><h3><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>STATIC_URL ``<a class=\"heading-anchor\" href=\"#static-url\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>Níl ``</p>\n<p>URL le húsáid agus tú ag tagairt do chomhaid statacha atá suite in:setting: STATIC_ROOT.</p>\n<p>Sampla: <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;statach/&quot;</span></code> nó <code class=\"docutils literal notranslate\"><span class=\"pre\">”</span> <span class=\"pre\">https://static.example.com/</span> <span class=\"pre\">“</span></code></p>\n<p>Mura bhfuil <code class=\"docutils literal notranslate\"><span class=\"pre\">None</span></code>, úsáidfear é seo mar bhonn cosán le haghaidh: ref: sainmhínithe sócmhainní&lt;/ref/contrib/staticfiles&gt; &lt;form-asset-paths&gt;`(an rang ``Meáin `) agus an aip: doc: staticfiles.</p>\n<p>Caithfidh sé deireadh a chur le slasc má tá sé socraithe ar luach neamh-folamh.</p>\n<p>B'fhéidir go mbeidh ort: ref: na comhaid seo a chumrú le seirbheáil i bhforbairt &lt;/howto/static-files/deployment&gt; &lt;serving-static-files-in-development&gt;`agus is cinnte go mbeidh ort é sin a dhéanamh: doc: `i dtáirgeadh.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Más: Socrú: Is cosán coibhneasta é STATIC_URL, ansin déanfar é a réamhshocrú ag an luach <code class=\"docutils literal notranslate\"><span class=\"pre\">SCRIPT_NAME</span></code> a sholáthraíonn an freastalaí (nó <code class=\"docutils literal notranslate\"><span class=\"pre\">/</span></code> mura bhfuil sé socraithe). Fágann sé seo go bhfuil sé níos éasca feidhmchlár Django a sheirbheáil i bhfochonair gan cumraíocht bhreise a chur leis na socruithe.</p>\n</aside>\n</section>\n<section id=\"staticfiles-dirs\">\n<span id=\"std-setting-STATICFILES_DIRS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">COMHAD</span> <span class=\"pre\">STATIC_DIRS</span></code><a class=\"heading-anchor\" href=\"#staticfiles-dirs\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">[]</span></code> (Liosta folamh)</p>\n<p>Sainmhíníonn an socrú seo na suíomhanna breise a thrasnóidh an aip staticfiles má chumasaítear an aimsitheoir <code class=\"docutils literal notranslate\"><span class=\"pre\">FilesystemFinder</span></code>, m.sh. má úsáideann tú an ordú bainistíochta: djadmin: collectstatic nó: djadmin: findstatic nó má úsáideann tú an radharc statach a sheirbheáil.</p>\n<p>Ba chóir é seo a shocrú ar liosta teaghráin ina bhfuil cosáin iomlána chuig d'eolaire (í) comhaid bhreise m.sh.:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">STATICFILES_DIRS</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"s2\">&quot;/home/special.polls.com/polls/static&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;/home/polls.com/polls/static&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;/opt/webfiles/common&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Tabhair faoi deara gur chóir go n-úsáidfeadh na cosáin seo sliotáin ar aghaidh i stíl Unix, fiú ar Windows (m.sh. <code class=\"docutils literal notranslate\"><span class=\"pre\">&quot;C:</span> <span class=\"pre\">/Users/User/MySite/Extra_Static_Content&quot;</span></code>).</p>\n<section id=\"prefixes-optional\">\n<span id=\"staticfiles-dirs-prefixes\"></span><h4>Réamhréamhacha (roghnach)<a class=\"heading-anchor\" href=\"#prefixes-optional\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<p>Sa chás gur mhaith leat tagairt a dhéanamh do chomhaid i gceann de na háiteanna le spás ainmneacha breise, is féidir leat**go roghnaí** réimír a sholáthar mar thuples <code class=\"docutils literal notranslate\"><span class=\"pre\">(réimír,</span> <span class=\"pre\">cosán)</span></code>, m.sh.:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"n\">STATICFILES_DIRS</span> <span class=\"o\">=</span> <span class=\"p\">[</span>\n    <span class=\"c1\"># ...</span>\n    <span class=\"p\">(</span><span class=\"s2\">&quot;downloads&quot;</span><span class=\"p\">,</span> <span class=\"s2\">&quot;/opt/webfiles/stats&quot;</span><span class=\"p\">),</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Mar shampla, ag glacadh leis go bhfuil: setting: STATIC_URL socraithe agat go <code class=\"docutils literal notranslate\"><span class=\"pre\">'static/'</span></code>, baileodh an t-ordú bainistíochta: djadmin: collectstatic na comhaid “stats” i bhfo-eolaire <code class=\"docutils literal notranslate\"><span class=\"pre\">'downloads'</span></code> de:setting: STATIC_ROOT.</p>\n<p>Ligfeadh sé seo duit tagairt a dhéanamh don chomhad áitiúil <code class=\"docutils literal notranslate\"><span class=\"pre\">`'/opt/webfiles/stats/polls_20101022.tar.gz'</span></code> le <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>'/static/downloads/polls_20101022.tar.gz'` i do theimpléid, m.sh.:</p>\n<div class=\"code-block\" data-language=\"html+django\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Django template</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Django template code\"><code><span class=\"p\">&lt;</span><span class=\"nt\">a</span> <span class=\"na\">href</span><span class=\"o\">=</span><span class=\"s\">&quot;</span><span class=\"cp\">{%</span> <span class=\"k\">static</span> <span class=\"s1\">&#39;downloads/polls_20101022.tar.gz&#39;</span> <span class=\"cp\">%}</span><span class=\"s\">&quot;</span><span class=\"p\">&gt;</span>\n</code></pre></div>\n</section>\n</section>\n<section id=\"staticfiles-finders\">\n<span id=\"std-setting-STATICFILES_FINDERS\"></span><h3><code class=\"docutils literal notranslate\"><span class=\"pre\">AIMSITHEOIRÍ</span> <span class=\"pre\">COMHAID</span> <span class=\"pre\">STATAICE</span></code><a class=\"heading-anchor\" href=\"#staticfiles-finders\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<p>Réamhshocraithe:</p>\n<div class=\"code-block\" data-language=\"default\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Code</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Code code\"><code><span class=\"p\">[</span>\n    <span class=\"s2\">&quot;django.contrib.staticfiles.finders.FileSystemFinder&quot;</span><span class=\"p\">,</span>\n    <span class=\"s2\">&quot;django.contrib.staticfiles.finders.AppDirectoriesFinder&quot;</span><span class=\"p\">,</span>\n<span class=\"p\">]</span>\n</code></pre></div>\n<p>Liosta na gcúltaca aimsitheora a bhfuil a fhios acu conas comhaid statacha a aimsiú in áiteanna éagsúla.</p>\n<p>Gheobhaidh an réamhshocrú comhaid atá stóráilte sa socrú:setting: STATICFILES_DIRS (ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">Django.contrib.staticfiles.finders.filesystemfinder</span></code>) agus i bhfo-eolaire static` de gach aip (ag baint úsáide as <code class=\"docutils literal notranslate\"><span class=\"pre\">Django.contrib.staticfiles.finders.appDirectoriesFinder</span></code>). Má tá comhad iolracha leis an ainm céanna i láthair, úsáidfear an chéad chomhad a fhaightear.</p>\n<p>Tá aimsitheoir amháin díchumasaithe de réir réamhshocraithe: <code class=\"docutils literal notranslate\"><span class=\"pre\">Django.contrib.staticfiles.finders.defaultStorageFinder</span></code>. Má chuirtear le do shuíomh:: STATICFILES_FINDERS, cuardóidh sé comhaid statacha sa stóráil comhaid réamhshocraithe mar a shainmhínítear leis an eochair <code class=\"docutils literal notranslate\"><span class=\"pre\">default</span></code> sa socrú: STORAGES.</p>\n<aside class=\"admonition admonition-note\" role=\"note\">\n<p class=\"admonition-title\">Note</p>\n<p>Agus an aimsitheoir <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>AppDirectoriesFinder` á úsáid agat, déan cinnte gur féidir do chuid aipeanna a aimsiú trí staticfiles tríd an aip a chur leis an socrú: INSTALLED_APPS ar do shuíomh.</p>\n</aside>\n<p>Meastar go bhfuil aimsitheoirí comhad statacha ina chomhéadan príobháideach faoi láthair, agus mar sin níl an comhéadan seo gan doiciméadú</p>\n</section>\n</section>\n<section id=\"core-settings-topical-index\">\n<h2><a class=\"toc-backref\" href=\"#id22\" role=\"doc-backlink\">Innéacs Áiritheach na Socruithe</a><a class=\"headerlink\" href=\"#core-settings-topical-index\" title=\"Link to this heading\">¶</a></h2>\n<section id=\"cache\">\n<h3>Cache<a class=\"heading-anchor\" href=\"#cache\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p>: socrú: CACHES</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CACHE_MIDDLEWARE_ALIAS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_ALIAS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CACHE_MIDDLEWARE_KEY_PREFIX\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_KEY_PREFIX</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CACHE_MIDDLEWARE_SECONDS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CACHE_MIDDLEWARE_SECONDS</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"database\">\n<h3>Bunachar Sonraí<a class=\"heading-anchor\" href=\"#database\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATABASES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATABASES</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATABASE_ROUTERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATABASE_ROUTERS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_INDEX_TABLESPACE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_INDEX_TABLESPACE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_TABLESPACE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_TABLESPACE</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"debugging\">\n<h3>Dífhabhtú<a class=\"heading-anchor\" href=\"#debugging\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEBUG\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEBUG</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEBUG_PROPAGATE_EXCEPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEBUG_PROPAGATE_EXCEPTIONS</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"email\">\n<h3>Ríomhphost<a class=\"heading-anchor\" href=\"#email\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-ADMINS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">ADMINS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_CHARSET\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_CHARSET</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_FROM_EMAIL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_FROM_EMAIL</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_BACKEND\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_BACKEND</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_FILE_PATH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_FILE_PATH</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_HOST\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_HOST</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_HOST_PASSWORD\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_HOST_PASSWORD</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_HOST_USER\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_HOST_USER</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_PORT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_PORT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_SSL_CERTFILE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_SSL_CERTFILE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_SSL_KEYFILE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_SSL_KEYFILE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_SUBJECT_PREFIX\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_SUBJECT_PREFIX</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_TIMEOUT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_TIMEOUT</span></code></a></p></li>\n<li><p>: socrú: EMAIL_USE_LOCALTIME</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_SSL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_SSL</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-EMAIL_USE_TLS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">EMAIL_USE_TLS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MAILERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MAILERS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MANAGERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MANAGERS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SERVER_EMAIL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SERVER_EMAIL</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"error-reporting\">\n<h3>Tuairisciú earrá<a class=\"heading-anchor\" href=\"#error-reporting\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_EXCEPTION_REPORTER\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_EXCEPTION_REPORTER</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_EXCEPTION_REPORTER_FILTER\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_EXCEPTION_REPORTER_FILTER</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-IGNORABLE_404_URLS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">IGNORABLE_404_URLS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MANAGERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MANAGERS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SILENCED_SYSTEM_CHECKS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SILENCED_SYSTEM_CHECKS</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"file-uploads\">\n<span id=\"file-upload-settings\"></span><h3>Uaslódálacha comhad<a class=\"heading-anchor\" href=\"#file-uploads\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-FILE_UPLOAD_HANDLERS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_HANDLERS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FILE_UPLOAD_MAX_MEMORY_SIZE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_MAX_MEMORY_SIZE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FILE_UPLOAD_DIRECTORY_PERMISSIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_DIRECTORY_PERMISSIONS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FILE_UPLOAD_PERMISSIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_PERMISSIONS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FILE_UPLOAD_TEMP_DIR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FILE_UPLOAD_TEMP_DIR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MEDIA_ROOT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_ROOT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MEDIA_URL\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MEDIA_URL</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-STORAGES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">STORAGES</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"forms\">\n<h3>Foirmeacha<a class=\"heading-anchor\" href=\"#forms\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-FORM_RENDERER\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FORM_RENDERER</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_BLANK_CHOICE_DASH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_BLANK_CHOICE_DASH</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"globalization-i18n-l10n\">\n<h3>Domhandú (<code class=\"docutils literal notranslate\"><span class=\"pre\">i18n</span></code>/<code class=\"docutils literal notranslate\"><span class=\"pre\">l10n</span></code>)<a class=\"heading-anchor\" href=\"#globalization-i18n-l10n\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<section id=\"internationalization-i18n\">\n<span id=\"settings-i18n\"></span><h4>Idirnáisiúnú (<code class=\"docutils literal notranslate\"><span class=\"pre\">i18n</span></code>)<a class=\"heading-anchor\" href=\"#internationalization-i18n\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-FIRST_DAY_OF_WEEK\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FIRST_DAY_OF_WEEK</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FORMAT_MODULE_PATH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FORMAT_MODULE_PATH</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_AGE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_AGE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_DOMAIN\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_DOMAIN</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_HTTPONLY\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_HTTPONLY</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_NAME\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_NAME</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_PATH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_PATH</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_SAMESITE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_SAMESITE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_COOKIE_SECURE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_COOKIE_SECURE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGES</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGES_BIDI\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGES_BIDI</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LOCALE_PATHS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LOCALE_PATHS</span></code></a></p></li>\n<li><p>: socrú: TIME_ZONE</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_I18N\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_I18N</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_TZ\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_TZ</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"localization-l10n\">\n<span id=\"settings-l10n\"></span><h4>Logánú (<code class=\"docutils literal notranslate\"><span class=\"pre\">l10n</span></code>)<a class=\"heading-anchor\" href=\"#localization-l10n\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h4>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATE_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATE_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATE_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATE_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATETIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATETIME_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATETIME_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATETIME_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DECIMAL_SEPARATOR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DECIMAL_SEPARATOR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LANGUAGE_CODE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LANGUAGE_CODE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MONTH_DAY_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MONTH_DAY_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-NUMBER_GROUPING\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">NUMBER_GROUPING</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SHORT_DATE_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SHORT_DATE_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SHORT_DATETIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SHORT_DATETIME_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-THOUSAND_SEPARATOR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">THOUSAND_SEPARATOR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TIME_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TIME_FORMAT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TIME_INPUT_FORMATS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TIME_INPUT_FORMATS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_THOUSAND_SEPARATOR\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_THOUSAND_SEPARATOR</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-YEAR_MONTH_FORMAT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">YEAR_MONTH_FORMAT</span></code></a></p></li>\n</ul>\n</section>\n</section>\n<section id=\"http\">\n<h3>HTTP<a class=\"heading-anchor\" href=\"#http\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATA_UPLOAD_MAX_MEMORY_SIZE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATA_UPLOAD_MAX_MEMORY_SIZE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DATA_UPLOAD_MAX_NUMBER_FIELDS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DATA_UPLOAD_MAX_NUMBER_FIELDS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#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></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_CHARSET\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_CHARSET</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-DISALLOWED_USER_AGENTS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DISALLOWED_USER_AGENTS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FORCE_SCRIPT_NAME\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FORCE_SCRIPT_NAME</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-INTERNAL_IPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">INTERNAL_IPS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-MIDDLEWARE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">MIDDLEWARE</span></code></a></p></li>\n<li><p>Slándáil</p>\n<ul>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_CONTENT_TYPE_NOSNIFF\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CONTENT_TYPE_NOSNIFF</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_CROSS_ORIGIN_OPENER_POLICY\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CROSS_ORIGIN_OPENER_POLICY</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_CSP\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CSP</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_CSP_REPORT_ONLY\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_CSP_REPORT_ONLY</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_HSTS_INCLUDE_SUBDOMAINS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_HSTS_INCLUDE_SUBDOMAINS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_HSTS_PRELOAD\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_HSTS_PRELOAD</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_HSTS_SECONDS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_HSTS_SECONDS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#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></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_REDIRECT_EXEMPT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_REDIRECT_EXEMPT</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_REFERRER_POLICY\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_REFERRER_POLICY</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_SSL_HOST\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_SSL_HOST</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECURE_SSL_REDIRECT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECURE_SSL_REDIRECT</span></code></a></p></li>\n</ul>\n</li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SIGNED_COOKIE_LEGACY_SALT_FALLBACK\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SIGNED_COOKIE_LEGACY_SALT_FALLBACK</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SIGNING_BACKEND\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SIGNING_BACKEND</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_X_FORWARDED_HOST\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_X_FORWARDED_HOST</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-USE_X_FORWARDED_PORT\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">USE_X_FORWARDED_PORT</span></code></a></p></li>\n<li><p>: socrú: WSGI_APPLICATION</p></li>\n</ul>\n</section>\n<section id=\"id14\">\n<h3>Logáil<a class=\"heading-anchor\" href=\"#id14\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p>: socrú: LOGGING</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-LOGGING_CONFIG\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">LOGGING_CONFIG</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"models\">\n<h3>Samhla<a class=\"heading-anchor\" href=\"#models\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-ABSOLUTE_URL_OVERRIDES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">ABSOLUTE_URL_OVERRIDES</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-FIXTURE_DIRS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">FIXTURE_DIRS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-INSTALLED_APPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">INSTALLED_APPS</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"security\">\n<h3>Slándáil<a class=\"heading-anchor\" href=\"#security\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p>Cosaint Falsaíochta Iarratas Trasláithreáin</p>\n<ul>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_COOKIE_DOMAIN\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_DOMAIN</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_COOKIE_NAME\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_NAME</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_COOKIE_PATH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_PATH</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_COOKIE_SAMESITE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_SAMESITE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_COOKIE_SECURE\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_COOKIE_SECURE</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_FAILURE_VIEW\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_FAILURE_VIEW</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_HEADER_NAME\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_HEADER_NAME</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_TRUSTED_ORIGINS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_TRUSTED_ORIGINS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-CSRF_USE_SESSIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">CSRF_USE_SESSIONS</span></code></a></p></li>\n</ul>\n</li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECRET_KEY\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECRET_KEY</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SECRET_KEY_FALLBACKS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SECRET_KEY_FALLBACKS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-URLIZE_ASSUME_HTTPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">URLIZE_ASSUME_HTTPS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-X_FRAME_OPTIONS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">X_FRAME_OPTIONS</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"serialization\">\n<h3>Sraitheadh<a class=\"heading-anchor\" href=\"#serialization\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-DEFAULT_CHARSET\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">DEFAULT_CHARSET</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-SERIALIZATION_MODULES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SERIALIZATION_MODULES</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"id15\">\n<h3>Teimpléid<a class=\"heading-anchor\" href=\"#id15\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-TEMPLATES\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TEMPLATES</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"testing\">\n<h3>Tástáil<a class=\"heading-anchor\" href=\"#testing\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p>&lt;DATABASE-TEST&gt;Bunachar sonraí: :setting: <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>TEST `</p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TEST_NON_SERIALIZED_APPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TEST_NON_SERIALIZED_APPS</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-TEST_RUNNER\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">TEST_RUNNER</span></code></a></p></li>\n</ul>\n</section>\n<section id=\"urls\">\n<h3>URLanna<a class=\"heading-anchor\" href=\"#urls\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p><a class=\"reference internal\" href=\"#std-setting-APPEND_SLASH\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">APPEND_SLASH</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-PREPEND_WWW\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">PREPEND_WWW</span></code></a></p></li>\n<li><p><a class=\"reference internal\" href=\"#std-setting-ROOT_URLCONF\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">ROOT_URLCONF</span></code></a></p></li>\n</ul>\n</section>\n</section>","rootId":"settings","toc":[{"title":"Socruithe lárnacha","anchor":"core-settings","children":[{"title":"URL_ABSOLUTE_OVERRIDES","anchor":"absolute-url-overrides","children":[]},{"title":"``RIARACHÁIN ``","anchor":"admins","children":[]},{"title":"ÓSTÁLACHA CEADAITHEAD","anchor":"allowed-hosts","children":[]},{"title":"APPEND_SLASH","anchor":"append-slash","children":[]},{"title":"CÁIS","anchor":"caches","children":[{"title":"`CÚLT","anchor":"backend","children":[]},{"title":"EOCHAIRFHEIDHME","anchor":"key-function","children":[]},{"title":"EOCHAIR_RÉAMH","anchor":"key-prefix","children":[]},{"title":"SUÍOMH","anchor":"location","children":[]},{"title":"ROGHANNAÍ","anchor":"options","children":[]},{"title":"TIMEOUT","anchor":"timeout","children":[]},{"title":"LEAGAN","anchor":"version","children":[]}]},{"title":"CACHE_MIDDLEWARE_ALIAS","anchor":"cache-middleware-alias","children":[]},{"title":"CACHE_MIDDLEWARE_KEY_PREFIX","anchor":"cache-middleware-key-prefix","children":[]},{"title":"CACHE_MIDDLEWARE_SOICIND","anchor":"cache-middleware-seconds","children":[]},{"title":"CSRF_COOKIE_AOS","anchor":"csrf-cookie-age","children":[]},{"title":"CSRF_COOKIE_DOMAIN","anchor":"csrf-cookie-domain","children":[]},{"title":"CSRF_COOKIE_HTTPONLY","anchor":"csrf-cookie-httponly","children":[]},{"title":"`AINM_CSRF_COOKIE","anchor":"csrf-cookie-name","children":[]},{"title":"CSRF_COOKIE_PATH","anchor":"csrf-cookie-path","children":[]},{"title":"CSRF_COOKIE_SAMESITE","anchor":"csrf-cookie-samesite","children":[]},{"title":"CSRF_COOKIE_SECURE","anchor":"csrf-cookie-secure","children":[]},{"title":"SEISIÚINT_ÚSÁID_CSRF","anchor":"csrf-use-sessions","children":[]},{"title":"CSRF_FAILURE_VIEW","anchor":"csrf-failure-view","children":[]},{"title":"`CSRF_HEADER_AINM","anchor":"csrf-header-name","children":[]},{"title":"CSRF_TRUSTED_ORIGINS","anchor":"csrf-trusted-origins","children":[]},{"title":"BUNACHAIR SONRAÍ","anchor":"databases","children":[{"title":"IARRATAITHE_ATOMIC","anchor":"atomic-requests","children":[]},{"title":"AUTOCOMIT","anchor":"autocommit","children":[]},{"title":"INNEAL","anchor":"engine","children":[]},{"title":"ÓSTACH","anchor":"host","children":[]},{"title":"``AINM `","anchor":"name","children":[]},{"title":"CONN_MAX_AOS","anchor":"conn-max-age","children":[]},{"title":"SEICEÁLACHA SLÁINTE CONN","anchor":"conn-health-checks","children":[]},{"title":"ROGHANNAÍ","anchor":"std-setting-OPTIONS","children":[]},{"title":"``PASFHOCAL ``","anchor":"password","children":[]},{"title":"``CALAFOIRT'","anchor":"port","children":[]},{"title":"CRIOS_AMA","anchor":"time-zone","children":[]},{"title":"CÚRSAÍ TAOBH FREASTALAÍ_DÍCHUMASACHA","anchor":"disable-server-side-cursors","children":[]},{"title":"``ÚSÁIDEOIR ``","anchor":"user","children":[]},{"title":"TÁSTÁLA","anchor":"test","children":[{"title":"CHARSET","anchor":"charset","children":[]},{"title":"``COMHLÁNÚ ``","anchor":"collation","children":[]},{"title":"``SPLEÁCHAIS ``","anchor":"dependencies","children":[]},{"title":"`IMIRCE","anchor":"migrate","children":[]},{"title":"SCÁTHÁN","anchor":"mirror","children":[]},{"title":"``AINM `","anchor":"std-setting-TEST_NAME","children":[]},{"title":"TEIMPLÉAD","anchor":"template","children":[]},{"title":"CRUTHAITHE_DB","anchor":"create-db","children":[]},{"title":"CHRUTHAITHE_ÚSÁIDEOIR","anchor":"create-user","children":[]},{"title":"``ÚSÁIDEOIR ``","anchor":"std-setting-TEST_USER","children":[]},{"title":"``PASFHOCAL ``","anchor":"std-setting-TEST_PASSWD","children":[]},{"title":"COMHAD BAINISTITHE ORACLE","anchor":"oracle-managed-files","children":[]},{"title":"TBLSPACE","anchor":"tblspace","children":[]},{"title":"TBLSPACE_TMP","anchor":"tblspace-tmp","children":[]},{"title":"DATAFILE","anchor":"datafile","children":[]},{"title":"DATAFILE_TMP","anchor":"datafile-tmp","children":[]},{"title":"DATAFILE_MAXSIZE","anchor":"datafile-maxsize","children":[]},{"title":"DATAFILE_TMP_MAXSIZE","anchor":"datafile-tmp-maxsize","children":[]},{"title":"MÉID_DATAFILE","anchor":"datafile-size","children":[]},{"title":"DATAFILE_TMP_SIZE","anchor":"datafile-tmp-size","children":[]},{"title":"DATAFILE_EXTSIZE","anchor":"datafile-extsize","children":[]},{"title":"DATAFILE_TMP_EXTSIZE","anchor":"datafile-tmp-extsize","children":[]}]}]},{"title":"``SONRA_UASLÓDÁIL_MÉID_CUIMHNEACHÁIN UASTA ``","anchor":"data-upload-max-memory-size","children":[]},{"title":"SONRA_UASLÓDÁIL_UIMHREACH_RÉIMSÍ UASGHAIR","anchor":"data-upload-max-number-fields","children":[]},{"title":"``SONRAÍ_UASLÓDÁIL_UIMHREACH_COMHAID ``","anchor":"data-upload-max-number-files","children":[]},{"title":"RÓDAIRÍ_BUNACHAR SONRAÍ","anchor":"database-routers","children":[]},{"title":"FORMÁID_DÁTA","anchor":"date-format","children":[]},{"title":"``FORMÁIDÍ DÁTA_IONCHUIRIÚCHÁIN ``","anchor":"date-input-formats","children":[]},{"title":"FORMÁID_DÁTAIME","anchor":"datetime-format","children":[]},{"title":"``FORMÁIDÍ DÁTAIME_IONCHUIRIÚCHÁIN ``","anchor":"datetime-input-formats","children":[]},{"title":"DEBUG","anchor":"debug","children":[]},{"title":"`EISCEACHTAIS_IOMADAITHE_DEBUG","anchor":"debug-propagate-exceptions","children":[]},{"title":"DEIGHILTEOIR DEACHIMAL","anchor":"decimal-separator","children":[]},{"title":"RÉAMHSHOCRAITHE_AUTO_FIELD","anchor":"default-auto-field","children":[]},{"title":"DEFAULT_CHARSET","anchor":"default-charset","children":[]},{"title":"TUAIRISEOIRÍ_EISCEACHTÁIL_RÉAMHSHOCRAITHE","anchor":"default-exception-reporter","children":[]},{"title":"SCAGAIR_TUAIRISCITHEOIRÍ_EISCEACHTÁIL_RÉAMHSHOCRAITHE","anchor":"default-exception-reporter-filter","children":[]},{"title":"DEFAULT_FROM_RÍOMHPHOST","anchor":"default-from-email","children":[]},{"title":"RÉAMHSHOCRAITHE_INDEX_TABLESPACE","anchor":"default-index-tablespace","children":[]},{"title":"DEFAULT_TABLESPACE","anchor":"default-tablespace","children":[]},{"title":"GNÍOMHAIRÍ_ÚSÁIDEOIR_NEAMHCHEADAITHE","anchor":"disallowed-user-agents","children":[]},{"title":"RÍOMHPHOST_BACKEND","anchor":"email-backend","children":[]},{"title":"RÍOMHPHOST_FILE_PATH","anchor":"email-file-path","children":[]},{"title":"RÍOMHPHOST_ÓST","anchor":"email-host","children":[]},{"title":"``RÍOMHPHOST_HOST_PASFHOCAL ``","anchor":"email-host-password","children":[]},{"title":"``RÍOMHPHOST_HOST_ÚSÁIDEOIR ``","anchor":"email-host-user","children":[]},{"title":"``RÍOMHPHOST_PORT `","anchor":"email-port","children":[]},{"title":"RÍOMHPHOST_ÁBHAIR_RÉAMH","anchor":"email-subject-prefix","children":[]},{"title":"RÍOMHPHOST_ÚSÁID_ÁITIÚIL TIM","anchor":"email-use-localtime","children":[]},{"title":"`RÍOMHPHOST_ÚSÁID_TLS","anchor":"email-use-tls","children":[]},{"title":"RÍOMHPHOST_ÚSÁID_SSL","anchor":"email-use-ssl","children":[]},{"title":"RÍOMHPHOST_SSL_CERTFILE","anchor":"email-ssl-certfile","children":[]},{"title":"RÍOMHPHOST_SSL_KEYFILE","anchor":"email-ssl-keyfile","children":[]},{"title":"RÍOMHPHOST_TIMEOUT","anchor":"email-timeout","children":[]},{"title":"LÁIMHSEÁLAITHE COMHAI_UASLÓDÁLAÍ","anchor":"file-upload-handlers","children":[]},{"title":"FILE_UPLOAD_MAX_MÉIDE_CUIMHNEACH","anchor":"file-upload-max-memory-size","children":[]},{"title":"``CEADÚNA_STIÚRTHÓIREACH_UASLÓDÁIL_COMHAD ``","anchor":"file-upload-directory-permissions","children":[]},{"title":"CEADÚNA_UASLÓDÁIL_FILE","anchor":"file-upload-permissions","children":[]},{"title":"FILE_UPLOAD_TEMP_DIR","anchor":"file-upload-temp-dir","children":[]},{"title":"`CHÉAD_LAETH_DEN TSEACHTAINE","anchor":"first-day-of-week","children":[]},{"title":"FIXTURE_DIRS","anchor":"fixture-dirs","children":[]},{"title":"`AINM_SCRIPT_FORCE","anchor":"force-script-name","children":[]},{"title":"FOIRM_RENDERER","anchor":"form-renderer","children":[]},{"title":"MODÚL_BHEALACH_FORMÁID","anchor":"format-module-path","children":[]},{"title":"URLACHA NEAMHCHOITIANTA 404_","anchor":"ignorable-404-urls","children":[]},{"title":"APPS_SHUITEÁIL","anchor":"installed-apps","children":[]},{"title":"IPS_INMHEÁN","anchor":"internal-ips","children":[]},{"title":"CÓD_TEANGA","anchor":"language-code","children":[]},{"title":"``TEANGA_FIANÁIN AOIS ``","anchor":"language-cookie-age","children":[]},{"title":"TEANGA_FIANÁINE_FEARAIN","anchor":"language-cookie-domain","children":[]},{"title":"TEANGA_FIANÁIN_HTTPONLY","anchor":"language-cookie-httponly","children":[]},{"title":"AINM_FIANÁIN TEANGA","anchor":"language-cookie-name","children":[]},{"title":"TEANGA_FIANÁIN BHEALAIGH","anchor":"language-cookie-path","children":[]},{"title":"TEANGA_FIANÁN_COMHCHOSAITHE","anchor":"language-cookie-samesite","children":[]},{"title":"TEANGA_FIANÁINE_SLÁNDÁLA","anchor":"language-cookie-secure","children":[]},{"title":"``TEANGACHA ``","anchor":"languages","children":[]},{"title":"TEANGACH_BIDI","anchor":"languages-bidi","children":[]},{"title":"``COSÁIN ÁITIÚLA ``","anchor":"locale-paths","children":[]},{"title":"``LOGÁIL ISTEACH ``","anchor":"logging","children":[]},{"title":"LOGING_CONFIG","anchor":"logging-config","children":[]},{"title":"MAILERS","anchor":"mailers","children":[{"title":"`CÚLT","anchor":"std-setting-MAILERS-BACKEND","children":[]},{"title":"ROGHANNAÍ","anchor":"std-setting-MAILERS-OPTIONS","children":[]}]},{"title":"``BAINISTEOIRÍ ``","anchor":"managers","children":[]},{"title":"MEDIA_FRÉAMH","anchor":"media-root","children":[]},{"title":"``MEDIA_URL ``","anchor":"media-url","children":[]},{"title":"``MEÁN-EARRAÍ ``","anchor":"middleware","children":[]},{"title":"MODÚL_IMIRCE","anchor":"migration-modules","children":[]},{"title":"FORMÁID_LAETH_MHÍ","anchor":"month-day-format","children":[]},{"title":"``UIMHREACH_GHRÚPÁIL ``","anchor":"number-grouping","children":[]},{"title":"PREPEND_WWW","anchor":"prepend-www","children":[]},{"title":"ROOT_URLCONF","anchor":"root-urlconf","children":[]},{"title":"EOCHAIR_RÚNA","anchor":"secret-key","children":[]},{"title":"EOCHAIR_FALLBACKS","anchor":"secret-key-fallbacks","children":[]},{"title":"CINEÁL_ÁBHAR SLÁNDÁILTE_NOSNIFF","anchor":"secure-content-type-nosniff","children":[]},{"title":"``BEARTAS OSCAILTEOIREACH_THRAS_BUNAIDH SLÁNDÁILTE ``","anchor":"secure-cross-origin-opener-policy","children":[]},{"title":"SECURE_CSP","anchor":"secure-csp","children":[]},{"title":"SECURE_CSP_REPORT_ONLY","anchor":"secure-csp-report-only","children":[]},{"title":"SLÁNDA_HSTS_INCLUDE_SUBDOMAINS","anchor":"secure-hsts-include-subdomains","children":[]},{"title":"SLÁNDA_HSTS_PRELOAD","anchor":"secure-hsts-preload","children":[]},{"title":"SLÁNDA_HSTS_SOICIND","anchor":"secure-hsts-seconds","children":[]},{"title":"SLÁNT_PROXY_SSL_HEADER","anchor":"secure-proxy-ssl-header","children":[]},{"title":"SLÁNDA_ATHREDIRECT_EISEOLÚINT","anchor":"secure-redirect-exempt","children":[]},{"title":"BEARTAS ATREORÓIR_SLÁNDÁLA","anchor":"secure-referrer-policy","children":[]},{"title":"SSL_ÓST_SÁBHÁILTE","anchor":"secure-ssl-host","children":[]},{"title":"SECURE_SSL_REDIRECT","anchor":"secure-ssl-redirect","children":[]},{"title":"MODÚL_SRAITHEACH","anchor":"serialization-modules","children":[]},{"title":"FREASTALAÍ_RÍOMHPHOST","anchor":"server-email","children":[]},{"title":"FORMÁID_DÁTA_GEARR","anchor":"short-date-format","children":[]},{"title":"FORMÁID_DÁTA GEARRTHA","anchor":"short-datetime-format","children":[]},{"title":"SIGNED_COOKIE_LEGACY_SALT_FALLBACK","anchor":"signed-cookie-legacy-salt-fallback","children":[]},{"title":"`SIGNING_BACKEND","anchor":"signing-backend","children":[]},{"title":"``SEICEÁLACH_CHÓRAIS CIOSTAITHE ``","anchor":"silenced-system-checks","children":[]},{"title":"STÓRÁLAÍ","anchor":"storages","children":[]},{"title":"TASKS","anchor":"tasks","children":[{"title":"`CÚLT","anchor":"std-setting-TASKS-BACKEND","children":[]},{"title":"QUEUES","anchor":"queues","children":[]},{"title":"ROGHANNAÍ","anchor":"std-setting-TASKS-OPTIONS","children":[]}]},{"title":"TEIMPLÉID","anchor":"templates","children":[{"title":"`CÚLT","anchor":"std-setting-TEMPLATES-BACKEND","children":[]},{"title":"``AINM `","anchor":"std-setting-TEMPLATES-NAME","children":[]},{"title":"`DIRS","anchor":"dirs","children":[]},{"title":"APP_DIRS","anchor":"app-dirs","children":[]},{"title":"ROGHANNAÍ","anchor":"std-setting-TEMPLATES-OPTIONS","children":[]}]},{"title":"TÁST_RUNNER","anchor":"test-runner","children":[]},{"title":"TÁSTÁIL_NEAM_AIPEANNA SRAITHEACH","anchor":"test-non-serialized-apps","children":[]},{"title":"``MÍLTE DEIGHILTEOIR ``","anchor":"thousand-separator","children":[]},{"title":"FORMÁID_AIM","anchor":"time-format","children":[]},{"title":"``FORMÁID_IONCHUIR_AMA ``","anchor":"time-input-formats","children":[]},{"title":"CRIOS_AMA","anchor":"std-setting-TIME_ZONE","children":[]},{"title":"USE_BLANK_CHOICE_DASH","anchor":"use-blank-choice-dash","children":[]},{"title":"USE_I18N","anchor":"use-i18n","children":[]},{"title":"``ÚSÁID_MÍLTE DEIGHILTEOIR ``","anchor":"use-thousand-separator","children":[]},{"title":"``ÚSÁID_TZ ``","anchor":"use-tz","children":[]},{"title":"ÚSÁID_X_FORWARDED_ÓST","anchor":"use-x-forwarded-host","children":[]},{"title":"``ÚSÁID_X_FORWARDED_PORT `","anchor":"use-x-forwarded-port","children":[]},{"title":"URLIZE_ASSUME_HTTPS","anchor":"urlize-assume-https","children":[]},{"title":"WSGI_IARRATAS","anchor":"wsgi-application","children":[]},{"title":"FORMÁID BLIAN_MHÍOS","anchor":"year-month-format","children":[]},{"title":"ROGHANNA X_FRAME","anchor":"x-frame-options","children":[]}]},{"title":"Authas","anchor":"auth","children":[{"title":"BACKENDATION_BACKENDS","anchor":"authentication-backends","children":[]},{"title":"``AUTH_USER_MODEL ``","anchor":"auth-user-model","children":[]},{"title":"``LOG_REDIRECT_URL ``","anchor":"login-redirect-url","children":[]},{"title":"LOG_URL","anchor":"login-url","children":[]},{"title":"``LOGOUT_REDIRECT_URL ``","anchor":"logout-redirect-url","children":[]},{"title":"PASFHOCAL_RESET_TIMEOUT","anchor":"password-reset-timeout","children":[]},{"title":"PASSWORD_HASHERS","anchor":"password-hashers","children":[]},{"title":"BAILÍOCHTAITHEOIR_PASSWORD_AUTH","anchor":"auth-password-validators","children":[]}]},{"title":"Teachtaireachtaí","anchor":"messages","children":[{"title":"``LEIBHÉAL_TEACHTAIREACHTAÍ ``","anchor":"message-level","children":[]},{"title":"TEACHTAIREACHTAÍ STÓRÁLA","anchor":"message-storage","children":[]},{"title":"``TAG_TEACHTAIREACHTAÍ ``","anchor":"message-tags","children":[]}]},{"title":"Seisiúin","anchor":"sessions","children":[{"title":"SEISIÓN_CACHE_ALIAS","anchor":"session-cache-alias","children":[]},{"title":"SEISIÓN_COOKIE_AOS","anchor":"session-cookie-age","children":[]},{"title":"SESSION_COOKIE_DOMAIN","anchor":"session-cookie-domain","children":[]},{"title":"SESSION_COOKIE_HTTPONLY","anchor":"session-cookie-httponly","children":[]},{"title":"`SESSION_COOKIE_NAME","anchor":"session-cookie-name","children":[]},{"title":"SEISIÓN_COOKIE_PATH","anchor":"session-cookie-path","children":[]},{"title":"SEISIÓN_FIANÁINE_SAMESITE","anchor":"session-cookie-samesite","children":[]},{"title":"SEISIÚN_FIANÁIN SHÁBHÁILTE","anchor":"session-cookie-secure","children":[]},{"title":"INNEAL_SEISIÚNA","anchor":"session-engine","children":[]},{"title":"``SEISIÚIN_DEIGH_AT_BRABHSÁLAÍ_DÚNTA ``","anchor":"session-expire-at-browser-close","children":[]},{"title":"SESSION_FILE_PATH","anchor":"session-file-path","children":[]},{"title":"SEISIÚN_SÁBHA_GACH IARRAT","anchor":"session-save-every-request","children":[]},{"title":"SESSION_SERIALIZER","anchor":"session-serializer","children":[]}]},{"title":"Suíomhanna","anchor":"sites","children":[{"title":"ID_LÁITHREACH","anchor":"site-id","children":[]}]},{"title":"Comhaid Statach","anchor":"static-files","children":[{"title":"FRÉAMH_STATIC","anchor":"static-root","children":[]},{"title":"``STATIC_URL ``","anchor":"static-url","children":[]},{"title":"COMHAD STATIC_DIRS","anchor":"staticfiles-dirs","children":[{"title":"Réamhréamhacha (roghnach)","anchor":"prefixes-optional","children":[]}]},{"title":"AIMSITHEOIRÍ COMHAID STATAICE","anchor":"staticfiles-finders","children":[]}]},{"title":"Innéacs Áiritheach na Socruithe","anchor":"core-settings-topical-index","children":[{"title":"Cache","anchor":"cache","children":[]},{"title":"Bunachar Sonraí","anchor":"database","children":[]},{"title":"Dífhabhtú","anchor":"debugging","children":[]},{"title":"Ríomhphost","anchor":"email","children":[]},{"title":"Tuairisciú earrá","anchor":"error-reporting","children":[]},{"title":"Uaslódálacha comhad","anchor":"file-uploads","children":[]},{"title":"Foirmeacha","anchor":"forms","children":[]},{"title":"Domhandú (i18n/l10n)","anchor":"globalization-i18n-l10n","children":[{"title":"Idirnáisiúnú (i18n)","anchor":"internationalization-i18n","children":[]},{"title":"Logánú (l10n)","anchor":"localization-l10n","children":[]}]},{"title":"HTTP","anchor":"http","children":[]},{"title":"Logáil","anchor":"id14","children":[]},{"title":"Samhla","anchor":"models","children":[]},{"title":"Slándáil","anchor":"security","children":[]},{"title":"Sraitheadh","anchor":"serialization","children":[]},{"title":"Teimpléid","anchor":"id15","children":[]},{"title":"Tástáil","anchor":"testing","children":[]},{"title":"URLanna","anchor":"urls","children":[]}]}],"breadcrumbs":[{"docname":"ref/index","title":"Tagairt API","url":"/ga/6.1/ref/"}],"prev":{"docname":"ref/schema-editor","title":"SchemaEditor","url":"/ga/6.1/ref/schema-editor/"},"next":{"docname":"ref/signals","title":"Comharthaí","url":"/ga/6.1/ref/signals/"},"formats":{"html":"/ga/6.1/ref/settings/","markdown":"/ga/6.1/ref/settings.md","json":"/ga/6.1/ref/settings.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/ref/settings.txt","official":"https://docs.djangoproject.com/ga/6.1/ref/settings/","inVersions":["6.1","6.0","5.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}