Answer the question
In order to leave comments, you need to log in
Is there a way to not hardcode template paths in django?
Actually a subject. Found only one way:
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
TEMPLATE_DIRS = ( os.path.join(SITE_ROOT, 'templates'),)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question