use bulk_create and transaction for user generator

This commit is contained in:
virusdefender committed 2017-11-24 23:53:47 +08:00
1 parent 9889ac5b4a
commit 2d038c7bcc
4 files changed
+26 -31

No files matched your search

+1 -1
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'