main
Jaap Joris Vens 2024-12-10 23:18:23 +01:00
rodzic 9b4cea413c
commit 1e290aec9c
1 zmienionych plików z 24 dodań i 18 usunięć

Wyświetl plik

@ -29,6 +29,7 @@ lets them assign sections to pages and fill sections with content.
Here's an example `views.py` of an app using SimpleCMS:
```python
from cms.views import SectionView
from cms.decorators import section_view
@ -42,13 +43,16 @@ Here's an example `views.py` of an app using SimpleCMS:
context = super().get_context_data(**kwargs)
context['message'] = 'Hello World!'
return context
```
And here is the contents of `hello.html`:
```html
<section type="helloworld">
<h1>{{ message }}</h1>
{{ section.content }}
</section>
```
Everytime a section needs to be rendered, SimpleCMS will call the
appropriate section view and insert the rendered result into the final
@ -73,7 +77,9 @@ SimpleCMS includes a variety of useful template tags, default *Page*
and *Section* models, and all the other boilerplate code needed for
new projects.
## Feedback and support
## Feedback
We would love to hear from you! Feel free to [open an
issue](../../issues) or [send us an email](mailto:cms@jj.rtts.eu).
We love to hear from you! Feel free to [open an
issue](https://github.com/rtts/django-simplecms) or fill out the
contact form on [our website](https://rtts.eu/) (which is of course
built with SimpleCMS!)