use bulk_create and transaction for user generator

This commit is contained in:
virusdefender
2017-11-24 23:30:17 +08:00
parent 9889ac5b4a
commit 2d038c7bcc
4 changed files with 26 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'HOST': '127.0.0.1',
'PORT': 5433,
'PORT': 5432,
'NAME': "onlinejudge",
'USER': "onlinejudge",
'PASSWORD': 'onlinejudge'