Answer the question
In order to leave comments, you need to log in
How to correctly specify the path to public?
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PUBLIC_URL = '/public/'
PUBLIC_ROOT = os.path.join(BASE_DIR, '../layouts/public/')
Answer the question
In order to leave comments, you need to log in
./manage.py shell
>>> from django.conf import settings
>>> import os
>>> p = os.path.join(settings.BASE_DIR, 'layouts/public')
>>> p
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question