Skip to content

Commit 9275934

Browse files
committed
config
1 parent fea6430 commit 9275934

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Diff for: .gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,8 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
#.idea/
161+
162+
*.sqlite3
163+
/dev
164+
.env

Diff for: mysite/config/settings/base.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313
from pathlib import Path
14+
from decouple import config
1415

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

2223
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'django-insecure-=$)3wl6&nf6y@yxm07g*+6bl3py%eq%owi1^yt2*$45-s-97ew'
24+
SECRET_KEY = config("DJANGO_SECRET_KEY")
2425

2526
# SECURITY WARNING: don't run with debug turned on in production!
2627
DEBUG = True

Diff for: mysite/config/settings/prod.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,4 @@
22

33
ALLOWED_HOSTS = ['43.201.203.109', 'choihaha.com']
44

5-
STATIC_URL = BASE_DIR / 'static/'
6-
STATICFILES_DIRS = []
7-
8-
DEBUG = False
9-
10-
# change
11-
SECURE_SSL_REDIRECT = False
5+
DEBUG = False

Diff for: mysite/replit_db.sqlite3

-304 KB
Binary file not shown.

Diff for: readme.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
env

0 commit comments

Comments
 (0)