Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django Basics Django Templates Templates

Joe Law
Joe Law
5,040 Points

In Django basics - Templates

In the video, it shows that, there is this part in the setting.py :

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

But when I am working on pycharm, there is no such part in my setting.py, anyone mind enlighten me in this?

1 Answer

Hi Joe

I think its more to do with the version of django what version of django are you using is it 1.6 or previous? as far as i understand all the latest versions of django have the above templates list in the settings.py file.

Joe Law
Joe Law
5,040 Points

Hey Andreas! You are here. :D, I am using 1.79