register and sign in pages

This commit is contained in:
2026-09-22 00:50:30 +05:00
parent f313867653
commit 78d04f75d1
96 changed files with 6383 additions and 109 deletions
+19
View File
@@ -0,0 +1,19 @@
"""Test settings.
Same postgres engine as production (procrastinate's migrations are
postgres-only), with throttling off and a cheap password hasher so the auth
tests aren't dominated by bcrypt.
python manage.py test --settings=apibase.settings_test
"""
from .settings import * # noqa: F401,F403
from .settings import DATABASES, REST_FRAMEWORK, env
DATABASES["default"]["HOST"] = env("POSTGRES_HOST", default="localhost")
REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"] = dict.fromkeys(
REST_FRAMEWORK["DEFAULT_THROTTLE_RATES"], None
)
PASSWORD_HASHERS = ["django.contrib.auth.hashers.MD5PasswordHasher"]