- commit
- c6026a977dc843bbbb65fc1abb3f0894b67d206d
- parent
- 5ff3a84ba0a9e65451aac93d54aa156ccdb8d1f3
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-07-31 17:39
make it easier to use runserver
Diffstat
| M | tests/settings.py | 8 | +++----- |
| A | tests/templates/registration/login.html | 9 | +++++++++ |
2 files changed, 12 insertions, 5 deletions
diff --git a/tests/settings.py b/tests/settings.py
@@ -2,6 +2,8 @@ from pathlib import Path 2 2 3 3 import django 4 4 -1 5 DEBUG = True -1 6 5 7 DATABASES = { 6 8 'default': { 7 9 'ENGINE': 'django.db.backends.sqlite3', @@ -9,11 +11,7 @@ DATABASES = { 9 11 } 10 12 } 11 1312 -1 CACHES = {13 -1 'default': {14 -1 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'15 -1 }16 -1 }-1 14 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' 17 15 18 16 MIDDLEWARE = [ 19 17 'django.middleware.common.CommonMiddleware',
diff --git a/tests/templates/registration/login.html b/tests/templates/registration/login.html
@@ -0,0 +1,9 @@
-1 1 {% load i18n %}
-1 2
-1 3 <form method="POST">
-1 4 {% csrf_token %}
-1 5
-1 6 {{ form }}
-1 7 <input type="hidden" name="next" value="{{ next }}">
-1 8 <button>Login</button>
-1 9 </form>