Skip to content

Commit

Permalink
Update URLs example
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRn76 committed Aug 31, 2023
1 parent 890d8ca commit f40f443
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.
10 changes: 5 additions & 5 deletions urls/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,10 @@ <h1>URLs</h1>
<p><b>Required:</b> <code>True</code></p>
</blockquote>
<ul>
<li><code>URLs</code> should point to the root of your <code>urls</code> file,
and in that file you should have a <code>dict</code> name <code>urls</code></li>
<li><code>URLs</code> should point to your root <code>urls</code> with dotted address (<code>path.module.url_dict</code>),
and it should be <code>dict</code>.</li>
<li>
<p><code>key</code> of urls dict is <code>path</code> &amp; value is <code>endpoint</code> or another <code>dict</code></p>
<p><code>key</code> of url_routing dict is <code>path</code> &amp; value is <code>endpoint</code> or another <code>dict</code></p>
</li>
<li>
<h4 id="path-variables-are-handled-like-below">Path Variables are handled like below:<a class="headerlink" href="#path-variables-are-handled-like-below" title="Permanent link">#</a></h4>
Expand All @@ -630,12 +630,12 @@ <h4 id="path-variables-are-handled-like-below">Path Variables are handled like b
<h2 id="example">Example<a class="headerlink" href="#example" title="Permanent link">#</a></h2>
<ul>
<li>core/configs.py
<div class="highlight"><pre><span></span><code><span class="err">`</span><span class="n">URLs</span> <span class="o">=</span> <span class="s1">&#39;configs/urls.py&#39;</span><span class="err">`</span>
<div class="highlight"><pre><span></span><code><span class="err">`</span><span class="n">URLs</span> <span class="o">=</span> <span class="s1">&#39;core.urls.url_routing`</span>
</code></pre></div></li>
<li>core/urls.py
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">app.urls</span> <span class="kn">import</span> <span class="n">app_urls</span>

<span class="n">urls</span> <span class="o">=</span> <span class="p">{</span>
<span class="n">url_routing</span> <span class="o">=</span> <span class="p">{</span>
<span class="s1">&#39;user/&#39;</span><span class="p">:</span> <span class="n">app_urls</span><span class="p">,</span>
<span class="p">}</span>
</code></pre></div></li>
Expand Down

0 comments on commit f40f443

Please sign in to comment.