Update project / gitlab ci settings

This commit is contained in:
Sonny 2020-04-15 21:59:34 +02:00
parent e495d7c188
commit 7d86cea6ec
12 changed files with 162 additions and 99 deletions

View file

@ -112,7 +112,7 @@ AUTH_USER_MODEL = "accounts.User"
# https://docs.djangoproject.com/en/2.2/topics/i18n/
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
TIME_ZONE = "Europe/Amsterdam"
USE_I18N = True
USE_L10N = True
USE_TZ = True
@ -156,5 +156,5 @@ SWAGGER_SETTINGS = {
}
REGISTRATION_OPEN = True
ACCOUNT_ACTIVATION_DAYS = 7
REGISTRATION_AUTO_LOGIN = True
ACCOUNT_ACTIVATION_DAYS = 7

View file

@ -25,6 +25,10 @@ TEMPLATES = [
}
]
# Third party settings
AXES_FAILURE_LIMIT = 50
AXES_COOLOFF_TIME = None
try:
from .local import * # noqa
except ImportError:

View file

@ -38,3 +38,8 @@ TEMPLATES = [
},
}
]
# Third party settings
AXES_HANDLER = "axes.handlers.database.DatabaseHandler"
REGISTRATION_OPEN = False