Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

relative path django

import os
from yourproject.settings import BASE_DIR
file_path = os.path.join(BASE_DIR, 'relative_path')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #relative #path #django
ADD COMMENT
Topic
Name
9+4 =