"dirs' base_dir / 'templates' error" Code Answer's

You're definitely familiar with the best coding language Python that developers use to develop their projects and they get all their queries like "dirs' base_dir / 'templates' error" answered properly. Developers are finding an appropriate answer about dirs' base_dir / 'templates' error related to the Python coding language. By visiting this online portal developers get answers concerning Python codes question like dirs' base_dir / 'templates' error. Enter your desired code related query in the search bar and get every piece of information about Python code related question on dirs' base_dir / 'templates' error. 

dirs' base_dir / 'templates' error

By Horrible HornetHorrible Hornet on Oct 04, 2020
Incorrect syntax in polls app tutorial by Django

Use this: 
os.path.join(BASE_DIR, 'templates')

instead of this:
BASE_DIR / 'templates'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                # codes...
            ],
        },
    },
]

Source: stackoverflow.com

Add Comment

1

All those coders who are working on the Python based application and are stuck on dirs' base_dir / 'templates' error can get a collection of related answers to their query. Programmers need to enter their query on dirs' base_dir / 'templates' error related to Python code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about dirs' base_dir / 'templates' error for the programmers working on Python code while coding their module. Coders are also allowed to rectify already present answers of dirs' base_dir / 'templates' error while working on the Python language code. Developers can add up suggestions if they deem fit any other answer relating to "dirs' base_dir / 'templates' error". Visit this developer's friendly online web community, CodeProZone, and get your queries like dirs' base_dir / 'templates' error resolved professionally and stay updated to the latest Python updates. 

Python answers related to "dirs' base_dir / 'templates' error"

View All Python queries

Python queries related to "dirs' base_dir / 'templates' error"

Browse Other Code Languages

CodeProZone