File tree 3 files changed +16
-16
lines changed
3 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
3
3
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
4
- BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
4
+ BASE_DIR = os .path .dirname (os .path .dirname (os .path .dirname ( os . path . abspath (__file__ ) )))
5
5
6
6
7
7
# Quick-start development settings - unsuitable for production
8
8
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
9
9
10
10
# SECURITY WARNING: keep the secret key used in production secret!
11
- SECRET_KEY = '4blyti@u4yj$skr7e&g63f*l%#jl(xq&od-2y&qzo^rrs!_p#7'
11
+ SECRET_KEY = os . environ [ 'SECRET_KEY' ]
12
12
13
13
# SECURITY WARNING: don't run with debug turned on in production!
14
14
DEBUG = True
60
60
61
61
WSGI_APPLICATION = 'tutorial.wsgi.application'
62
62
63
-
64
- # Database
65
- # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
66
-
67
- DATABASES = {
68
- 'default' : {
69
- 'ENGINE' : 'django.db.backends.sqlite3' ,
70
- 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
71
- }
72
- }
73
-
74
-
75
63
# Password validation
76
64
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators
77
65
Original file line number Diff line number Diff line change 2
2
3
3
# Override base.py settings here
4
4
5
-
5
+ DATABASES = {
6
+ 'default' : {
7
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
8
+ 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
9
+ }
10
+ }
6
11
7
12
try :
8
13
from tutorial .settings .local import *
Original file line number Diff line number Diff line change 1
1
from tutorial .settings .base import *
2
2
3
3
# Override base.py settings here
4
-
4
+ DEBUG = False
5
+ ALLOWED_HOSTS = ['*' ]
6
+ DATABASES = {
7
+ 'default' : {
8
+ 'ENGINE' : 'django.db.backends.sqlite3' ,
9
+ 'NAME' : os .path .join (BASE_DIR , 'db.sqlite3' ),
10
+ }
11
+ }
5
12
6
13
7
14
try :
You can’t perform that action at this time.
0 commit comments