#28190: Clarify absolute/relative paths in the extends/include template tag docs
--------------------------------------+------------------------------------
     Reporter:  Anupam                |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Documentation         |                  Version:  1.11
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  1
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Tim Graham):

 * needs_better_patch:  0 => 1
 * component:  Uncategorized => Documentation
 * has_patch:  0 => 1
 * type:  Uncategorized => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Old description:

> Minor point but I feel it is worth re-iterating that the example
> ([https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#include])
> is using an absolute path and folks should prefix "./" if the template
> being referenced is in the same directory as the template that is
> referencing it.
>
> Github issue : https://github.com/django/django/pull/8483
>
> (Apologies in advance if I made any formatting errors)

New description:

 Minor point but I feel it is worth re-iterating that the example
 ([https://docs.djangoproject.com/en/1.11/ref/templates/builtins/#include])
 is using an absolute path and folks should prefix "./" if the template
 being referenced is in the same directory as the template that is
 referencing it.

 [https://github.com/django/django/pull/8483 PR]

--

Comment:

 As I said on the PR, I'm not sure if "absolute path" is good terminology
 to use, considering that the given path is usually relative to the
 directory specified by a template loader, however, some clarifications
 could be made.

--
Ticket URL: <https://code.djangoproject.com/ticket/28190#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.2113b8286db4491ca3b3ac9c21ff39aa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to