File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
"""
12
12
13
13
import os
14
+ from pathlib import Path
14
15
15
16
import dj_database_url
16
17
23
24
EMPTY_VALUE_DISPLAY = ''
24
25
# ---------------------------------------
25
26
26
- # Build paths inside the project like this: os.path.join( BASE_DIR, ...)
27
- BASE_DIR = os . path . dirname ( os . path . dirname ( os . path . abspath ( __file__ )))
27
+ # Build paths inside the project like this: BASE_DIR / 'subdir'.
28
+ BASE_DIR = Path ( __file__ ). resolve (). parent . parent
28
29
29
30
30
31
# Quick-start development settings - unsuitable for production
46
47
'app' ,
47
48
'tv_series.apps.TvSeriesConfig' ,
48
49
'books.apps.BooksConfig' ,
50
+ 'backup' ,
49
51
50
52
# Dependencies
51
53
'django.contrib.admin' ,
134
136
# https://docs.djangoproject.com/en/2.2/howto/static-files/
135
137
136
138
STATIC_URL = '/static/'
137
- STATIC_ROOT = os . path . join ( BASE_DIR , 'static' )
139
+ STATIC_ROOT = BASE_DIR / 'static'
138
140
139
141
AUTH_USER_MODEL = 'app.User'
140
142
Original file line number Diff line number Diff line change
1
+ /data.db
You can’t perform that action at this time.
0 commit comments