Answers for "make new app folder in django templates dir"

1

make new app folder in django templates dir

#settings.py
TEMPLATES = [
    {
        ...
        'DIRS': [os.path.join(BASE_DIR, 'templates'),
                 os.path.join(BASE_DIR, 'templates', 'the_folder_you_created'),
                ...
                ]
    }
]
Posted by: Guest on June-18-2020

Python Answers by Framework

Browse Popular Code Answers by Language