Skip to content

Commit a4c89c6

Browse files
Added gitignore and env file
1 parent ad7f5a5 commit a4c89c6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
django-env/
2+
.env
3+
4+
#database file
5+
6+
*.sqllite3

myFirstDjangoProject/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
from pathlib import Path
1414
import os
15+
from decouple import config
1516

1617
# Build paths inside the project like this: BASE_DIR / 'subdir'.
1718
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -21,6 +22,7 @@
2122
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
2223

2324
# SECURITY WARNING: keep the secret key used in production secret!
25+
SECRET_KEY = config('SECRET_KEY')
2426
SECRET_KEY = 'django-insecure-nx=a-t0d%tf4*mrws4hq_o1=9e&ko$#pntt3)6bva=lfim7vm5'
2527

2628
# SECURITY WARNING: don't run with debug turned on in production!

0 commit comments

Comments
 (0)