Jaap Joris Vens
03a71c583e
Tweak `pyproject.toml`
2024-12-10 01:07:14 +01:00
Jaap Joris Vens
a8b8bddc12
Do as promised
2024-12-10 01:03:35 +01:00
Jaap Joris Vens
5a4bbca1ab
Clean up example project
2024-12-10 01:03:13 +01:00
Jaap Joris Vens
d6836a6828
Remove unused files
2024-12-09 23:35:19 +01:00
Jaap Joris Vens
95a5dd424f
Switch to `pyproject.toml` configuration
2024-12-09 23:34:52 +01:00
Jaap Joris Vens
1fe9969cfc
Change license to GPLv3
2024-12-09 23:34:22 +01:00
Jaap Joris Vens
7caf63b5eb
Update pre-commit hooks
2024-12-09 23:33:22 +01:00
Jaap Joris Vens
20edda4936
Upgrade pre-commit hooks and reformat code
2023-02-21 00:21:13 +01:00
Jaap Joris Vens
94af72cca8
Merry 1.1.1
...
This release fine-tunes the translations and offers a ready-to-use,
spam resistant contact form. Submitting the form will open the user's
mail app with an email addressed to the `href` field of the section.
This method, although unconventional, has been tested by my mother on
several of her devices, which proofs anyone can use it. It couldn't be
easier and, best of all, no more spam! \o/
2022-12-25 22:02:50 +01:00
Jaap Joris Vens
9588d7ac72
Bump version number
2022-12-25 01:16:09 +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
347ee7ac3b
Upgrade pre-commit hooks
2022-12-25 01:08:42 +01:00
Jaap Joris Vens
ac49478bbb
Re-introduce section IDs
...
We may have had these before, and they may have been removed because
of concerns that IDs must be unique that non-unique IDs would be
caught by Django-Tidy. Or maybe not, I can't remember.
2022-12-25 00:25:13 +01:00
Jaap Joris Vens
80133f8aa1
Add missing translations
2022-01-29 13:36:59 +01:00
Jaap Joris Vens
74c896b86e
Properly sort out pre-commit hook handling
...
What this means is that the source code of SimpleCMS now passes all the the
pre-commit hooks, and that the code generated by `simplecms` _also_ passes
all the pre-commit hooks.
2022-01-29 12:56:45 +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
cd8151b2ce
Refactor models into models, fields and mixins
2021-06-30 00:48:50 +02:00
Jaap Joris Vens
5957b91f5b
...and `autoupdate` them
2021-06-30 00:48:04 +02:00
Jaap Joris Vens
eb969cfb8e
Add useful pre-commit hooks
2021-06-30 00:03:51 +02:00
Jaap Joris Vens
c4300bafa1
Django 3.2 compatibility
2021-06-29 23:01:02 +02:00
Jaap Joris Vens
987d04899d
Poof!
2021-01-24 17:43:52 +01:00
Jaap Joris Vens
7e552ea273
No shit, Sherlock!
2021-01-24 00:35:24 +01:00
Jaap Joris Vens
7b7263abfc
Giddyup!
2021-01-24 00:33:26 +01:00
Jaap Joris Vens
3baf7131c4
Good to go!
2021-01-24 00:23:11 +01:00
Jaap Joris Vens
492d2685bd
It's probably not as good as I think
2021-01-23 23:37:36 +01:00
Jaap Joris Vens
4c0ff4190f
This is just a test
2021-01-23 23:27:10 +01:00
Jaap Joris Vens
44941ec239
Add django-tidy
2021-01-23 11:38:10 +01:00
Jaap Joris Vens
ba4909f337
Keepin' it real.
2021-01-23 10:42:13 +01:00
Jaap Joris Vens
df0e164775
Roger!
2021-01-23 10:38:37 +01:00
Jaap Joris Vens
2a189e55dc
Explicit is better than implicit
2021-01-23 10:35:11 +01:00
Jaap Joris Vens
8dcf61c766
Let's rock!
2021-01-23 10:29:24 +01:00
Jaap Joris Vens
a5d468d54c
Prepare for first release
2021-01-23 00:31:06 +01:00
Jaap Joris Vens
e228763052
The `simplecms` command is now a proper entrypoint
2021-01-23 00:15:44 +01:00
Jaap Joris Vens
07d5aaea9c
Update example middleware
2020-11-09 22:16:34 +01:00
Jaap Joris Vens
c2e0bed323
Improve image section by fixing aspect ratio to 16:9
2020-11-09 21:23:52 +01:00
Jaap Joris Vens
3c8d5f6afe
Reduce indentation
2020-09-13 23:16:38 +02:00
Jaap Joris Vens
43c4cd281c
Custom cache middleware that doesn't serve cached pages to logged-in users.
...
The hard problem of detecting whether a user is logged in is simply
sidestepped by assuming that any user that sends the `sessionid` cookie
is logged in. This is true as long as you don't save session variables
on anonymous users (i.e. if you don't spy on them ;)
2020-09-12 15:13:02 +02:00
Jaap Joris Vens
b3138ad1f0
Update readme
2020-07-11 19:09:01 +02:00
Jaap Joris Vens
b3e2132762
Don't show 404s to logged-in users, but the new page form
2020-05-20 19:03:14 +02:00
Jaap Joris Vens
4a5259d831
Do what I want
2020-05-20 18:29:22 +02:00
Jaap Joris Vens
125f643cec
Same, but for views.py
2020-05-20 18:15:23 +02:00
Jaap Joris Vens
11fa5ba39b
Changed has_perms() to has_perm(), because the former always returns False...
2020-05-20 18:03:53 +02:00
Jaap Joris Vens
257a51cb57
Allow multiple email recipients
2020-04-29 23:32:13 +02:00
Jaap Joris Vens
4a8c804452
Better form handling
2020-03-29 01:54:56 +01:00
Jaap Joris Vens
e9fddf8a2e
Fix invalid form bug (in an ugly way...)
2020-03-25 16:52:16 +01:00
Jaap Joris Vens
be39b3fcaa
Update example project
2020-03-24 22:14:33 +01:00
Jaap Joris Vens
96ce4c4ac3
Scale edit interface to 100% width
2020-03-24 18:16: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