Skip to content

Commit a72ec58

Browse files
committed
chore: remove all references to DJANGO_INIT_PATH
1 parent 4d78d78 commit a72ec58

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

bin/init.sh

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ rm -f django.db
1010

1111
python manage.py migrate
1212

13-
# load config data
14-
15-
python manage.py loaddata ${DJANGO_INIT_PATH:-fixtures/??_*.json}
16-
1713
# create a superuser account for backend admin access
1814
# check DJANGO_ADMIN = true, default to false if empty or unset
1915

docs/configuration/environment-variables.md

-10
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,6 @@ Boolean:
7373
files are served
7474
- `False` (default): the application is launched with debug mode turned off, similar to how it runs in production
7575

76-
### `DJANGO_INIT_PATH`
77-
78-
!!! warning "Deployment configuration"
79-
80-
You may change this setting when deploying the app to a non-localhost domain
81-
82-
The path to the fixture file(s) used to initialize the Django configuration database.
83-
84-
See [Fixtures](fixtures.md) for more.
85-
8676
### `DJANGO_LOCAL_PORT`
8777

8878
!!! info "Local configuration"

docs/getting-started/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ you setup as part of initialization.
6161

6262
By default, [sample data][sample-data] is used to initialize Django. Alternatively you may:
6363

64-
- Modify the sample data file(s); or
65-
- Override the `DJANGO_INIT_PATH` environment variable with different data file(s); or
64+
- Modify the [migration file][data-migration] that handles data migration
6665
- (If `DJANGO_ADMIN=true`) use the backend administrative interface CRUD
6766

6867
Stop the running services with:
@@ -73,3 +72,5 @@ docker compose down
7372

7473
[docker]: https://www.docker.com/products/docker-desktop
7574
[sample-data]: https://github.com/cal-itp/benefits/tree/dev/fixtures
75+
76+
[data-migration](https://github.com/cal-itp/benefits/tree/dev/benefits/core/migrations)

terraform/app_service.tf

-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ resource "azurerm_linux_web_app" "main" {
5151
# custom config
5252
"ANALYTICS_KEY",
5353
"DJANGO_ALLOWED_HOSTS",
54-
"DJANGO_INIT_PATH",
5554
"DJANGO_LOG_LEVEL",
5655
"DJANGO_TRUSTED_ORIGINS",
5756

0 commit comments

Comments
 (0)