Skip to content

Commit

Permalink
configured template directory in settings.py for app t locate templates
Browse files Browse the repository at this point in the history
  • Loading branch information
zecollokaris committed Mar 17, 2021
1 parent 866d204 commit b6faf16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Binary file modified Login/__pycache__/settings.cpython-38.pyc
Binary file not shown.
14 changes: 2 additions & 12 deletions Login/settings.py
@@ -1,15 +1,5 @@
"""
Django settings for Login project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""

import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -58,7 +48,7 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down

0 comments on commit b6faf16

Please sign in to comment.