Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/5e68ef062f6185c4689ed5b38599e151 to your computer and use it in GitHub Desktop.
Save brunomichetti/5e68ef062f6185c4689ed5b38599e151 to your computer and use it in GitHub Desktop.
# Your settings file
...
import os
...
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'myapp/templates'), # Add this inside the DIRS list
],
'APP_DIRS': True,
...
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment