[Answer]-Template changes are not appearing in Django admin site

1👍

Your templates directory is one level below where you’re telling Django to look.

Either change it to:

PROJECT_DIR = os.path.dirname(__file__)
BASE_DIR = os.path.dirname(PROJECT_DIR)

#this is the change
TEMPLATE_DIRS = [os.path.join(PROJECT_DIR, 'templates')]

Or change it to:

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

#this is the change
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'mysite', 'templates')]

Leave a comment