Skip to content

Commit

Permalink
feat(devcontainer): debugging/launch config for sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Feb 11, 2025
1 parent 2c0428b commit 1512eb7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// 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": "Django: CDT Identity Sample",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": ["runserver", "0.0.0.0:8000"],
"django": true,
"env": {
"PYTHONWARNINGS": "default"
}
}
]
}
11 changes: 11 additions & 0 deletions tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

import os

DEBUG = True

SECRET_KEY = "secret key"

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand All @@ -24,12 +26,17 @@
"django.contrib.contenttypes",
"django.contrib.messages",
"django.contrib.sessions",
"django.contrib.staticfiles",
"cdt_identity",
"tests.app",
]

MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
]
Expand All @@ -48,4 +55,8 @@
}
]

STATIC_URL = "/static/"

ROOT_URLCONF = "tests.urls"

USE_TZ = True

0 comments on commit 1512eb7

Please sign in to comment.