File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
17
17
BASE_DIR = os .path .dirname (os .path .dirname (__file__ ))
18
+ PROJECT_ROOT = os .path .dirname (os .path .abspath (__file__ ))
18
19
19
20
20
21
# Quick-start development settings - unsuitable for production
82
83
}
83
84
}
84
85
86
+ # Password validation
87
+ # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
88
+
89
+ AUTH_PASSWORD_VALIDATORS = [
90
+ {
91
+ 'NAME' : 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator' ,
92
+ },
93
+ {
94
+ 'NAME' : 'django.contrib.auth.password_validation.MinimumLengthValidator' ,
95
+ },
96
+ {
97
+ 'NAME' : 'django.contrib.auth.password_validation.CommonPasswordValidator' ,
98
+ },
99
+ {
100
+ 'NAME' : 'django.contrib.auth.password_validation.NumericPasswordValidator' ,
101
+ },
102
+ ]
103
+
85
104
# Internationalization
86
105
# https://docs.djangoproject.com/en/1.8/topics/i18n/
87
106
106
125
# https://docs.djangoproject.com/en/1.8/howto/static-files/
107
126
108
127
BASE_DIR = os .path .dirname (os .path .abspath (__file__ ))
109
- STATIC_ROOT = 'staticfiles'
128
+ STATIC_ROOT = os . path . join ( PROJECT_ROOT , 'staticfiles' )
110
129
STATIC_URL = '/static/'
111
130
131
+ # Extra places for collectstatic to find static files.
112
132
STATICFILES_DIRS = (
113
- os .path .join (BASE_DIR , 'static' ),
133
+ os .path .join (PROJECT_ROOT , 'static' ),
114
134
)
115
135
116
136
# Simplified static file serving.
You can’t perform that action at this time.
0 commit comments