Skip to main content

Content management system: Pages is a list of (ordered) block and relevant content. Though to allow inline i18n content management, with high performance usage.

Project description

=============================
django_stack_it
=============================

.. image:: https://badge.fury.io/py/django_stack_it.svg
:target: https://badge.fury.io/py/django_stack_it

.. image:: https://travis-ci.org/jufik/django_stack_it.svg?branch=master
:target: https://travis-ci.org/jufik/django_stack_it

.. image:: https://codecov.io/gh/jufik/django_stack_it/branch/master/graph/badge.svg
:target: https://codecov.io/gh/jufik/django_stack_it

Content management system: Pages is a list of (ordered) block and relevant content. Though to allow inline i18n content management, with high performance usage.

Documentation
-------------

The full documentation is at https://django_stack_it.readthedocs.io.

Quickstart
----------

Install django_stack_it::

pip install django_stack_it

Django Stack It relies on several dependencies, you need to add to your INSTALLED_APPS

.. code-block:: python

INSTALLED_APPS = (
...
'polymorphic_tree',
'polymorphic',
'mptt',
'imagekit',
'stack_it'
...
)

Add django_stack_it's URL patterns:

.. code-block:: python
urlpatterns = [
...
path(r'^', include('stack_it.urls')),
...
]

Basic Usage
----------
As soon as you a model is linked to a URL, it should inherit from the `Page` model.

.. code-block:: python
from stack_it.models import Page

class Article(Page):
"""
Your model here
"""
....
Article is now considered to be a Page.
It comes with several usefull fields like `title`, `slug` dans `template_path`.

Register your model to the admin the way you want,
and you can see all your website organization within one unified admin doing:

.. code-block:: python
from stack_it.admin import PageAdmin as BasePageAdmin
from stack_it.models import Page
from blog.models import Article

class PageAdmin(BasePageAdmin):
base_model = Page
child_models = (
...Your inherited model here,
Article,
...
)
admin.site.register(Page, PageAdmin)

`Article` or any other model won't show up in the admin anymore.
Each model and model instances will be managed from the "Page" admin,
where all your pages are organized in a Drag n Drop interface to build up your site structure.


Features
--------

* TODO

Running Tests
-------------

Does the code actually work?

::

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits
-------

Tools used in rendering this package:

* Cookiecutter_
* `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2019-01-14)
++++++++++++++++++

* First release on PyPI.


Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_stack_it-0.1.0-py2.py3-none-any.whl (35.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page