From b6faf16a7b04b907f86032e1935ffa3b7b080ae3 Mon Sep 17 00:00:00 2001 From: zecollokaris Date: Thu, 18 Mar 2021 00:04:11 +0300 Subject: [PATCH] configured template directory in settings.py for app t locate templates --- Login/__pycache__/settings.cpython-38.pyc | Bin 2504 -> 2510 bytes Login/settings.py | 14 ++------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Login/__pycache__/settings.cpython-38.pyc b/Login/__pycache__/settings.cpython-38.pyc index 769e346c9c1e287a53f834a7206ea968afecbfb0..b14092f065d8843297b1d5cdbeb3001310b0eea3 100644 GIT binary patch delta 157 zcmX>hd`_4*l$V!_0SF%F1|=v?m?D3v#zF@+^XB1JMqDn&X)CY>ddF-3L` zOFCl|Uy585e~NsHLW*LFQi^hl${e6vl)%JY(wc%PT2VqN+EKzOEKwprEDFS8DLPT& zDY{V-K(=IxUX)adew6gaf0Nl5WhPHz?__4mFP<#Lag9wC=!PQI$=^5{7+EHla|Qwc DUsov; delta 132 zcmX>nd_tHvl$V!_0SNqrf)eB>^2#z^nW!Dll+G}*Ph6ZgMJ|djMLtC#MKMJwML9)f z4ofCu6#v9M(wYJ(T2X>2+EGF&EK$NhECR%$DLPSNDY{YOK(<7RUX)~tew5TE#>s4q e(vzpKcTQI1xXPviw5mvD@*j={MyAQNoPhvc1R+xZ diff --git a/Login/settings.py b/Login/settings.py index 654810c..cee56f8 100644 --- a/Login/settings.py +++ b/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'. @@ -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': [