Skip to content

Commit aab27e9

Browse files
Matthew FreireMatthew Freire
authored andcommitted
General improvements
1 parent 31f7b87 commit aab27e9

File tree

5 files changed

+7
-17
lines changed

5 files changed

+7
-17
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"python.pythonPath": "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3",
2+
"python.pythonPath": "${workspaceFolder}/env/bin/python3",
33
"editor.formatOnSave": true,
44
"python.linting.pep8Enabled": true,
55
"python.linting.pylintPath": "pylint",

Procfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

home/settings/base.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,21 @@
6060
USE_TZ = True
6161

6262
STATIC_URL = '/static/'
63+
MEDIA_URL = '/media/'
6364
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')
6567
SITE_ID = 1
6668

6769
REST_FRAMEWORK = {
6870
'DEFAULT_PERMISSION_CLASSES': (
69-
'rest_framework.permissions.IsAuthenticatedOrReadOnly',
71+
'rest_framework.permissions.AllowAny',
7072
),
7173
'DEFAULT_AUTHENTICATION_CLASSES': (
7274
'rest_framework.authentication.TokenAuthentication',
73-
'rest_framework.authentication.SessionAuthentication',
74-
'rest_framework.authentication.BasicAuthentication',
7575
),
7676
}
7777

78-
CSRF_COOKIE_NAME = "csrftoken"
79-
8078
ACCOUNT_EMAIL_REQUIRED = False
8179
ACCOUNT_AUTHENTICATION_METHOD = 'username'
8280
ACCOUNT_EMAIL_VERIFICATION = 'none'

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "django-react-boilerplate",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"private": true,
55
"dependencies": {
66
"antd": "^3.7.3",
@@ -17,11 +17,6 @@
1717
"start": "react-scripts start",
1818
"build": "react-scripts build",
1919
"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"
2621
}
2722
}

runtime.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)