Wykres commitów

45 Commity (9e1baf6ee1ea3671ea89f9c547fb069c5cb6a81c)

Autor SHA1 Wiadomość Data
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 bd654f5103 Minor 2020-01-02 20:30:24 +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 a69d51a0dc Automatic detection of available section types
Use the decorator @register to register your own Section child models, and
use their fields attribute to specify which fields it uses.
2020-01-02 01:56:15 +01:00
Jaap Joris Vens 646311335b A little javascript magic shows only the fields defined on the subclassed models 2019-12-31 14:06:08 +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 4004643dea Added flexbox align-content. I don't really understand what it does. Yet. 2019-12-28 23:31:30 +01:00
Jaap Joris Vens 6e1a6ac220 Fix small insignificant bug 2019-12-28 23:26:34 +01:00
Jaap Joris Vens 15b44b7d44 Somewhat better default styling 2019-12-28 23:22:51 +01:00
Jaap Joris Vens 4d5adcaa34 New conf parameter PAGE_URL_PATTERN 2019-12-28 21:14:06 +01:00
Jaap Joris Vens f8f4e03454 Minor CSS tweaks 2019-12-28 12:29:11 +01:00
Jaap Joris Vens dc9744c5eb Make it easier to extend the default PageView.
First, extend BasePageView and add stuff to the context that your sections
need. Second, create a URLConf entry pointing to your new class. Third,
extend the base.html nav block and change the {% url cms:page %} to its new
name.

It seems so easy in hindsight...
2019-12-28 03:05:30 +01:00
Jaap Joris Vens c9a4d4e0fd Move `project` module to examples subdirectory, since it is not
a functioning Python module without editing settings.py and customizing
the PROJECT_NAME variable.

Also, some small CSS tweaks and a rewrite of README.md
2019-12-27 14:55:52 +01:00
Jaap Joris Vens dd9bc98b7d found uncommitted 2019-12-17 12:18:03 +01:00
Jaap Joris Vens 88e420f4c0 Include numberedmodel and simplesass apps
These apps are so minimal they don't warrant their own repository. I'm
hoping they will find a new home here. This move kind of obsoletes the
github.com/rtts/django-numberedmodel and github.com/rtts/django-simplesass
repositories, although I'm not planning to update their documentation unless
I make any major changes here.
2019-11-22 11:57:10 +01:00
Jaap Joris Vens d2d4915de7 Sample project for testing
Since all of my django projects usually end up with a very similar
structure, I thought it would be useful to include some common settings in
this repository. This is useful for testig the cms app, but also as a
scaffold for new projects. The syntax in settings.py is intentionally
invalid, so you will have to make your desired changes before you can
actually use it.

My personal intended usecase: use this repository as a template for new
projects, edit settings.py and add custom apps.
2019-11-22 11:35:27 +01:00
Jaap Joris Vens 444f4e9098 bump 2019-08-28 17:05:39 +02:00
Jaap Joris Vens eeb121795e add class 2019-08-28 17:04:42 +02:00
Jaap Joris Vens 07966c46f6 use admin.RelatedOnlyFieldListFilter 2019-08-27 15:01:45 +02:00
Jaap Joris Vens 8e859c1d9d updated translations 2019-08-27 14:43:06 +02:00
Jaap Joris Vens 102a2288bf first real release! \o/ 2019-08-27 14:28:14 +02:00
Jaap Joris Vens b550e25bbd move edit page button 2019-08-27 14:25:55 +02:00
Jaap Joris Vens b4256226c1 css tweaks 2019-08-26 23:38:44 +02:00
Jaap Joris Vens 5290199bd8 be more verbose with pages and sections 2019-08-26 17:31:46 +02:00
Jaap Joris Vens 98b10502e5 auto create empty homepage 2019-08-26 12:30:47 +02:00
Jaap Joris Vens 644ec5b6b4 better forms 2019-08-26 09:47:52 +02:00
Jaap Joris Vens b2fb3b1e73 proper redirects + css magic 2019-08-25 23:36:58 +02:00
Jaap Joris Vens 7997d7af0f add support for subsections 2019-08-23 17:19:40 +02:00
Jaap Joris Vens caa04922b7 fix css scroll issue 2019-07-08 14:35:29 +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 7446b928a4 only add sections to existing pages to work around formset bug 2019-04-27 13:06:09 +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 10e90052f7 don’t wrap included sections by default 2019-04-24 20:17:36 +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 d5bf5c8c06 integrate numberedmodel into this repository 2019-04-02 15:07:36 +02:00
Jaap Joris Vens 196efe8bef remove circular dependency 2019-04-02 14:55:50 +02:00
Jaap Joris Vens 49ced2791e improve templates 2019-04-02 14:05:14 +02:00
Jaap Joris Vens d4ae47a746 first commit :) 2019-03-27 16:49:14 +01:00