This repository has been archived by the owner on Jan 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove usage of .env file for local dev
- Loading branch information
Showing
5 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// { | ||
// "name": "Python: Current File (Integrated Terminal)", | ||
// "type": "python", | ||
// "request": "launch", | ||
// "program": "${file}", | ||
// "console": "integratedTerminal" | ||
// }, | ||
{ | ||
"name": "Python: Attach", | ||
"type": "python", | ||
"request": "attach", | ||
"port": 8000, | ||
"host": "localhost" | ||
}, | ||
// { | ||
// "name": "Python: Module", | ||
// "type": "python", | ||
// "request": "launch", | ||
// "module": "enter-your-module-name-here", | ||
// "console": "integratedTerminal" | ||
// }, | ||
{ | ||
"name": "Python: Django", | ||
"type": "python", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"runserver", | ||
"--noreload", | ||
"--nothreading" | ||
], | ||
"django": true, | ||
"env": { | ||
"DJANGO_SETTINGS_MODULE": "config.settings.local" | ||
} | ||
}, | ||
// { | ||
// "name": "Python: Flask", | ||
// "type": "python", | ||
// "request": "launch", | ||
// "module": "flask", | ||
// "env": { | ||
// "FLASK_APP": "app.py" | ||
// }, | ||
// "args": [ | ||
// "run", | ||
// "--no-debugger", | ||
// "--no-reload" | ||
// ], | ||
// "jinja": true | ||
// }, | ||
// { | ||
// "name": "Python: Current File (External Terminal)", | ||
// "type": "python", | ||
// "request": "launch", | ||
// "program": "${file}", | ||
// "console": "externalTerminal" | ||
// } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"python.pythonPath": "env/bin/python" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,9 +64,7 @@ | |
# MANAGER CONFIGURATION | ||
# ------------------------------------------------------------------------------ | ||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#admins | ||
ADMINS = ( | ||
("""Pierre-Olivier Blouin""", '[email protected]'), | ||
) | ||
ADMINS = () | ||
|
||
# See: https://docs.djangoproject.com/en/dev/ref/settings/#managers | ||
MANAGERS = ADMINS | ||
|
@@ -182,8 +180,6 @@ | |
# Django REST Framework Simple JWT config | ||
# ------------------------------------------------------------------------------ | ||
SIMPLE_JWT = { | ||
'SIGNING_KEY': env('DJANGO_SECRET_KEY'), | ||
|
||
'AUTH_HEADER_TYPES': ('Token',), | ||
'USER_ID_FIELD': 'id', | ||
'USER_ID_CLAIM': 'user_id', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters