Wykres commitów

16 Commity (c52be27802e10091e64cf73be0bd5b5cd18b1253)

Autor SHA1 Wiadomość Data
Jaap Joris Vens c52be27802 Make email subject user-configurable 2024-12-10 23:08:03 +01:00
Jaap Joris Vens 6781532448 Add missing docstrings 2024-12-10 23:05:36 +01:00
Jaap Joris Vens 5a4bbca1ab Clean up example project 2024-12-10 01:03:13 +01:00
Jaap Joris Vens 1fda2f40c1 Spam-resistant contact form
Submitting the form now returns a 302 mailto: redirect, which should
open the user's email client with a pre-composed email. In case it
doesn't work, the example form view now renders text content where
{{ section.href }} should be mentioned as an alternative.

Of course, publishing an email address on the internet will still lead
to spam, but at least Django won't be the one sending it.
2022-12-25 01:10:41 +01:00
Jaap Joris Vens 924031f3ac Reverse tidy and cache middleware
I don't fully understand why this is needed, but one project (invoices) for
some reason won't work without it...
2021-07-05 01:41:18 +02:00
Jaap Joris Vens 98de86f49d Blackify everything 2021-07-04 01:59:48 +02:00
Jaap Joris Vens c4300bafa1 Django 3.2 compatibility 2021-06-29 23:01:02 +02:00
Jaap Joris Vens 44941ec239 Add django-tidy 2021-01-23 11:38:10 +01:00
Jaap Joris Vens 07d5aaea9c Update example middleware 2020-11-09 22:16:34 +01:00
Jaap Joris Vens 257a51cb57 Allow multiple email recipients 2020-04-29 23:32:13 +02:00
Jaap Joris Vens be39b3fcaa Update example project 2020-03-24 22:14:33 +01:00
Jaap Joris Vens c552f52e46 Various small improvements 2020-03-24 15:32:12 +01:00
Jaap Joris Vens b092c12c99 [ no commit message supplied ] 2020-03-24 01:55:49 +01:00
Jaap Joris Vens ab9dc1621f Updated example project with cache settings. Also, deleted frontend
templates from cms app.
2020-03-24 01:15:17 +01:00
Jaap Joris Vens 2382fd47f0 Tidying up! 2020-03-22 19:57:48 +01:00
Jaap Joris Vens 0e221ccf33 The dependency on swapper has been replaced with an incredibly simply
"registry". Client projects register their models and views during import
time with a decorator. The cms views use the registered classes to generate
pages and forms.

Furthermore, the example application now combines the app and the project in
one, inspired by this line in the Django documentation:

    There’s no restriction that a project package can’t also be considered
    an application and have models, etc.
2020-03-22 12:46:10 +01:00