django-stack-it-bak


Namedjango-stack-it-bak JSON
Version 0.1.13.2 PyPI version JSON
download
home_pagehttps://github.com/jufik/django_stack_it
SummaryContent management system: Pages is a list of (ordered) block and relevant content. Though to allow inline i18n content management, with high performance usage.
upload_time2024-02-02 17:22:20
maintainer
docs_urlNone
authorJulien Kieffer
requires_python
licenseMIT
keywords django_stack_it
VCS
bugtrack_url
requirements Django django-appconf django-imagekit django-js-asset django-model-utils django-mptt django-polymorphic django-polymorphic-tree django-tag-parser future pilkit Pillow psycopg2 pytz six
Travis-CI
coveralls test coverage
            =============================
django-stack-it
=============================

.. image:: https://api.codacy.com/project/badge/Grade/4c1f910320434a5fb2fb828ebfcbaf95
   :alt: Codacy Badge
   :target: https://app.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&utm_medium=referral&utm_content=VingtCinq/django_stack_it&utm_campaign=Badge_Grade_Dashboard

.. image:: https://badge.fury.io/py/django-stack-it.svg
    :target: https://badge.fury.io/py/django-stack-it

.. image:: https://api.codacy.com/project/badge/Coverage/a842b7f950cd465d91d6b06c7d56ce16    
    :target: https://www.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&utm_medium=referral&utm_content=VingtCinq/django_stack_it&utm_campaign=Badge_Coverage

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

Content management system under development


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')),
        ...
    ]

To avoid migration messup, we strongly recomend you to deport `Stack It` migrations to your project.
This will avoid any unexpected conflict between environements, due to language addition/deletion.
In your settings:

.. code-block:: python
    MIGRATION_MODULES = {
        "stack_it":"tests.migrations"
    }

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.

If you want your model's to be registered as usual, add `show_in_index = True` in your admin class to allow 

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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jufik/django_stack_it",
    "name": "django-stack-it-bak",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django_stack_it",
    "author": "Julien Kieffer",
    "author_email": "julien@vingtcinq.io",
    "download_url": "https://files.pythonhosted.org/packages/df/07/012eb6e1f2e56aa00e82fbf9626172fc554c3a6abbfa43d4d1756724389b/django_stack_it_bak-0.1.13.2.tar.gz",
    "platform": null,
    "description": "=============================\ndjango-stack-it\n=============================\n\n.. image:: https://api.codacy.com/project/badge/Grade/4c1f910320434a5fb2fb828ebfcbaf95\n   :alt: Codacy Badge\n   :target: https://app.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&utm_medium=referral&utm_content=VingtCinq/django_stack_it&utm_campaign=Badge_Grade_Dashboard\n\n.. image:: https://badge.fury.io/py/django-stack-it.svg\n    :target: https://badge.fury.io/py/django-stack-it\n\n.. image:: https://api.codacy.com/project/badge/Coverage/a842b7f950cd465d91d6b06c7d56ce16    \n    :target: https://www.codacy.com/app/Jufik/django_stack_it?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=VingtCinq/django_stack_it&amp;utm_campaign=Badge_Coverage\n\n.. image:: https://travis-ci.org/VingtCinq/django_stack_it.svg?branch=master\n    :target: https://travis-ci.org/VingtCinq/django_stack_it\n\nContent management system under development\n\n\nQuickstart\n----------\n\nInstall django-stack-it::\n\n    pip install django-stack-it\n\nDjango Stack It relies on several dependencies, you need to add to your INSTALLED_APPS\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        ...\n        'polymorphic_tree',\n        'polymorphic',\n        'mptt',\n        'imagekit',\n        'stack_it'\n        ...\n    )\n\nAdd django-stack-it's URL patterns:\n\n.. code-block:: python\n    urlpatterns = [\n        ...\n        path(r'^', include('stack_it.urls')),\n        ...\n    ]\n\nTo avoid migration messup, we strongly recomend you to deport `Stack It` migrations to your project.\nThis will avoid any unexpected conflict between environements, due to language addition/deletion.\nIn your settings:\n\n.. code-block:: python\n    MIGRATION_MODULES = {\n        \"stack_it\":\"tests.migrations\"\n    }\n\nBasic Usage\n----------\nAs soon as you a model is linked to a URL, it should inherit from the `Page` model.\n\n.. code-block:: python\n    from stack_it.models import Page\n\n    class Article(Page):\n        \"\"\"\n        Your model here\n        \"\"\"\n        ....\nArticle is now considered to be a Page.\nIt comes with several usefull fields like `title`, `slug` dans `template_path`.\n\nRegister your model to the admin the way you want, \nand you can see all your website organization within one unified admin doing:\n\n.. code-block:: python\n    from stack_it.admin import PageAdmin as BasePageAdmin\n    from stack_it.models import Page\n    from blog.models import Article\n\n    class PageAdmin(BasePageAdmin):\n        base_model = Page\n        child_models = (\n            ...Your inherited model here,\n            Article,\n            ...\n        )\n     admin.site.register(Page, PageAdmin)\n\n`Article` or any other model won't show up in the admin anymore.\nEach model and model instances will be managed from the \"Page\" admin,\nwhere all your pages are organized in a Drag n Drop interface to build up your site structure.\n\nIf you want your model's to be registered as usual, add `show_in_index = True` in your admin class to allow \n\nFeatures\n--------\n\n* TODO\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n    source <YOURVIRTUALENV>/bin/activate\n    (myenv) $ pip install tox\n    (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n*  Cookiecutter_\n*  `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2019-01-14)\n++++++++++++++++++\n\n* First release on PyPI.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Content management system: Pages is a list of (ordered) block and relevant content. Though to allow inline i18n content management, with high performance usage.",
    "version": "0.1.13.2",
    "project_urls": {
        "Homepage": "https://github.com/jufik/django_stack_it"
    },
    "split_keywords": [
        "django_stack_it"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86558e8b696caa197df5e6f15d4b300807e7c429ef86ec6307aab411019b5a11",
                "md5": "89a7f49b21a6879a86a7280d23267559",
                "sha256": "e6c3862aa5d4068cb6377c6ebd30e7c270218b55f7f54e9e5f5e450b3d50c4bb"
            },
            "downloads": -1,
            "filename": "django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89a7f49b21a6879a86a7280d23267559",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 86544,
            "upload_time": "2024-02-02T17:22:18",
            "upload_time_iso_8601": "2024-02-02T17:22:18.025928Z",
            "url": "https://files.pythonhosted.org/packages/86/55/8e8b696caa197df5e6f15d4b300807e7c429ef86ec6307aab411019b5a11/django_stack_it_bak-0.1.13.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df07012eb6e1f2e56aa00e82fbf9626172fc554c3a6abbfa43d4d1756724389b",
                "md5": "0b305aba76ca64901cd8b40c878c74fa",
                "sha256": "78a46e847453b02e49f3d73720ce22e3b3c765fd85337be230c5130b5670797e"
            },
            "downloads": -1,
            "filename": "django_stack_it_bak-0.1.13.2.tar.gz",
            "has_sig": false,
            "md5_digest": "0b305aba76ca64901cd8b40c878c74fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 70931,
            "upload_time": "2024-02-02T17:22:20",
            "upload_time_iso_8601": "2024-02-02T17:22:20.130417Z",
            "url": "https://files.pythonhosted.org/packages/df/07/012eb6e1f2e56aa00e82fbf9626172fc554c3a6abbfa43d4d1756724389b/django_stack_it_bak-0.1.13.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-02 17:22:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jufik",
    "github_project": "django_stack_it",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "requirements": [
        {
            "name": "Django",
            "specs": [
                [
                    "==",
                    "2.1.5"
                ]
            ]
        },
        {
            "name": "django-appconf",
            "specs": [
                [
                    "==",
                    "1.0.3"
                ]
            ]
        },
        {
            "name": "django-imagekit",
            "specs": [
                [
                    "==",
                    "4.0.2"
                ]
            ]
        },
        {
            "name": "django-js-asset",
            "specs": [
                [
                    "==",
                    "1.2.2"
                ]
            ]
        },
        {
            "name": "django-model-utils",
            "specs": [
                [
                    "==",
                    "3.1.2"
                ]
            ]
        },
        {
            "name": "django-mptt",
            "specs": [
                [
                    "==",
                    "0.9.1"
                ]
            ]
        },
        {
            "name": "django-polymorphic",
            "specs": [
                [
                    "==",
                    "2.0.3"
                ]
            ]
        },
        {
            "name": "django-polymorphic-tree",
            "specs": [
                [
                    "==",
                    "1.5"
                ]
            ]
        },
        {
            "name": "django-tag-parser",
            "specs": [
                [
                    "==",
                    "3.1"
                ]
            ]
        },
        {
            "name": "future",
            "specs": [
                [
                    "==",
                    "0.17.1"
                ]
            ]
        },
        {
            "name": "pilkit",
            "specs": [
                [
                    "==",
                    "2.0"
                ]
            ]
        },
        {
            "name": "Pillow",
            "specs": [
                [
                    "==",
                    "5.4.1"
                ]
            ]
        },
        {
            "name": "psycopg2",
            "specs": [
                [
                    "==",
                    "2.7.7"
                ]
            ]
        },
        {
            "name": "pytz",
            "specs": [
                [
                    "==",
                    "2018.9"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.12.0"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "django-stack-it-bak"
}
        
Elapsed time: 2.09574s