Explorar o código

Updated settings example in overriding templates docs.

Follow up to ba4389a36b5fb1afce0cddb4e28233138b6612b7.
Mariusz Felisiak %!s(int64=5) %!d(string=hai) anos
pai
achega
2117b7c12e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/howto/overriding-templates.txt

+ 1 - 1
docs/howto/overriding-templates.txt

@@ -29,7 +29,7 @@ called ``blog``, which provides the templates ``blog/post.html`` and
 
     from pathlib import Path
 
-    BASE_DIR = Path(__file__).resolve(strict=True).parents[1]
+    BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
 
     INSTALLED_APPS = [
         ...,