Scott-Wheeler / django-journey

My journey into Django
0 stars 0 forks source link

Writing Views that actually do something #43

Closed Scott-Wheeler closed 6 years ago

Scott-Wheeler commented 6 years ago

Part 2 of read and implement django tutorial pg 3 #41

Scott-Wheeler commented 6 years ago

edited the index view as per instructions

Scott-Wheeler commented 6 years ago

this is interesting: Your project’s TEMPLATES setting describes how Django will load and render templates. The default settings file configures a DjangoTemplates backend whose APP_DIRS option is set to True. By convention DjangoTemplates looks for a “templates” subdirectory in each of the INSTALLED_APPS.

Scott-Wheeler commented 6 years ago

render(request, template_name, context)