Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

rom pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent

Lovely Llama answered on November 24, 2021 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • python extract thefile name from relative path
  • import file 3 directories back
  • how to import from parent directory
  • python import file from parent directory
  • python insert parent directory into sys path for import file purpose
  • import file from parent directory python
  • python get parent directory from file path
  • To get the relative path in Python you write the following code:
  • os path parent directory
  • import from parent directory in python setup
  • pathlib extract paths parts
  • python import file from parent directory (no sys.path solution)
  • import from parent directory python
  • 'DIRS': [os.path.join(BASE_DIR,'template')],

  • rom pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent

    0
    Popularity 1/10 Helpfulness 1/10 Language python
    Source: adamj.eu
    Link to this answer
    Share Copy Link
    Contributed on Nov 24 2021
    Lovely Llama
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.