File tree Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Expand file tree Collapse file tree 5 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "python.pythonPath" : " /Library/Frameworks/Python.framework/Versions/3.6 /bin/python3" ,
2
+ "python.pythonPath" : " ${workspaceFolder}/env /bin/python3" ,
3
3
"editor.formatOnSave" : true ,
4
4
"python.linting.pep8Enabled" : true ,
5
5
"python.linting.pylintPath" : " pylint" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 60
60
USE_TZ = True
61
61
62
62
STATIC_URL = '/static/'
63
+ MEDIA_URL = '/media/'
63
64
STATICFILES_DIRS = [os .path .join (BASE_DIR , 'build/static' )]
64
- STATIC_ROOT = os .path .join (BASE_DIR , 'staticfiles' )
65
+ STATIC_ROOT = os .path .join (BASE_DIR , 'static' )
66
+ MEDIA_ROOT = os .path .join (BASE_DIR , 'media' )
65
67
SITE_ID = 1
66
68
67
69
REST_FRAMEWORK = {
68
70
'DEFAULT_PERMISSION_CLASSES' : (
69
- 'rest_framework.permissions.IsAuthenticatedOrReadOnly ' ,
71
+ 'rest_framework.permissions.AllowAny ' ,
70
72
),
71
73
'DEFAULT_AUTHENTICATION_CLASSES' : (
72
74
'rest_framework.authentication.TokenAuthentication' ,
73
- 'rest_framework.authentication.SessionAuthentication' ,
74
- 'rest_framework.authentication.BasicAuthentication' ,
75
75
),
76
76
}
77
77
78
- CSRF_COOKIE_NAME = "csrftoken"
79
-
80
78
ACCOUNT_EMAIL_REQUIRED = False
81
79
ACCOUNT_AUTHENTICATION_METHOD = 'username'
82
80
ACCOUNT_EMAIL_VERIFICATION = 'none'
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " django-react-boilerplate" ,
3
- "version" : " 0.1 .0" ,
3
+ "version" : " 0.2 .0" ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"antd" : " ^3.7.3" ,
17
17
"start" : " react-scripts start" ,
18
18
"build" : " react-scripts build" ,
19
19
"test" : " react-scripts test --env=jsdom" ,
20
- "eject" : " react-scripts eject" ,
21
- "postinstall" : " npm run build"
22
- },
23
- "engines" : {
24
- "node" : " 9.5.0" ,
25
- "npm" : " 6.4.1"
20
+ "eject" : " react-scripts eject"
26
21
}
27
22
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments