kopia lustrzana https://github.com/rtts/django-simplecms
Update readme
rodzic
2382fd47f0
commit
66755c1e40
22
README.md
22
README.md
|
@ -1,7 +1,7 @@
|
||||||
# Django Simple CMS
|
# Django Simple CMS
|
||||||
|
|
||||||
*A super simple but very extensible content management system for
|
***A super simple but very extensible content management system for
|
||||||
Django websites.*
|
Django websites.***
|
||||||
|
|
||||||
SimpleCMS provides the reusable Django app `cms` which contains
|
SimpleCMS provides the reusable Django app `cms` which contains
|
||||||
everything you need to create websites that can be easily edited by
|
everything you need to create websites that can be easily edited by
|
||||||
|
@ -13,8 +13,8 @@ Contrary to 'regular' Django websites, SimpleCMS allows you to write a
|
||||||
view for each *section*, rather than for each *page* on your website.
|
view for each *section*, rather than for each *page* on your website.
|
||||||
On which pages these sections appear, and in which order, is left to
|
On which pages these sections appear, and in which order, is left to
|
||||||
the content editor rather than the programmer. After authenticating,
|
the content editor rather than the programmer. After authenticating,
|
||||||
the editor can use the {page,section}{create,update} forms to fill the
|
the user can use the "Edit" interface to fill the website with various
|
||||||
website with various types of content.
|
types of content.
|
||||||
|
|
||||||
Here's an example `views.py` of an app using SimpleCMS:
|
Here's an example `views.py` of an app using SimpleCMS:
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ Here's an example `views.py` of an app using SimpleCMS:
|
||||||
def get_context_data(self, **kwargs):
|
def get_context_data(self, **kwargs):
|
||||||
context = super()get_context_data(**kwargs)
|
context = super()get_context_data(**kwargs)
|
||||||
context['message'] = 'Hello World!'
|
context['message'] = 'Hello World!'
|
||||||
|
return context
|
||||||
|
|
||||||
And here is the contents of `hello.html`:
|
And here is the contents of `hello.html`:
|
||||||
|
|
||||||
|
@ -38,9 +39,9 @@ And here is the contents of `hello.html`:
|
||||||
{{section.content}}
|
{{section.content}}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
Everytime a section needs to be rendered, your section view will be
|
Everytime a section needs to be rendered, SimpleCMS will call the
|
||||||
called by SimpleCMS and return a response which will get inserted into
|
appropriate section view and insert the rendered result into the final
|
||||||
the final rendered page.
|
rendered page.
|
||||||
|
|
||||||
## The "Edit" Interface
|
## The "Edit" Interface
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ are stored in the same database table.
|
||||||
|
|
||||||
## Batteries included!
|
## Batteries included!
|
||||||
|
|
||||||
SimpleCMS has been specifically crafted to fit my own personal needs
|
SimpleCMS has been specifically crafted to fit our own personal needs
|
||||||
when building websites for customers. Therefore it includes a variety
|
when building websites for customers. Therefore it includes a variety
|
||||||
of useful template tags, default *Page* and *Section* models, and all
|
of useful template tags, default *Page* and *Section* models, and all
|
||||||
the other boilerplate code needed for new projects.
|
the other boilerplate code needed for new projects.
|
||||||
|
@ -93,3 +94,8 @@ Finally, run the development server and visit
|
||||||
http://localhost:8000/login/ in your browser to log in!
|
http://localhost:8000/login/ in your browser to log in!
|
||||||
|
|
||||||
$ ./manage.py runserver
|
$ ./manage.py runserver
|
||||||
|
|
||||||
|
## Getting help or contributing
|
||||||
|
|
||||||
|
We'd love to hear from you! If you have any questions or contributions,
|
||||||
|
don't hesitate to contact us at info@returntothesource.nl
|
||||||
|
|
Ładowanie…
Reference in New Issue