Explorar o código

Update tasks.rst

Makes it so an actual path is added to sys.path.
mlissner %!s(int64=11) %!d(string=hai) anos
pai
achega
ada79d8aa1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -176,7 +176,7 @@ add the project directory to the Python path::
 
     import os
     import sys
-    sys.path.append(os.path.dirname(os.path.basename(__file__)))
+    sys.path.append(os.path.dirname(os.path.realpath(__file__)))
 
     INSTALLED_APPS = ('myapp', )