File tree Expand file tree Collapse file tree 3 files changed +19
-13
lines changed
django/{{ cookiecutter.project_slug }}
{{ cookiecutter.project_slug }}/settings Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1- POSTGRES_DB =
2- POSTGRES_USER =
3- POSTGRES_PASSWORD =
4- POSTGRES_HOST =
5- POSTGRES_PORT =
1+ POSTGRES_DB = {{ cookiecutter.project_slug }}
2+ POSTGRES_USER = {{ cookiecutter.project_slug }}
3+ POSTGRES_PASSWORD = {{ cookiecutter.project_slug }}
4+ POSTGRES_HOST = localhost
5+ POSTGRES_PORT = 5432
66DJANGO_SECRET_KEY =
Original file line number Diff line number Diff line change 1414## Get started after cookiecutter
1515
16161 . Create a new remote git repository [ here] ( https://singular-code.de/projects/new )
17- 1 . Create the following CI/CD variables (under Settings > CI/CD > Variables > Project variables):
17+ 1 . Create the following CI/CD variables (under ` Settings ` > ` CI/CD ` > ` Variables ` > ` Project variables ` > ` Add variable ` ):
1818 - ` DJANGO_SECRET_KEY `
19+ - Type: ` Variable (default) `
20+ - Environments: ` All (default) `
1921 - Visibility: ` Masked `
20- - Protect variable: ` yes `
21- - Expand variable reference: ` no `
22+ - Flags - Protect variable: ` yes `
23+ - Flags - Expand variable reference: ` no `
2224 - Key: ` DJANGO_SECRET_KEY `
2325 - Value:
2426 ``` shell
33353. Create a venv and install dependencies:
3436
3537 ` ` ` bash
36- uv venv
37- source .venv/bin/activate
38+ uv venv --allow-existing
39+ # Windows
40+ .venv\S cripts\a ctivate
41+ # Linux: source .venv/bin/activate
3842 uv sync
3943 ` ` `
4044
62661. Create a virtual environment using uv:
6367
6468 ` ` ` bash
65- uv venv
66- source .venv/bin/activate
69+ uv venv --allow-existing
70+ # Windows
71+ .venv\S cripts\a ctivate
72+ # Linux: source .venv/bin/activate
6773 uv sync
6874 ` ` `
6975
Original file line number Diff line number Diff line change 4343
4444# Security
4545
46- SECRET_KEY = env .str ("DJANGO_SECRET_KEY" , "{{ random_ascii_string(50 ) }}" )
46+ SECRET_KEY = env .str ("DJANGO_SECRET_KEY" , "django-insecure- {{ random_ascii_string(20 ) }}" )
4747X_FRAME_OPTIONS = "SAMEORIGIN"
4848SILENCED_SYSTEM_CHECKS = ["security.W019" ]
4949
You can’t perform that action at this time.
0 commit comments