12 Commits

Author SHA1 Message Date
Klaas van Schelven
a4ecd386b6 Support hosting at subpath
"In principle" setting `SCRIPT_NAME` is enough. The way we do this is [1] using
`FORCE_SCRIPT_NAME` (which does not depend on messing with reverse proxy
settings and [2] by deducing the correct value from `BASE_URL` (which must be
set anyway) automatically.

By works I mean: `reverse` and `{% url` pick it up from there.

However, there are subtleties / extra work:

* `STATIC_URL` is needed too b/c https://code.djangoproject.com/ticket/34028

* in many pre-existing code I just created a path manually in the html. Such
  hrefs are obviously not magically fixed for script_name. Rather than doing
  the "full rewrite" (into `{% url`) this commit just prepends the
  `script_name` in those cases. That's the way forward that will least likely
  break and it gives us something to grep for if we ever want to 'do it
  right'.

* `LOGIN_REDIRECT_URL` and `LOGIN_URL` needed to use a view-name for this to
  work (using a view-name gets revolved using the thing that introduces
  `script_name`)

Checked, no work needed:

* views (`redirect` and `HttpResponseRedirect`)
* html uses of action="..."

Fix #93
2025-09-05 22:47:22 +02:00
Klaas van Schelven
d7f58879a7 Fix: unclosed link on dark/light logo breaks user-related forms
introduced in 1abc30a7
2025-07-10 11:11:58 +02:00
Klaas van Schelven
1abc30a760 Dark mode: faucet visible in logo
not my best work ever, but at least a visible faucet this way...
2025-07-07 12:09:21 +02:00
Fabien LEFEBVRE (d1ceward)
9cec248ad8 Add dark theme 2025-06-16 15:37:37 +02:00
Klaas van Schelven
f450bf6c29 Add 'alt' to img 2024-09-26 15:25:18 +02:00
Klaas van Schelven
4988704a2d Fix signup form
broken in recent refactorings (form display)
2024-06-14 12:51:31 +02:00
Klaas van Schelven
f614d0c26a full width form fields 'everywhere'
also distinguish between labeled/placeholder style
2024-06-10 14:24:55 +02:00
Klaas van Schelven
d71916940a Factor out 'tailwind_formfield' tag 2024-06-10 10:00:06 +02:00
Klaas van Schelven
142c704682 Password reset 2024-05-30 12:35:14 +02:00
Klaas van Schelven
3054834585 Resend confirmation: implement (and offer as an option when re-signing up 2024-05-30 10:11:27 +02:00
Klaas van Schelven
cc62056dce Links between signin/login pages 2024-05-29 16:25:12 +02:00
Klaas van Schelven
123bc41b93 User registration 2024-05-29 15:43:00 +02:00