Wykres commitów

29 Commity (98de86f49dfc68559dbd4539dcc9e409bf7f0a91)

Autor SHA1 Wiadomość Data
Jaap Joris Vens 98de86f49d Blackify everything 2021-07-04 01:59:48 +02: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 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 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 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
Jaap Joris Vens 5ddf0c7e0e Missing translations 2020-01-13 11:49:55 +01:00
Jaap Joris Vens 5f5f303187 A new templatetag 'includesection' now renders a section with its own
context, as provided by the polymorphic subsection's registered view.

Also, I'm trying to move all the website-related cruft from cms into the
example project, so that only the Page and Section models with their own
"admin" views will remain.
2020-01-05 03:36:23 +01:00
Jaap Joris Vens 9e1baf6ee1 Add bleach to the dependencies (although it is not currently being used...) 2020-01-02 23:45:27 +01:00
Jaap Joris Vens f9ea04662b Replace CKEditor's RichTextField with MarkdownField
Because you should not store raw HTML in database tables!
2020-01-02 23:37:26 +01:00
Jaap Joris Vens e0dddeda08 New machinery for registering custom views
Each custom section can now have their own associated custom SectionView.
SectionView subclasses behave just like Django's generic views, except they
return Section objects instead of http responses. The updated PageView takes
care of compositing all rendered sections into the final response. Nice!
2020-01-02 19:32:15 +01:00
Jaap Joris Vens 25350b4706 New helper command: simplecms 2020-01-02 03:33:41 +01:00
Jaap Joris Vens d166e10b05 First draft of version 2.0.0
Oh boy! This is a big one. Two new dependencies: swapper and
django-polymorphic will now allow any project that uses cms to elegantly
extend the default Section model with custom fields and custom subclasses.
This is still a work in progress.
2019-12-31 13:05:12 +01:00
Jaap Joris Vens 444f4e9098 bump 2019-08-28 17:05:39 +02:00
Jaap Joris Vens 102a2288bf first real release! \o/ 2019-08-27 14:28:14 +02:00
Jaap Joris Vens f7e4b1066d hook for extending base sections 2019-04-29 13:13:54 +02:00
Jaap Joris Vens 96e47cc277 only add sections to existing pages to work around formset bug 2019-04-27 13:06:23 +02:00
Jaap Joris Vens 5ad04df8fb don’t require titles and some css tweaks 2019-04-24 22:18:07 +02:00
Jaap Joris Vens d4e1b92fbb bump version 2019-04-24 20:19:16 +02:00
Jaap Joris Vens b106d740a0 update translations 2019-04-03 15:50:36 +02:00
Jaap Joris Vens 807b45db9b another try to include package data 2019-04-02 16:42:40 +02:00
Jaap Joris Vens 49b3e127c8 include templates as package data 2019-04-02 16:28:36 +02:00
Jaap Joris Vens 74b3d2face include subpackages 2019-04-02 16:19:43 +02:00
Jaap Joris Vens 196efe8bef remove circular dependency 2019-04-02 14:55:50 +02:00
Jaap Joris Vens d4ae47a746 first commit :) 2019-03-27 16:49:14 +01:00