Skip to content

Commit 24f0767

Browse files
authored
Optimize bootstrap_devsite command (bulk_create, concurrency) (#2052)
1 parent 5b1975b commit 24f0767

File tree

5 files changed

+1006
-774
lines changed

5 files changed

+1006
-774
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Is this a new installation? Initialize the database:
128128
Is this for local development? Bootstrap the database with dummy data and users:
129129

130130
```
131-
(venv) $ python src/manage.py bootstrap_devsite
131+
(venv) $ python src/manage.py bootstrap_devsite [--threads <count>] [--years <start,end>] [--writable-years <start,end>] [--verbosity <{0,1,2,3}>]
132132
```
133133

134134
This creates some user accounts. Run the following command to see their email
@@ -201,6 +201,7 @@ Then go to the admin interface and add the camp.
201201
## Contributors
202202
* Alexander Færøy https://github.com/ahf
203203
* Benjamin Bach https://github.com/benjaoming
204+
* Christian Henriksen https://github.com/0xunicorn
204205
* coral https://github.com/coral
205206
* Flemming Jacobsen https://github.com/batmule
206207
* Florian Klink https://github.com/flokli

src/bornhack/settings.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,6 @@
251251
"OAUTH2_VALIDATOR_CLASS": "bornhack.oauth_validators.BornhackOAuth2Validator",
252252
}
253253

254-
# only used for bootstrap-devsite
255-
UPCOMING_CAMP_YEAR = 2031
256-
257254
# django-tables2 settings
258255
DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5-responsive.html"
259256
DJANGO_TABLES2_TABLE_ATTRS = {

0 commit comments

Comments
 (0)